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