@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
2 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
4 | 4 | } |
5 | 5 | ?> |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
2 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
4 | 4 | } |
5 | 5 | ?> |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
2 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
4 | 4 | } |
5 | 5 | ?> |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
2 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
4 | 4 | } |
5 | 5 | ?> |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
2 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
4 | 4 | } |
5 | 5 | ?> |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
2 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
4 | 4 | } |
5 | 5 | ?> |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
2 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
4 | 4 | } |
5 | 5 | ?> |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
2 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
4 | 4 | } |
5 | 5 | ?> |
@@ -50,12 +50,12 @@ discard block |
||
50 | 50 | foreach ($_ as $collation=>$selected) { |
51 | 51 | $collation = htmlentities($collation); |
52 | 52 | // if(substr($collation,0,4)!=='utf8') continue; |
53 | - if (strpos($collation, 'sjis')===0) { |
|
53 | + if (strpos($collation, 'sjis') === 0) { |
|
54 | 54 | continue; |
55 | 55 | } |
56 | - if ($collation=='recommend') { |
|
56 | + if ($collation == 'recommend') { |
|
57 | 57 | $output .= '<optgroup label="recommend">'; |
58 | - } elseif ($collation=='unrecommend') { |
|
58 | + } elseif ($collation == 'unrecommend') { |
|
59 | 59 | $output .= '</optgroup><optgroup label="unrecommend">'; |
60 | 60 | } else { |
61 | 61 | $output .= sprintf('<option value="%s" %s>%s</option>', $collation, $selected, $collation); |
@@ -67,18 +67,18 @@ discard block |
||
67 | 67 | echo $output; |
68 | 68 | exit; |
69 | 69 | |
70 | -function sortItem($array=array(), $order='utf8mb4,utf8') |
|
70 | +function sortItem($array = array(), $order = 'utf8mb4,utf8') |
|
71 | 71 | { |
72 | 72 | $rs = array('recommend'=>''); |
73 | 73 | $order = explode(',', $order); |
74 | 74 | foreach ($order as $v) { |
75 | 75 | foreach ($array as $name=>$sel) { |
76 | - if (strpos($name, $v)!==false) { |
|
76 | + if (strpos($name, $v) !== false) { |
|
77 | 77 | $rs[$name] = $array[$name]; |
78 | 78 | unset($array[$name]); |
79 | 79 | } |
80 | 80 | } |
81 | 81 | } |
82 | - $rs['unrecommend']=''; |
|
82 | + $rs['unrecommend'] = ''; |
|
83 | 83 | return $rs + $array; |
84 | 84 | } |
85 | 85 | \ No newline at end of file |