kalabox Posted January 6, 2011 Report Share Posted January 6, 2011 Uzliku patesteet vienu lapu un pie logout met aaraa kljuudu Servera kļūda. http://tratra.lv/index.php?m=account_logout izgūšanas laikā vietne konstatēja kļūdu. Iespējams, tam tiek veikti uzturēšanas darbi, vai arī tas ir nepareizi konfigurēts. ---------------------- <?php $SESSION->logout(); redirect(VIR_PATH); ?> Quote Link to comment Share on other sites More sharing options...
labaiss Posted January 6, 2011 Report Share Posted January 6, 2011 vajag apskatīt funkciju - logout() & redirec() un pārbaudīt konstanti VIR_PATH Protams, ja es nekļūdos... Quote Link to comment Share on other sites More sharing options...
kalabox Posted January 6, 2011 Author Report Share Posted January 6, 2011 reku logout funkcija function logout () { global $DB; global $PREFS; call_module_function ('members', 'logout', array ('username' => $this->conf['username'])); $DB->query ('UPDATE ' . DB_PREFIX . 'members SET lastvisit=\'' . (time () - $PREFS->conf['user_timeout'] * 60) . '\' WHERE member_id=\'' . $this->conf['member_id'] . '\' LIMIT 1'); setcookie ('sessdata', '', time () - 60, '/'); $_SESSION['member_id'] = ''; $_SESSION['member_code'] = ''; $_SESSION['member_name'] = ''; unset ($_SESSION[member_id]); unset ($_SESSION[member_code]); unset ($_SESSION[member_name]); unset ($this[conf]); session_destroy (); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.