fixed wrong Windows detection and changed default path to show slashes on windows too

This commit is contained in:
Ralf Becker 2005-06-16 05:34:48 +00:00
parent 0abd65ff50
commit 0f3a8137e6

View File

@ -50,9 +50,9 @@
$realpath = realpath('..');
if(!ereg('^' . $_SERVER['DOCUMENT_ROOT'],$realpath))
{
if(PHP_OS == 'Windows')
if(strtoupper(substr(PHP_OS, 0,3)) == 'WIN')
{
$realpath = 'Drive:\\\\Path';
$realpath = 'Drive:/Path/to/egroupware';
}
else
{