fwtrash/index.php
2024-03-29 15:47:35 +01:00

28 lines
542 B
PHP

<?php
session_start();
error_reporting(0);
ini_set('display_errors', 0);
require_once __DIR__ . '/inc/tpl.class.php';
require_once __DIR__ . '/inc/router.inc.php';
$tpl = (object)$tpl;
$generated = round(microtime(true) - $_SERVER['REQUEST_TIME_FLOAT'], 5);
if(!@$tpl->debug) {
tpl::view($tpl->file,
array_merge([
'page' => $_page,
'generated' => $generated
],
gettype($tpl->data) !== 'string' ? $tpl->data : [])
);
}
else {
echo "<pre>";
print_r($_content);
echo "</pre>";
}