Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function preProcess() { |
||
33 | global $ID; |
||
34 | global $INPUT; |
||
35 | |||
36 | // when logging out during an edit session, unlock the page |
||
37 | $lockedby = checklock($ID); |
||
38 | if($lockedby == $INPUT->server->str('REMOTE_USER')) { |
||
39 | unlock($ID); |
||
40 | } |
||
41 | |||
42 | // do the logout stuff and redirect to login |
||
43 | auth_logoff(); |
||
44 | send_redirect(wl($ID, array('do' => 'login'))); |
||
45 | |||
46 | // should never be reached |
||
47 | throw new ActionException('login'); |
||
48 | } |
||
49 | |||
51 |