OSDN Git Service

Add some codes from 3.61. Currently files under /nucleus/libs and /nucleus/libs/sql...
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / nucleus / libs / PLUGINADMIN.php
index c2efc14..1111d71 100755 (executable)
  * $NucleusJP: PLUGINADMIN.php,v 1.8.2.2 2007/10/23 22:48:56 kmorimatsu Exp $
  */
 
-global $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $HTTP_ENV_VARS, $HTTP_POST_FILES, $HTTP_SESSION_VARS;\r
-$aVarsToCheck = array('HTTP_GET_VARS', 'HTTP_POST_VARS', 'HTTP_COOKIE_VARS', 'HTTP_ENV_VARS', 'HTTP_SESSION_VARS', 'HTTP_POST_FILES', 'HTTP_SERVER_VARS', 'GLOBALS', 'argv', 'argc', '_GET', '_POST', '_COOKIE', '_ENV', '_SESSION', '_SERVER', '_FILES', 'DIR_LIBS');\r
-\r
-foreach ($aVarsToCheck as $varName)\r
-{\r
-       if (phpversion() >= '4.1.0')\r
-       {\r
-               if (   isset($_GET[$varName])\r
-                       || isset($_POST[$varName])\r
-                       || isset($_COOKIE[$varName])\r
-                       || isset($_ENV[$varName])\r
-                       || isset($_SESSION[$varName])\r
-                       || isset($_FILES[$varName])\r
-               ){\r
-                       die('Sorry. An error occurred.');\r
-               }\r
-       } else {\r
-               if (   isset($HTTP_GET_VARS[$varName])\r
-                       || isset($HTTP_POST_VARS[$varName])\r
-                       || isset($HTTP_COOKIE_VARS[$varName])\r
-                       || isset($HTTP_ENV_VARS[$varName])\r
-                       || isset($HTTP_SESSION_VARS[$varName])\r
-                       || isset($HTTP_POST_FILES[$varName])\r
-               ){\r
-                       die('Sorry. An error occurred.');\r
-               }\r
-       }\r
-}\r
-\r
-if (!isset($DIR_LIBS)) {\r
-       die('Sorry.');\r
-}\r
-\r
-include($DIR_LIBS . 'ADMIN.php');\r
-\r
 class PluginAdmin {\r
 \r
        var $strFullName;               // NP_SomeThing\r
@@ -64,7 +29,8 @@ class PluginAdmin {
        function PluginAdmin($pluginName)\r
        {\r
                global $manager;\r
-\r
+               include_once($DIR_LIBS . 'ADMIN.php');
+               \r
                $this->strFullName = 'NP_' . $pluginName;\r
 \r
                // check if plugin exists and is installed\r