From ba6d285f40477d7d284e28efdf94039e1fc9ee5f Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Thu, 29 May 2014 17:19:26 +0200 Subject: Prevent PHP to be executed when not going through index.php. --- utils.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'utils.php') diff --git a/utils.php b/utils.php index 6baafb8..ec3db07 100644 --- a/utils.php +++ b/utils.php @@ -19,6 +19,10 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +if (!defined('LOOKING_GLASS01')) { + exit; +} + function match_ipv4($ip) { return filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4); } -- cgit v1.2.3