From 24afb0e926a7cf0e6a99f8e8e8bf33c678afee1c Mon Sep 17 00:00:00 2001 From: tokul Date: Sun, 21 May 2006 18:23:09 +0000 Subject: [PATCH] SCRIPT_FILENAME is not set in some setups git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11150 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/bug_report/functions.php | 4 ++-- plugins/bug_report/system_specs.php | 4 ++-- plugins/change_password/backend/ldap.php | 4 ++-- plugins/filters/filters.php | 4 ++-- plugins/translate/functions.php | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/plugins/bug_report/functions.php b/plugins/bug_report/functions.php index e524057c..30cc2d14 100644 --- a/plugins/bug_report/functions.php +++ b/plugins/bug_report/functions.php @@ -13,8 +13,8 @@ /** * do not allow to call this file directly */ -if ((isset($_SERVER) && $_SERVER['SCRIPT_FILENAME'] == __FILE__) || - (isset($HTTP_SERVER_SERVER) && $HTTP_SERVER_SERVER['SCRIPT_FILENAME'] == __FILE__) ) { +if ((isset($_SERVER['SCRIPT_FILENAME']) && $_SERVER['SCRIPT_FILENAME'] == __FILE__) || + (isset($HTTP_SERVER_SERVER['SCRIPT_FILENAME']) && $HTTP_SERVER_SERVER['SCRIPT_FILENAME'] == __FILE__) ) { header("Location: ../../src/login.php"); die(); } diff --git a/plugins/bug_report/system_specs.php b/plugins/bug_report/system_specs.php index 9c6b7889..ebb3249c 100644 --- a/plugins/bug_report/system_specs.php +++ b/plugins/bug_report/system_specs.php @@ -13,8 +13,8 @@ /** * do not allow to call this file directly */ -if ((isset($_SERVER) && $_SERVER['SCRIPT_FILENAME'] == __FILE__) || - (isset($HTTP_SERVER_SERVER) && $HTTP_SERVER_SERVER['SCRIPT_FILENAME'] == __FILE__) ) { +if ((isset($_SERVER['SCRIPT_FILENAME']) && $_SERVER['SCRIPT_FILENAME'] == __FILE__) || + (isset($HTTP_SERVER_SERVER['SCRIPT_FILENAME']) && $HTTP_SERVER_SERVER['SCRIPT_FILENAME'] == __FILE__) ) { header("Location: ../../src/login.php"); die(); } diff --git a/plugins/change_password/backend/ldap.php b/plugins/change_password/backend/ldap.php index 42f128ff..81a181a7 100644 --- a/plugins/change_password/backend/ldap.php +++ b/plugins/change_password/backend/ldap.php @@ -13,8 +13,8 @@ /** * do not allow to call this file directly */ -if ((isset($_SERVER) && $_SERVER['SCRIPT_FILENAME'] == __FILE__) || - (isset($HTTP_SERVER_SERVER) && $HTTP_SERVER_SERVER['SCRIPT_FILENAME'] == __FILE__) ) { +if ((isset($_SERVER['SCRIPT_FILENAME']) && $_SERVER['SCRIPT_FILENAME'] == __FILE__) || + (isset($HTTP_SERVER_SERVER['SCRIPT_FILENAME']) && $HTTP_SERVER_SERVER['SCRIPT_FILENAME'] == __FILE__) ) { header("Location: ../../../src/login.php"); die(); } diff --git a/plugins/filters/filters.php b/plugins/filters/filters.php index a9a89c94..23fb6884 100644 --- a/plugins/filters/filters.php +++ b/plugins/filters/filters.php @@ -13,8 +13,8 @@ /** * do not allow to call this file directly */ -if ((isset($_SERVER) && $_SERVER['SCRIPT_FILENAME'] == __FILE__) || - (isset($HTTP_SERVER_SERVER) && $HTTP_SERVER_SERVER['SCRIPT_FILENAME'] == __FILE__) ) { +if ((isset($_SERVER['SCRIPT_FILENAME']) && $_SERVER['SCRIPT_FILENAME'] == __FILE__) || + (isset($HTTP_SERVER_SERVER['SCRIPT_FILENAME']) && $HTTP_SERVER_SERVER['SCRIPT_FILENAME'] == __FILE__) ) { header("Location: ../../src/login.php"); die(); } diff --git a/plugins/translate/functions.php b/plugins/translate/functions.php index 4dfcdabf..f1885238 100644 --- a/plugins/translate/functions.php +++ b/plugins/translate/functions.php @@ -13,8 +13,8 @@ /** * do not allow to call this file directly */ -if ((isset($_SERVER) && $_SERVER['SCRIPT_FILENAME'] == __FILE__) || - (isset($HTTP_SERVER_SERVER) && $HTTP_SERVER_SERVER['SCRIPT_FILENAME'] == __FILE__) ) { +if ((isset($_SERVER['SCRIPT_FILENAME']) && $_SERVER['SCRIPT_FILENAME'] == __FILE__) || + (isset($HTTP_SERVER_SERVER['SCRIPT_FILENAME']) && $HTTP_SERVER_SERVER['SCRIPT_FILENAME'] == __FILE__) ) { header("Location: ../../src/login.php"); die(); } -- 2.25.1