Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/02/2005, 16:38
Avatar de Lord of freaks
Lord of freaks
 
Fecha de Ingreso: octubre-2004
Ubicación: Madrid
Mensajes: 334
Antigüedad: 19 años, 7 meses
Puntos: 2
Aunque no he mirado si es igual el código o no, en realidad no tiene nada es reemplazar la función "redirect" en "/includes/functions.php", como en la versión anterior.

Código PHP:
 function redirect($url)
{
   global 
$db$board_config;
   
           if (!empty(
$db))
           {
                   
$db->sql_close();
           }

   
$server_protocol = ($board_config['cookie_secure']) ? 'https://' 'http://';
   
$server_name preg_replace('#^\/?(.*?)\/?$#''\1'trim($board_config['server_name']));
   
$server_port = ($board_config['server_port'] <> 80) ? ':' trim($board_config['server_port']) : '';
   
$script_name preg_replace('#^\/?(.*?)\/?$#''\1'trim($board_config['script_path']));
   
$script_name = ($script_name == '') ? $script_name '/' $script_name;
   
//$url = preg_replace('#^\/?(.*?)\/?$#', '/\1', trim($url));

   // Redirect via an HTML form for PITA webservers
   
if (@preg_match('/Microsoft|WebSTAR|Xitami/'getenv('SERVER_SOFTWARE')))
   {
      
header('Refresh: 0; URL=' $server_protocol $server_name $server_port $script_name $url);
      echo 
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta http-equiv="refresh" content="0; url=' $server_protocol $server_name $server_port $script_name $url '"><title>Redirect</title></head><body><div align="center">If your browser does not support meta redirection please click <a href="' $server_protocol $server_name $server_port $script_name $url '">HERE</a> to be redirected</div></body></html>';
      exit;
   }

   
// Behave as per HTTP/1.1 spec for others
   //header('Location: ' . $server_protocol . $server_name . $server_port . $script_name . $url);
   
header('Location: ' $url);
   exit;

Un saludo
__________________
Una vez un elemental de rayos mató una tribu entera de tritones.

¡¡ El sólo quería darse un baño !!

http://www.frikilandia.com

Neither Fu Nor Fa