first commit
This commit is contained in:
24
index.php
Normal file
24
index.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', 1);
|
||||
|
||||
$_page = isset($_GET['p']) ? $_GET['p'] : '';
|
||||
|
||||
require_once('./inc/tpl.class.php');
|
||||
require_once('./inc/router.inc.php');
|
||||
|
||||
$tpl = (object)$tpl;
|
||||
|
||||
if(!@$tpl->debug) {
|
||||
tpl::view('tpl/' . $tpl->file,
|
||||
array_merge([
|
||||
'page' => $_page
|
||||
],
|
||||
gettype($tpl->data) !== 'string' ? $tpl->data : [])
|
||||
);
|
||||
}
|
||||
else {
|
||||
echo "<pre>";
|
||||
print_r($_content);
|
||||
echo "</pre>";
|
||||
}
|
Reference in New Issue
Block a user