Server IP : 185.86.78.101 / Your IP : 216.73.216.108 Web Server : Apache System : Linux 675867-vds-valikoshka1996.gmhost.pp.ua 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /www/wwwroot/mifepriston.org/config/ |
Upload File : |
<?php $params = require __DIR__ . '/params.php'; $db = require __DIR__ . '/db.php'; $mainLang = $params['mainlang']; $config = [ 'id' => 'mifr', 'basePath' => dirname(__DIR__), 'language' => $mainLang, 'timeZone' => 'Europe/Kiev', 'bootstrap' => ['log'], 'aliases' => [ '@bower' => '@vendor/bower-asset', '@npm' => '@vendor/npm-asset', ], 'components' => [ 'session' => [ 'cookieParams' => [ 'httpOnly' => true, 'secure' => true, // 'sameSite' => PHP_VERSION_ID >= 70300 ? yii\web\Cookie::SAME_SITE_LAX : null, ], ], 'request' => [ 'cookieValidationKey' => 'S3eL8_mHlXxAprivdnFyDaocdI0Uyd29', 'csrfCookie' => [ 'httpOnly' => true, 'secure' => true, // 'sameSite' => PHP_VERSION_ID >= 70300 ? yii\web\Cookie::SAME_SITE_LAX : null, ], ], 'cache' => [ // 'class' => 'yii\caching\FileCache', 'class' => YII_ENV_DEV ? 'yii\caching\DummyCache' : 'yii\caching\FileCache', ], 'user' => [ 'identityClass' => 'app\models\User', 'enableAutoLogin' => true, ], 'errorHandler' => [ 'errorAction' => 'site/error', ], 'mailer' => [ 'class' => 'yii\swiftmailer\Mailer', 'useFileTransport' => YII_ENV_DEV, ], 'log' => [ 'traceLevel' => YII_DEBUG ? 3 : 0, 'targets' => [ [ 'class' => 'yii\log\FileTarget', 'levels' => ['error', 'warning'], ], ], ], 'db' => $db, 'urlManager' => [ 'enablePrettyUrl' => true, 'showScriptName' => false, 'rules' => [ [ 'pattern' => '<lang:ru>/<query:(\?.+)?>', 'route' => 'site/index', 'defaults' => ['lang' => $mainLang, 'query' => ''], ], [ 'pattern' => '<lang:ru>/contact/<query:(\?.+)?>', 'route' => 'site/contact', 'defaults' => ['lang' => $mainLang, 'query' => ''], ], [ 'pattern' => '<lang:ru>/privacy/<query:(\?.+)?>', 'route' => 'site/privacy', 'defaults' => ['lang' => $mainLang, 'query' => ''], ] ], ], 'i18n' => [ 'translations' => [ 'app*' => [ 'class' => 'yii\i18n\PhpMessageSource', 'fileMap' => [ 'app' => 'app.php', ], ], 'cart' => [ 'class' => 'yii\i18n\PhpMessageSource', 'fileMap' => [ 'cart' => 'cart.php', ], ], 'status' => [ 'class' => 'yii\i18n\PhpMessageSource', 'fileMap' => [ 'status' => 'status.php', ], ], ], ], 'smsGate' => [ 'class' => 'app\components\SmsFly', 'login' => '380988272721', 'password' => 'seriO%034Fas', 'sender' => 'InfoCentr', ], ], 'params' => $params, 'modules' => [ 'admin' => [ 'class' => 'app\modules\admin\Module', ], ], ]; if (YII_ENV_DEV) { // configuration adjustments for 'dev' environment $config['bootstrap'][] = 'debug'; $config['modules']['debug'] = [ 'class' => 'yii\debug\Module', // uncomment the following to add your IP if you are not connecting from localhost. //'allowedIPs' => ['127.0.0.1', '::1'], ]; $config['bootstrap'][] = 'gii'; $config['modules']['gii'] = [ 'class' => 'yii\gii\Module', // uncomment the following to add your IP if you are not connecting from localhost. //'allowedIPs' => ['127.0.0.1', '::1'], ]; } return $config;