@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | function Limit($list_count, $page = NULL, $page_count = NULL) |
44 | 44 | { |
45 | 45 | $this->list_count = $list_count; |
46 | - if($page) |
|
46 | + if ($page) |
|
47 | 47 | { |
48 | 48 | $list_count_value = $list_count->getValue(); |
49 | 49 | $page_value = $page->getValue(); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | */ |
60 | 60 | function isPageHandler() |
61 | 61 | { |
62 | - if($this->page) |
|
62 | + if ($this->page) |
|
63 | 63 | { |
64 | 64 | return true; |
65 | 65 | } |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | |
82 | 82 | function toString() |
83 | 83 | { |
84 | - if($this->page) |
|
84 | + if ($this->page) |
|
85 | 85 | { |
86 | 86 | return $this->start . ' , ' . $this->list_count->getValue(); |
87 | 87 | } |
@@ -85,8 +85,7 @@ discard block |
||
85 | 85 | if(strpos($name, '.') === FALSE) |
86 | 86 | { |
87 | 87 | $this->column_name = $name; |
88 | - } |
|
89 | - else |
|
88 | + } else |
|
90 | 89 | { |
91 | 90 | list($prefix, $name) = explode('.', $name); |
92 | 91 | $this->column_name = $name; |
@@ -159,8 +158,7 @@ discard block |
||
159 | 158 | , $this->argument_name |
160 | 159 | , $this->argument_name |
161 | 160 | ); |
162 | - } |
|
163 | - else |
|
161 | + } else |
|
164 | 162 | { |
165 | 163 | $arg = sprintf("\n" . '${\'%s_argument\'} = new Argument(\'%s\', %s);' . "\n" |
166 | 164 | , $this->argument_name |
@@ -59,11 +59,11 @@ |
||
59 | 59 | function getArguments() |
60 | 60 | { |
61 | 61 | $args = array(); |
62 | - if(is_a($this->column_name, 'Argument')) |
|
62 | + if (is_a($this->column_name, 'Argument')) |
|
63 | 63 | { |
64 | 64 | $args[] = $this->column_name; |
65 | 65 | } |
66 | - if(is_a($this->sort_order, 'Argument')) |
|
66 | + if (is_a($this->sort_order, 'Argument')) |
|
67 | 67 | { |
68 | 68 | $args[] = $this->sort_order; |
69 | 69 | } |
@@ -52,10 +52,10 @@ |
||
52 | 52 | $db_info = Context::getDBInfo(); |
53 | 53 | $prefix = $db_info->master_db["db_table_prefix"]; |
54 | 54 | |
55 | - foreach($this->index_hints_list as $index_hint) |
|
55 | + foreach ($this->index_hints_list as $index_hint) |
|
56 | 56 | { |
57 | 57 | $index_hint_type = $index_hint->getIndexHintType(); |
58 | - if($index_hint_type !== 'IGNORE') |
|
58 | + if ($index_hint_type !== 'IGNORE') |
|
59 | 59 | { |
60 | 60 | $result .= $this->alias . '.' |
61 | 61 | . '"' . $prefix . substr($index_hint->getIndexName(), 1) |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | $part = $this->join_type . ' ' . $this->name; |
45 | 45 | $part .= $this->alias ? ' as ' . $this->alias : ''; |
46 | 46 | $part .= ' on '; |
47 | - foreach($this->conditions as $conditionGroup) |
|
47 | + foreach ($this->conditions as $conditionGroup) |
|
48 | 48 | { |
49 | 49 | $part .= $conditionGroup->toString($with_value); |
50 | 50 | } |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | function getArguments() |
60 | 60 | { |
61 | 61 | $args = array(); |
62 | - foreach($this->conditions as $conditionGroup) |
|
62 | + foreach ($this->conditions as $conditionGroup) |
|
63 | 63 | { |
64 | 64 | $args = array_merge($args, $conditionGroup->getArguments()); |
65 | 65 | } |
@@ -46,15 +46,15 @@ |
||
46 | 46 | |
47 | 47 | $index_hint_string = ''; |
48 | 48 | $indexTypeList = array('USE' => 1, 'FORCE' => 1); |
49 | - foreach($this->index_hints_list as $index_hint) |
|
49 | + foreach ($this->index_hints_list as $index_hint) |
|
50 | 50 | { |
51 | 51 | $index_hint_type = $index_hint->getIndexHintType(); |
52 | - if(isset($indexTypeList[$index_hint_type])) |
|
52 | + if (isset($indexTypeList[$index_hint_type])) |
|
53 | 53 | { |
54 | 54 | $index_hint_string .= 'INDEX(' . $index_hint->getIndexName() . '), '; |
55 | 55 | } |
56 | 56 | } |
57 | - if($index_hint_string != '') |
|
57 | + if ($index_hint_string != '') |
|
58 | 58 | { |
59 | 59 | $result .= ' WITH(' . substr($index_hint_string, 0, -2) . ') '; |
60 | 60 | } |
@@ -47,31 +47,31 @@ |
||
47 | 47 | $use_index_hint = ''; |
48 | 48 | $force_index_hint = ''; |
49 | 49 | $ignore_index_hint = ''; |
50 | - foreach($this->index_hints_list as $index_hint) |
|
50 | + foreach ($this->index_hints_list as $index_hint) |
|
51 | 51 | { |
52 | 52 | $index_hint_type = $index_hint->getIndexHintType(); |
53 | - if($index_hint_type == 'USE') |
|
53 | + if ($index_hint_type == 'USE') |
|
54 | 54 | { |
55 | 55 | $use_index_hint .= $index_hint->getIndexName() . ', '; |
56 | 56 | } |
57 | - else if($index_hint_type == 'FORCE') |
|
57 | + else if ($index_hint_type == 'FORCE') |
|
58 | 58 | { |
59 | 59 | $force_index_hint .= $index_hint->getIndexName() . ', '; |
60 | 60 | } |
61 | - else if($index_hint_type == 'IGNORE') |
|
61 | + else if ($index_hint_type == 'IGNORE') |
|
62 | 62 | { |
63 | 63 | $ignore_index_hint .= $index_hint->getIndexName() . ', '; |
64 | 64 | } |
65 | 65 | } |
66 | - if($use_index_hint != '') |
|
66 | + if ($use_index_hint != '') |
|
67 | 67 | { |
68 | 68 | $result .= ' USE INDEX (' . substr($use_index_hint, 0, -2) . ') '; |
69 | 69 | } |
70 | - if($force_index_hint != '') |
|
70 | + if ($force_index_hint != '') |
|
71 | 71 | { |
72 | 72 | $result .= ' FORCE INDEX (' . substr($force_index_hint, 0, -2) . ') '; |
73 | 73 | } |
74 | - if($ignore_index_hint != '') |
|
74 | + if ($ignore_index_hint != '') |
|
75 | 75 | { |
76 | 76 | $result .= ' IGNORE INDEX (' . substr($ignore_index_hint, 0, -2) . ') '; |
77 | 77 | } |
@@ -53,12 +53,10 @@ |
||
53 | 53 | if($index_hint_type == 'USE') |
54 | 54 | { |
55 | 55 | $use_index_hint .= $index_hint->getIndexName() . ', '; |
56 | - } |
|
57 | - else if($index_hint_type == 'FORCE') |
|
56 | + } else if($index_hint_type == 'FORCE') |
|
58 | 57 | { |
59 | 58 | $force_index_hint .= $index_hint->getIndexName() . ', '; |
60 | - } |
|
61 | - else if($index_hint_type == 'IGNORE') |
|
59 | + } else if($index_hint_type == 'IGNORE') |
|
62 | 60 | { |
63 | 61 | $ignore_index_hint .= $index_hint->getIndexName() . ', '; |
64 | 62 | } |
@@ -18,9 +18,9 @@ discard block |
||
18 | 18 | |
19 | 19 | $template_path = $oModule->getTemplatePath(); |
20 | 20 | |
21 | - if(!is_dir($template_path)) |
|
21 | + if (!is_dir($template_path)) |
|
22 | 22 | { |
23 | - if($oModule->module_info->module == $oModule->module) |
|
23 | + if ($oModule->module_info->module == $oModule->module) |
|
24 | 24 | { |
25 | 25 | $skin = $oModule->origin_module_info->skin; |
26 | 26 | } |
@@ -29,17 +29,17 @@ discard block |
||
29 | 29 | $skin = $oModule->module_config->skin; |
30 | 30 | } |
31 | 31 | |
32 | - if(Context::get('module') != 'admin' && strpos(Context::get('act'), 'Admin') === false) |
|
32 | + if (Context::get('module') != 'admin' && strpos(Context::get('act'), 'Admin') === false) |
|
33 | 33 | { |
34 | - if($skin && is_string($skin)) |
|
34 | + if ($skin && is_string($skin)) |
|
35 | 35 | { |
36 | 36 | $theme_skin = explode('|@|', $skin); |
37 | 37 | $template_path = $oModule->getTemplatePath(); |
38 | - if(count($theme_skin) == 2) |
|
38 | + if (count($theme_skin) == 2) |
|
39 | 39 | { |
40 | 40 | $theme_path = sprintf('./themes/%s', $theme_skin[0]); |
41 | 41 | // FIXME $theme_path $theme_path $theme_path ?? |
42 | - if(substr($theme_path, 0, strlen($theme_path)) != $theme_path) |
|
42 | + if (substr($theme_path, 0, strlen($theme_path)) != $theme_path) |
|
43 | 43 | { |
44 | 44 | $template_path = sprintf('%s/modules/%s/', $theme_path, $theme_skin[1]); |
45 | 45 | } |
@@ -65,16 +65,16 @@ discard block |
||
65 | 65 | $oSecurity->encodeHTML('is_keyword'); |
66 | 66 | |
67 | 67 | // add .x div for adminitration pages |
68 | - if(Context::getResponseMethod() == 'HTML') |
|
68 | + if (Context::getResponseMethod() == 'HTML') |
|
69 | 69 | { |
70 | - if(Context::get('module') != 'admin' && strpos(Context::get('act'), 'Admin') > 0 && Context::get('act') != 'dispPageAdminContentModify' && Context::get('act') != 'dispPageAdminMobileContentModify') |
|
70 | + if (Context::get('module') != 'admin' && strpos(Context::get('act'), 'Admin') > 0 && Context::get('act') != 'dispPageAdminContentModify' && Context::get('act') != 'dispPageAdminMobileContentModify') |
|
71 | 71 | { |
72 | 72 | $output = '<div class="x">' . $output . '</div>'; |
73 | 73 | } |
74 | 74 | |
75 | - if(Context::get('layout') != 'none') |
|
75 | + if (Context::get('layout') != 'none') |
|
76 | 76 | { |
77 | - if(__DEBUG__ == 3) |
|
77 | + if (__DEBUG__ == 3) |
|
78 | 78 | { |
79 | 79 | $start = getMicroTime(); |
80 | 80 | } |
@@ -92,11 +92,11 @@ discard block |
||
92 | 92 | $layout_srl = $layout_info->layout_srl; |
93 | 93 | |
94 | 94 | // compile if connected to the layout |
95 | - if($layout_srl > 0) |
|
95 | + if ($layout_srl > 0) |
|
96 | 96 | { |
97 | 97 | |
98 | 98 | // handle separately if the layout is faceoff |
99 | - if($layout_info && $layout_info->type == 'faceoff') |
|
99 | + if ($layout_info && $layout_info->type == 'faceoff') |
|
100 | 100 | { |
101 | 101 | $oLayoutModel->doActivateFaceOff($layout_info); |
102 | 102 | Context::set('layout_info', $layout_info); |
@@ -105,16 +105,16 @@ discard block |
||
105 | 105 | // search if the changes CSS exists in the admin layout edit window |
106 | 106 | $edited_layout_css = $oLayoutModel->getUserLayoutCss($layout_srl); |
107 | 107 | |
108 | - if(FileHandler::exists($edited_layout_css)) |
|
108 | + if (FileHandler::exists($edited_layout_css)) |
|
109 | 109 | { |
110 | 110 | Context::loadFile(array($edited_layout_css, 'all', '', 100)); |
111 | 111 | } |
112 | 112 | } |
113 | - if(!$layout_path) |
|
113 | + if (!$layout_path) |
|
114 | 114 | { |
115 | 115 | $layout_path = './common/tpl'; |
116 | 116 | } |
117 | - if(!$layout_file) |
|
117 | + if (!$layout_file) |
|
118 | 118 | { |
119 | 119 | $layout_file = 'default_layout'; |
120 | 120 | } |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | |
123 | 123 | // if popup_layout, remove admin bar. |
124 | 124 | $realLayoutPath = FileHandler::getRealPath($layout_path); |
125 | - if(substr_compare($realLayoutPath, '/', -1) !== 0) |
|
125 | + if (substr_compare($realLayoutPath, '/', -1) !== 0) |
|
126 | 126 | { |
127 | 127 | $realLayoutPath .= '/'; |
128 | 128 | } |
@@ -130,12 +130,12 @@ discard block |
||
130 | 130 | $pathInfo = pathinfo($layout_file); |
131 | 131 | $onlyLayoutFile = $pathInfo['filename']; |
132 | 132 | |
133 | - if(__DEBUG__ == 3) |
|
133 | + if (__DEBUG__ == 3) |
|
134 | 134 | { |
135 | 135 | $GLOBALS['__layout_compile_elapsed__'] = getMicroTime() - $start; |
136 | 136 | } |
137 | 137 | |
138 | - if(stripos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE && (Context::get('_use_ssl') == 'optional' || Context::get('_use_ssl') == 'always')) |
|
138 | + if (stripos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE && (Context::get('_use_ssl') == 'optional' || Context::get('_use_ssl') == 'always')) |
|
139 | 139 | { |
140 | 140 | Context::addHtmlFooter('<iframe id="xeTmpIframe" name="xeTmpIframe" style="width:1px;height:1px;position:absolute;top:-2px;left:-2px;"></iframe>'); |
141 | 141 | } |
@@ -151,12 +151,12 @@ discard block |
||
151 | 151 | */ |
152 | 152 | function prepareToPrint(&$output) |
153 | 153 | { |
154 | - if(Context::getResponseMethod() != 'HTML') |
|
154 | + if (Context::getResponseMethod() != 'HTML') |
|
155 | 155 | { |
156 | 156 | return; |
157 | 157 | } |
158 | 158 | |
159 | - if(__DEBUG__ == 3) |
|
159 | + if (__DEBUG__ == 3) |
|
160 | 160 | { |
161 | 161 | $start = getMicroTime(); |
162 | 162 | } |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | $output = preg_replace_callback('/<!--(#)?Meta:([a-z0-9\_\-\/\.\@\:]+)-->/is', array($this, '_transMeta'), $output); |
175 | 175 | |
176 | 176 | // handles a relative path generated by using the rewrite module |
177 | - if(Context::isAllowRewrite()) |
|
177 | + if (Context::isAllowRewrite()) |
|
178 | 178 | { |
179 | 179 | $url = parse_url(Context::getRequestUri()); |
180 | 180 | $real_path = $url['path']; |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | $pattern = '/href=("|\'){1}(\?[^"\']+)/s'; |
186 | 186 | $output = preg_replace($pattern, 'href=$1' . $real_path . '$2', $output); |
187 | 187 | |
188 | - if(Context::get('vid')) |
|
188 | + if (Context::get('vid')) |
|
189 | 189 | { |
190 | 190 | $pattern = '/\/' . Context::get('vid') . '\?([^=]+)=/is'; |
191 | 191 | $output = preg_replace($pattern, '/?$1=', $output); |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | // prevent the 2nd request due to url(none) of the background-image |
196 | 196 | $output = preg_replace('/url\((["\']?)none(["\']?)\)/is', 'none', $output); |
197 | 197 | |
198 | - if(is_array(Context::get('INPUT_ERROR'))) |
|
198 | + if (is_array(Context::get('INPUT_ERROR'))) |
|
199 | 199 | { |
200 | 200 | $INPUT_ERROR = Context::get('INPUT_ERROR'); |
201 | 201 | $keys = array_keys($INPUT_ERROR); |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | $output = preg_replace_callback('@<textarea[^>]*\sname="' . $keys . '".+</textarea>@isU', array(&$this, '_preserveTextAreaValue'), $output); |
207 | 207 | } |
208 | 208 | |
209 | - if(__DEBUG__ == 3) |
|
209 | + if (__DEBUG__ == 3) |
|
210 | 210 | { |
211 | 211 | $GLOBALS['__trans_content_elapsed__'] = getMicroTime() - $start; |
212 | 212 | } |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | // convert the final layout |
225 | 225 | Context::set('content', $output); |
226 | 226 | $oTemplate = TemplateHandler::getInstance(); |
227 | - if(Mobile::isFromMobilePhone()) |
|
227 | + if (Mobile::isFromMobilePhone()) |
|
228 | 228 | { |
229 | 229 | $this->_loadMobileJSCSS(); |
230 | 230 | $output = $oTemplate->compile('./common/tpl', 'mobile_layout'); |
@@ -253,12 +253,12 @@ discard block |
||
253 | 253 | |
254 | 254 | // get type |
255 | 255 | $type = 'text'; |
256 | - if(preg_match('/\stype="([a-z]+)"/i', $str, $m)) |
|
256 | + if (preg_match('/\stype="([a-z]+)"/i', $str, $m)) |
|
257 | 257 | { |
258 | 258 | $type = strtolower($m[1]); |
259 | 259 | } |
260 | 260 | |
261 | - switch($type) |
|
261 | + switch ($type) |
|
262 | 262 | { |
263 | 263 | case 'text': |
264 | 264 | case 'hidden': |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | case 'radio': |
285 | 285 | case 'checkbox': |
286 | 286 | $str = preg_replace('@\schecked(="[^"]*?")?@', ' ', $str); |
287 | - if(@preg_match('@\s(?i:value)="' . $INPUT_ERROR[$match[3]] . '"@', $str)) |
|
287 | + if (@preg_match('@\s(?i:value)="' . $INPUT_ERROR[$match[3]] . '"@', $str)) |
|
288 | 288 | { |
289 | 289 | $str .= ' checked="checked"'; |
290 | 290 | } |
@@ -308,7 +308,7 @@ discard block |
||
308 | 308 | preg_match_all('@<option[^>]*\svalue="([^"]*)".+</option>@isU', $matches[0], $m); |
309 | 309 | |
310 | 310 | $key = array_search($INPUT_ERROR[$matches[1]], $m[1]); |
311 | - if($key === FALSE) |
|
311 | + if ($key === FALSE) |
|
312 | 312 | { |
313 | 313 | return $matches[0]; |
314 | 314 | } |
@@ -338,7 +338,7 @@ discard block |
||
338 | 338 | */ |
339 | 339 | function _moveStyleToHeader($matches) |
340 | 340 | { |
341 | - if(isset($matches[1]) && stristr($matches[1], 'scoped')) |
|
341 | + if (isset($matches[1]) && stristr($matches[1], 'scoped')) |
|
342 | 342 | { |
343 | 343 | return $matches[0]; |
344 | 344 | } |
@@ -374,7 +374,7 @@ discard block |
||
374 | 374 | */ |
375 | 375 | function _transMeta($matches) |
376 | 376 | { |
377 | - if($matches[1]) |
|
377 | + if ($matches[1]) |
|
378 | 378 | { |
379 | 379 | return ''; |
380 | 380 | } |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | $lang_type = Context::getLangType(); |
392 | 392 | |
393 | 393 | // add common JS/CSS files |
394 | - if(__DEBUG__ || !__XE_VERSION_STABLE__) |
|
394 | + if (__DEBUG__ || !__XE_VERSION_STABLE__) |
|
395 | 395 | { |
396 | 396 | $oContext->loadFile(array('./common/js/jquery-1.x.js', 'head', 'lt IE 9', -111000), true); |
397 | 397 | $oContext->loadFile(array('./common/js/jquery.js', 'head', 'gte IE 9', -110000), true); |
@@ -413,9 +413,9 @@ discard block |
||
413 | 413 | } |
414 | 414 | |
415 | 415 | // for admin page, add admin css |
416 | - if(Context::get('module') == 'admin' || strpos(Context::get('act'), 'Admin') > 0) |
|
416 | + if (Context::get('module') == 'admin' || strpos(Context::get('act'), 'Admin') > 0) |
|
417 | 417 | { |
418 | - if(__DEBUG__ || !__XE_VERSION_STABLE__) |
|
418 | + if (__DEBUG__ || !__XE_VERSION_STABLE__) |
|
419 | 419 | { |
420 | 420 | $oContext->loadFile(array('./modules/admin/tpl/css/admin.css', '', '', 10), true); |
421 | 421 | $oContext->loadFile(array("./modules/admin/tpl/css/admin_{$lang_type}.css", '', '', 10), true); |
@@ -447,7 +447,7 @@ discard block |
||
447 | 447 | $lang_type = Context::getLangType(); |
448 | 448 | |
449 | 449 | // add common JS/CSS files |
450 | - if(__DEBUG__ || !__XE_VERSION_STABLE__) |
|
450 | + if (__DEBUG__ || !__XE_VERSION_STABLE__) |
|
451 | 451 | { |
452 | 452 | $oContext->loadFile(array('./common/js/jquery.js', 'head', '', -110000), true); |
453 | 453 | $oContext->loadFile(array('./common/js/modernizr.js', 'head', '', -100000), true); |
@@ -23,8 +23,7 @@ discard block |
||
23 | 23 | if($oModule->module_info->module == $oModule->module) |
24 | 24 | { |
25 | 25 | $skin = $oModule->origin_module_info->skin; |
26 | - } |
|
27 | - else |
|
26 | + } else |
|
28 | 27 | { |
29 | 28 | $skin = $oModule->module_config->skin; |
30 | 29 | } |
@@ -44,13 +43,11 @@ discard block |
||
44 | 43 | $template_path = sprintf('%s/modules/%s/', $theme_path, $theme_skin[1]); |
45 | 44 | } |
46 | 45 | } |
47 | - } |
|
48 | - else |
|
46 | + } else |
|
49 | 47 | { |
50 | 48 | $template_path = $oModule->getTemplatePath(); |
51 | 49 | } |
52 | - } |
|
53 | - else |
|
50 | + } else |
|
54 | 51 | { |
55 | 52 | $template_path = $oModule->getTemplatePath(); |
56 | 53 | } |
@@ -228,8 +225,7 @@ discard block |
||
228 | 225 | { |
229 | 226 | $this->_loadMobileJSCSS(); |
230 | 227 | $output = $oTemplate->compile('./common/tpl', 'mobile_layout'); |
231 | - } |
|
232 | - else |
|
228 | + } else |
|
233 | 229 | { |
234 | 230 | $this->_loadJSCSS(); |
235 | 231 | $output = $oTemplate->compile('./common/tpl', 'common_layout'); |
@@ -402,8 +398,7 @@ discard block |
||
402 | 398 | $oContext->loadFile(array('./common/js/xml_handler.js', 'head', '', -100000), true); |
403 | 399 | $oContext->loadFile(array('./common/js/xml_js_filter.js', 'head', '', -100000), true); |
404 | 400 | $oContext->loadFile(array('./common/css/xe.css', '', '', -1000000), true); |
405 | - } |
|
406 | - else |
|
401 | + } else |
|
407 | 402 | { |
408 | 403 | $oContext->loadFile(array('./common/js/jquery-1.x.min.js', 'head', 'lt IE 9', -111000), true); |
409 | 404 | $oContext->loadFile(array('./common/js/jquery.min.js', 'head', 'gte IE 9', -110000), true); |
@@ -424,8 +419,7 @@ discard block |
||
424 | 419 | $oContext->loadFile(array('./modules/admin/tpl/css/admin.bootstrap.css', '', '', 1), true); |
425 | 420 | $oContext->loadFile(array('./modules/admin/tpl/js/jquery.tmpl.js', '', '', 1), true); |
426 | 421 | $oContext->loadFile(array('./modules/admin/tpl/js/jquery.jstree.js', '', '', 1), true); |
427 | - } |
|
428 | - else |
|
422 | + } else |
|
429 | 423 | { |
430 | 424 | $oContext->loadFile(array('./modules/admin/tpl/css/admin.min.css', '', '', 10), true); |
431 | 425 | $oContext->loadFile(array("./modules/admin/tpl/css/admin_{$lang_type}.css", '', '', 10), true); |
@@ -458,8 +452,7 @@ discard block |
||
458 | 452 | $oContext->loadFile(array('./common/js/xml_js_filter.js', 'head', '', -100000), true); |
459 | 453 | $oContext->loadFile(array('./common/css/xe.css', '', '', -1000000), true); |
460 | 454 | $oContext->loadFile(array('./common/css/mobile.css', '', '', -1000000), true); |
461 | - } |
|
462 | - else |
|
455 | + } else |
|
463 | 456 | { |
464 | 457 | $oContext->loadFile(array('./common/js/jquery.min.js', 'head', '', -110000), true); |
465 | 458 | $oContext->loadFile(array('./common/js/x.min.js', 'head', '', -100000), true); |
@@ -16,7 +16,7 @@ |
||
16 | 16 | |
17 | 17 | /** |
18 | 18 | * get layout setting view. |
19 | - * @return void |
|
19 | + * @return string|null |
|
20 | 20 | */ |
21 | 21 | public function getLayoutAdminSetInfoView() |
22 | 22 | { |
@@ -17,19 +17,19 @@ discard block |
||
17 | 17 | $request_url = Context::getRequestUri(); |
18 | 18 | $output = new stdClass(); |
19 | 19 | |
20 | - if(substr_compare($request_url, '/', -1) !== 0) |
|
20 | + if (substr_compare($request_url, '/', -1) !== 0) |
|
21 | 21 | { |
22 | 22 | $request_url .= '/'; |
23 | 23 | } |
24 | 24 | |
25 | - if($error === 0) |
|
25 | + if ($error === 0) |
|
26 | 26 | { |
27 | - if($message != 'success') |
|
27 | + if ($message != 'success') |
|
28 | 28 | { |
29 | 29 | $output->message = $message; |
30 | 30 | } |
31 | 31 | |
32 | - if($redirect_url) |
|
32 | + if ($redirect_url) |
|
33 | 33 | { |
34 | 34 | $output->url = $redirect_url; |
35 | 35 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | } |
41 | 41 | else |
42 | 42 | { |
43 | - if($message != 'fail') |
|
43 | + if ($message != 'fail') |
|
44 | 44 | { |
45 | 45 | $output->message = $message; |
46 | 46 | } |
@@ -50,12 +50,12 @@ discard block |
||
50 | 50 | $html[] = '<script type="text/javascript">'; |
51 | 51 | $html[] = '//<![CDATA['; |
52 | 52 | |
53 | - if($output->message) |
|
53 | + if ($output->message) |
|
54 | 54 | { |
55 | 55 | $html[] = 'alert("' . $output->message . '");'; |
56 | 56 | } |
57 | 57 | |
58 | - if($output->url) |
|
58 | + if ($output->url) |
|
59 | 59 | { |
60 | 60 | $url = preg_replace('/#(.+)$/i', '', $output->url); |
61 | 61 | $html[] = 'self.location.href = "' . $request_url . 'common/tpl/redirect.html?redirect_url=' . urlencode($url) . '";'; |
@@ -103,8 +103,7 @@ discard block |
||
103 | 103 | if($category->parent_srl) |
104 | 104 | { |
105 | 105 | $categoryList[$category->parent_srl]->children[] = & $categoryList[$key]; |
106 | - } |
|
107 | - else |
|
106 | + } else |
|
108 | 107 | { |
109 | 108 | $depth0[] = $key; |
110 | 109 | } |
@@ -324,8 +323,7 @@ discard block |
||
324 | 323 | if(method_exists($oModule, "moduleUninstall")) |
325 | 324 | { |
326 | 325 | return TRUE; |
327 | - } |
|
328 | - else |
|
326 | + } else |
|
329 | 327 | { |
330 | 328 | return FALSE; |
331 | 329 | } |
@@ -31,25 +31,25 @@ |
||
31 | 31 | */ |
32 | 32 | function _makeXmlDoc($obj) |
33 | 33 | { |
34 | - if(!count($obj)) |
|
34 | + if (!count($obj)) |
|
35 | 35 | { |
36 | 36 | return; |
37 | 37 | } |
38 | 38 | |
39 | 39 | $xmlDoc = ''; |
40 | 40 | |
41 | - foreach($obj as $key => $val) |
|
41 | + foreach ($obj as $key => $val) |
|
42 | 42 | { |
43 | - if(is_numeric($key)) |
|
43 | + if (is_numeric($key)) |
|
44 | 44 | { |
45 | 45 | $key = 'item'; |
46 | 46 | } |
47 | 47 | |
48 | - if(is_string($val)) |
|
48 | + if (is_string($val)) |
|
49 | 49 | { |
50 | 50 | $xmlDoc .= sprintf('<%s><![CDATA[%s]]></%s>%s', $key, $val, $key, "\n"); |
51 | 51 | } |
52 | - else if(!is_array($val) && !is_object($val)) |
|
52 | + else if (!is_array($val) && !is_object($val)) |
|
53 | 53 | { |
54 | 54 | $xmlDoc .= sprintf('<%s>%s</%s>%s', $key, $val, $key, "\n"); |
55 | 55 | } |
@@ -48,12 +48,10 @@ |
||
48 | 48 | if(is_string($val)) |
49 | 49 | { |
50 | 50 | $xmlDoc .= sprintf('<%s><![CDATA[%s]]></%s>%s', $key, $val, $key, "\n"); |
51 | - } |
|
52 | - else if(!is_array($val) && !is_object($val)) |
|
51 | + } else if(!is_array($val) && !is_object($val)) |
|
53 | 52 | { |
54 | 53 | $xmlDoc .= sprintf('<%s>%s</%s>%s', $key, $val, $key, "\n"); |
55 | - } |
|
56 | - else |
|
54 | + } else |
|
57 | 55 | { |
58 | 56 | $xmlDoc .= sprintf('<%s>%s%s</%s>%s', $key, "\n", $this->_makeXmlDoc($val), $key, "\n"); |
59 | 57 | } |