Commit | Line | Data |
---|---|---|
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); | |
7 | //$log->log('logout',$node['node_id'],'ok',$_SESSION['user_name']); //obnovit kdyz to bude mozne. ~harvie | |
8 | session_unset(); | |
9 | Header("Location: /main"); | |
10 | } | |
11 | ||
12 | ?> |