changed mysql container name
This commit is contained in:
@@ -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']) {
|
||||||
|
|||||||
@@ -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') {
|
||||||
|
|||||||
@@ -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'])) {
|
||||||
|
|||||||
@@ -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'])) {
|
||||||
|
|||||||
@@ -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 = "";
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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'] . ";";
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
Reference in New Issue
Block a user