fwtrash/index.php

26 lines
595 B
PHP
Raw Permalink Normal View History

2024-03-29 14:47:35 +00:00
<?php
2024-03-29 16:30:25 +00:00
require_once __DIR__ . '/config.php';
require_once __DIR__ . '/inc/db.inc.php';
2024-03-29 14:47:35 +00:00
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,
2024-03-29 16:30:25 +00:00
'generated' => $generated,
'basepath' => $config->env->basepath
2024-03-29 14:47:35 +00:00
],
gettype($tpl->data) !== 'string' ? $tpl->data : [])
);
}
else {
echo "<pre>";
print_r($_content);
echo "</pre>";
}