[xoops-cvslog 3197] CVS update: xoops2jp/html

Back to archive index

NobuNobu nobun****@users*****
2006年 5月 27日 (土) 23:06:23 JST


Index: xoops2jp/html/admin.php
diff -u xoops2jp/html/admin.php:1.2.8.3 xoops2jp/html/admin.php:1.2.8.4
--- xoops2jp/html/admin.php:1.2.8.3	Fri Feb  3 23:34:08 2006
+++ xoops2jp/html/admin.php	Sat May 27 23:06:23 2006
@@ -1,6 +1,6 @@
-<?php
-// $Id: admin.php,v 1.2.8.3 2006/02/03 14:34:08 nobunobu Exp $
-include "mainfile.php";
+<?php
+// $Id: admin.php,v 1.2.8.4 2006/05/27 14:06:23 nobunobu Exp $
+include "mainfile.php";
 require_once XOOPS_ROOT_PATH."/class/XCube_EventManager.class.php";
 class DefaultSystemCheckProxyRegister extends XCube_EventProxyRegister
 {
@@ -14,25 +14,28 @@
 		$delegate=new XCube_Delegate("DefaultSystemCheckFunction","DefaultCheck");
 		return $delegate;
 	}
-
-}
-class DefaultSystemCheckFunction
-{
-	function DefaultCheck()
-	{
-		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');
-		}
-	}
-}
-
+
+}
+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=&XCube_Root::getSingleton();
 $root->mEventManager->addProxyRegister(new DefaultSystemCheckProxyRegister());
-$eventArgs=array();
-$root->mEventManager->raiseEvent("Legacypage.Admin.SystemCheck",$root->mController,$eventArgs);
-require_once XOOPS_ROOT_PATH . "/footer.php";
+$eventArgs=array();
+$root->mEventManager->raiseEvent("Legacypage.Admin.SystemCheck",$root->mController,$eventArgs);
+require_once XOOPS_ROOT_PATH . "/footer.php";
 ?>
\ No newline at end of file


xoops-cvslog メーリングリストの案内
Back to archive index