fwtrash/index.php

28 lines
542 B
PHP
Raw Normal View History

2024-03-29 14:47:35 +00:00
<?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>";
}