26 lines
857 B
PHP
26 lines
857 B
PHP
<?php
|
|
|
|
ini_set('display_errors', 1);
|
|
ini_set('display_startup_errors', 1);
|
|
|
|
|
|
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__));
|
|
|
|
define('PDFDIR', '/vhosts/anpdf/app/pub/files/pdf/');
|
|
define('PGDIR', '/vhosts/anpdf/app/pub/files/pages/');
|
|
define('APPPATH', SITEPATH);
|
|
define('VIEWPATH', SITEPATH.'views/');
|
|
define('API', 'http://api.argumenti.ru/');
|
|
define('IMGSRV', 'https://imgurl.argumenti.ru/');
|
|
|
|
db_config('argumentiru', 'mysql:host=mysql;dbname=argumentiru', 'newser', 'Chjk90yuiREY');
|
|
db_config('reader', 'mysql:host=mysql;dbname=argumentiru', 'reader', 'ghjyjkUIOhg56Fh');
|
|
db_config('writer', 'mysql:host=mysql;dbname=argumentiru', 'chitatel', 'hjYu78kl*90Uio');
|
|
|