uParameters[1]); if($sContainer->sUserId != $sUser->sId && $sUser->sAccessLevel < 20) { throw new UnauthorizedException("You are not authorized to control this container."); } $sError = ""; $sPageContents = ""; $sMainClass = "shift"; $router = new CPHPRouter(); $router->ignore_query = true; $router->routes = array( 0 => array( '^/([0-9]+)/?$' => "module.vps.overview.php", '^/([0-9]+)/(start)/?$' => "module.vps.overview.php", '^/([0-9]+)/(stop)/?$' => "module.vps.overview.php", '^/([0-9]+)/(restart)/?$' => "module.vps.overview.php" ) ); $router->RouteRequest(); $sMainContents = Templater::InlineRender("main.vps", $locale->strings, array( 'error' => $sError, 'contents' => $sPageContents, 'id' => $sContainer->sId )); } catch(NotFoundException $e) { $sMainContents = Templater::InlineRender("error.vps.notfound"); } ?>