Add global variable indicating server OS
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 20 Nov 2008 20:05:35 +0000 (20:05 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 20 Nov 2008 20:05:35 +0000 (20:05 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13319 7612ce4b-ef26-0410-bec9-ea0150e637f0

include/init.php

index b517640..228999c 100644 (file)
@@ -75,6 +75,14 @@ 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
  *
  * When session cookies are not used, all http redirects, meta refreshes,