2020-04-01 21:26:25 +03:00
|
|
|
<?php
|
|
|
|
|
|
2020-04-23 14:42:01 +03:00
|
|
|
ini_set('display_errors','on');
|
2020-04-01 21:26:25 +03:00
|
|
|
error_reporting(E_ALL);
|
|
|
|
|
|
2020-04-07 17:39:07 +03:00
|
|
|
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__));
|
|
|
|
|
|
2020-04-23 14:42:01 +03:00
|
|
|
define('PDFDIR', '/vhosts/anpdf/app/pub/files/pdf/');
|
|
|
|
|
define('API', 'http://api.argumenti.ru/');
|
2020-04-08 23:26:46 +03:00
|
|
|
|
2020-04-07 17:39:07 +03:00
|
|
|
db_config('argumentiru', 'mysql:host=mysql;dbname=argumentiru', 'newser', 'Chjk90yuiREY');
|
|
|
|
|
db_config('reader', 'mysql:host=mysql;dbname=argumentiru', 'reader', 'ghjyjkUIOhg56Fh');
|
|
|
|
|
|