@@ -43,19 +43,19 @@ |
||
43 | 43 | define('XOOPS_MATCH_EQUAL', 2); |
44 | 44 | define('XOOPS_MATCH_CONTAIN', 3); |
45 | 45 | // YOU SHOULD AVOID USING THE FOLLOWING CONSTANTS, THEY WILL BE REMOVED |
46 | -define('XOOPS_THEME_PATH', XOOPS_ROOT_PATH . '/themes'); |
|
47 | -define('XOOPS_ADMINTHEME_PATH', XOOPS_ROOT_PATH . '/modules/system/themes'); |
|
48 | -define('XOOPS_UPLOAD_PATH', XOOPS_ROOT_PATH . '/uploads'); |
|
49 | -define('XOOPS_LIBRARY_PATH', XOOPS_ROOT_PATH . '/libraries'); |
|
50 | -define('XOOPS_THEME_URL', XOOPS_URL . '/themes'); |
|
51 | -define('XOOPS_ADMINTHEME_URL', XOOPS_URL . '/modules/system/themes'); |
|
52 | -define('XOOPS_UPLOAD_URL', XOOPS_URL . '/uploads'); |
|
53 | -define('XOOPS_LIBRARY_URL', XOOPS_URL . '/libraries'); |
|
46 | +define('XOOPS_THEME_PATH', XOOPS_ROOT_PATH.'/themes'); |
|
47 | +define('XOOPS_ADMINTHEME_PATH', XOOPS_ROOT_PATH.'/modules/system/themes'); |
|
48 | +define('XOOPS_UPLOAD_PATH', XOOPS_ROOT_PATH.'/uploads'); |
|
49 | +define('XOOPS_LIBRARY_PATH', XOOPS_ROOT_PATH.'/libraries'); |
|
50 | +define('XOOPS_THEME_URL', XOOPS_URL.'/themes'); |
|
51 | +define('XOOPS_ADMINTHEME_URL', XOOPS_URL.'/modules/system/themes'); |
|
52 | +define('XOOPS_UPLOAD_URL', XOOPS_URL.'/uploads'); |
|
53 | +define('XOOPS_LIBRARY_URL', XOOPS_URL.'/libraries'); |
|
54 | 54 | |
55 | 55 | // ----- BEGIN: Deprecated, move to template class ----- |
56 | 56 | // define('SMARTY_DIR', XOOPS_ROOT_PATH . '/class/smarty/'); |
57 | -define('XOOPS_COMPILE_PATH', XOOPS_VAR_PATH . '/caches/smarty_compile'); |
|
58 | -define('XOOPS_CACHE_PATH', XOOPS_VAR_PATH . '/caches/xoops_cache'); |
|
57 | +define('XOOPS_COMPILE_PATH', XOOPS_VAR_PATH.'/caches/smarty_compile'); |
|
58 | +define('XOOPS_CACHE_PATH', XOOPS_VAR_PATH.'/caches/xoops_cache'); |
|
59 | 59 | // ----- END: Deprecated, move to template class ----- |
60 | 60 | |
61 | 61 | if (!defined('XOOPS_XMLRPC')) { |
@@ -41,10 +41,10 @@ |
||
41 | 41 | } |
42 | 42 | if ($xoopsUser != '') { |
43 | 43 | $xoopsTpl->assign(array( |
44 | - 'xoops_isuser' => true, |
|
45 | - 'xoops_userid' => $xoopsUser->getVar('uid'), |
|
46 | - 'xoops_uname' => $xoopsUser->getVar('uname'), |
|
47 | - 'xoops_isadmin' => $xoopsUserIsAdmin)); |
|
44 | + 'xoops_isuser' => true, |
|
45 | + 'xoops_userid' => $xoopsUser->getVar('uid'), |
|
46 | + 'xoops_uname' => $xoopsUser->getVar('uname'), |
|
47 | + 'xoops_isadmin' => $xoopsUserIsAdmin)); |
|
48 | 48 | } |
49 | 49 | $xoopsTpl->assign('xoops_requesturi', htmlspecialchars($GLOBALS['xoopsRequestUri'], ENT_QUOTES)); |
50 | 50 | include XOOPS_ROOT_PATH . '/include/old_functions.php'; |
@@ -19,10 +19,10 @@ discard block |
||
19 | 19 | |
20 | 20 | $xoopsOption['theme_use_smarty'] = 0; |
21 | 21 | |
22 | -if (file_exists(XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/language/lang-' . $xoopsConfig['language'] . '.php')) { |
|
23 | - include XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/language/lang-' . $xoopsConfig['language'] . '.php'; |
|
24 | -} elseif (file_exists(XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/language/lang-english.php')) { |
|
25 | - include XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/language/lang-english.php'; |
|
22 | +if (file_exists(XOOPS_THEME_PATH.'/'.$xoopsConfig['theme_set'].'/language/lang-'.$xoopsConfig['language'].'.php')) { |
|
23 | + include XOOPS_THEME_PATH.'/'.$xoopsConfig['theme_set'].'/language/lang-'.$xoopsConfig['language'].'.php'; |
|
24 | +} elseif (file_exists(XOOPS_THEME_PATH.'/'.$xoopsConfig['theme_set'].'/language/lang-english.php')) { |
|
25 | + include XOOPS_THEME_PATH.'/'.$xoopsConfig['theme_set'].'/language/lang-english.php'; |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | /* @var $config_handler XoopsConfigHandler */ |
@@ -30,11 +30,11 @@ discard block |
||
30 | 30 | $xoopsConfigMetaFooter = $config_handler->getConfigsByCat(XOOPS_CONF_METAFOOTER); |
31 | 31 | |
32 | 32 | xoops_header(false); |
33 | -include XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/theme.php'; |
|
33 | +include XOOPS_THEME_PATH.'/'.$xoopsConfig['theme_set'].'/theme.php'; |
|
34 | 34 | $xoopsOption['show_rblock'] = (!empty($xoopsOption['show_rblock'])) ? $xoopsOption['show_rblock'] : 0; |
35 | 35 | |
36 | 36 | // include Smarty template engine and initialize it |
37 | -require_once XOOPS_ROOT_PATH . '/class/template.php'; |
|
37 | +require_once XOOPS_ROOT_PATH.'/class/template.php'; |
|
38 | 38 | $xoopsTpl = new XoopsTpl(); |
39 | 39 | if ($xoopsConfig['debug_mode'] == 3) { |
40 | 40 | $xoopsTpl->debugging = true; |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | 'xoops_isadmin' => $xoopsUserIsAdmin)); |
48 | 48 | } |
49 | 49 | $xoopsTpl->assign('xoops_requesturi', htmlspecialchars($GLOBALS['xoopsRequestUri'], ENT_QUOTES)); |
50 | -include XOOPS_ROOT_PATH . '/include/old_functions.php'; |
|
50 | +include XOOPS_ROOT_PATH.'/include/old_functions.php'; |
|
51 | 51 | |
52 | 52 | if ($xoopsOption['show_cblock'] || (!empty($xoopsModule) && preg_match("/index\.php$/i", xoops_getenv('PHP_SELF')) && $xoopsConfig['startpage'] == $xoopsModule->getVar('dirname'))) { |
53 | 53 | $xoopsOption['show_rblock'] = $xoopsOption['show_cblock'] = 1; |
@@ -23,7 +23,7 @@ |
||
23 | 23 | include_once $GLOBALS['xoops']->path('include/comment_constants.php'); |
24 | 24 | |
25 | 25 | if (('system' !== $xoopsModule->getVar('dirname') && XOOPS_COMMENT_APPROVENONE == $xoopsModuleConfig['com_rule']) || (!is_object($xoopsUser) && !$xoopsModuleConfig['com_anonpost']) || !is_object($xoopsModule)) { |
26 | - redirect_header(XOOPS_URL . '/user.php', 1, _NOPERM); |
|
26 | + redirect_header(XOOPS_URL.'/user.php', 1, _NOPERM); |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | xoops_loadLanguage('comment'); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | $r = ''; |
38 | 38 | $len = strlen($hex); |
39 | 39 | for ($a = 0; $a < $len; $a += 2) { |
40 | - $r .= chr(hexdec($hex{$a} . $hex{$a + 1})); |
|
40 | + $r .= chr(hexdec($hex{$a}.$hex{$a + 1})); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | return $r; |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $accepted = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'); |
67 | 67 | $len = strlen($hex); |
68 | 68 | if ($checklen > $len) { |
69 | - $checklen = $len;//And??? |
|
69 | + $checklen = $len; //And??? |
|
70 | 70 | } |
71 | 71 | $hex = strtolower($hex); |
72 | 72 | for ($i = 0; $i < $len; ++$i) { |
@@ -47,19 +47,19 @@ |
||
47 | 47 | 'type' => 'text/javascript')); |
48 | 48 | $xoopsTpl = $xoTheme->template; |
49 | 49 | $xoopsTpl->assign(array( |
50 | - 'xoops_theme' => $xoopsConfig['theme_set'], |
|
51 | - 'xoops_imageurl' => XOOPS_THEME_URL . '/' . $xoopsConfig['theme_set'] . '/', |
|
52 | - 'xoops_themecss' => xoops_getcss($xoopsConfig['theme_set']), |
|
53 | - 'xoops_requesturi' => htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES), |
|
54 | - 'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES), |
|
55 | - 'xoops_slogan' => htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES), |
|
56 | - 'xoops_dirname' => @$xoopsModule ? $xoopsModule->getVar('dirname') : 'system', |
|
57 | - 'xoops_banner' => $xoopsConfig['banners'] ? xoops_getbanner() : ' ', |
|
58 | - 'xoops_pagetitle' => isset($xoopsModule) && is_object($xoopsModule) ? $xoopsModule->getVar('name') : htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES), |
|
59 | - 'lang_login' => _LOGIN, |
|
60 | - 'lang_username' => _USERNAME, |
|
61 | - 'lang_password' => _PASSWORD, |
|
62 | - 'lang_siteclosemsg' => $xoopsConfig['closesite_text'])); |
|
50 | + 'xoops_theme' => $xoopsConfig['theme_set'], |
|
51 | + 'xoops_imageurl' => XOOPS_THEME_URL . '/' . $xoopsConfig['theme_set'] . '/', |
|
52 | + 'xoops_themecss' => xoops_getcss($xoopsConfig['theme_set']), |
|
53 | + 'xoops_requesturi' => htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES), |
|
54 | + 'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES), |
|
55 | + 'xoops_slogan' => htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES), |
|
56 | + 'xoops_dirname' => @$xoopsModule ? $xoopsModule->getVar('dirname') : 'system', |
|
57 | + 'xoops_banner' => $xoopsConfig['banners'] ? xoops_getbanner() : ' ', |
|
58 | + 'xoops_pagetitle' => isset($xoopsModule) && is_object($xoopsModule) ? $xoopsModule->getVar('name') : htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES), |
|
59 | + 'lang_login' => _LOGIN, |
|
60 | + 'lang_username' => _USERNAME, |
|
61 | + 'lang_password' => _PASSWORD, |
|
62 | + 'lang_siteclosemsg' => $xoopsConfig['closesite_text'])); |
|
63 | 63 | /* @var $config_handler XoopsConfigHandler */ |
64 | 64 | $config_handler = xoops_getHandler('config'); |
65 | 65 | $criteria = new CriteriaCompo(new Criteria('conf_modid', 0)); |
@@ -48,7 +48,7 @@ |
||
48 | 48 | $xoopsTpl = $xoTheme->template; |
49 | 49 | $xoopsTpl->assign(array( |
50 | 50 | 'xoops_theme' => $xoopsConfig['theme_set'], |
51 | - 'xoops_imageurl' => XOOPS_THEME_URL . '/' . $xoopsConfig['theme_set'] . '/', |
|
51 | + 'xoops_imageurl' => XOOPS_THEME_URL.'/'.$xoopsConfig['theme_set'].'/', |
|
52 | 52 | 'xoops_themecss' => xoops_getcss($xoopsConfig['theme_set']), |
53 | 53 | 'xoops_requesturi' => htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES), |
54 | 54 | 'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES), |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | */ |
19 | 19 | defined('XOOPS_ROOT_PATH') || exit('Restricted access'); |
20 | 20 | |
21 | -trigger_error('Functions in ' . __FILE__ . ' are deprecated, should not be used any more', E_USER_WARNING); |
|
21 | +trigger_error('Functions in '.__FILE__.' are deprecated, should not be used any more', E_USER_WARNING); |
|
22 | 22 | // #################### Block functions from here ################## |
23 | 23 | /* |
24 | 24 | * Purpose : Builds the blocks on both sides |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | include_once $GLOBALS['xoops']->path('class/template.php'); |
55 | 55 | $xoopsTpl = new XoopsTpl(); |
56 | 56 | } else { |
57 | - $xoopsTpl =& $GLOBALS['xoopsTpl']; |
|
57 | + $xoopsTpl = & $GLOBALS['xoopsTpl']; |
|
58 | 58 | } |
59 | 59 | $xoopsLogger = XoopsLogger::getInstance(); |
60 | 60 | for ($i = 0; $i < $block_count; ++$i) { |
@@ -67,33 +67,33 @@ discard block |
||
67 | 67 | } |
68 | 68 | $btpl = $block_arr[$i]->getVar('template'); |
69 | 69 | if ($btpl != '') { |
70 | - if (empty($bcachetime) || !$xoopsTpl->is_cached('db:' . $btpl)) { |
|
70 | + if (empty($bcachetime) || !$xoopsTpl->is_cached('db:'.$btpl)) { |
|
71 | 71 | $xoopsLogger->addBlock($block_arr[$i]->getVar('name')); |
72 | - $bresult =& $block_arr[$i]->buildBlock(); |
|
72 | + $bresult = & $block_arr[$i]->buildBlock(); |
|
73 | 73 | if (!$bresult) { |
74 | 74 | continue; |
75 | 75 | } |
76 | 76 | $xoopsTpl->assign_by_ref('block', $bresult); |
77 | - $bcontent =& $xoopsTpl->fetch('db:' . $btpl); |
|
77 | + $bcontent = & $xoopsTpl->fetch('db:'.$btpl); |
|
78 | 78 | $xoopsTpl->clear_assign('block'); |
79 | 79 | } else { |
80 | 80 | $xoopsLogger->addBlock($block_arr[$i]->getVar('name'), true, $bcachetime); |
81 | - $bcontent =& $xoopsTpl->fetch('db:' . $btpl); |
|
81 | + $bcontent = & $xoopsTpl->fetch('db:'.$btpl); |
|
82 | 82 | } |
83 | 83 | } else { |
84 | 84 | $bid = $block_arr[$i]->getVar('bid'); |
85 | - if (empty($bcachetime) || !$xoopsTpl->is_cached('db:system_dummy.tpl', 'blk_' . $bid)) { |
|
85 | + if (empty($bcachetime) || !$xoopsTpl->is_cached('db:system_dummy.tpl', 'blk_'.$bid)) { |
|
86 | 86 | $xoopsLogger->addBlock($block_arr[$i]->getVar('name')); |
87 | 87 | $bresult = &$block_arr[$i]->buildBlock(); |
88 | 88 | if (!$bresult) { |
89 | 89 | continue; |
90 | 90 | } |
91 | 91 | $xoopsTpl->assign_by_ref('dummy_content', $bresult['content']); |
92 | - $bcontent =& $xoopsTpl->fetch('db:system_dummy.tpl', 'blk_' . $bid); |
|
92 | + $bcontent = & $xoopsTpl->fetch('db:system_dummy.tpl', 'blk_'.$bid); |
|
93 | 93 | $xoopsTpl->clear_assign('block'); |
94 | 94 | } else { |
95 | 95 | $xoopsLogger->addBlock($block_arr[$i]->getVar('name'), true, $bcachetime); |
96 | - $bcontent =& $xoopsTpl->fetch('db:system_dummy.tpl', 'blk_' . $bid); |
|
96 | + $bcontent = & $xoopsTpl->fetch('db:system_dummy.tpl', 'blk_'.$bid); |
|
97 | 97 | } |
98 | 98 | } |
99 | 99 | switch ($block_arr[$i]->getVar('side')) { |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | include_once $GLOBALS['xoops']->path('class/template.php'); |
127 | 127 | $xoopsTpl = new XoopsTpl(); |
128 | 128 | } else { |
129 | - $xoopsTpl =& $GLOBALS['xoopsTpl']; |
|
129 | + $xoopsTpl = & $GLOBALS['xoopsTpl']; |
|
130 | 130 | } |
131 | 131 | if (is_object($xoopsUser)) { |
132 | 132 | $block_arr = $xoopsblock->getAllBlocksByGroup($xoopsUser->getGroups(), true, XOOPS_CENTERBLOCK_ALL, XOOPS_BLOCK_VISIBLE); |
@@ -145,56 +145,56 @@ discard block |
||
145 | 145 | } |
146 | 146 | $btpl = $block_arr[$i]->getVar('template'); |
147 | 147 | if ($btpl != '') { |
148 | - if (empty($bcachetime) || !$xoopsTpl->is_cached('db:' . $btpl)) { |
|
148 | + if (empty($bcachetime) || !$xoopsTpl->is_cached('db:'.$btpl)) { |
|
149 | 149 | $xoopsLogger->addBlock($block_arr[$i]->getVar('name')); |
150 | - $bresult =& $block_arr[$i]->buildBlock(); |
|
150 | + $bresult = & $block_arr[$i]->buildBlock(); |
|
151 | 151 | if (!$bresult) { |
152 | 152 | continue; |
153 | 153 | } |
154 | 154 | $xoopsTpl->assign_by_ref('block', $bresult); |
155 | - $bcontent =& $xoopsTpl->fetch('db:' . $btpl); |
|
155 | + $bcontent = & $xoopsTpl->fetch('db:'.$btpl); |
|
156 | 156 | $xoopsTpl->clear_assign('block'); |
157 | 157 | } else { |
158 | 158 | $xoopsLogger->addBlock($block_arr[$i]->getVar('name'), true, $bcachetime); |
159 | - $bcontent =& $xoopsTpl->fetch('db:' . $btpl); |
|
159 | + $bcontent = & $xoopsTpl->fetch('db:'.$btpl); |
|
160 | 160 | } |
161 | 161 | } else { |
162 | 162 | $bid = $block_arr[$i]->getVar('bid'); |
163 | - if (empty($bcachetime) || !$xoopsTpl->is_cached('db:system_dummy.tpl', 'blk_' . $bid)) { |
|
163 | + if (empty($bcachetime) || !$xoopsTpl->is_cached('db:system_dummy.tpl', 'blk_'.$bid)) { |
|
164 | 164 | $xoopsLogger->addBlock($block_arr[$i]->getVar('name')); |
165 | - $bresult =& $block_arr[$i]->buildBlock(); |
|
165 | + $bresult = & $block_arr[$i]->buildBlock(); |
|
166 | 166 | if (!$bresult) { |
167 | 167 | continue; |
168 | 168 | } |
169 | 169 | $xoopsTpl->assign_by_ref('dummy_content', $bresult['content']); |
170 | - $bcontent =& $xoopsTpl->fetch('db:system_dummy.tpl', 'blk_' . $bid); |
|
170 | + $bcontent = & $xoopsTpl->fetch('db:system_dummy.tpl', 'blk_'.$bid); |
|
171 | 171 | $xoopsTpl->clear_assign('block'); |
172 | 172 | } else { |
173 | 173 | $xoopsLogger->addBlock($block_arr[$i]->getVar('name'), true, $bcachetime); |
174 | - $bcontent =& $xoopsTpl->fetch('db:system_dummy.tpl', 'blk_' . $bid); |
|
174 | + $bcontent = & $xoopsTpl->fetch('db:system_dummy.tpl', 'blk_'.$bid); |
|
175 | 175 | } |
176 | 176 | } |
177 | 177 | $title = $block_arr[$i]->getVar('title'); |
178 | 178 | switch ($block_arr[$i]->getVar('side')) { |
179 | 179 | case XOOPS_CENTERBLOCK_CENTER: |
180 | 180 | if ($title != '') { |
181 | - $cc_block .= '<tr valign="top"><td colspan="2"><strong>' . $title . '</strong><hr />' . $bcontent . '<br><br></td></tr>' . "\n"; |
|
181 | + $cc_block .= '<tr valign="top"><td colspan="2"><strong>'.$title.'</strong><hr />'.$bcontent.'<br><br></td></tr>'."\n"; |
|
182 | 182 | } else { |
183 | - $cc_block .= '<tr><td colspan="2">' . $bcontent . '<br><br></td></tr>' . "\n"; |
|
183 | + $cc_block .= '<tr><td colspan="2">'.$bcontent.'<br><br></td></tr>'."\n"; |
|
184 | 184 | } |
185 | 185 | break; |
186 | 186 | case XOOPS_CENTERBLOCK_LEFT: |
187 | 187 | if ($title != '') { |
188 | - $cl_block .= '<p><strong>' . $title . '</strong><hr />' . $bcontent . '</p>' . "\n"; |
|
188 | + $cl_block .= '<p><strong>'.$title.'</strong><hr />'.$bcontent.'</p>'."\n"; |
|
189 | 189 | } else { |
190 | - $cl_block .= '<p>' . $bcontent . '</p>' . "\n"; |
|
190 | + $cl_block .= '<p>'.$bcontent.'</p>'."\n"; |
|
191 | 191 | } |
192 | 192 | break; |
193 | 193 | case XOOPS_CENTERBLOCK_RIGHT: |
194 | 194 | if ($title != '') { |
195 | - $cr_block .= '<p><strong>' . $title . '</strong><hr />' . $bcontent . '</p>' . "\n"; |
|
195 | + $cr_block .= '<p><strong>'.$title.'</strong><hr />'.$bcontent.'</p>'."\n"; |
|
196 | 196 | } else { |
197 | - $cr_block .= '<p>' . $bcontent . '</p>' . "\n"; |
|
197 | + $cr_block .= '<p>'.$bcontent.'</p>'."\n"; |
|
198 | 198 | } |
199 | 199 | break; |
200 | 200 | default: |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | } |
203 | 203 | unset($bcontent, $title); |
204 | 204 | } |
205 | - echo '<table width="100%">' . $cc_block . '<tr valign="top"><td width="50%">' . $cl_block . '</td><td width="50%">' . $cr_block . '</td></tr></table>' . "\n"; |
|
205 | + echo '<table width="100%">'.$cc_block.'<tr valign="top"><td width="50%">'.$cl_block.'</td><td width="50%">'.$cr_block.'</td></tr></table>'."\n"; |
|
206 | 206 | } |
207 | 207 | } |
208 | 208 | |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | */ |
214 | 214 | function openThread($width = '100%') |
215 | 215 | { |
216 | - echo "<table border='0' cellpadding='0' cellspacing='0' align='center' width='$width'><tr><td class='bg2'><table border='0' cellpadding='4' cellspacing='1' width='100%'><tr class='bg3' align='left'><td class='bg3' width='20%'>" . _CM_POSTER . "</td><td class='bg3'>" . _CM_THREAD . '</td></tr>'; |
|
216 | + echo "<table border='0' cellpadding='0' cellspacing='0' align='center' width='$width'><tr><td class='bg2'><table border='0' cellpadding='4' cellspacing='1' width='100%'><tr class='bg3' align='left'><td class='bg3' width='20%'>"._CM_POSTER."</td><td class='bg3'>"._CM_THREAD.'</td></tr>'; |
|
217 | 217 | } |
218 | 218 | |
219 | 219 | /** |
@@ -252,9 +252,9 @@ discard block |
||
252 | 252 | $bg = 'bg1'; |
253 | 253 | } |
254 | 254 | echo "<tr align='left'><td valign='top' class='$bg' nowrap='nowrap'><strong>$username</strong><br>$rank_title<br>$rank_image<br>$avatar_image<br><br>$reg_date<br>$posts<br>$user_from<br><br>$online_image</td>"; |
255 | - echo "<td valign='top' class='$bg'><table width='100%' border='0'><tr><td valign='top'>$subject_image <strong>$subject</strong></td><td align='right'>" . $ip_image . '' . $reply_image . '' . $edit_image . '' . $delete_image . '</td></tr>'; |
|
255 | + echo "<td valign='top' class='$bg'><table width='100%' border='0'><tr><td valign='top'>$subject_image <strong>$subject</strong></td><td align='right'>".$ip_image.''.$reply_image.''.$edit_image.''.$delete_image.'</td></tr>'; |
|
256 | 256 | echo "<tr><td colspan='2'><p>$text</p></td></tr></table></td></tr>"; |
257 | - echo "<tr align='left'><td class='$bg' valign='middle'>$post_date</td><td class='$bg' valign='middle'>" . $profile_image . '' . $pm_image . '' . $email_image . '' . $www_image . '' . $icq_image . '' . $aim_image . '' . $yim_image . '' . $msnm_image . '</td></tr>'; |
|
257 | + echo "<tr align='left'><td class='$bg' valign='middle'>$post_date</td><td class='$bg' valign='middle'>".$profile_image.''.$pm_image.''.$email_image.''.$www_image.''.$icq_image.''.$aim_image.''.$yim_image.''.$msnm_image.'</td></tr>'; |
|
258 | 258 | } |
259 | 259 | |
260 | 260 | /** |
@@ -25,15 +25,15 @@ |
||
25 | 25 | include $GLOBALS['xoops']->path('class/xoopsformloader.php'); |
26 | 26 | |
27 | 27 | $cform = new XoopsThemeForm(_CM_POSTCOMMENT, 'commentform', 'postcomment.php', 'post', true); |
28 | -if (!preg_match('/^' . _RE . '/i', $subject)) { |
|
29 | - $subject = _RE . ' ' . xoops_substr($subject, 0, 56); |
|
28 | +if (!preg_match('/^'._RE.'/i', $subject)) { |
|
29 | + $subject = _RE.' '.xoops_substr($subject, 0, 56); |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | $cform->addElement(new XoopsFormText(_CM_TITLE, 'subject', 50, 255, $subject), true); |
33 | 33 | $icons_radio = new XoopsFormRadio(_MESSAGEICON, 'icon', $icon); |
34 | 34 | $subject_icons = XoopsLists::getSubjectsList(); |
35 | 35 | foreach ($subject_icons as $iconfile) { |
36 | - $icons_radio->addOption($iconfile, '<img src="' . XOOPS_URL . '/images/subject/' . $iconfile . '" alt="" />'); |
|
36 | + $icons_radio->addOption($iconfile, '<img src="'.XOOPS_URL.'/images/subject/'.$iconfile.'" alt="" />'); |
|
37 | 37 | } |
38 | 38 | $cform->addElement($icons_radio); |
39 | 39 | $cform->addElement(new XoopsFormDhtmlTextArea(_CM_MESSAGE, 'message', $message, 10, 50), true); |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | * @author Vinod <[email protected]> |
17 | 17 | * @author Taiwen Jiang <[email protected]> |
18 | 18 | */ |
19 | -include_once dirname(__DIR__) . '/mainfile.php'; |
|
19 | +include_once dirname(__DIR__).'/mainfile.php'; |
|
20 | 20 | |
21 | 21 | $xoopsLogger->activated = false; |
22 | 22 | $myts = MyTextSanitizer::getInstance(); |
@@ -31,17 +31,17 @@ discard block |
||
31 | 31 | $content = $myts->displayTarea($content, $html, 1, 1, 1, 1); |
32 | 32 | if (preg_match_all('/%u([[:alnum:]]{4})/', $content, $matches)) { |
33 | 33 | foreach ($matches[1] as $uniord) { |
34 | - $utf = '&#x' . $uniord . ';'; |
|
35 | - $content = str_replace('%u' . $uniord, $utf, $content); |
|
34 | + $utf = '&#x'.$uniord.';'; |
|
35 | + $content = str_replace('%u'.$uniord, $utf, $content); |
|
36 | 36 | } |
37 | 37 | $content = urldecode($content); |
38 | 38 | } |
39 | 39 | |
40 | 40 | if (!headers_sent()) { |
41 | 41 | $charset = (defined('_CHARSET') ? _CHARSET : 'UTF-8'); |
42 | - header('Content-Type:text/html; charset=' . $charset); |
|
42 | + header('Content-Type:text/html; charset='.$charset); |
|
43 | 43 | header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); |
44 | 44 | header('Cache-Control: private, no-cache'); |
45 | 45 | header('Pragma: no-cache'); |
46 | 46 | } |
47 | -echo '<div>' . $content . '</div>'; |
|
47 | +echo '<div>'.$content.'</div>'; |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | function xoopsCodeTarea($textarea_id, $cols = 60, $rows = 15, $suffix = null) |
34 | 34 | { |
35 | 35 | xoops_load('XoopsFormDhtmlTextArea'); |
36 | - $hiddenText = isset($suffix) ? 'xoopsHiddenText' . trim($suffix) : 'xoopsHiddenText'; |
|
36 | + $hiddenText = isset($suffix) ? 'xoopsHiddenText'.trim($suffix) : 'xoopsHiddenText'; |
|
37 | 37 | $content = isset($GLOBALS[$textarea_id]) ? $GLOBALS[$textarea_id] : ''; |
38 | 38 | $text_editor = new XoopsFormDhtmlTextArea('', $textarea_id, $content, $rows, $cols, $hiddenText); |
39 | 39 | $text_editor->htmlEditor = null; |
@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | $smiles = $myts->getSmileys(false); |
53 | 53 | $count = count($smiles); |
54 | 54 | for ($i = 0; $i < $count; ++$i) { |
55 | - echo "<img src='" . XOOPS_UPLOAD_URL . '/' . htmlspecialchars($smiles[$i]['smile_url'], ENT_QUOTES) . "' border='0' alt='' onclick='xoopsCodeSmilie(\"{$textarea_id}\", \" " . $smiles[$i]['code'] . " \");' onmouseover='style.cursor=\"hand\"' />"; |
|
55 | + echo "<img src='".XOOPS_UPLOAD_URL.'/'.htmlspecialchars($smiles[$i]['smile_url'], ENT_QUOTES)."' border='0' alt='' onclick='xoopsCodeSmilie(\"{$textarea_id}\", \" ".$smiles[$i]['code']." \");' onmouseover='style.cursor=\"hand\"' />"; |
|
56 | 56 | } |
57 | - echo " [<a href='#moresmiley' onmouseover='style.cursor=\"hand\"' alt='' onclick='openWithSelfMain(\"" . XOOPS_URL . "/misc.php?action=showpopups&type=smilies&target={$textarea_id}\",\"smilies\",300,475);'>" . _MORE . '</a>]'; |
|
57 | + echo " [<a href='#moresmiley' onmouseover='style.cursor=\"hand\"' alt='' onclick='openWithSelfMain(\"".XOOPS_URL."/misc.php?action=showpopups&type=smilies&target={$textarea_id}\",\"smilies\",300,475);'>"._MORE.'</a>]'; |
|
58 | 58 | } |
59 | 59 | /**#@-*/ |