Making firewall enable config-based

This commit is contained in:
Xkeeper 2015-08-08 23:02:54 -07:00
parent c8f81d7d20
commit 65554021b3

View File

@ -29,7 +29,7 @@
$sql->selectdb($dbname) or die("Another stupid MySQL error happened, panic<br><small>". mysql_error() ."</small>");
if (file_exists("lib/firewall.php")) {
if (file_exists("lib/firewall.php") && t_i($config_firewall)) {
trigger_error("Loading firewall", E_USER_NOTICE);
require 'lib/firewall.php';
}