changed mysql container name

This commit is contained in:
Ricsi
2019-10-01 12:06:31 +02:00
parent 6df69c88ad
commit 5f4599f299
8 changed files with 9 additions and 9 deletions

View File

@@ -2,7 +2,7 @@
//tag listánál ez adja vissza a keresés eredményét //tag listánál ez adja vissza a keresés eredményét
ini_set('include_path', '../_class/'); ini_set('include_path', '../_class/');
include('class_sql.php'); include('class_sql.php');
if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('bcd_mysql','root','','badminton_coach'); if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('cegled_mysql','root','','badminton_coach');
else $sql = new sql('localhost','livingsp_coach','R186er012qw5','livingsp_badminton'); else $sql = new sql('localhost','livingsp_coach','R186er012qw5','livingsp_badminton');
if (empty($_GET['lease_id']) || 'null' == $_GET['lease_id']) { if (empty($_GET['lease_id']) || 'null' == $_GET['lease_id']) {

View File

@@ -2,7 +2,7 @@
ini_set('include_path', '../_class/'); ini_set('include_path', '../_class/');
include('class_sql.php'); include('class_sql.php');
if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('bcd_mysql','root','','badminton_coach'); if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('cegled_mysql','root','','badminton_coach');
else $sql = new sql('localhost','livingsp_coach','R186er012qw5','livingsp_badminton'); else $sql = new sql('localhost','livingsp_coach','R186er012qw5','livingsp_badminton');
if ($_POST['parent_id'] == 'null') { if ($_POST['parent_id'] == 'null') {

View File

@@ -2,7 +2,7 @@
//tag listánál ez adja vissza a keresés eredményét //tag listánál ez adja vissza a keresés eredményét
ini_set('include_path', '../_class/'); ini_set('include_path', '../_class/');
include('class_sql.php'); include('class_sql.php');
if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('bcd_mysql','root','','badminton_coach'); if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('cegled_mysql','root','','badminton_coach');
else $sql = new sql('localhost','livingsp_coach','R186er012qw5','livingsp_badminton'); else $sql = new sql('localhost','livingsp_coach','R186er012qw5','livingsp_badminton');
if (empty($_GET['template_id'])) { if (empty($_GET['template_id'])) {

View File

@@ -2,7 +2,7 @@
//tag listánál ez adja vissza a keresés eredményét //tag listánál ez adja vissza a keresés eredményét
ini_set('include_path', '../_class/'); ini_set('include_path', '../_class/');
include('class_sql.php'); include('class_sql.php');
if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('bcd_mysql','root','','badminton_coach'); if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('cegled_mysql','root','','badminton_coach');
else $sql = new sql('localhost','livingsp_coach','R186er012qw5','livingsp_badminton'); else $sql = new sql('localhost','livingsp_coach','R186er012qw5','livingsp_badminton');
if (empty($_GET['trt_id'])) { if (empty($_GET['trt_id'])) {

View File

@@ -2,7 +2,7 @@
//tag listánál ez adja vissza a keresés eredményét //tag listánál ez adja vissza a keresés eredményét
ini_set('include_path', '../_class/'); ini_set('include_path', '../_class/');
include('class_sql.php'); include('class_sql.php');
if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('bcd_mysql','root','','badminton_coach'); if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('cegled_mysql','root','','badminton_coach');
else $sql = new sql('localhost','livingsp_coach','R186er012qw5','livingsp_badminton'); else $sql = new sql('localhost','livingsp_coach','R186er012qw5','livingsp_badminton');
$filter1 = ""; $filter1 = "";

View File

@@ -3,13 +3,13 @@
//add some security check //add some security check
ini_set('include_path', '../_class/'); ini_set('include_path', '../_class/');
include('class_sql.php'); include('class_sql.php');
if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('bcd_mysql','root','','badminton_coach'); if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('cegled_mysql','root','','badminton_coach');
else $sql = new sql('localhost','livingsp_coach','R186er012qw5','livingsp_badminton'); else $sql = new sql('localhost','livingsp_coach','R186er012qw5','livingsp_badminton');
//lekérjük az aktív tagokat, végigmegyünk rajtuk //lekérjük az aktív tagokat, végigmegyünk rajtuk
//ha az user lejárós //ha az user lejárós
//ha be van állítva expire date és az >= actual_date, akkor nullázás //ha be van állítva expire date és az < actual_date, akkor nullázás
//nullra állítjuk az expire date-et //nullra állítjuk az expire date-et
//ha null és (actual date >= last_deposit + 1 hónap VAGY actual date null), akkor nullázás //ha null és (actual date >= last_deposit + 1 hónap VAGY actual date null), akkor nullázás

View File

@@ -7,7 +7,7 @@ foreach ($_POST as $key => $value) {
trigger_error($_SERVER['HTTP_HOST'], E_USER_NOTICE); trigger_error($_SERVER['HTTP_HOST'], E_USER_NOTICE);
} }
*/ */
if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('bcd_mysql','root','','badminton_coach'); if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('cegled_mysql','root','','badminton_coach');
else $sql = new sql('localhost','livingsp_coach','R186er012qw5','livingsp_badminton'); else $sql = new sql('localhost','livingsp_coach','R186er012qw5','livingsp_badminton');
$check_query = "SELECT * FROM presence WHERE pr_training_tr_id = " . $_POST['tr_id'] . " AND pr_user_kid_uk_id = " . $_POST['user_id'] . ";"; $check_query = "SELECT * FROM presence WHERE pr_training_tr_id = " . $_POST['tr_id'] . " AND pr_user_kid_uk_id = " . $_POST['user_id'] . ";";

View File

@@ -98,7 +98,7 @@ $smarty->assign('today', date('Y-m-d'));
$smarty->assign('error_msg', $error_msg); $smarty->assign('error_msg', $error_msg);
//SQL KAPCSOLAT BEÁLLÍTÁSA //SQL KAPCSOLAT BEÁLLÍTÁSA
if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('bcd_mysql','root','','badminton_coach'); if ($_SERVER['HTTP_HOST'] == 'cegledcoach.hu') $sql = new sql('cegled_mysql','root','','badminton_coach');
else $sql = new sql('localhost','livingsp_coach','R186er012qw5','livingsp_badminton'); else $sql = new sql('localhost','livingsp_coach','R186er012qw5','livingsp_badminton');
$dev = $_SERVER['HTTP_HOST'] == 'cegledcoach.hu'; $dev = $_SERVER['HTTP_HOST'] == 'cegledcoach.hu';