@@ -2,5 +2,5 @@ |
||
2 | 2 | // _LANGCODE: en |
3 | 3 | // _CHARSET : UTF-8 |
4 | 4 | // Translator: XOOPS Translation Team |
5 | -define('_XO_ER_FILENOTFOUND','Requested file: <b>%s</b> was not found '); |
|
6 | -define('_XO_ER_CLASSNOTFOUND','Requested class %s was not found'); |
|
5 | +define('_XO_ER_FILENOTFOUND', 'Requested file: <b>%s</b> was not found '); |
|
6 | +define('_XO_ER_CLASSNOTFOUND', 'Requested class %s was not found'); |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -define('_AM_XMF_MODULE_NOTFOUND','Please install or reactivate %1$s module. Minimum version required: %2$s'); |
|
4 | -define('_AM_XMF_MODULE_VERSION','Minimum %1$s module version required: %2$s (your version is %3$s)'); |
|
3 | +define('_AM_XMF_MODULE_NOTFOUND', 'Please install or reactivate %1$s module. Minimum version required: %2$s'); |
|
4 | +define('_AM_XMF_MODULE_VERSION', 'Minimum %1$s module version required: %2$s (your version is %3$s)'); |
|
5 | 5 | define('_AM_XMF_MODULE_INSTALLED', 'The module \'%s\' is installed!'); |
6 | 6 | define('_AM_XMF_MODULE_NOT_INSTALLED', 'The module \'%s\' is not installed!'); |
7 | 7 | |
8 | -define('_DB_XMF_TABLE_IS_NOT_DEFINED','Table is not defined'); |
|
8 | +define('_DB_XMF_TABLE_IS_NOT_DEFINED', 'Table is not defined'); |
@@ -61,5 +61,5 @@ |
||
61 | 61 | |
62 | 62 | //2.5.4 |
63 | 63 | define('_MA_USER_FACEBOOK', 'Facebook Link'); //TO DO |
64 | -define('_MA_USER_SKYPE', 'Skype Link');//TO DO |
|
64 | +define('_MA_USER_SKYPE', 'Skype Link'); //TO DO |
|
65 | 65 |
@@ -30,10 +30,10 @@ |
||
30 | 30 | define('_MONTHDAY', 'n/j G:i'); |
31 | 31 | define('_YEARMONTHDAY', 'Y/n/j G:i'); |
32 | 32 | define('_ELAPSE', '%s ago'); |
33 | -define('_TIMEFORMAT_DESC', "Valid formats: \"s\" - " . _SHORTDATESTRING . "; \"m\" - " . _MEDIUMDATESTRING . "; \"l\" - " . _DATESTRING . ';<br>' . "\"c\" or \"custom\" - format determined according to interval to present; \"e\" - Elapsed; \"mysql\" - Y-m-d H:i:s;<br>" . "specified string - Refer to <a href=\"http://php.net/manual/en/function.date.php\" rel=\"external\">PHP manual</a>."); |
|
33 | +define('_TIMEFORMAT_DESC', "Valid formats: \"s\" - "._SHORTDATESTRING."; \"m\" - "._MEDIUMDATESTRING."; \"l\" - "._DATESTRING.';<br>'."\"c\" or \"custom\" - format determined according to interval to present; \"e\" - Elapsed; \"mysql\" - Y-m-d H:i:s;<br>"."specified string - Refer to <a href=\"http://php.net/manual/en/function.date.php\" rel=\"external\">PHP manual</a>."); |
|
34 | 34 | |
35 | 35 | if (!class_exists('XoopsLocalAbstract')) { |
36 | - include_once XOOPS_ROOT_PATH . '/class/xoopslocal.php'; |
|
36 | + include_once XOOPS_ROOT_PATH.'/class/xoopslocal.php'; |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
@@ -33,8 +33,8 @@ |
||
33 | 33 | 'Verdana', |
34 | 34 | 'Haettenschweiler'); |
35 | 35 | /** |
36 | - * Localized font sizes: 'font size value' => 'font size name' |
|
37 | - */ |
|
36 | + * Localized font sizes: 'font size value' => 'font size name' |
|
37 | + */ |
|
38 | 38 | $GLOBALS['formtextdhtml_sizes'] = array( |
39 | 39 | 'xx-small' => 'xx-Small', |
40 | 40 | 'x-small' => 'x-Small', |
@@ -76,7 +76,7 @@ |
||
76 | 76 | define('_XOOPS_FORM_ALT_CHECKLENGTH', 'Check text length'); |
77 | 77 | define('_XOOPS_FORM_ALT_LENGTH', 'Current content length: %s'); |
78 | 78 | define('_XOOPS_FORM_ALT_LENGTH_MAX', 'Maximum length: '); |
79 | -define('_XOOPS_FORM_PREVIEW_CONTENT', 'Click the <strong>' . _PREVIEW . '</strong> to see the content in action.'); |
|
79 | +define('_XOOPS_FORM_PREVIEW_CONTENT', 'Click the <strong>'._PREVIEW.'</strong> to see the content in action.'); |
|
80 | 80 | |
81 | 81 | define('_XOOPS_FORM_ALTYOUTUBE', 'Youtube'); |
82 | 82 | define('_XOOPS_FORM_ENTER_SOUNDCLOUD_URL', 'Enter SoundCloud URL'); |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | */ |
68 | 68 | function themecenterposts($title, $content) |
69 | 69 | { |
70 | - echo '<table cellpadding="4" cellspacing="1" width="98%" class="outer"><tr><td class="head">' . $title . '</td></tr><tr><td><br>' . $content . '<br></td></tr></table>'; |
|
70 | + echo '<table cellpadding="4" cellspacing="1" width="98%" class="outer"><tr><td class="head">'.$title.'</td></tr><tr><td><br>'.$content.'<br></td></tr></table>'; |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | /** |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | */ |
80 | 80 | function myTextForm($url, $value) |
81 | 81 | { |
82 | - return '<form action="' . $url . '" method="post"><input type="submit" value="' . $value . '" /></form>'; |
|
82 | + return '<form action="'.$url.'" method="post"><input type="submit" value="'.$value.'" /></form>'; |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | /** |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | */ |
109 | 109 | function xoops_module_get_admin_menu() |
110 | 110 | { |
111 | - $GLOBALS['xoopsLogger']->addDeprecated(__FUNCTION__ . ' is deprecated, should not be used any longer'); |
|
111 | + $GLOBALS['xoopsLogger']->addDeprecated(__FUNCTION__.' is deprecated, should not be used any longer'); |
|
112 | 112 | /************************************************************ |
113 | 113 | * Based on: |
114 | 114 | * - PHP Layers Menu 1.0.7(c)2001,2002 Marco Pratesi <[email protected]> |
@@ -135,22 +135,22 @@ discard block |
||
135 | 135 | foreach ($mods as $mod) { |
136 | 136 | $mid = $mod->getVar('mid'); |
137 | 137 | $module_name = $mod->getVar('name'); |
138 | - $module_url = "\".XOOPS_URL.\"/modules/" . $mod->getVar('dirname') . '/' . trim($mod->getInfo('adminindex')); |
|
139 | - $module_img = "<img class='admin_layer_img' src='\".XOOPS_URL.\"/modules/" . $mod->getVar('dirname') . '/' . $mod->getInfo('image') . "' alt='' />"; |
|
140 | - $module_desc = "<strong>\"._VERSION.\":</strong> " . round($mod->getVar('version') / 100, 2) . "<br><strong>\"._DESCRIPTION.\":</strong> " . $mod->getInfo('description'); |
|
138 | + $module_url = "\".XOOPS_URL.\"/modules/".$mod->getVar('dirname').'/'.trim($mod->getInfo('adminindex')); |
|
139 | + $module_img = "<img class='admin_layer_img' src='\".XOOPS_URL.\"/modules/".$mod->getVar('dirname').'/'.$mod->getInfo('image')."' alt='' />"; |
|
140 | + $module_desc = "<strong>\"._VERSION.\":</strong> ".round($mod->getVar('version') / 100, 2)."<br><strong>\"._DESCRIPTION.\":</strong> ".$mod->getInfo('description'); |
|
141 | 141 | |
142 | 142 | $top += 15; |
143 | - $js .= "\nfunction popUpL" . $mid . "() {\n shutdown();\n popUp('L" . $mid . "',true);}"; |
|
144 | - $moveLayers .= "\n setleft('L" . $mid . "'," . $left . ");\n settop('L" . $mid . "'," . $top . ');'; |
|
145 | - $shutdown .= "\n popUp('L" . $mid . "',false);"; |
|
146 | - $firstleveltable .= "$" . 'xoops_admin_menu_ft[' . $mid . "] = \"<a href='" . $module_url . "' title='" . $module_name . "' onmouseover='moveLayerY(\\\"L" . $mid . "\\\", currentY, event) ; popUpL" . $mid . "(); ' >" . $module_img . "</a><br>\";\n"; |
|
147 | - $menu_layers .= "\n<div id='L" . $mid . "' style='position: absolute; visibility: hidden; z-index:1000;' >\n<table class='admin_layer' cellpadding='0' cellspacing='0'>\n<tr><th nowrap='nowrap'>" . $module_name . "</th></tr>\n<tr><td class='even' nowrap='nowrap'>"; |
|
143 | + $js .= "\nfunction popUpL".$mid."() {\n shutdown();\n popUp('L".$mid."',true);}"; |
|
144 | + $moveLayers .= "\n setleft('L".$mid."',".$left.");\n settop('L".$mid."',".$top.');'; |
|
145 | + $shutdown .= "\n popUp('L".$mid."',false);"; |
|
146 | + $firstleveltable .= "$".'xoops_admin_menu_ft['.$mid."] = \"<a href='".$module_url."' title='".$module_name."' onmouseover='moveLayerY(\\\"L".$mid."\\\", currentY, event) ; popUpL".$mid."(); ' >".$module_img."</a><br>\";\n"; |
|
147 | + $menu_layers .= "\n<div id='L".$mid."' style='position: absolute; visibility: hidden; z-index:1000;' >\n<table class='admin_layer' cellpadding='0' cellspacing='0'>\n<tr><th nowrap='nowrap'>".$module_name."</th></tr>\n<tr><td class='even' nowrap='nowrap'>"; |
|
148 | 148 | |
149 | 149 | $adminmenu = $mod->getAdminMenu(); |
150 | 150 | |
151 | 151 | if ($mod->getVar('hasnotification') || ($mod->getInfo('config') && is_array($mod->getInfo('config'))) || ($mod->getInfo('comments') && is_array($mod->getInfo('comments')))) { |
152 | 152 | $adminmenu[] = array( |
153 | - 'link' => '".XOOPS_URL."/modules/system/admin.php?fct=preferences&op=showmod&mod=' . $mid, |
|
153 | + 'link' => '".XOOPS_URL."/modules/system/admin.php?fct=preferences&op=showmod&mod='.$mid, |
|
154 | 154 | 'title' => _PREFERENCES, |
155 | 155 | 'absolute' => true); |
156 | 156 | } |
@@ -159,27 +159,27 @@ discard block |
||
159 | 159 | foreach ($adminmenu as $menuitem) { |
160 | 160 | $menu_link = trim($menuitem['link']); |
161 | 161 | $menu_title = trim($menuitem['title']); |
162 | - $menu_target = isset($menuitem['target']) ? " target='" . trim($menuitem['target']) . "'" : ''; |
|
162 | + $menu_target = isset($menuitem['target']) ? " target='".trim($menuitem['target'])."'" : ''; |
|
163 | 163 | if (isset($menuitem['absolute']) && $menuitem['absolute']) { |
164 | 164 | $menu_link = empty($menu_link) ? '#' : $menu_link; |
165 | 165 | } else { |
166 | - $menu_link = empty($menu_link) ? '#' : "\".XOOPS_URL.\"/modules/" . $mod->getVar('dirname') . '/' . $menu_link; |
|
166 | + $menu_link = empty($menu_link) ? '#' : "\".XOOPS_URL.\"/modules/".$mod->getVar('dirname').'/'.$menu_link; |
|
167 | 167 | } |
168 | 168 | |
169 | - $menu_layers .= "\n<img src='\".XOOPS_URL.\"/images/pointer.gif' width='8' height='8' alt='' /> <a href='" . $menu_link . "'" . $menu_target . " onmouseover='popUpL" . $mid . "' >" . $menu_title . "</a><br>\n"; |
|
169 | + $menu_layers .= "\n<img src='\".XOOPS_URL.\"/images/pointer.gif' width='8' height='8' alt='' /> <a href='".$menu_link."'".$menu_target." onmouseover='popUpL".$mid."' >".$menu_title."</a><br>\n"; |
|
170 | 170 | } |
171 | 171 | } |
172 | 172 | |
173 | - $menu_layers .= "\n<div style='margin-top: 5px; font-size: smaller; text-align: right;'><a href='#' onmouseover='shutdown();'>[" . _CLOSE . "]</a></div></td></tr><tr><th style='font-size: smaller; text-align: left;'>" . $module_img . '<br>' . $module_desc . "</th></tr></table></div>\n"; |
|
173 | + $menu_layers .= "\n<div style='margin-top: 5px; font-size: smaller; text-align: right;'><a href='#' onmouseover='shutdown();'>["._CLOSE."]</a></div></td></tr><tr><th style='font-size: smaller; text-align: left;'>".$module_img.'<br>'.$module_desc."</th></tr></table></div>\n"; |
|
174 | 174 | } |
175 | 175 | $menu_layers .= "\n<script language='JavaScript' type='text/javascript'>\n<!--\nmoveLayers();\nloaded = 1;\n// -->\n</script>\n"; |
176 | - $content = '<' . "?php\n"; |
|
177 | - $content .= "\$xoops_admin_menu_js = \"" . $js . "\n\";\n\n"; |
|
178 | - $content .= "\$xoops_admin_menu_ml = \"" . $moveLayers . "\n\";\n\n"; |
|
179 | - $content .= "\$xoops_admin_menu_sd = \"" . $shutdown . "\n\";\n\n"; |
|
180 | - $content .= $firstleveltable . "\n"; |
|
181 | - $content .= "\$xoops_admin_menu_dv = \"" . $menu_layers . "\";\n"; |
|
182 | - $content .= "\n?" . '>'; |
|
176 | + $content = '<'."?php\n"; |
|
177 | + $content .= "\$xoops_admin_menu_js = \"".$js."\n\";\n\n"; |
|
178 | + $content .= "\$xoops_admin_menu_ml = \"".$moveLayers."\n\";\n\n"; |
|
179 | + $content .= "\$xoops_admin_menu_sd = \"".$shutdown."\n\";\n\n"; |
|
180 | + $content .= $firstleveltable."\n"; |
|
181 | + $content .= "\$xoops_admin_menu_dv = \"".$menu_layers."\";\n"; |
|
182 | + $content .= "\n?".'>'; |
|
183 | 183 | |
184 | 184 | return $content; |
185 | 185 | } |
@@ -192,11 +192,11 @@ discard block |
||
192 | 192 | */ |
193 | 193 | function xoops_module_write_admin_menu($content) |
194 | 194 | { |
195 | - $GLOBALS['xoopsLogger']->addDeprecated(__FUNCTION__ . ' is deprecated, should not be used any longer'); |
|
195 | + $GLOBALS['xoopsLogger']->addDeprecated(__FUNCTION__.' is deprecated, should not be used any longer'); |
|
196 | 196 | if (!xoopsfwrite()) { |
197 | 197 | return false; |
198 | 198 | } |
199 | - $filename = XOOPS_CACHE_PATH . '/adminmenu.php'; |
|
199 | + $filename = XOOPS_CACHE_PATH.'/adminmenu.php'; |
|
200 | 200 | if (!$file = fopen($filename, 'w')) { |
201 | 201 | echo 'failed open file'; |
202 | 202 | |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | } |
233 | 233 | |
234 | 234 | $path = substr($path, -1) === '/' ? substr($path, 0, -1) : $path; |
235 | - $filename = $path . '/index.html'; |
|
235 | + $filename = $path.'/index.html'; |
|
236 | 236 | if (file_exists($filename)) { |
237 | 237 | return true; |
238 | 238 | } |
@@ -715,14 +715,14 @@ |
||
715 | 715 | 'renderBanner' => false)); |
716 | 716 | $xoopsTpl = $xoTheme->template; |
717 | 717 | $xoopsTpl->assign(array( |
718 | - 'xoops_theme' => $theme, |
|
719 | - 'xoops_imageurl' => XOOPS_THEME_URL . '/' . $theme . '/', |
|
720 | - 'xoops_themecss' => xoops_getcss($theme), |
|
721 | - 'xoops_requesturi' => htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES), |
|
722 | - 'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES), |
|
723 | - 'xoops_slogan' => htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES), |
|
724 | - 'xoops_dirname' => isset($xoopsModule) && is_object($xoopsModule) ? $xoopsModule->getVar('dirname') : 'system', |
|
725 | - 'xoops_pagetitle' => isset($xoopsModule) && is_object($xoopsModule) ? $xoopsModule->getVar('name') : htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES))); |
|
718 | + 'xoops_theme' => $theme, |
|
719 | + 'xoops_imageurl' => XOOPS_THEME_URL . '/' . $theme . '/', |
|
720 | + 'xoops_themecss' => xoops_getcss($theme), |
|
721 | + 'xoops_requesturi' => htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES), |
|
722 | + 'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES), |
|
723 | + 'xoops_slogan' => htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES), |
|
724 | + 'xoops_dirname' => isset($xoopsModule) && is_object($xoopsModule) ? $xoopsModule->getVar('dirname') : 'system', |
|
725 | + 'xoops_pagetitle' => isset($xoopsModule) && is_object($xoopsModule) ? $xoopsModule->getVar('name') : htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES))); |
|
726 | 726 | if ($xoopsConfig['debug_mode'] == 2 && $xoopsUserIsAdmin) { |
727 | 727 | $xoopsTpl->assign('time', 300); |
728 | 728 | $xoopsTpl->assign('xoops_logdump', $xoopsLogger->dump()); |
@@ -30,17 +30,17 @@ discard block |
||
30 | 30 | static $handlers; |
31 | 31 | $name = strtolower(trim($name)); |
32 | 32 | if (!isset($handlers[$name])) { |
33 | - if (file_exists($hnd_file = XOOPS_ROOT_PATH . '/kernel/' . $name . '.php')) { |
|
33 | + if (file_exists($hnd_file = XOOPS_ROOT_PATH.'/kernel/'.$name.'.php')) { |
|
34 | 34 | require_once $hnd_file; |
35 | 35 | } |
36 | - $class = 'Xoops' . ucfirst($name) . 'Handler'; |
|
36 | + $class = 'Xoops'.ucfirst($name).'Handler'; |
|
37 | 37 | if (class_exists($class)) { |
38 | 38 | $xoopsDB = XoopsDatabaseFactory::getDatabaseConnection(); |
39 | 39 | $handlers[$name] = new $class($xoopsDB); |
40 | 40 | } |
41 | 41 | } |
42 | 42 | if (!isset($handlers[$name])) { |
43 | - trigger_error('Class <strong>' . $class . '</strong> does not exist<br>Handler Name: ' . $name, $optional ? E_USER_WARNING : E_USER_ERROR); |
|
43 | + trigger_error('Class <strong>'.$class.'</strong> does not exist<br>Handler Name: '.$name, $optional ? E_USER_WARNING : E_USER_ERROR); |
|
44 | 44 | } |
45 | 45 | if (isset($handlers[$name])) { |
46 | 46 | return $handlers[$name]; |
@@ -74,17 +74,17 @@ discard block |
||
74 | 74 | } |
75 | 75 | $name = (!isset($name)) ? $module_dir : trim($name); |
76 | 76 | if (!isset($handlers[$module_dir][$name])) { |
77 | - if (file_exists($hnd_file = XOOPS_ROOT_PATH . "/modules/{$module_dir}/class/{$name}.php")) { |
|
77 | + if (file_exists($hnd_file = XOOPS_ROOT_PATH."/modules/{$module_dir}/class/{$name}.php")) { |
|
78 | 78 | include_once $hnd_file; |
79 | 79 | } |
80 | - $class = ucfirst(strtolower($module_dir)) . ucfirst($name) . 'Handler'; |
|
80 | + $class = ucfirst(strtolower($module_dir)).ucfirst($name).'Handler'; |
|
81 | 81 | if (class_exists($class)) { |
82 | 82 | $xoopsDB = XoopsDatabaseFactory::getDatabaseConnection(); |
83 | 83 | $handlers[$module_dir][$name] = new $class($xoopsDB); |
84 | 84 | } |
85 | 85 | } |
86 | 86 | if (!isset($handlers[$module_dir][$name])) { |
87 | - trigger_error('Handler does not exist<br>Module: ' . $module_dir . '<br>Name: ' . $name, $optional ? E_USER_WARNING : E_USER_ERROR); |
|
87 | + trigger_error('Handler does not exist<br>Module: '.$module_dir.'<br>Name: '.$name, $optional ? E_USER_WARNING : E_USER_ERROR); |
|
88 | 88 | } |
89 | 89 | if (isset($handlers[$module_dir][$name])) { |
90 | 90 | return $handlers[$module_dir][$name]; |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | function xoops_load($name, $type = 'core') |
110 | 110 | { |
111 | 111 | if (!class_exists('XoopsLoad')) { |
112 | - require_once XOOPS_ROOT_PATH . '/class/xoopsload.php'; |
|
112 | + require_once XOOPS_ROOT_PATH.'/class/xoopsload.php'; |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | return XoopsLoad::load($name, $type); |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | return false; |
143 | 143 | } |
144 | 144 | $language = empty($language) ? $GLOBALS['xoopsConfig']['language'] : $language; |
145 | - $path = ((empty($domain) || 'global' === $domain) ? '' : "modules/{$domain}/") . 'language'; |
|
145 | + $path = ((empty($domain) || 'global' === $domain) ? '' : "modules/{$domain}/").'language'; |
|
146 | 146 | if (!file_exists($fileinc = $GLOBALS['xoops']->path("{$path}/{$language}/{$name}.php"))) { |
147 | 147 | if (!file_exists($fileinc = $GLOBALS['xoops']->path("{$path}/english/{$name}.php"))) { |
148 | 148 | return false; |
@@ -230,12 +230,12 @@ discard block |
||
230 | 230 | global $xoopsConfig; |
231 | 231 | |
232 | 232 | $themeSet = $xoopsConfig['theme_set']; |
233 | - $themePath = XOOPS_THEME_PATH . '/' . $themeSet . '/'; |
|
234 | - $themeUrl = XOOPS_THEME_URL . '/' . $themeSet . '/'; |
|
235 | - include_once XOOPS_ROOT_PATH . '/class/template.php'; |
|
233 | + $themePath = XOOPS_THEME_PATH.'/'.$themeSet.'/'; |
|
234 | + $themeUrl = XOOPS_THEME_URL.'/'.$themeSet.'/'; |
|
235 | + include_once XOOPS_ROOT_PATH.'/class/template.php'; |
|
236 | 236 | $headTpl = new \XoopsTpl(); |
237 | 237 | $headTpl->assign(array( |
238 | - 'closeHead' => (bool) $closehead, |
|
238 | + 'closeHead' => (bool)$closehead, |
|
239 | 239 | 'themeUrl' => $themeUrl, |
240 | 240 | 'xoops_langcode' => _LANGCODE, |
241 | 241 | 'xoops_charset' => _CHARSET, |
@@ -243,28 +243,28 @@ discard block |
||
243 | 243 | 'xoops_url' => XOOPS_URL, |
244 | 244 | )); |
245 | 245 | |
246 | - if (file_exists($themePath . 'theme_autorun.php')) { |
|
247 | - include_once($themePath . 'theme_autorun.php'); |
|
246 | + if (file_exists($themePath.'theme_autorun.php')) { |
|
247 | + include_once($themePath.'theme_autorun.php'); |
|
248 | 248 | } |
249 | 249 | |
250 | 250 | $headItems = array(); |
251 | - $headItems[] = '<script type="text/javascript" src="' . XOOPS_URL . '/include/xoops.js"></script>'; |
|
252 | - $headItems[] = '<link rel="stylesheet" type="text/css" media="all" href="' . XOOPS_URL . '/xoops.css">'; |
|
253 | - $headItems[] = '<link rel="stylesheet" type="text/css" media="all" href="' . XOOPS_URL . '/media/font-awesome/css/font-awesome.min.css">'; |
|
254 | - $languageFile = 'language/' . $GLOBALS['xoopsConfig']['language'] . '/style.css'; |
|
251 | + $headItems[] = '<script type="text/javascript" src="'.XOOPS_URL.'/include/xoops.js"></script>'; |
|
252 | + $headItems[] = '<link rel="stylesheet" type="text/css" media="all" href="'.XOOPS_URL.'/xoops.css">'; |
|
253 | + $headItems[] = '<link rel="stylesheet" type="text/css" media="all" href="'.XOOPS_URL.'/media/font-awesome/css/font-awesome.min.css">'; |
|
254 | + $languageFile = 'language/'.$GLOBALS['xoopsConfig']['language'].'/style.css'; |
|
255 | 255 | if (file_exists($GLOBALS['xoops']->path($languageFile))) { |
256 | - $headItems[] = '<link rel="stylesheet" type="text/css" media="all" href="' . $GLOBALS['xoops']->url($languageFile) . '">'; |
|
256 | + $headItems[] = '<link rel="stylesheet" type="text/css" media="all" href="'.$GLOBALS['xoops']->url($languageFile).'">'; |
|
257 | 257 | } |
258 | 258 | $themecss = xoops_getcss($xoopsConfig['theme_set']); |
259 | - if ($themecss!=='') { |
|
260 | - $headItems[] = '<link rel="stylesheet" type="text/css" media="all" href="' . $themecss . '">'; |
|
259 | + if ($themecss !== '') { |
|
260 | + $headItems[] = '<link rel="stylesheet" type="text/css" media="all" href="'.$themecss.'">'; |
|
261 | 261 | } |
262 | 262 | $headTpl->assign('headItems', $headItems); |
263 | 263 | |
264 | 264 | if (!headers_sent()) { |
265 | - header('Content-Type:text/html; charset=' . _CHARSET); |
|
265 | + header('Content-Type:text/html; charset='._CHARSET); |
|
266 | 266 | header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); |
267 | - header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); |
|
267 | + header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); |
|
268 | 268 | header('Cache-Control: no-store, no-cache, max-age=1, s-maxage=1, must-revalidate, post-check=0, pre-check=0'); |
269 | 269 | header('Pragma: no-cache'); |
270 | 270 | } |
@@ -283,8 +283,8 @@ discard block |
||
283 | 283 | global $xoopsConfig; |
284 | 284 | |
285 | 285 | $themeSet = $xoopsConfig['theme_set']; |
286 | - $themePath = XOOPS_THEME_URL . '/' . $themeSet . '/'; |
|
287 | - include_once XOOPS_ROOT_PATH . '/class/template.php'; |
|
286 | + $themePath = XOOPS_THEME_URL.'/'.$themeSet.'/'; |
|
287 | + include_once XOOPS_ROOT_PATH.'/class/template.php'; |
|
288 | 288 | $footTpl = new \XoopsTpl(); |
289 | 289 | $footTpl->assign(array( |
290 | 290 | 'themePath' => $themePath, |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | { |
310 | 310 | echo '<div class="errorMsg">'; |
311 | 311 | if ($title != '') { |
312 | - echo '<strong>' . $title . '</strong><br><br>'; |
|
312 | + echo '<strong>'.$title.'</strong><br><br>'; |
|
313 | 313 | } |
314 | 314 | if (is_object($msg)) { |
315 | 315 | $msg = (array)$msg; |
@@ -338,7 +338,7 @@ discard block |
||
338 | 338 | { |
339 | 339 | echo '<div class="resultMsg">'; |
340 | 340 | if ($title != '') { |
341 | - echo '<strong>' . $title . '</strong><br><br>'; |
|
341 | + echo '<strong>'.$title.'</strong><br><br>'; |
|
342 | 342 | } |
343 | 343 | if (is_object($msg)) { |
344 | 344 | $msg = (array)$msg; |
@@ -369,23 +369,23 @@ discard block |
||
369 | 369 | function xoops_confirm($hiddens, $action, $msg, $submit = '', $addtoken = true) |
370 | 370 | { |
371 | 371 | $submit = ($submit != '') ? trim($submit) : _SUBMIT; |
372 | - echo '<div class="confirmMsg">' . $msg . '<br> |
|
373 | - <form method="post" action="' . $action . '">'; |
|
372 | + echo '<div class="confirmMsg">'.$msg.'<br> |
|
373 | + <form method="post" action="' . $action.'">'; |
|
374 | 374 | foreach ($hiddens as $name => $value) { |
375 | 375 | if (is_array($value)) { |
376 | 376 | foreach ($value as $caption => $newvalue) { |
377 | - echo '<input type="radio" name="' . $name . '" value="' . htmlspecialchars($newvalue) . '" /> ' . $caption; |
|
377 | + echo '<input type="radio" name="'.$name.'" value="'.htmlspecialchars($newvalue).'" /> '.$caption; |
|
378 | 378 | } |
379 | 379 | echo '<br>'; |
380 | 380 | } else { |
381 | - echo '<input type="hidden" name="' . $name . '" value="' . htmlspecialchars($value) . '" />'; |
|
381 | + echo '<input type="hidden" name="'.$name.'" value="'.htmlspecialchars($value).'" />'; |
|
382 | 382 | } |
383 | 383 | } |
384 | 384 | if ($addtoken != false) { |
385 | 385 | echo $GLOBALS['xoopsSecurity']->getTokenHTML(); |
386 | 386 | } |
387 | - echo '<input type="submit" class="btn btn-default" name="confirm_submit" value="' . $submit . '" title="' . $submit . '"/> |
|
388 | - <input type="button" class="btn btn-default" name="confirm_back" value="' . _CANCEL . '" onclick="history.go(-1);" title="' . _CANCEL . '" /> |
|
387 | + echo '<input type="submit" class="btn btn-default" name="confirm_submit" value="'.$submit.'" title="'.$submit.'"/> |
|
388 | + <input type="button" class="btn btn-default" name="confirm_back" value="' . _CANCEL.'" onclick="history.go(-1);" title="'._CANCEL.'" /> |
|
389 | 389 | </form> |
390 | 390 | </div>'; |
391 | 391 | } |
@@ -598,7 +598,7 @@ discard block |
||
598 | 598 | $url = trim($url); |
599 | 599 | if ($url != '') { |
600 | 600 | if ((!preg_match('/^http[s]*:\/\//i', $url)) && (!preg_match('/^ftp*:\/\//i', $url)) && (!preg_match('/^ed2k*:\/\//i', $url))) { |
601 | - $url = 'http://' . $url; |
|
601 | + $url = 'http://'.$url; |
|
602 | 602 | } |
603 | 603 | } |
604 | 604 | |
@@ -613,7 +613,7 @@ discard block |
||
613 | 613 | global $xoopsConfig; |
614 | 614 | |
615 | 615 | $db = XoopsDatabaseFactory::getDatabaseConnection(); |
616 | - $bresult = $db->query('SELECT COUNT(*) FROM ' . $db->prefix('banner')); |
|
616 | + $bresult = $db->query('SELECT COUNT(*) FROM '.$db->prefix('banner')); |
|
617 | 617 | list($numrows) = $db->fetchRow($bresult); |
618 | 618 | if ($numrows > 1) { |
619 | 619 | --$numrows; |
@@ -623,7 +623,7 @@ discard block |
||
623 | 623 | $bannum = 0; |
624 | 624 | } |
625 | 625 | if ($numrows > 0) { |
626 | - $bresult = $db->query('SELECT * FROM ' . $db->prefix('banner'), 1, $bannum); |
|
626 | + $bresult = $db->query('SELECT * FROM '.$db->prefix('banner'), 1, $bannum); |
|
627 | 627 | list($bid, $cid, $imptotal, $impmade, $clicks, $imageurl, $clickurl, $date, $htmlbanner, $htmlcode) = $db->fetchRow($bresult); |
628 | 628 | if ($xoopsConfig['my_ip'] == xoops_getenv('REMOTE_ADDR')) { |
629 | 629 | // EMPTY |
@@ -634,7 +634,7 @@ discard block |
||
634 | 634 | * Check if this impression is the last one |
635 | 635 | */ |
636 | 636 | if ($imptotal > 0 && $impmade >= $imptotal) { |
637 | - $newid = $db->genId($db->prefix('bannerfinish') . '_bid_seq'); |
|
637 | + $newid = $db->genId($db->prefix('bannerfinish').'_bid_seq'); |
|
638 | 638 | $sql = sprintf('INSERT INTO %s (bid, cid, impressions, clicks, datestart, dateend) VALUES (%u, %u, %u, %u, %u, %u)', $db->prefix('bannerfinish'), $newid, $cid, $impmade, $clicks, $date, time()); |
639 | 639 | $db->queryF($sql); |
640 | 640 | $db->queryF(sprintf('DELETE FROM %s WHERE bid = %u', $db->prefix('banner'), $bid)); |
@@ -648,18 +648,18 @@ discard block |
||
648 | 648 | if ($htmlcode) { |
649 | 649 | $bannerobject = $htmlcode; |
650 | 650 | } else { |
651 | - $bannerobject = $bannerobject . '<div id="xo-bannerfix">'; |
|
651 | + $bannerobject = $bannerobject.'<div id="xo-bannerfix">'; |
|
652 | 652 | // $bannerobject = $bannerobject . '<div id="xo-fixbanner">'; |
653 | - $bannerobject = $bannerobject . ' <iframe src=' . $imageurl . ' border="0" scrolling="no" allowtransparency="true" width="480px" height="60px" style="border:0" alt="' . $clickurl . ';"> </iframe>'; |
|
653 | + $bannerobject = $bannerobject.' <iframe src='.$imageurl.' border="0" scrolling="no" allowtransparency="true" width="480px" height="60px" style="border:0" alt="'.$clickurl.';"> </iframe>'; |
|
654 | 654 | $bannerobject .= '</div>'; |
655 | 655 | // $bannerobject .= '</div>'; |
656 | 656 | } |
657 | 657 | } else { |
658 | 658 | $bannerobject = '<div id="xo-bannerfix">'; |
659 | 659 | if (false !== stripos($imageurl, '.swf')) { |
660 | - $bannerobject = $bannerobject . '<div id ="xo-fixbanner">' . '<a href="' . XOOPS_URL . '/banners.php?op=click&bid=' . $bid . '" rel="external" title="' . $clickurl . '"></a></div>' . '<object type="application/x-shockwave-flash" width="468" height="60" data="' . $imageurl . '" style="z-index:100;">' . '<param name="movie" value="' . $imageurl . '" />' . '<param name="wmode" value="opaque" />' . '</object>'; |
|
660 | + $bannerobject = $bannerobject.'<div id ="xo-fixbanner">'.'<a href="'.XOOPS_URL.'/banners.php?op=click&bid='.$bid.'" rel="external" title="'.$clickurl.'"></a></div>'.'<object type="application/x-shockwave-flash" width="468" height="60" data="'.$imageurl.'" style="z-index:100;">'.'<param name="movie" value="'.$imageurl.'" />'.'<param name="wmode" value="opaque" />'.'</object>'; |
|
661 | 661 | } else { |
662 | - $bannerobject = $bannerobject . '<a href="' . XOOPS_URL . '/banners.php?op=click&bid=' . $bid . '" rel="external" title="' . $clickurl . '"><img src="' . $imageurl . '" alt="' . $clickurl . '" /></a>'; |
|
662 | + $bannerobject = $bannerobject.'<a href="'.XOOPS_URL.'/banners.php?op=click&bid='.$bid.'" rel="external" title="'.$clickurl.'"><img src="'.$imageurl.'" alt="'.$clickurl.'" /></a>'; |
|
663 | 663 | } |
664 | 664 | |
665 | 665 | $bannerobject .= '</div>'; |
@@ -704,8 +704,8 @@ discard block |
||
704 | 704 | $theme = $xoopsConfig['theme_set']; |
705 | 705 | } |
706 | 706 | |
707 | - require_once XOOPS_ROOT_PATH . '/class/template.php'; |
|
708 | - require_once XOOPS_ROOT_PATH . '/class/theme.php'; |
|
707 | + require_once XOOPS_ROOT_PATH.'/class/template.php'; |
|
708 | + require_once XOOPS_ROOT_PATH.'/class/theme.php'; |
|
709 | 709 | $xoopsThemeFactory = null; |
710 | 710 | $xoopsThemeFactory = new xos_opal_ThemeFactory(); |
711 | 711 | $xoopsThemeFactory->allowedThemes = $xoopsConfig['theme_set_allowed']; |
@@ -716,7 +716,7 @@ discard block |
||
716 | 716 | $xoopsTpl = $xoTheme->template; |
717 | 717 | $xoopsTpl->assign(array( |
718 | 718 | 'xoops_theme' => $theme, |
719 | - 'xoops_imageurl' => XOOPS_THEME_URL . '/' . $theme . '/', |
|
719 | + 'xoops_imageurl' => XOOPS_THEME_URL.'/'.$theme.'/', |
|
720 | 720 | 'xoops_themecss' => xoops_getcss($theme), |
721 | 721 | 'xoops_requesturi' => htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES), |
722 | 722 | 'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES), |
@@ -731,16 +731,16 @@ discard block |
||
731 | 731 | } |
732 | 732 | if (!empty($_SERVER['REQUEST_URI']) && $addredirect && false !== strpos($url, 'user.php')) { |
733 | 733 | if (false === strpos($url, '?')) { |
734 | - $url .= '?xoops_redirect=' . urlencode($_SERVER['REQUEST_URI']); |
|
734 | + $url .= '?xoops_redirect='.urlencode($_SERVER['REQUEST_URI']); |
|
735 | 735 | } else { |
736 | - $url .= '&xoops_redirect=' . urlencode($_SERVER['REQUEST_URI']); |
|
736 | + $url .= '&xoops_redirect='.urlencode($_SERVER['REQUEST_URI']); |
|
737 | 737 | } |
738 | 738 | } |
739 | 739 | if (defined('SID') && SID && (!isset($_COOKIE[session_name()]) || ($xoopsConfig['use_mysession'] && $xoopsConfig['session_name'] != '' && !isset($_COOKIE[$xoopsConfig['session_name']])))) { |
740 | 740 | if (false === strpos($url, '?')) { |
741 | - $url .= '?' . SID; |
|
741 | + $url .= '?'.SID; |
|
742 | 742 | } else { |
743 | - $url .= '&' . SID; |
|
743 | + $url .= '&'.SID; |
|
744 | 744 | } |
745 | 745 | } |
746 | 746 | $url = preg_replace('/&/i', '&', htmlspecialchars($url, ENT_QUOTES)); |
@@ -793,18 +793,18 @@ discard block |
||
793 | 793 | } elseif (preg_match("/MSIE (\d\.\d{1,2})/i", $uagent)) { |
794 | 794 | $str_css = 'style.css'; |
795 | 795 | } |
796 | - if (is_dir(XOOPS_THEME_PATH . '/' . $theme)) { |
|
797 | - if (file_exists(XOOPS_THEME_PATH . '/' . $theme . '/' . $str_css)) { |
|
798 | - return XOOPS_THEME_URL . '/' . $theme . '/' . $str_css; |
|
799 | - } elseif (file_exists(XOOPS_THEME_PATH . '/' . $theme . '/style.css')) { |
|
800 | - return XOOPS_THEME_URL . '/' . $theme . '/style.css'; |
|
796 | + if (is_dir(XOOPS_THEME_PATH.'/'.$theme)) { |
|
797 | + if (file_exists(XOOPS_THEME_PATH.'/'.$theme.'/'.$str_css)) { |
|
798 | + return XOOPS_THEME_URL.'/'.$theme.'/'.$str_css; |
|
799 | + } elseif (file_exists(XOOPS_THEME_PATH.'/'.$theme.'/style.css')) { |
|
800 | + return XOOPS_THEME_URL.'/'.$theme.'/style.css'; |
|
801 | 801 | } |
802 | 802 | } |
803 | - if (is_dir(XOOPS_THEME_PATH . '/' . $theme . '/css')) { |
|
804 | - if (file_exists(XOOPS_THEME_PATH . '/' . $theme . '/css/' . $str_css)) { |
|
805 | - return XOOPS_THEME_URL . '/' . $theme . '/css/' . $str_css; |
|
806 | - } elseif (file_exists(XOOPS_THEME_PATH . '/' . $theme . '/css/style.css')) { |
|
807 | - return XOOPS_THEME_URL . '/' . $theme . '/css/style.css'; |
|
803 | + if (is_dir(XOOPS_THEME_PATH.'/'.$theme.'/css')) { |
|
804 | + if (file_exists(XOOPS_THEME_PATH.'/'.$theme.'/css/'.$str_css)) { |
|
805 | + return XOOPS_THEME_URL.'/'.$theme.'/css/'.$str_css; |
|
806 | + } elseif (file_exists(XOOPS_THEME_PATH.'/'.$theme.'/css/style.css')) { |
|
807 | + return XOOPS_THEME_URL.'/'.$theme.'/css/style.css'; |
|
808 | 808 | } |
809 | 809 | } |
810 | 810 | |
@@ -823,10 +823,10 @@ discard block |
||
823 | 823 | if (is_object($mailer)) { |
824 | 824 | return $mailer; |
825 | 825 | } |
826 | - include_once XOOPS_ROOT_PATH . '/class/xoopsmailer.php'; |
|
827 | - if (file_exists($file = XOOPS_ROOT_PATH . '/language/' . $xoopsConfig['language'] . '/xoopsmailerlocal.php')) { |
|
826 | + include_once XOOPS_ROOT_PATH.'/class/xoopsmailer.php'; |
|
827 | + if (file_exists($file = XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/xoopsmailerlocal.php')) { |
|
828 | 828 | include_once $file; |
829 | - } elseif (file_exists($file = XOOPS_ROOT_PATH . '/language/english/xoopsmailerlocal.php')) { |
|
829 | + } elseif (file_exists($file = XOOPS_ROOT_PATH.'/language/english/xoopsmailerlocal.php')) { |
|
830 | 830 | include_once $file; |
831 | 831 | } |
832 | 832 | unset($mailer); |
@@ -853,9 +853,9 @@ discard block |
||
853 | 853 | $rank_id = (int)$rank_id; |
854 | 854 | $posts = (int)$posts; |
855 | 855 | if ($rank_id != 0) { |
856 | - $sql = 'SELECT rank_title AS title, rank_image AS image FROM ' . $db->prefix('ranks') . ' WHERE rank_id = ' . $rank_id; |
|
856 | + $sql = 'SELECT rank_title AS title, rank_image AS image FROM '.$db->prefix('ranks').' WHERE rank_id = '.$rank_id; |
|
857 | 857 | } else { |
858 | - $sql = 'SELECT rank_title AS title, rank_image AS image FROM ' . $db->prefix('ranks') . ' WHERE rank_min <= ' . $posts . ' AND rank_max >= ' . $posts . ' AND rank_special = 0'; |
|
858 | + $sql = 'SELECT rank_title AS title, rank_image AS image FROM '.$db->prefix('ranks').' WHERE rank_min <= '.$posts.' AND rank_max >= '.$posts.' AND rank_special = 0'; |
|
859 | 859 | } |
860 | 860 | $rank = $db->fetchArray($db->query($sql)); |
861 | 861 | $rank['title'] = $myts->htmlspecialchars($rank['title']); |
@@ -1204,5 +1204,5 @@ discard block |
||
1204 | 1204 | return $domain; |
1205 | 1205 | } |
1206 | 1206 | |
1207 | -include_once __DIR__ . '/functions.encoding.php'; |
|
1208 | -include_once __DIR__ . '/functions.legacy.php'; |
|
1207 | +include_once __DIR__.'/functions.encoding.php'; |
|
1208 | +include_once __DIR__.'/functions.legacy.php'; |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | include_once $GLOBALS['xoops']->path('include/comment_constants.php'); |
22 | 22 | |
23 | 23 | if (('system' !== $xoopsModule->getVar('dirname') && XOOPS_COMMENT_APPROVENONE == $xoopsModuleConfig['com_rule']) || (!is_object($xoopsUser) && !$xoopsModuleConfig['com_anonpost']) || !is_object($xoopsModule)) { |
24 | - redirect_header(XOOPS_URL . '/user.php', 1, _NOPERM); |
|
24 | + redirect_header(XOOPS_URL.'/user.php', 1, _NOPERM); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | xoops_loadLanguage('comment'); |
@@ -32,14 +32,14 @@ discard block |
||
32 | 32 | if (isset($com_replytitle)) { |
33 | 33 | if (isset($com_replytext)) { |
34 | 34 | echo '<table cellpadding="4" cellspacing="1" width="98%" class="outer"> |
35 | - <tr><td class="head">' . $com_replytitle . '</td></tr> |
|
36 | - <tr><td><br>' . $com_replytext . '<br></td></tr> |
|
35 | + <tr><td class="head">' . $com_replytitle.'</td></tr> |
|
36 | + <tr><td><br>' . $com_replytext.'<br></td></tr> |
|
37 | 37 | </table>'; |
38 | 38 | } |
39 | 39 | $myts = MyTextSanitizer::getInstance(); |
40 | 40 | $com_title = $myts->htmlSpecialChars($com_replytitle); |
41 | - if (!preg_match('/^' . _RE . '/i', $com_title)) { |
|
42 | - $com_title = _RE . ' ' . xoops_substr($com_title, 0, 56); |
|
41 | + if (!preg_match('/^'._RE.'/i', $com_title)) { |
|
42 | + $com_title = _RE.' '.xoops_substr($com_title, 0, 56); |
|
43 | 43 | } |
44 | 44 | } else { |
45 | 45 | $com_title = ''; |
@@ -91,9 +91,9 @@ |
||
91 | 91 | include_once $GLOBALS['xoops']->path('include/comment_constants.php'); |
92 | 92 | $status_select = new XoopsFormSelect(_CM_STATUS, 'com_status', $com_status); |
93 | 93 | $status_select->addOptionArray(array( |
94 | - XOOPS_COMMENT_PENDING => _CM_PENDING, |
|
95 | - XOOPS_COMMENT_ACTIVE => _CM_ACTIVE, |
|
96 | - XOOPS_COMMENT_HIDDEN => _CM_HIDDEN)); |
|
94 | + XOOPS_COMMENT_PENDING => _CM_PENDING, |
|
95 | + XOOPS_COMMENT_ACTIVE => _CM_ACTIVE, |
|
96 | + XOOPS_COMMENT_HIDDEN => _CM_HIDDEN)); |
|
97 | 97 | $cform->addElement($status_select); |
98 | 98 | $button_tray->addElement(new XoopsFormButton('', 'com_dodelete', _DELETE, 'submit')); |
99 | 99 | } |
@@ -54,7 +54,7 @@ |
||
54 | 54 | $icons_radio = new XoopsFormRadio(_MESSAGEICON, 'com_icon', $com_icon); |
55 | 55 | $subject_icons = XoopsLists::getSubjectsList(); |
56 | 56 | foreach ($subject_icons as $iconfile) { |
57 | - $icons_radio->addOption($iconfile, '<img src="' . XOOPS_URL . '/images/subject/' . $iconfile . '" alt="" />'); |
|
57 | + $icons_radio->addOption($iconfile, '<img src="'.XOOPS_URL.'/images/subject/'.$iconfile.'" alt="" />'); |
|
58 | 58 | } |
59 | 59 | $cform->addElement($icons_radio); |
60 | 60 | // editor |