Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/01/2009, 15:47
p2pdownloading
Invitado
 
Mensajes: n/a
Puntos:
ie 6.0 header location ayuda

wenas, tengo problemas con una funcion que redireccion las descargas en internet explorer 6.0 o menos

el problema se da con la pagina de sourforge
por ejemplo este es un link que no se puede redireccionar

http://ufpr.dl.sourceforge.net/sourc..._installer.exe

Código PHP:
function spm_downloadfile() {
    global 
$wpdb$user_ID$table_prefix;
    
$id intval(get_query_var('download_id'));
    if(
$id 0) {
    
$file $wpdb->get_row("SELECT id, date, link, permissions FROM ".$table_prefix."dm_downloads WHERE id='$id'");
    if(!
$file) {
      
header('HTTP/1.0 404 Not Found');
      
header('Refresh: 4; URL='.$_SERVER['PHP_SELF']);
      exit(
__('Invalid File ID.''downloads-manager'));
    }
    if((
$file->permissions == 'no' && intval($user_ID) > 0) || $file->permissions == 'yes') {
      
$wpdb->query("UPDATE ".$table_prefix."dm_downloads SET clicks = clicks + 1 WHERE id = '$id'");
       
header("Location:$file->link");die();
    } else {
      echo 
'<script language="JavaScript" type="text/JavaScript">alert("'.__('Sorry, you need to be registered to download this file!','downloads-manager').'");</script>';
  } 
}

se les ocurre alguna solucion

saludos y gracias