From 11e22806f5181a722cdddb84c41dd594d269a113 Mon Sep 17 00:00:00 2001 From: Andrey Kuvshinov Date: Tue, 7 Apr 2020 17:39:07 +0300 Subject: [PATCH] add price --- app/confg.php | 13 +++++++++++-- app/index.php | 4 ++-- app/routes/price.php | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+), 4 deletions(-) create mode 100644 app/routes/price.php 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 @@