Старт

This commit is contained in:
2023-11-07 19:51:49 +06:00
commit 86542a157f
5002 changed files with 199551 additions and 0 deletions

21
index.php Normal file
View File

@ -0,0 +1,21 @@
<?php
//Файл index.php обрабатывает все входящие запросы (не переименовывать)
require_once("./resources/metadata/include/tools.php");
$url="";
if (isset($_REQUEST['url'])) { $url = $_REQUEST['url']; } else { $url=$_SERVER['REQUEST_URI']; } //URL страницы
if($url!='' && $url[0]!='/') { $url='/'.$url; }
function getURL()
{
global $url;
return $url;
}
function setURL($new)
{
global $url;
$url=$new;
}
require_once("./site/main.php");