Commit | Line | Data |
---|---|---|
51ff3226 | 1 | <?php |
2 | ||
3 | function logout() { | |
fd15ea3a | 4 | global $db; |
51ff3226 | 5 | $q="update users set user_action_id=null where user_id='".$_SESSION['user_id']."'"; |
6 | $db->query($q); | |
a49cab65 | 7 | logger::log('logout',$node['node_id'],'ok',$_SESSION['user_name']); |
51ff3226 | 8 | session_unset(); |
9 | Header("Location: /main"); | |
10 | } | |
11 | ||
e23557a6 | 12 | ?> |