Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osticket
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker
osticket
Commits
4858b753
Commit
4858b753
authored
11 years ago
by
Peter Rotich
Browse files
Options
Downloads
Patches
Plain Diff
Clear ticket locks on logout
Remove any ticket locks staff has on logout.
parent
4a694b2a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scp/logout.php
+33
-29
33 additions, 29 deletions
scp/logout.php
with
33 additions
and
29 deletions
scp/logout.php
+
33
−
29
View file @
4858b753
<?php
/*********************************************************************
logout.php
Log out staff
Destroy the session and redirect to login.php
Peter Rotich <peter@osticket.com>
Copyright (c) 2006-2013 osTicket
http://www.osticket.com
Released under the GNU General Public License WITHOUT ANY WARRANTY.
See LICENSE.TXT for details.
vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/
require
(
'staff.inc.php'
);
//Check token: Make sure the user actually clicked on the link to logout.
if
(
!
$_GET
[
'auth'
]
||
!
$ost
->
validateLinkToken
(
$_GET
[
'auth'
]))
@
header
(
'Location: index.php'
);
$thisstaff
->
logOut
();
//Clear upgrader session on logout.
$_SESSION
[
'ost_upgrader'
]
=
null
;
@
header
(
'Location: login.php'
);
require
(
'login.php'
);
?>
<?php
/*********************************************************************
logout.php
Log out staff
Destroy the session and redirect to login.php
Peter Rotich <peter@osticket.com>
Copyright (c) 2006-2013 osTicket
http://www.osticket.com
Released under the GNU General Public License WITHOUT ANY WARRANTY.
See LICENSE.TXT for details.
vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/
require
(
'staff.inc.php'
);
//Check token: Make sure the user actually clicked on the link to logout.
if
(
!
$_GET
[
'auth'
]
||
!
$ost
->
validateLinkToken
(
$_GET
[
'auth'
]))
@
header
(
'Location: index.php'
);
$thisstaff
->
logOut
();
//Clear any ticket locks the staff has.
TicketLock
::
removeStaffLocks
(
$thisstaff
->
getId
());
//Clear upgrader session on logout.
$_SESSION
[
'ost_upgrader'
]
=
null
;
@
header
(
'Location: login.php'
);
require
(
'login.php'
);
?>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment