Commit 92a49670 authored by Nico Schallehn's avatar Nico Schallehn

Logoff eigebaut

parent 7e47f534
......@@ -9,6 +9,7 @@ if(isset($_GET['logoff'])){
mysql_query("UPDATE user SET online = '0' WHERE id = '{$_SESSION['chatuserid']}'");
mysql_query("INSERT INTO chat (nachricht, user_id, userchange, hideuser, chat_time) VALUES ('<b>{$users['name']}</b> verl&auml;sst den Chat', '{$_SESSION['chatuserid']}', '1', '1', '".time()."')");
unset($_SESSION);
header('Location: index.php');
}
?>
<!DOCTYPE html>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment