Add more debug information.
This commit is contained in:
parent
5a11c55553
commit
3ee97e0d76
|
|
@ -92,6 +92,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//test a specific address
|
||||||
|
//$ip_address = '10.7.0.253';
|
||||||
|
//$result = access_allowed($ip_address);
|
||||||
|
|
||||||
//get the settings
|
//get the settings
|
||||||
//$setting_name = $_SESSION['category']['subcategory']['text'];
|
//$setting_name = $_SESSION['category']['subcategory']['text'];
|
||||||
|
|
||||||
|
|
@ -132,7 +136,6 @@
|
||||||
|
|
||||||
//debug info
|
//debug info
|
||||||
if ($debug) {
|
if ($debug) {
|
||||||
echo "possible hacker\n";
|
|
||||||
echo "network-ip ".$array['network-ip']."\n";
|
echo "network-ip ".$array['network-ip']."\n";
|
||||||
echo "to-host ".$array['to-host']."\n";
|
echo "to-host ".$array['to-host']."\n";
|
||||||
echo "\n";
|
echo "\n";
|
||||||
|
|
@ -417,7 +420,16 @@
|
||||||
//use the ip address to get the authorized nodes
|
//use the ip address to get the authorized nodes
|
||||||
foreach($allowed_nodes as $row) {
|
foreach($allowed_nodes as $row) {
|
||||||
if (check_cidr($row['node_cidr'], $ip_address)) {
|
if (check_cidr($row['node_cidr'], $ip_address)) {
|
||||||
|
//debug info
|
||||||
|
if ($debug) {
|
||||||
|
print_r($row);
|
||||||
|
echo $ip_address."\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
//set the allowed to true
|
||||||
$allowed = true;
|
$allowed = true;
|
||||||
|
|
||||||
|
//exit the loop
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue