sql delete replaced by delete flag
log list (simple), log categories
minor bug fixes in css
This commit is contained in:
Ricsi
2016-12-30 18:00:05 +01:00
parent 664097a976
commit 5a78b09a38
39 changed files with 557 additions and 92 deletions

View File

@@ -1,5 +1,13 @@
<?php
if ($from == 'coach') {
$log_c = 'admin_logout';
}
elseif ($from == 'parent') {
$log_c = 'kid_logout';
}
log::register($log_c, $_COOKIE['badminton_'.$from.'_user']);
setcookie('badminton_'.$from.'_user', 'null', time()-60*60*72, '/');
unset($_COOKIE['badminton_'.$from.'_user']);
header('Location: http://' . $_SERVER['HTTP_HOST']);