<?php
// $Id: admin.php,v 1.2.8.5 2006/07/08 02:22:22 nobunobu Exp $
include "mainfile.php";
class DefaultSystemCheckFunction
{
	function DefaultCheck()
	{
		if (ini_get('register_globals') == 1) {
		    xoops_error(sprintf(_WARNPHPENV,'register_globals','on',_WARNSECURITY),'','tips');
		}
		if (is_dir(XOOPS_ROOT_PATH."/install/" )) {
		    xoops_error(sprintf(_WARNINSTALL2,XOOPS_ROOT_PATH.'/install/'),'','tips');
		}
		if ( is_writable(XOOPS_ROOT_PATH."/mainfile.php" ) ) {
		    xoops_error(sprintf(_WARNINWRITEABLE,XOOPS_ROOT_PATH.'/mainfile.php'),'','tips');
		}
	}
}

require_once XOOPS_ROOT_PATH . "/header.php";
$root=&XCube_Root::getSingleton();
$root->mDelegateManager->add("Legacypage.Admin.SystemCheck", "DefaultSystemCheckFunction::DefaultCheck");
XCube_DelegateUtils::call("Legacypage.Admin.SystemCheck");
require_once XOOPS_ROOT_PATH . "/footer.php";
?>