Add global variable indicating server OS
[squirrelmail.git] / include / init.php
index b5176403c9159a018d91d698be7e79d3bf8b4ac2..228999ccf25baad06ac12bff0e085db0d753ee1b 100644 (file)
@@ -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
  *