Тема: Вопрос Вопросы по vBulletin
Показать сообщение отдельно
Старый 21.08.2010, 00:19 Вверх   #2299
Уважаемая личность
 
Аватар для Rak
Rak вне форума
Доп. информация
По умолчанию

Вот что на той строке
PHP код:
header("Location: $url"0302); 
а это кусок той части
Нажми для просмотра
PHP код:
// #############################################################################
/**
* Halts execution and redirects to the specified URL invisibly
*
* @param    string    Destination URL
*/
function exec_header_redirect($url)
{
    global 
$vbulletin;

    
$url create_full_url($url);

    if (
class_exists('vBulletinHook'))
    {
        
// this can be called when we don't have the hook class
        
($hook vBulletinHook::fetch_hook('header_redirect')) ? eval($hook) : false;
    }

    
$url str_replace('&''&'$url); // prevent possible oddity

    
if (strpos($url"\r\n") !== false)
    {
        
trigger_error("Header may not contain more than a single header, new line detected."E_USER_ERROR);
    }

    
header("Location: $url"0302);

    if (
$vbulletin->options['addheaders'] AND (SAPI_NAME == 'cgi' OR SAPI_NAME == 'cgi-fcgi'))
    {
        
// see #24779
        
header('Status: 302 Found');
    }

    
define('NOPMPOPUP'1);
    if (
defined('NOSHUTDOWNFUNC'))
    {
        
exec_shut_down();
    }
    exit;
}

// ############################################################################# 
  Ответить с цитированием
 
Время генерации страницы 0.05044 секунды с 9 запросами