示例#1
0
文件: index.php 项目: Vatia13/funtime
$contents_view = $theme . 'component/' . $com_path . '/' . $sec_path . '.php';
if (!file_exists($contents_view)) {
    $contents_view = $theme . 'component/error/default.php';
    $exists = false;
} else {
    $exists = true;
}
if (!$exists) {
    $model = 'error';
} else {
    $model = $com_path;
}
$model_path = $theme . 'component/' . $model . '/.model.php';
if (file_exists($model_path)) {
    include $model_path;
}
$page_title = $com_path;
if ($other_internal and !empty($component) and $exists) {
    require_once $theme . 'internal.php';
} else {
    require_once $theme . 'index.php';
}
if ($timer_generate) {
    echo 'queries: ' . count($DB->sqls) . '<br/>';
    echo 'time queries: ' . $DB->AllTimeQueries . '<br/>';
    echo 'time generate: ' . round($firstTime = $timer->end_timer(), 5) . 's';
    if ($_GET['debug'] == 1) {
        require_once 'lib/dbug.class.php';
        new dbug($DB->sqls);
    }
}