CAMP part 1, registration, apply, new login screen, wide layout
This commit is contained in:
28
common.php
28
common.php
@@ -47,6 +47,21 @@ $months = array(
|
||||
'12' => 'december',
|
||||
);
|
||||
|
||||
$short_months = array(
|
||||
'01' => 'jan',
|
||||
'02' => 'feb',
|
||||
'03' => 'már',
|
||||
'04' => 'ápr',
|
||||
'05' => 'máj',
|
||||
'06' => 'jún',
|
||||
'07' => 'júl',
|
||||
'08' => 'aug',
|
||||
'09' => 'szept',
|
||||
'10' => 'okt',
|
||||
'11' => 'nov',
|
||||
'12' => 'dec',
|
||||
);
|
||||
|
||||
$days = array(
|
||||
'0' => 'v',
|
||||
'1' => 'h',
|
||||
@@ -57,6 +72,10 @@ $days = array(
|
||||
'6' => 'szo',
|
||||
);
|
||||
|
||||
$error_msg = array(
|
||||
1 => 'Ezzel az e-mail címmel már regisztráltak!',
|
||||
);
|
||||
|
||||
//SMARTY BEÁLLÍTÁSA
|
||||
//require('../Smarty/Smarty.class.php');
|
||||
require('../Smarty/Smarty.class.php');
|
||||
@@ -70,8 +89,10 @@ $smarty->setCacheDir('template/cache');
|
||||
$smarty->setConfigDir('template/configs');
|
||||
|
||||
$smarty->assign('months', $months);
|
||||
$smarty->assign('short_months', $short_months);
|
||||
$smarty->assign('days', $days);
|
||||
$smarty->assign('today', date('Y-m-d'));
|
||||
$smarty->assign('error_msg', $error_msg);
|
||||
|
||||
//SQL KAPCSOLAT BEÁLLÍTÁSA
|
||||
if ($_SERVER['HTTP_HOST'] == 'badmintoncoach.hu') $sql = new sql('bc_mysql','root','','badminton_coach');
|
||||
@@ -128,6 +149,13 @@ elseif ($_GET['page'] == 'coach_preview' && (isset($_COOKIE['badminton_admin_use
|
||||
//var_dump($user);
|
||||
}
|
||||
}
|
||||
elseif ($_GET['page'] == 'tabor' && (isset($_COOKIE['badminton_camp_user']))) {
|
||||
$user = new camp_user();
|
||||
$user->set_user_data_by_id($_COOKIE['badminton_camp_user']);
|
||||
$logout = true;
|
||||
$smarty->assign('user_login', $user);
|
||||
//var_dump($user);
|
||||
}
|
||||
|
||||
$smarty->assign('can_logout', $logout);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user