Просмотр исходного кода

who have not received a dhcp address for more than 3 days

Roman Dmitriev 2 лет назад
Родитель
Сommit
58f6d65aa2

+ 2 - 0
html/admin/iplist/index.php

@@ -37,6 +37,8 @@ $_SESSION[$page_url]['ip']=$f_ip;
 
 $ip_list_type_filter='';
 if ($ip_type>0) {
+    //suspicious
+    if ($ip_type===3) { $ip_list_type_filter = " and (User_auth.dhcp_action NOT IN ('arp', 'netflow') and (ABS(User_auth.dhcp_time - User_auth.last_found)>259200))"; }
     //dhcp
     if ($ip_type===2) { $ip_list_type_filter = " and (User_auth.dhcp_action NOT IN ('arp', 'netflow'))"; }
     //static

+ 1 - 0
html/inc/common.php

@@ -964,6 +964,7 @@ function print_ip_type_select($qa_name, $qa_value)
     print_select_item(WEB_select_item_every, 0, $qa_value);
     print_select_item(WEB_select_item_static, 1, $qa_value);
     print_select_item(WEB_select_item_dhcp, 2, $qa_value);
+    print_select_item(WEB_select_item_suspicious, 3, $qa_value);
     print "</select>\n";
 }
 

+ 1 - 0
html/inc/languages/english.php

@@ -91,6 +91,7 @@ define("WEB_select_item_lan","Internal");
 define("WEB_select_item_all_ips","All ip");
 define("WEB_select_item_static","Static IP");
 define("WEB_select_item_dhcp","Dhcp IP");
+define("WEB_select_item_suspicious","Suspicious IP");
 define("WEB_select_item_every","All");
 define("WEB_select_item_all","All");
 define("WEB_select_item_events","All events");

+ 1 - 0
html/inc/languages/russian.php

@@ -91,6 +91,7 @@ define("WEB_select_item_lan","Внутренний");
 define("WEB_select_item_all_ips","Всe ip");
 define("WEB_select_item_static","Static IP");
 define("WEB_select_item_dhcp","Dhcp IP");
+define("WEB_select_item_suspicious","Возможно static");
 define("WEB_select_item_every","Все");
 define("WEB_select_item_all","Всё");
 define("WEB_select_item_events","Все события");