Старт
This commit is contained in:
21
index.php
Normal file
21
index.php
Normal 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");
|
||||
Reference in New Issue
Block a user