From 45542461922a115f36334afaf95549e54ebf6f65 Mon Sep 17 00:00:00 2001 From: Xkeeper Date: Sun, 9 Aug 2015 04:20:21 -0700 Subject: [PATCH] removing unused code from lib/functions --- lib/function.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/function.php b/lib/function.php index c4a4638..5c0e536 100644 --- a/lib/function.php +++ b/lib/function.php @@ -38,7 +38,7 @@ $sql->selectdb($dbname) or die("Another stupid MySQL error happened, panic
". mysql_error() .""); - if (file_exists("lib/firewall.php") && !filter_int($disable_firewall)) { + if (file_exists("lib/firewall.php") && !filter_bool($disable_firewall)) { require 'lib/firewall.php'; } else { @@ -49,9 +49,6 @@ $_GET = addslashes_array($_GET); $_POST = addslashes_array($_POST); $_COOKIE = addslashes_array($_COOKIE); - $HTTP_GET_VARS = addslashes_array($HTTP_GET_VARS); - $HTTP_POST_VARS = addslashes_array($HTTP_POST_VARS); - $HTTP_COOKIE_VARS = addslashes_array($HTTP_COOKIE_VARS); } if(!ini_get('register_globals')){ $supers=array('_ENV', '_SERVER', '_GET', '_POST', '_COOKIE',);