From 0f3a8137e6b3e131d8be4e6385e285588971c9a1 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 16 Jun 2005 05:34:48 +0000 Subject: [PATCH] fixed wrong Windows detection and changed default path to show slashes on windows too --- setup/manageheader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/manageheader.php b/setup/manageheader.php index 11b7449f27..660855bc8e 100644 --- a/setup/manageheader.php +++ b/setup/manageheader.php @@ -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 {