diff --git a/bureau/admin/ip_main.php b/bureau/admin/ip_main.php
index 82328f17..b63b110e 100644
--- a/bureau/admin/ip_main.php
+++ b/bureau/admin/ip_main.php
@@ -4,12 +4,13 @@ include_once("head.php");
$fields = array (
- "delete_id" => array ("get", "integer", ""),
- "id" => array ("post", "integer", 0),
- "ipsub" => array ("post", "string", ""),
- "infos" => array ("post", "string" ,""),
- "s_ipsub" => array ("post", "integer", ""),
- "s_protocol" => array ("post", "string", ""),
+ "delete_id" => array ("get", "integer", ""),
+ "delete_affected_id" => array ("get", "integer", ""),
+ "id" => array ("post", "integer", 0),
+ "ipsub" => array ("post", "string", ""),
+ "infos" => array ("post", "string" ,""),
+ "s_ipsub" => array ("post", "integer", ""),
+ "s_protocol" => array ("post", "string", ""),
);
getFields($fields);
@@ -23,9 +24,15 @@ if (!empty($s_protocol)) {
}
}
+if (!empty($delete_affected_id)) {
+ if (! $authip->ip_affected_delete($delete_affected_id)) {
+ $error="Error during deletion";
+ }
+}
+
if (!empty($delete_id)) {
if (! $authip->ip_delete($delete_id)) {
- $error="Error during recording";
+ $error="Error during deletion";
}
}
@@ -59,7 +66,9 @@ $lac = $authip->list_affected();
echo "
";
echo "".$ac[$ll['protocol']]['name']." | ";
echo "".$ac[$ll['protocol']]['values'][$ll['parameters']]." | ";
- echo "".$list_ip[$ll['authorised_ip_id']]['ip_human']." | ";
+ echo "".$list_ip[$ll['authorised_ip_id']]['infos']." ".$list_ip[$ll['authorised_ip_id']]['ip_human']." | "; ?>
+ |
+ ";
}
?>
@@ -79,7 +88,7 @@ $lac = $authip->list_affected();
-
+
|