Responsive design;
New menus (members); Improved interface for parent editing;
This commit is contained in:
28
common.php
28
common.php
@@ -29,8 +29,25 @@ spl_autoload_register(function ($class_name) {
|
||||
if (!in_array($class_name, $exception)) include '_class/class_' . $class_name . '.php';
|
||||
});
|
||||
|
||||
$months = array(
|
||||
1 => 'január',
|
||||
2 => 'február',
|
||||
3 => 'március',
|
||||
4 => 'április',
|
||||
5 => 'május',
|
||||
6 => 'június',
|
||||
7 => 'július',
|
||||
8 => 'augusztus',
|
||||
9 => 'szeptember',
|
||||
10 => 'október',
|
||||
11 => 'november',
|
||||
12 => 'december',
|
||||
);
|
||||
|
||||
//SMARTY BEÁLLÍTÁSA
|
||||
require('../Smarty/Smarty.class.php');
|
||||
//require('../Smarty/Smarty.class.php');
|
||||
if ($_SERVER['HTTP_HOST'] == 'badmintoncoach.hu') require('../Smarty/Smarty.class.php');
|
||||
else $sql = require('Smarty/Smarty.class.php');
|
||||
|
||||
$smarty = new Smarty();
|
||||
|
||||
@@ -39,16 +56,21 @@ $smarty->setCompileDir('template/templates_c');
|
||||
$smarty->setCacheDir('template/cache');
|
||||
$smarty->setConfigDir('template/configs');
|
||||
|
||||
$smarty->assign('months', $months);
|
||||
|
||||
//SQL KAPCSOLAT BEÁLLÍTÁSA
|
||||
$sql = new sql('localhost','root','','badminton_coach');
|
||||
if ($_SERVER['HTTP_HOST'] == 'badmintoncoach.hu') $sql = new sql('localhost','root','','badminton_coach');
|
||||
else $sql = new sql('localhost','tollashodos','uprRscU8bGpJ','tollashodos');
|
||||
|
||||
//var_dump($sql);
|
||||
|
||||
$logout = false;
|
||||
if (isset($_COOKIE['badminton_coach_user'])) {
|
||||
$user = new user();
|
||||
$user->set_user_data_by_id($_COOKIE['badminton_coach_user']);
|
||||
$logout = true;
|
||||
//var_dump($user);
|
||||
}
|
||||
$smarty->assign('can_logout', $logout);
|
||||
|
||||
//$page = new page();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user