Files
anpdf/app/confg.php
2021-11-11 19:41:40 +00:00

89 lines
2.9 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
ini_set('display_errors', 0);
ini_set('display_startup_errors', 0);
error_reporting(E_ALL);
if (isset($_SERVER['HTTP_HOST']))
define('SITE', 'https://'.$_SERVER['HTTP_HOST'].'/');
if (isset($_SERVER['HTTP_HOST']))
define('SITEPATH', $_SERVER['DOCUMENT_ROOT'].'/');
else
define('SITEPATH', dirname(__FILE__));
if (SITE == 'https://klan.argumenti.ru/'){
define('PDFSOURCE', '/vhosts/an/httpdocs/pub/files/pdf/pdf/');
define('HTMLSOURCE', '/vhosts/an/httpdocs/pub/files/html/');
}
else {
define('PDFSOURCE', SITEPATH.'pub/source/');
}
define('PDFPATH', '/pub/files/pdf/');
define('PGPATH', '/pub/files/pages/');
define('PDFDIR', SITEPATH.PDFPATH);
define('PGDIR', SITEPATH.PGPATH);
define('APPPATH', SITEPATH);
define('VIEWPATH', SITEPATH.'views/');
define('API', 'http://api.argumenti.ru/');
define('IMGSRV', 'https://imgurl.argumenti.ru/');
define('OFFMAIL', 'zakazknig@argumenti.ru'); // куда отправить письмо о поступлении заказа на бумагу
//define('OFFMAIL', 'ak@argumenti.ru'); // куда отправить письмо о поступлении заказа на бумагу
define('ONMAIL', 'ak@argumenti.ru'); // куда отправить письмо о получении заказа на электронную
/* тестовый магазин ЮКАССА */
//if (SITE == 'http://vklan.argumenti.ru/'){
define('YID', '767032'); // магазин АН
define('YKEY', 'live_fS8znRxo23zYD9I3rkeH3yDYhtpQmh3i5Lbf73QCW3I');
//define('YID', '845164'); // магазин АН
//define('YKEY', 'live_ONSXcCxVU10UZtzHdR59io7oZ5N4ZbCNXqw_RrxNxE4');
//}
//else {
// define('YID', '812455');
// define('YKEY', 'test_7asbXctnircUsmb_DhtYWSfxMiWzPgJBDF7OoZ0XfvQ');
//}
define('LOGDIR', SITEPATH.'logs/'); // папка куда падают логи
# отправка писем с клана
set('klanmail', [
'mail'=>'klan@argumenti.ru',
'password'=>'Rt90Fg',
'port'=>25,
'host'=>'smtp.argumenti.ru'
]);
/** отправка уведомлений */
/*set('noreply',
[
'login' => 'noreply@argumenti.ru',
'name' => 'Аргументы Недели',
'password'=>'eessoj8Let',
'port'=>465,
'host'=>'smtp.mail.ru',
'secure' => 'ssl'
]);*/
set('noreply',
[
'login' => 'grig@argumenti.ru',
'name' => 'Аргументы Недели',
'password'=>'Rt90Fg',
'port'=>25,
'host'=>'smtp.argumenti.ru'
]);
db_config('argumentiru', 'mysql:host=mysql;dbname=argumentiru', 'newser', 'Chjk90yuiREY');
db_config('reader', 'mysql:host=mysql;dbname=argumentiru', 'reader', 'ghjyjkUIOhg56Fh');
db_config('chitatel', 'mysql:host=mysql;dbname=argumentiru', 'chitatel', 'hjYu78kl*90Uio');
db_config('klan', 'mysql:host=mysql;dbname=argumentiru', 'klan', 'zpFGhyuRty765Jk');
// GRANT ALL PRIVILEGES ON argumentiru.* TO 'hitatel'@'%' IDENTIFIED BY 'hjYu78kl*90Uio'