mirror of
https://gh.wpcy.net/https://github.com/netcccyun/easypanel.git
synced 2026-04-23 12:02:23 +08:00
35 lines
No EOL
841 B
PHP
35 lines
No EOL
841 B
PHP
<?php
|
|
date_default_timezone_set('Asia/Shanghai');
|
|
header('Cache-Control: no-cache, must-revalidate');
|
|
define('APPLICATON_ROOT', dirname(__FILE__));
|
|
define('SYS_ROOT', dirname(dirname(__FILE__)) . '/framework');
|
|
define('VHOST_PATH', 1);
|
|
include SYS_ROOT . '/runtime.php';
|
|
$c = $_REQUEST['c'];
|
|
$a = $_REQUEST['a'];
|
|
|
|
if ($c == '') {
|
|
$_REQUEST['c'] = $c = 'index';
|
|
$_REQUEST['a'] = $a = 'main';
|
|
}
|
|
|
|
$tpl = TPL::singleton();
|
|
loadSetting($tpl);
|
|
$vhost = getRole('vhost');
|
|
|
|
if ($vhost) {
|
|
$GLOBALS['user'] = $_SESSION['user'][$vhost];
|
|
|
|
if ($GLOBALS['user']) {
|
|
$tpl->assign('user', $GLOBALS['user']);
|
|
}
|
|
}
|
|
|
|
header('Content-Type: text/html; charset=utf-8');
|
|
$main = dispatch($c, $a);
|
|
$tpl->assign('main', $main);
|
|
$tpl->assign('width', '960');
|
|
$tpl->assign('title', getTitle());
|
|
$tpl->display('noframe.html');
|
|
|
|
?>
|