Changeset 405 for trunk/picture.php


Ignore:
Timestamp:
Mar 31, 2004, 10:43:09 PM (20 years ago)
Author:
z0rglub
Message:

redirections modification : use of a HTML refresh page instead of header PHP
function. The purpose is to avoid redirections failure when extra characters
are found in included PHP files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/picture.php

    r402 r405  
    181181      // category page
    182182      $url = add_session_id( $url_home );
    183       header( 'Request-URI: '.$url );
    184       header( 'Content-Location: '.$url ); 
    185       header( 'Location: '.$url );
    186       exit();
     183      redirect( $url );
    187184    }
    188185    else if ( $prev < 0 )
     
    196193      $url = add_session_id( $url, true);
    197194    }
    198     header( 'Request-URI: '.$url );
    199     header( 'Content-Location: '.$url ); 
    200     header( 'Location: '.$url );
    201     exit();
     195    redirect( $url );
    202196  }
    203197}
     
    297291{
    298292  $refresh= $_GET['slideshow'];
    299   $url_link = $picture['next']['url'];
     293  $url_link = $picture['next']['url'].'&amp;slideshow='.$refresh;
    300294}
    301295
Note: See TracChangeset for help on using the changeset viewer.