From dbbd586ecd980d4230dacef9a0a01e49004e50e9 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Thu, 20 Nov 2008 20:05:35 +0000 Subject: [PATCH] Add global variable indicating server OS git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13319 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- include/init.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/init.php b/include/init.php index b5176403..228999cc 100644 --- a/include/init.php +++ b/include/init.php @@ -74,6 +74,14 @@ if ((bool) ini_get('register_globals') && global $null; $null = NULL; +/** + * The global $server_os variable will be "windows" if + * we are working in a Windows environment or "*nix" + * otherwise. + */ +global $server_os; +if (DIRECTORY_SEPARATOR == '\\') $server_os = 'windows'; else $server_os = '*nix'; + /** * [#1518885] session.use_cookies = off breaks SquirrelMail * -- 2.25.1