cookie and ob; domain config

This commit is contained in:
Ricsi
2019-03-28 22:50:54 +00:00
parent 999ace3149
commit 2cf8e29367
10 changed files with 153 additions and 164 deletions

View File

@@ -97,10 +97,19 @@ $smarty->assign('error_msg', $error_msg);
//SQL KAPCSOLAT BEÁLLÍTÁSA
if ($_SERVER['HTTP_HOST'] == 'badmintoncoach-demo.hu') $sql = new sql('bcd_mysql','root','','badminton_coach');
else $sql = new sql('localhost','tollashodos','uprRscU8bGpJ','tollashodos');
else $sql = new sql('localhost','id9073794_tollashodos','uprRscU8bGpJ','id9073794_tollashodos');
$dev = $_SERVER['HTTP_HOST'] == 'badmintoncoach-demo.hu';
$config = array();
if ($dev) {
$config['domain'] = 'badmintoncoach-demo.hu';
}
else {
$config['domain'] = '000webhostapp.com';
}
//var_dump($sql);
//echo $_GET['page'];