Index: trunk/kernel/startup.php =================================================================== diff -u -r534 -r563 --- trunk/kernel/startup.php (.../startup.php) (revision 534) +++ trunk/kernel/startup.php (.../startup.php) (revision 563) @@ -131,7 +131,7 @@ $adminDir = 'admin'; } -if (strstr($_SERVER['SCRIPT_FILENAME'], $adminDir) && !GetVar('logout') && !strstr($_SERVER['SCRIPT_FILENAME'], "install") && !strstr($_SERVER['SCRIPT_FILENAME'], "index")) { +if (strstr(__FILE__, $adminDir) && !GetVar('logout') && !strstr(__FILE__, "install") && !strstr(__FILE__, "index")) { //echo "testz [".admin_login()."]
"; if (!admin_login())