mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 16:27:38 +02:00
let's see if i can break something. :o
git-svn-id: file:///svn/phpbb/trunk@7830 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -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'))
|
||||
{
|
||||
|
Reference in New Issue
Block a user