From a5cb8ed590a1c00b5c8a4129f3fa6f23ae7b3dc2 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sun, 29 Apr 2012 12:46:09 +0200 Subject: [PATCH] Fixed some verifiers --- frontend/includes/include.base.php | 2 ++ frontend/includes/include.exceptions.php | 2 ++ frontend/includes/include.parsing.php | 2 ++ 3 files changed, 6 insertions(+) diff --git a/frontend/includes/include.base.php b/frontend/includes/include.base.php index 81b8145..74b366f 100644 --- a/frontend/includes/include.base.php +++ b/frontend/includes/include.base.php @@ -11,6 +11,8 @@ * licensing text. */ +if(!isset($_CVM)) { die("Unauthorized."); } + $_CPHP = true; require("cphp/base.php"); require("include.exceptions.php"); diff --git a/frontend/includes/include.exceptions.php b/frontend/includes/include.exceptions.php index c7f0f8d..120ddbb 100644 --- a/frontend/includes/include.exceptions.php +++ b/frontend/includes/include.exceptions.php @@ -11,6 +11,8 @@ * licensing text. */ +if(!isset($_CVM)) { die("Unauthorized."); } + class SshConnectException extends Exception {} class SshAuthException extends Exception {} class SshCommandException extends Exception {} diff --git a/frontend/includes/include.parsing.php b/frontend/includes/include.parsing.php index ba4547e..6e0a0e5 100644 --- a/frontend/includes/include.parsing.php +++ b/frontend/includes/include.parsing.php @@ -11,6 +11,8 @@ * licensing text. */ +if(!isset($_CVM)) { die("Unauthorized."); } + function split_whitespace($input) { return preg_split("/\s+/", $input);