1: <?php
2: 3: 4: 5: 6: 7: 8: 9:
10: 11: 12: 13:
14:
15: include "mainfile.php";
16:
17: class DefaultSystemCheckFunction
18: {
19: function DefaultCheck()
20: {
21: if (ini_get('register_globals') == 1) {
22: xoops_error(sprintf(_WARNPHPENV,'register_globals','on',_WARNSECURITY),'','warning');
23: }
24: if (is_dir(XOOPS_ROOT_PATH."/install/" )) {
25: xoops_error(sprintf(_WARNINSTALL2,XOOPS_ROOT_PATH.'/install/'),'','warning');
26: }
27: if ( is_writable(XOOPS_ROOT_PATH."/mainfile.php" ) ) {
28: xoops_error(sprintf(_WARNINWRITEABLE,XOOPS_ROOT_PATH.'/mainfile.php'),'','warning');
29: }
30: }
31: }
32:
33: require_once XOOPS_ROOT_PATH . "/header.php";
34: $root=&XCube_Root::getSingleton();
35: $root->mDelegateManager->add("Legacypage.Admin.SystemCheck", "DefaultSystemCheckFunction::DefaultCheck");
36: XCube_DelegateUtils::call("Legacypage.Admin.SystemCheck");
37: require_once XOOPS_ROOT_PATH . "/footer.php";
38: ?>
39: