diff --git a/app/confg.php b/app/confg.php index b3fcd42..d9e6c50 100644 --- a/app/confg.php +++ b/app/confg.php @@ -3,5 +3,14 @@ ini_set('display_errors','off'); error_reporting(E_ALL); -define('SITE', 'http://'.$_SERVER['HTTP_HOST'].'/'); -define('SITEPATH', $_SERVER['DOCUMENT_ROOT'].'/'); +if (isset($_SERVER['HTTP_HOST'])) + define('SITE', 'http://'.$_SERVER['HTTP_HOST'].'/'); + +if (isset($_SERVER['HTTP_HOST'])) + define('SITEPATH', $_SERVER['DOCUMENT_ROOT'].'/'); +else + define('SITEPATH', dirname(__FILE__)); + +db_config('argumentiru', 'mysql:host=mysql;dbname=argumentiru', 'newser', 'Chjk90yuiREY'); +db_config('reader', 'mysql:host=mysql;dbname=argumentiru', 'reader', 'ghjyjkUIOhg56Fh'); + diff --git a/app/index.php b/app/index.php index 5e2e110..260dd07 100644 --- a/app/index.php +++ b/app/index.php @@ -1,12 +1,12 @@