mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 08:17:47 +02:00
"Fix" for realpath and Lycos?
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3222 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -220,7 +220,7 @@ function init_userprefs($userdata)
|
||||
}
|
||||
}
|
||||
|
||||
if ( !file_exists(@realpath($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx)) )
|
||||
if ( !file_exists(@phpbb_realpath($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx)) )
|
||||
{
|
||||
$board_config['default_lang'] = 'english';
|
||||
}
|
||||
@@ -229,7 +229,7 @@ function init_userprefs($userdata)
|
||||
|
||||
if ( defined('IN_ADMIN') )
|
||||
{
|
||||
if( !file_exists(@realpath($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.'.$phpEx)) )
|
||||
if( !file_exists(@phpbb_realpath($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.'.$phpEx)) )
|
||||
{
|
||||
$board_config['default_lang'] = 'english';
|
||||
}
|
||||
@@ -288,7 +288,7 @@ function setup_style($style)
|
||||
message_die(CRITICAL_ERROR, "Could not open $template_name template config file", '', __LINE__, __FILE__);
|
||||
}
|
||||
|
||||
$img_lang = ( file_exists(@realpath($phpbb_root_path . $current_template_path . '/images/lang_' . $board_config['default_lang'])) ) ? $board_config['default_lang'] : 'english';
|
||||
$img_lang = ( file_exists(@phpbb_realpath($phpbb_root_path . $current_template_path . '/images/lang_' . $board_config['default_lang'])) ) ? $board_config['default_lang'] : 'english';
|
||||
|
||||
while( list($key, $value) = @each($images) )
|
||||
{
|
||||
@@ -681,14 +681,10 @@ function message_die($msg_code, $msg_text = '', $msg_title = '', $err_line = '',
|
||||
// function. In later versions of PHP, it needs to be called
|
||||
// to do checks with some functions. Older versions of PHP don't
|
||||
// seem to need this, so we'll just return the original value.
|
||||
//
|
||||
// dougk_ff7 <October 5, 2002>
|
||||
if ( !function_exists(realpath) )
|
||||
function phpbb_realpath($path)
|
||||
{
|
||||
function realpath($path)
|
||||
{
|
||||
return $path;
|
||||
}
|
||||
return (!@function_exists('realpath') || !@realpath($phpbb_root_path . 'includes/functions.'.$phpEx)) ? $path : realpath($path);
|
||||
}
|
||||
|
||||
function redirect($url)
|
||||
|
Reference in New Issue
Block a user