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.


git-svn-id: http://piwigo.org/svn/trunk@405 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
z0rglub
2004-03-31 20:43:09 +00:00
parent ff1e280227
commit a0033b8b56
11 changed files with 58 additions and 69 deletions
+3 -9
View File
@@ -180,10 +180,7 @@ if ( isset( $_GET['add_fav'] ) )
// there is no favorite picture anymore we redirect the user to the
// category page
$url = add_session_id( $url_home );
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
redirect( $url );
}
else if ( $prev < 0 )
{
@@ -195,10 +192,7 @@ if ( isset( $_GET['add_fav'] ) )
$url = str_replace('&amp;', '&', $picture['prev']['url'] );
$url = add_session_id( $url, true);
}
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
redirect( $url );
}
}
@@ -296,7 +290,7 @@ $refresh = 0;
if ( isset( $_GET['slideshow'] ) and $next )
{
$refresh= $_GET['slideshow'];
$url_link = $picture['next']['url'];
$url_link = $picture['next']['url'].'&amp;slideshow='.$refresh;
}
$title_img = $picture['current']['name'];