aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2006-10-04 20:48:18 +0000
committernikrou <nikrou@piwigo.org>2006-10-04 20:48:18 +0000
commitcbf63ed4e20aa32ba7c3c5b58d1112cc4dcfef11 (patch)
tree3a72ca3c5e575bb406e81e6939ef7c5009344362 /index.php
parent5b8f59202ca841dfa75e4892893d19559ea0ae0e (diff)
Fix bug 451: Auto login does not work properly
svn merge r1492:1493 from trunk svn merge r1510:1511 from trunk svn merge r1521:1522 from trunk svn merge r1523:1524 from trunk svn merge r1525:1526 from trunk auto_login key add to users table: - add update script - update upgrade_1.5.0.php script git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1553 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--index.php18
1 files changed, 0 insertions, 18 deletions
diff --git a/index.php b/index.php
index 00e292c88..cf3d9e434 100644
--- a/index.php
+++ b/index.php
@@ -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']))
{