@@ -19,11 +19,11 @@ discard block |
||
19 | 19 | */ |
20 | 20 | /* @var $xoopsUser XoopsUser */ |
21 | 21 | |
22 | -if (file_exists(__DIR__ . '/mainfile.php')) { |
|
23 | - include __DIR__ . '/mainfile.php'; |
|
22 | +if (file_exists(__DIR__.'/mainfile.php')) { |
|
23 | + include __DIR__.'/mainfile.php'; |
|
24 | 24 | } |
25 | 25 | if (!defined('XOOPS_MAINFILE_INCLUDED')) { |
26 | - if (file_exists(__DIR__ . '/install/index.php')) { |
|
26 | + if (file_exists(__DIR__.'/install/index.php')) { |
|
27 | 27 | header('Location: install/index.php'); |
28 | 28 | exit; |
29 | 29 | } |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | $xoopsModule = $module_handler->getByDirname($xoopsConfig['startpage']); |
44 | 44 | if (!$xoopsModule || !$xoopsModule->getVar('isactive')) { |
45 | 45 | include_once $GLOBALS['xoops']->path('header.php'); |
46 | - echo '<h4>' . _MODULENOEXIST . '</h4>'; |
|
46 | + echo '<h4>'._MODULENOEXIST.'</h4>'; |
|
47 | 47 | include_once $GLOBALS['xoops']->path('footer.php'); |
48 | 48 | exit(); |
49 | 49 | } |
@@ -51,36 +51,36 @@ discard block |
||
51 | 51 | $moduleperm_handler = xoops_getHandler('groupperm'); |
52 | 52 | if ($xoopsUser) { |
53 | 53 | if (!$moduleperm_handler->checkRight('module_read', $xoopsModule->getVar('mid'), $xoopsUser->getGroups())) { |
54 | - redirect_header(XOOPS_URL . '/user.php', 1, _NOPERM, false); |
|
54 | + redirect_header(XOOPS_URL.'/user.php', 1, _NOPERM, false); |
|
55 | 55 | } |
56 | 56 | $xoopsUserIsAdmin = $xoopsUser->isAdmin($xoopsModule->getVar('mid')); |
57 | 57 | } else { |
58 | 58 | if (!$moduleperm_handler->checkRight('module_read', $xoopsModule->getVar('mid'), XOOPS_GROUP_ANONYMOUS)) { |
59 | - redirect_header(XOOPS_URL . '/user.php', 1, _NOPERM); |
|
59 | + redirect_header(XOOPS_URL.'/user.php', 1, _NOPERM); |
|
60 | 60 | } |
61 | 61 | } |
62 | 62 | if ($xoopsModule->getVar('hasconfig') == 1 || $xoopsModule->getVar('hascomments') == 1 || $xoopsModule->getVar('hasnotification') == 1) { |
63 | 63 | $xoopsModuleConfig = $config_handler->getConfigsByCat(0, $xoopsModule->getVar('mid')); |
64 | 64 | } |
65 | 65 | |
66 | - chdir('modules/' . $xoopsConfig['startpage'] . '/'); |
|
66 | + chdir('modules/'.$xoopsConfig['startpage'].'/'); |
|
67 | 67 | xoops_loadLanguage('main', $xoopsModule->getVar('dirname', 'n')); |
68 | 68 | $parsed = parse_url(XOOPS_URL); |
69 | - $url = isset($parsed['scheme']) ? $parsed['scheme'] . '://' : 'http://'; |
|
69 | + $url = isset($parsed['scheme']) ? $parsed['scheme'].'://' : 'http://'; |
|
70 | 70 | if (isset($parsed['host'])) { |
71 | 71 | $url .= $parsed['host']; |
72 | 72 | if (isset($parsed['port'])) { |
73 | - $url .= ':' . $parsed['port']; |
|
73 | + $url .= ':'.$parsed['port']; |
|
74 | 74 | } |
75 | 75 | } else { |
76 | 76 | $url .= $_SERVER['HTTP_HOST']; |
77 | 77 | } |
78 | 78 | |
79 | - $_SERVER['REQUEST_URI'] = substr(XOOPS_URL, strlen($url)) . '/modules/' . $xoopsConfig['startpage'] . '/index.php'; |
|
80 | - include $GLOBALS['xoops']->path('modules/' . $xoopsConfig['startpage'] . '/index.php'); |
|
79 | + $_SERVER['REQUEST_URI'] = substr(XOOPS_URL, strlen($url)).'/modules/'.$xoopsConfig['startpage'].'/index.php'; |
|
80 | + include $GLOBALS['xoops']->path('modules/'.$xoopsConfig['startpage'].'/index.php'); |
|
81 | 81 | exit(); |
82 | 82 | } else { |
83 | - $xoopsOption['show_cblock'] = 1; |
|
83 | + $xoopsOption['show_cblock'] = 1; |
|
84 | 84 | $GLOBALS['xoopsOption']['template_main'] = 'db:system_homepage.tpl'; |
85 | 85 | include $GLOBALS['xoops']->path('header.php'); |
86 | 86 | include $GLOBALS['xoops']->path('footer.php'); |