|
|
@ -15,6 +15,7 @@ $_CVM = true;
|
|
|
|
require("includes/include.base.php");
|
|
|
|
require("includes/include.base.php");
|
|
|
|
|
|
|
|
|
|
|
|
$sMainContents = "";
|
|
|
|
$sMainContents = "";
|
|
|
|
|
|
|
|
$sMainClass = "";
|
|
|
|
$sPageTitle = "";
|
|
|
|
$sPageTitle = "";
|
|
|
|
|
|
|
|
|
|
|
|
// Initialize some variables to ensure they are available through the application.
|
|
|
|
// Initialize some variables to ensure they are available through the application.
|
|
|
@ -29,6 +30,7 @@ $mainrouter = new CPHPRouter();
|
|
|
|
$mainrouter->routes = array(
|
|
|
|
$mainrouter->routes = array(
|
|
|
|
0 => array(
|
|
|
|
0 => array(
|
|
|
|
'^/?$' => "module.home.php",
|
|
|
|
'^/?$' => "module.home.php",
|
|
|
|
|
|
|
|
'^/containers/?$' => "module.list.php",
|
|
|
|
'^/login/?$' => "module.login.php",
|
|
|
|
'^/login/?$' => "module.login.php",
|
|
|
|
'^/logout/?$' => "module.logout.php",
|
|
|
|
'^/logout/?$' => "module.logout.php",
|
|
|
|
'^/([0-9]+)(/.*)?$' => "module.vps.php"
|
|
|
|
'^/([0-9]+)(/.*)?$' => "module.vps.php"
|
|
|
@ -39,7 +41,8 @@ $mainrouter->RouteRequest();
|
|
|
|
|
|
|
|
|
|
|
|
echo(Templater::InlineRender("main", $locale->strings, array(
|
|
|
|
echo(Templater::InlineRender("main", $locale->strings, array(
|
|
|
|
'title' => $sPageTitle,
|
|
|
|
'title' => $sPageTitle,
|
|
|
|
'main' => $sMainContents
|
|
|
|
'main' => $sMainContents,
|
|
|
|
|
|
|
|
'main-class' => $sMainClass
|
|
|
|
)));
|
|
|
|
)));
|
|
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
?>
|
|
|
|