docker #1
This commit is contained in:
@@ -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'] == 'badmintoncoach.hu') $sql = new sql('localhost','root','','badminton_coach');
|
if ($_SERVER['HTTP_HOST'] == 'badmintoncoach.hu') $sql = new sql('bc_mysql','root','','badminton_coach');
|
||||||
else $sql = new sql('localhost','tollashodos','uprRscU8bGpJ','tollashodos');
|
else $sql = new sql('localhost','tollashodos','uprRscU8bGpJ','tollashodos');
|
||||||
|
|
||||||
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'] == 'badmintoncoach.hu') $sql = new sql('localhost','root','','badminton_coach');
|
if ($_SERVER['HTTP_HOST'] == 'badmintoncoach.hu') $sql = new sql('bc_mysql','root','','badminton_coach');
|
||||||
else $sql = new sql('localhost','tollashodos','uprRscU8bGpJ','tollashodos');
|
else $sql = new sql('localhost','tollashodos','uprRscU8bGpJ','tollashodos');
|
||||||
|
|
||||||
$filter1 = "";
|
$filter1 = "";
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ foreach ($_POST as $key => $value) {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
if ($_SERVER['HTTP_HOST'] == 'badmintoncoach.hu') $sql = new sql('localhost','root','','badminton_coach');
|
if ($_SERVER['HTTP_HOST'] == 'badmintoncoach.hu') $sql = new sql('localhost','root','','badminton_coach');
|
||||||
else $sql = new sql('localhost','tollashodos','uprRscU8bGpJ','tollashodos');
|
else $sql = new sql('bc_mysql','tollashodos','uprRscU8bGpJ','tollashodos');
|
||||||
|
|
||||||
|
|
||||||
if ($_POST['checked'] == "true") {
|
if ($_POST['checked'] == "true") {
|
||||||
|
|||||||
@@ -25,7 +25,8 @@ spl_autoload_register(function ($class_name) {
|
|||||||
'Smarty_Internal_Extension_CodeFrame',
|
'Smarty_Internal_Extension_CodeFrame',
|
||||||
'Smarty_Internal_CompileBase',
|
'Smarty_Internal_CompileBase',
|
||||||
'Smarty_Undefined_Variable',
|
'Smarty_Undefined_Variable',
|
||||||
'Smarty_Internal_ParseTree_DqContent'
|
'Smarty_Internal_ParseTree_DqContent',
|
||||||
|
'Smarty_Internal_ParseTree_Dq'
|
||||||
|
|
||||||
);
|
);
|
||||||
if (!in_array($class_name, $exception)) include '_class/class_' . $class_name . '.php';
|
if (!in_array($class_name, $exception)) include '_class/class_' . $class_name . '.php';
|
||||||
@@ -73,7 +74,7 @@ $smarty->assign('days', $days);
|
|||||||
$smarty->assign('today', date('Y-m-d'));
|
$smarty->assign('today', date('Y-m-d'));
|
||||||
|
|
||||||
//SQL KAPCSOLAT BEÁLLÍTÁSA
|
//SQL KAPCSOLAT BEÁLLÍTÁSA
|
||||||
if ($_SERVER['HTTP_HOST'] == 'badmintoncoach.hu') $sql = new sql('localhost','root','','badminton_coach');
|
if ($_SERVER['HTTP_HOST'] == 'badmintoncoach.hu') $sql = new sql('bc_mysql','root','','badminton_coach');
|
||||||
else $sql = new sql('localhost','tollashodos','uprRscU8bGpJ','tollashodos');
|
else $sql = new sql('localhost','tollashodos','uprRscU8bGpJ','tollashodos');
|
||||||
|
|
||||||
//var_dump($sql);
|
//var_dump($sql);
|
||||||
|
|||||||
3
phpinfo.php
Normal file
3
phpinfo.php
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
phpinfo();
|
||||||
|
?>
|
||||||
Reference in New Issue
Block a user