OSDN Git Service

Now this trunk equal 3.61 without documentation. We need to test for install and...
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / nucleus / libs / globalfunctions.php
index eac38fe..a970983 100755 (executable)
@@ -1937,19 +1937,22 @@ function ticketForPlugin(){
        }\r
        \r
        /* Return if not index.php */\r
-       if ( $phppath!=strtolower($plugin_name).'/' && $phppath!=strtolower($plugin_name).'/index.php' ) {\r
+       if ( ($phppath != strtolower($plugin_name) . '/') && ($phppath != strtolower($plugin_name) . '/index.php') )\r
+       {\r
                return;\r
        }\r
 \r
        /* Exit if not logged in. */\r
-       if ( !$member->isLoggedIn() ) {\r
+       if ( !$member->isLoggedIn() )\r
+       {\r
                exit(_GFUNCTIONS_YOU_AERNT_LOGGEDIN);\r
        }\r
 \r
        global $manager,$DIR_LIBS,$DIR_LANG,$HTTP_GET_VARS,$HTTP_POST_VARS;\r
 \r
        /* Check if this feature is needed (ie, if "$manager->checkTicket()" is not included in the script). */\r
-       if (!($p_translated=serverVar('PATH_TRANSLATED'))) {\r
+       if (!($p_translated=serverVar('PATH_TRANSLATED')))\r
+       {\r
                $p_translated=serverVar('SCRIPT_FILENAME');\r
        }\r
        if ($file=@file($p_translated))\r
@@ -1957,7 +1960,8 @@ function ticketForPlugin(){
                $prevline='';\r
                foreach($file as $line)\r
                {\r
-                       if (preg_match('/[\$]manager([\s]*)[\-]>([\s]*)checkTicket([\s]*)[\(]/i',$prevline.$line)) {\r
+                       if (preg_match('/[\$]manager([\s]*)[\-]>([\s]*)checkTicket([\s]*)[\(]/i',$prevline.$line))\r
+                       {\r
                                return;\r
                        }\r
                        $prevline=$line;\r
@@ -1999,13 +2003,16 @@ function ticketForPlugin(){
                if ($uri=serverVar('REQUEST_URI'))\r
                {\r
                        list($uri,$qstring)=explode('?',$uri);\r
-               } else {\r
+               }\r
+               else\r
+               {\r
                        if ( !($uri=serverVar('PHP_SELF')) ) {\r
                                $uri=serverVar('SCRIPT_NAME');\r
                        }\r
                        $qstring=serverVar('QUERY_STRING');\r
                }\r
-               if ($qstring) {\r
+               if ($qstring)\r
+               {\r
                        $qstring='?'.$qstring;\r
                }\r
                echo '<p>'._SETTINGS_UPDATE.' : '._QMENU_PLUGINS.' <span style="color:red;">'.htmlspecialchars($plugin_name)."</span> ?</p>\n";\r