This commit is contained in:
Ricsi
2017-04-12 20:54:37 +02:00
parent 37ccb2240e
commit accb00c567
5 changed files with 9 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
ini_set('include_path', '../_class/');
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');
if ($_POST['parent_id'] == 'null') {

View File

@@ -2,7 +2,7 @@
//tag listánál ez adja vissza a keresés eredményét
ini_set('include_path', '../_class/');
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');
$filter1 = "";

View File

@@ -8,7 +8,7 @@ foreach ($_POST as $key => $value) {
}
*/
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") {

View File

@@ -25,7 +25,8 @@ spl_autoload_register(function ($class_name) {
'Smarty_Internal_Extension_CodeFrame',
'Smarty_Internal_CompileBase',
'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';
@@ -73,7 +74,7 @@ $smarty->assign('days', $days);
$smarty->assign('today', date('Y-m-d'));
//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');
//var_dump($sql);

3
phpinfo.php Normal file
View File

@@ -0,0 +1,3 @@
<?php
phpinfo();
?>