@@ -123,12 +123,12 @@ |
||
123 | 123 | |
124 | 124 | // First, check for an overloaded version within the theme folder |
125 | 125 | |
126 | - $filepath = XOOPS_THEME_PATH . "/$theme/modules/$module/$blockpath$tpl_name"; |
|
126 | + $filepath = XOOPS_THEME_PATH."/$theme/modules/$module/$blockpath$tpl_name"; |
|
127 | 127 | |
128 | 128 | if (!file_exists($filepath)) { |
129 | 129 | // If no custom version exists, get the tpl from its default location |
130 | 130 | |
131 | - $filepath = XOOPS_ROOT_PATH . "/modules/$module/templates/$blockpath$tpl_name"; |
|
131 | + $filepath = XOOPS_ROOT_PATH."/modules/$module/templates/$blockpath$tpl_name"; |
|
132 | 132 | |
133 | 133 | if (!file_exists($filepath)) { |
134 | 134 | return $cache[$tpl_name] = $tplobj; |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | //admin page |
7 | 7 | if ($root->mController->_mStrategy) { |
8 | 8 | if (mb_strtolower(get_class($root->mController->_mStrategy)) == mb_strtolower('Legacy_AdminControllerStrategy')) { |
9 | - include_once __DIR__ . '/include/altsys_functions.php'; |
|
9 | + include_once __DIR__.'/include/altsys_functions.php'; |
|
10 | 10 | |
11 | 11 | // language file (modinfo.php) |
12 | 12 | |
@@ -14,4 +14,4 @@ discard block |
||
14 | 14 | } |
15 | 15 | } |
16 | 16 | // load altsys newly gticket class for other modules |
17 | -require_once XOOPS_TRUST_PATH . '/libs/altsys/include/gtickets.php'; |
|
17 | +require_once XOOPS_TRUST_PATH.'/libs/altsys/include/gtickets.php'; |
@@ -9,4 +9,4 @@ |
||
9 | 9 | // require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname |
10 | 10 | $mytrustdirname = 'altsys'; |
11 | 11 | |
12 | -require XOOPS_TRUST_PATH . '/libs/' . $mytrustdirname . '/onuninstall.php'; |
|
12 | +require XOOPS_TRUST_PATH.'/libs/'.$mytrustdirname.'/onuninstall.php'; |
@@ -9,4 +9,4 @@ |
||
9 | 9 | // require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname |
10 | 10 | $mytrustdirname = 'altsys'; |
11 | 11 | |
12 | -require XOOPS_TRUST_PATH . '/libs/' . $mytrustdirname . '/oninstall.php'; |
|
12 | +require XOOPS_TRUST_PATH.'/libs/'.$mytrustdirname.'/oninstall.php'; |
@@ -9,4 +9,4 @@ |
||
9 | 9 | // require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname |
10 | 10 | $mytrustdirname = 'altsys'; |
11 | 11 | |
12 | -require XOOPS_TRUST_PATH . '/libs/' . $mytrustdirname . '/onupdate.php'; |
|
12 | +require XOOPS_TRUST_PATH.'/libs/'.$mytrustdirname.'/onupdate.php'; |
@@ -9,4 +9,4 @@ |
||
9 | 9 | // require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname |
10 | 10 | $mytrustdirname = 'altsys'; |
11 | 11 | |
12 | -require XOOPS_TRUST_PATH . '/libs/' . $mytrustdirname . '/include/Legacy_AltsysAdminRenderSystem.class.php'; |
|
12 | +require XOOPS_TRUST_PATH.'/libs/'.$mytrustdirname.'/include/Legacy_AltsysAdminRenderSystem.class.php'; |
@@ -9,4 +9,4 @@ |
||
9 | 9 | // require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname |
10 | 10 | $mytrustdirname = 'altsys'; |
11 | 11 | |
12 | -require XOOPS_TRUST_PATH . '/libs/' . $mytrustdirname . '/blocks.php'; |
|
12 | +require XOOPS_TRUST_PATH.'/libs/'.$mytrustdirname.'/blocks.php'; |
@@ -3,9 +3,9 @@ discard block |
||
3 | 3 | $xoopsOption['nocommon'] = 1; |
4 | 4 | define('_LEGACY_PREVENT_LOAD_CORE_', 1); |
5 | 5 | |
6 | -require_once \dirname(__DIR__, 2) . '/mainfile.php'; |
|
6 | +require_once \dirname(__DIR__, 2).'/mainfile.php'; |
|
7 | 7 | |
8 | -if (defined('XOOPS_TRUST_PATH') && XOOPS_TRUST_PATH !== '' && file_exists(XOOPS_TRUST_PATH . '/libs/altsys')) { |
|
8 | +if (defined('XOOPS_TRUST_PATH') && XOOPS_TRUST_PATH !== '' && file_exists(XOOPS_TRUST_PATH.'/libs/altsys')) { |
|
9 | 9 | exit('No problem with your XOOPS_TRUST_PATH'); |
10 | 10 | } |
11 | 11 | |
@@ -22,11 +22,11 @@ discard block |
||
22 | 22 | if ('.' == mb_substr($file, 0, 1)) { |
23 | 23 | continue; |
24 | 24 | } |
25 | - $fullpath = $baseDir . '/' . $file; |
|
25 | + $fullpath = $baseDir.'/'.$file; |
|
26 | 26 | if (!is_dir($fullpath)) { |
27 | 27 | continue; |
28 | 28 | } |
29 | - if (is_dir($fullpath . '/libs/altsys')) { |
|
29 | + if (is_dir($fullpath.'/libs/altsys')) { |
|
30 | 30 | $xoops_trust_path = $fullpath; |
31 | 31 | break 2; |
32 | 32 | } |
@@ -35,13 +35,13 @@ discard block |
||
35 | 35 | } |
36 | 36 | // fall back |
37 | 37 | if (empty($xoops_trust_path)) { |
38 | - $xoops_trust_path = dirname(XOOPS_ROOT_PATH) . '/xoops_trust_path'; |
|
38 | + $xoops_trust_path = dirname(XOOPS_ROOT_PATH).'/xoops_trust_path'; |
|
39 | 39 | } |
40 | 40 | // create the hint |
41 | 41 | if (!defined('XOOPS_TRUST_PATH')) { |
42 | - $hint = "Insert the red line.<br>define('XOOPS_ROOT_PATH', '" . htmlspecialchars(XOOPS_ROOT_PATH, ENT_QUOTES) . "');<br><ins style='color:red;'>define('XOOPS_TRUST_PATH', '" . htmlspecialchars($xoops_trust_path, ENT_QUOTES) . "');</ins>"; |
|
42 | + $hint = "Insert the red line.<br>define('XOOPS_ROOT_PATH', '".htmlspecialchars(XOOPS_ROOT_PATH, ENT_QUOTES)."');<br><ins style='color:red;'>define('XOOPS_TRUST_PATH', '".htmlspecialchars($xoops_trust_path, ENT_QUOTES)."');</ins>"; |
|
43 | 43 | } else { |
44 | - $hint = "<del>define('XOOPS_TRUST_PATH', '');</del><br><ins style='color:red;'>define('XOOPS_TRUST_PATH', '" . htmlspecialchars($xoops_trust_path, ENT_QUOTES) . "');</ins>"; |
|
44 | + $hint = "<del>define('XOOPS_TRUST_PATH', '');</del><br><ins style='color:red;'>define('XOOPS_TRUST_PATH', '".htmlspecialchars($xoops_trust_path, ENT_QUOTES)."');</ins>"; |
|
45 | 45 | } |
46 | 46 | } |
47 | 47 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | <input type="submit" value="next"> |
61 | 61 | </form> |
62 | 62 | <?php if ($hint) { |
63 | - echo 'Edit mainfile.php like this: <blockquote style="border: black solid 1px;">' . $hint . '</blockquote>'; |
|
63 | + echo 'Edit mainfile.php like this: <blockquote style="border: black solid 1px;">'.$hint.'</blockquote>'; |
|
64 | 64 | } ?> |
65 | 65 | </body> |
66 | 66 | </html> |
@@ -9,4 +9,4 @@ |
||
9 | 9 | // require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname |
10 | 10 | $mytrustdirname = 'altsys'; |
11 | 11 | |
12 | -require XOOPS_TRUST_PATH . '/libs/' . $mytrustdirname . '/admin_menu.php'; |
|
12 | +require XOOPS_TRUST_PATH.'/libs/'.$mytrustdirname.'/admin_menu.php'; |