fontawesome und jeeede menge reworks
All checks were successful
Build and push / Pulling repo on server (push) Successful in 20s
All checks were successful
Build and push / Pulling repo on server (push) Successful in 20s
This commit is contained in:
@ -1,11 +1,8 @@
|
||||
<?php
|
||||
|
||||
session_start();
|
||||
define('DS', DIRECTORY_SEPARATOR);
|
||||
define('ROOT', dirname(__FILE__));
|
||||
|
||||
if($_SERVER['HTTP_HX_REQUEST']!='true')
|
||||
exit(file_get_contents(ROOT.DS.'templates'.DS.'mainpage.html'));
|
||||
|
||||
// if(file_exists(ROOT.DS.'inc'.DS.'config.inc.php'))
|
||||
// include_once(ROOT.DS.'inc'.DS.'config.inc.php');
|
||||
// else die('ERR: no config file found :(');
|
||||
@ -13,6 +10,12 @@ if($_SERVER['HTTP_HX_REQUEST']!='true')
|
||||
include_once(ROOT.DS.'inc'.DS.'core.php');
|
||||
includeManagement();
|
||||
|
||||
if($_SERVER['HTTP_HX_REQUEST']!='true')
|
||||
{
|
||||
include(ROOT.DS.'templates'.DS.'mainpage.html');
|
||||
die();
|
||||
}
|
||||
|
||||
if($_GET['url'])
|
||||
$url = explode('/',ltrim(parse_url($_GET['url'], PHP_URL_PATH),'/'));
|
||||
else $url = array_filter(explode('/',ltrim(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH),'/')));
|
||||
|
Reference in New Issue
Block a user