@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | * @author XOOPS Development Team |
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | -require_once __DIR__ . '/admin_header.php'; |
|
| 20 | +require_once __DIR__.'/admin_header.php'; |
|
| 21 | 21 | // Display Admin header |
| 22 | 22 | xoops_cp_header(); |
| 23 | 23 | |
@@ -25,4 +25,4 @@ discard block |
||
| 25 | 25 | $adminObject->displayNavigation(basename(__FILE__)); |
| 26 | 26 | $adminObject->displayIndex(); |
| 27 | 27 | |
| 28 | -require_once __DIR__ . '/admin_footer.php'; |
|
| 28 | +require_once __DIR__.'/admin_footer.php'; |
|
@@ -4,12 +4,12 @@ |
||
| 4 | 4 | include_once XOOPS_ROOT_PATH . '/kernel/module.php'; |
| 5 | 5 | include __DIR__ . '/../../../include/cp_header.php'; |
| 6 | 6 | if ($xoopsUser) { |
| 7 | - $xoopsModule = XoopsModule::getByDirname('myiframe'); |
|
| 8 | - if (!$xoopsUser->isAdmin($xoopsModule->mid())) { |
|
| 9 | - redirect_header(XOOPS_URL . '/', 3, _NOPERM); |
|
| 10 | - } |
|
| 7 | + $xoopsModule = XoopsModule::getByDirname('myiframe'); |
|
| 8 | + if (!$xoopsUser->isAdmin($xoopsModule->mid())) { |
|
| 9 | + redirect_header(XOOPS_URL . '/', 3, _NOPERM); |
|
| 10 | + } |
|
| 11 | 11 | } else { |
| 12 | - redirect_header(XOOPS_URL . '/', 3, _NOPERM); |
|
| 12 | + redirect_header(XOOPS_URL . '/', 3, _NOPERM); |
|
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | $myts = MyTextSanitizer::getInstance(); |
@@ -1,15 +1,15 @@ |
||
| 1 | 1 | <?php |
| 2 | -include __DIR__ . '/../../../mainfile.php'; |
|
| 3 | -include XOOPS_ROOT_PATH . '/include/cp_functions.php'; |
|
| 4 | -include_once XOOPS_ROOT_PATH . '/kernel/module.php'; |
|
| 5 | -include __DIR__ . '/../../../include/cp_header.php'; |
|
| 2 | +include __DIR__.'/../../../mainfile.php'; |
|
| 3 | +include XOOPS_ROOT_PATH.'/include/cp_functions.php'; |
|
| 4 | +include_once XOOPS_ROOT_PATH.'/kernel/module.php'; |
|
| 5 | +include __DIR__.'/../../../include/cp_header.php'; |
|
| 6 | 6 | if ($xoopsUser) { |
| 7 | 7 | $xoopsModule = XoopsModule::getByDirname('myiframe'); |
| 8 | 8 | if (!$xoopsUser->isAdmin($xoopsModule->mid())) { |
| 9 | - redirect_header(XOOPS_URL . '/', 3, _NOPERM); |
|
| 9 | + redirect_header(XOOPS_URL.'/', 3, _NOPERM); |
|
| 10 | 10 | } |
| 11 | 11 | } else { |
| 12 | - redirect_header(XOOPS_URL . '/', 3, _NOPERM); |
|
| 12 | + redirect_header(XOOPS_URL.'/', 3, _NOPERM); |
|
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | $myts = MyTextSanitizer::getInstance(); |