source: trunk/services/logout.php @ 72

Last change on this file since 72 was 42, checked in by scdev, 18 years ago

detabbed all files ;P

File size: 541 bytes
Line 
1<?php
2/**
3 * logout.php
4 * Code by Strangecode :: www.strangecode.com :: This document contains copyrighted information
5 */
6
7require_once 'codebase/lib/RecordLock.inc.php';
8
9// Delete this admin's record locks.
10if (!isset($lock) || !is_a($lock, 'RecordLock')) {
11    $lock =& RecordLock::getInstance($auth);
12}
13$lock->removeAll($auth->getVal('user_id'));
14
15// Logout.
16$auth->clearAuth();
17
18App::raiseMsg(sprintf(_("Your session has been logged-out."), null), MSG_SUCCESS, __FILE__, __LINE__);
19App::dieURL(App::getParam('redirect_home_url'));
20
21?>
Note: See TracBrowser for help on using the repository browser.