camp fixes; cookie box

This commit is contained in:
Ricsi
2017-06-12 00:31:22 +02:00
parent f17adf4850
commit fa0e1a6488
23 changed files with 534 additions and 208 deletions

View File

@@ -198,6 +198,10 @@ class page {
# TÁBOR JELENTKEZÉS ELUTASÍTÁSA
include('include_deny_apply.php');
break;
case 'remove_apply':
# TÁBOR JELENTKEZÉS ELTÁVOLÍTÁSA A LISTÁBÓL
include('include_remove_apply.php');
break;
case 'apply':
# TÁBORI JELENTKEZŐ ADATAINAK MEGTEKINTÉSE
include('include_apply.php');
@@ -355,14 +359,22 @@ class page {
include('include_camp_apply.php');
break;
case 'jelentkezesek':
# jelentkezés
# jelentkezések
include('include_camp_applies.php');
break;
case 'move_next':
# továbblépés mentés nélkül
include('include_move_next.php');
break;
case 'logout':
# kijelentkezés
$from = "tabor";
include('include_logout.php');
break;
case 'delete_apply':
# jelentkezés törlése
include('include_delete_apply.php');
break;
default:
include('include_camp_information.php');
break;
@@ -379,11 +391,15 @@ class page {
if ('tabor' == $this->get_page() && $this->is_subpage() && 'regisztracio' == $this->get_subpage()) {
if (isset($_COOKIE['bc_reg_error'])) {
$smarty->assign('error_code', $_COOKIE['bc_reg_error']);
setcookie('bc_reg_error', null, time()-60*60);
setcookie('bc_reg_error', null, time()-60*60*3, '/');
}
$smarty->display("register.tpl");
}
else {
if (isset($_COOKIE['bc_reg_error'])) {
$smarty->assign('error_code', $_COOKIE['bc_reg_error']);
setcookie('bc_reg_error', null, time()-60*60*2, '/');
}
$smarty->display("login.tpl");
}
}