Changeset 1511 for trunk/index.php


Ignore:
Timestamp:
Jul 28, 2006, 11:34:27 AM (18 years ago)
Author:
nikrou
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r1503 r1511  
    3636check_status(ACCESS_GUEST);
    3737
    38 //---------------------------------------------------------------------- logout
    39 if ( isset( $_GET['act'] )
    40      and $_GET['act'] == 'logout'
    41      and isset( $_COOKIE[session_name()] ) )
    42 {
    43   // cookie deletion if exists
    44   $_SESSION = array();
    45   session_unset();
    46   session_destroy();
    47   setcookie(session_name(),'',0,
    48       ini_get('session.cookie_path'), ini_get('session.cookie_domain') );
    49   redirect( make_index_url() );
    50 }
    51 if ($user['is_the_guest'] and !$conf['guest_access'])
    52 {
    53   redirect (get_root_url().'identification.php');
    54 }
    55 
    5638//---------------------------------------------- change of image display order
    5739if (isset($_GET['image_order']))
Note: See TracChangeset for help on using the changeset viewer.