This commit is contained in:
Ricsi
2017-04-12 20:54:37 +02:00
parent 37ccb2240e
commit accb00c567
5 changed files with 9 additions and 5 deletions

View File

@@ -25,7 +25,8 @@ spl_autoload_register(function ($class_name) {
'Smarty_Internal_Extension_CodeFrame',
'Smarty_Internal_CompileBase',
'Smarty_Undefined_Variable',
'Smarty_Internal_ParseTree_DqContent'
'Smarty_Internal_ParseTree_DqContent',
'Smarty_Internal_ParseTree_Dq'
);
if (!in_array($class_name, $exception)) include '_class/class_' . $class_name . '.php';
@@ -73,7 +74,7 @@ $smarty->assign('days', $days);
$smarty->assign('today', date('Y-m-d'));
//SQL KAPCSOLAT BEÁLLÍTÁSA
if ($_SERVER['HTTP_HOST'] == 'badmintoncoach.hu') $sql = new sql('localhost','root','','badminton_coach');
if ($_SERVER['HTTP_HOST'] == 'badmintoncoach.hu') $sql = new sql('bc_mysql','root','','badminton_coach');
else $sql = new sql('localhost','tollashodos','uprRscU8bGpJ','tollashodos');
//var_dump($sql);