diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2007-07-03 15:36:18 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-07-03 15:36:18 +0000 |
commit | b883ff119f4e42fbc967a6b1971af2198762fbd8 (patch) | |
tree | 95341356c3efea7cad58309f28c224c45296f1f5 /phpBB/includes/functions.php | |
parent | 3d9b5e52d9a14495f42d676428b6d00aff756923 (diff) | |
download | forums-b883ff119f4e42fbc967a6b1971af2198762fbd8.tar forums-b883ff119f4e42fbc967a6b1971af2198762fbd8.tar.gz forums-b883ff119f4e42fbc967a6b1971af2198762fbd8.tar.bz2 forums-b883ff119f4e42fbc967a6b1971af2198762fbd8.tar.xz forums-b883ff119f4e42fbc967a6b1971af2198762fbd8.zip |
let's see if i can break something. :o
git-svn-id: file:///svn/phpbb/trunk@7830 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index a91bddd9b8..caf26bf379 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -472,7 +472,7 @@ if (!function_exists('stripos')) if (!function_exists('realpath')) { - if (substr(PHP_OS, 0, 3) != 'WIN' && !(bool) ini_get('safe_mode') && function_exists('shell_exec') && trim(`realpath .`)) + if (DIRECTORY_SEPARATOR != '\\' && !(bool) ini_get('safe_mode') && function_exists('shell_exec') && trim(`realpath .`)) { /** * @author Chris Smith <chris@project-minerva.org> @@ -497,7 +497,7 @@ if (!function_exists('realpath')) */ function is_absolute($path) { - return ($path[0] == '/' || (substr(PHP_OS, 0, 3) == 'WIN' && preg_match('#^[a-z]:/#i', $path))) ? true : false; + return ($path[0] == '/' || (DIRECTORY_SEPARATOR == '\\' && preg_match('#^[a-z]:/#i', $path))) ? true : false; } /** @@ -3608,7 +3608,7 @@ function phpbb_checkdnsrr($host, $type = '') { $type = (!$type) ? 'MX' : $type; - if (strpos(PHP_OS, 'WIN') !== false) + if (DIRECTORY_SEPARATOR == '\\') { if (!function_exists('exec')) { |