Logout fix test
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / eventz / logout.inc
... / ...
CommitLineData
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?>
This page took 0.204864 seconds and 4 git commands to generate.