Add include verification

feature/node-rewrite
Sven Slootweg 13 years ago
parent a639e71555
commit d2a0253d6e

@ -11,6 +11,8 @@
* licensing text. * licensing text.
*/ */
if(!isset($_CVM)) { die("Unauthorized."); }
$sContainerList = array(); $sContainerList = array();
if($result = mysql_query_cached("SELECT * FROM containers")) if($result = mysql_query_cached("SELECT * FROM containers"))

@ -11,6 +11,8 @@
* licensing text. * licensing text.
*/ */
if(!isset($_CVM)) { die("Unauthorized."); }
try try
{ {
$sUserEntry = new User($router->uParameters[1]); $sUserEntry = new User($router->uParameters[1]);

@ -11,6 +11,8 @@
* licensing text. * licensing text.
*/ */
if(!isset($_CVM)) { die("Unauthorized."); }
$result = mysql_query_cached("SELECT * FROM users ORDER BY `AccessLevel` DESC"); $result = mysql_query_cached("SELECT * FROM users ORDER BY `AccessLevel` DESC");
$sUserList = array(); $sUserList = array();

@ -11,6 +11,8 @@
* licensing text. * licensing text.
*/ */
if(!isset($_CVM)) { die("Unauthorized."); }
$sPageContents .= Templater::InlineRender("vps.console", $locale->strings, array( $sPageContents .= Templater::InlineRender("vps.console", $locale->strings, array(
'host' => htmlspecialchars($_SERVER['SERVER_NAME']) 'host' => htmlspecialchars($_SERVER['SERVER_NAME'])
)); ));

Loading…
Cancel
Save