cookie and ob; domain config
This commit is contained in:
11
common.php
11
common.php
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user