17 lines
310 B
PHP
17 lines
310 B
PHP
|
|
<?
|
||
|
|
|
||
|
|
include_once("module/engine.php");
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
ini_set('display_errors','Off');
|
||
|
|
|
||
|
|
if(!file_exists($_SERVER['REQUEST_URI'])){
|
||
|
|
$a = substr($_SERVER['REQUEST_URI'],-1,1);
|
||
|
|
if($a!='/' and $_SERVER['QUERY_STRING']==''){
|
||
|
|
\Site::redirect301($_SERVER['REQUEST_URI'].'/');
|
||
|
|
}
|
||
|
|
}
|
||
|
|
Site::render();
|
||
|
|
Core::end();
|