Initial import

This commit is contained in:
Admin Nasledstvo
2026-05-01 20:52:04 +03:00
commit ac168868ee
10028 changed files with 2337954 additions and 0 deletions
+54
View File
@@ -0,0 +1,54 @@
<?php
set_time_limit(86400);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED);
ini_set("memory_limit", "1024M");
$uri = explode('?', $_SERVER['REQUEST_URI'])[0];
$parts = explode('/', $uri);
if ($parts[sizeof($parts) - 1] != '') {
$q = $_SERVER['QUERY_STRING'] ? '?' . $_SERVER['QUERY_STRING'] : '';
header('Location: ' . $uri . '/' . $q);
exit;
}
if($uri == '/publication/') {
require $_SERVER['DOCUMENT_ROOT'] . '/' . '_public/plugins/pdfjs/web/viewer.php';
exit;
}
if (!function_exists('getallheaders')) {
function getallheaders()
{
$headers = [];
foreach ($_SERVER as $name => $value) {
if (substr($name, 0, 5) == 'HTTP_') {
$headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;
}
}
return $headers;
}
}
session_start();
// comment out the following two lines when deployed to production
//if ($_SERVER['REMOTE_ADDR'] == '31.18.253.142') {
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
//}
require __DIR__ . '/vendor/autoload.php';
require __DIR__ . '/vendor/yiisoft/yii2/Yii.php';
$config = require __DIR__ . '/config/web.php';
(new yii\web\Application($config))->run();
//Chavdar-SVR01