diff --git a/_ajax/add_category_to_kid.php b/_ajax/add_category_to_kid.php index ea44d87..0f160c3 100644 --- a/_ajax/add_category_to_kid.php +++ b/_ajax/add_category_to_kid.php @@ -3,7 +3,7 @@ ini_set('include_path', '../_class/'); include('class_sql.php'); if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('bcd_mysql','root','','badminton_coach'); -else $sql = new sql('localhost','id9073794_tollashodos','uprRscU8bGpJ','id9073794_tollashodos'); +else $sql = new sql('localhost','livingsp_admin','135MtxeI8v','livingsp_badminton'); //megnézzük, hogy a KID benne van-e olyan category-val, ami az adott grouphoz tartozik //ha igen, akkor, akkor updateljük a categoryját diff --git a/_ajax/get_parent_data.php b/_ajax/get_parent_data.php index 108627f..148ae49 100644 --- a/_ajax/get_parent_data.php +++ b/_ajax/get_parent_data.php @@ -3,7 +3,7 @@ ini_set('include_path', '../_class/'); include('class_sql.php'); if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('bcd_mysql','root','','badminton_coach'); -else $sql = new sql('localhost','id9073794_tollashodos','uprRscU8bGpJ','id9073794_tollashodos'); +else $sql = new sql('localhost','livingsp_admin','135MtxeI8v','livingsp_badminton'); if ($_POST['parent_id'] == 'null') { return false; diff --git a/_ajax/get_training_template.php b/_ajax/get_training_template.php index 531b468..aa7f6c2 100644 --- a/_ajax/get_training_template.php +++ b/_ajax/get_training_template.php @@ -3,7 +3,7 @@ ini_set('include_path', '../_class/'); include('class_sql.php'); if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('bcd_mysql','root','','badminton_coach'); -else $sql = new sql('localhost','id9073794_tollashodos','uprRscU8bGpJ','id9073794_tollashodos'); +else $sql = new sql('localhost','livingsp_admin','135MtxeI8v','livingsp_badminton'); if (empty($_GET['template_id'])) { echo json_encode(null); diff --git a/_ajax/get_trt_default_price.php b/_ajax/get_trt_default_price.php index 3219cee..3573984 100644 --- a/_ajax/get_trt_default_price.php +++ b/_ajax/get_trt_default_price.php @@ -3,7 +3,7 @@ ini_set('include_path', '../_class/'); include('class_sql.php'); if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('bcd_mysql','root','','badminton_coach'); -else $sql = new sql('localhost','id9073794_tollashodos','uprRscU8bGpJ','id9073794_tollashodos'); +else $sql = new sql('localhost','livingsp_admin','135MtxeI8v','livingsp_badminton'); if (empty($_GET['trt_id'])) { echo json_encode(null); diff --git a/_ajax/get_user_list.php b/_ajax/get_user_list.php index 3c67486..a7a733e 100644 --- a/_ajax/get_user_list.php +++ b/_ajax/get_user_list.php @@ -3,7 +3,7 @@ ini_set('include_path', '../_class/'); include('class_sql.php'); if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('bcd_mysql','root','','badminton_coach'); -else $sql = new sql('localhost','id9073794_tollashodos','uprRscU8bGpJ','id9073794_tollashodos'); +else $sql = new sql('localhost','livingsp_admin','135MtxeI8v','livingsp_badminton'); $filter1 = ""; if (!empty($_POST['uk_filter_name'])) { diff --git a/_ajax/update_presence.php b/_ajax/update_presence.php index 933e733..b6f1db2 100644 --- a/_ajax/update_presence.php +++ b/_ajax/update_presence.php @@ -8,7 +8,7 @@ foreach ($_POST as $key => $value) { } */ if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('bcd_mysql','root','','badminton_coach'); -else $sql = new sql('localhost','id9073794_tollashodos','uprRscU8bGpJ','id9073794_tollashodos'); +else $sql = new sql('localhost','livingsp_admin','135MtxeI8v','livingsp_badminton'); $check_query = "SELECT * FROM presence WHERE pr_training_tr_id = " . $_POST['tr_id'] . " AND pr_user_kid_uk_id = " . $_POST['user_id'] . ";"; diff --git a/common.php b/common.php index 0daabf5..3140de7 100644 --- a/common.php +++ b/common.php @@ -97,7 +97,7 @@ $smarty->assign('error_msg', $error_msg); //SQL KAPCSOLAT BEÁLLÍTÁSA if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('bcd_mysql','root','','badminton_coach'); -else $sql = new sql('localhost','id9073794_tollashodos','uprRscU8bGpJ','id9073794_tollashodos'); +else $sql = new sql('localhost','livingsp_admin','135MtxeI8v','livingsp_badminton'); $dev = $_SERVER['HTTP_HOST'] == 'cegledcoach.hu'; @@ -107,7 +107,7 @@ if ($dev) { $config['domain'] = 'cegledcoach.hu'; } else { - $config['domain'] = '000webhostapp.com'; + $config['domain'] = 'livingsport.hu'; } //var_dump($sql);