mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-01 20:04:51 +02:00
Fix bug 451: improvement
small problem with reconnexion after session timeout add auto-login function all staff for session (connexion, auto-login and logout) is now in include/user.inc.php git-svn-id: http://piwigo.org/svn/trunk@1511 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -35,24 +35,6 @@ include(PHPWG_ROOT_PATH.'include/section_init.inc.php');
|
||||
// +-----------------------------------------------------------------------+
|
||||
check_status(ACCESS_GUEST);
|
||||
|
||||
//---------------------------------------------------------------------- logout
|
||||
if ( isset( $_GET['act'] )
|
||||
and $_GET['act'] == 'logout'
|
||||
and isset( $_COOKIE[session_name()] ) )
|
||||
{
|
||||
// cookie deletion if exists
|
||||
$_SESSION = array();
|
||||
session_unset();
|
||||
session_destroy();
|
||||
setcookie(session_name(),'',0,
|
||||
ini_get('session.cookie_path'), ini_get('session.cookie_domain') );
|
||||
redirect( make_index_url() );
|
||||
}
|
||||
if ($user['is_the_guest'] and !$conf['guest_access'])
|
||||
{
|
||||
redirect (get_root_url().'identification.php');
|
||||
}
|
||||
|
||||
//---------------------------------------------- change of image display order
|
||||
if (isset($_GET['image_order']))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user