Browse Source

save traf flag

rajven 4 years ago
parent
commit
6eb78b3861
2 changed files with 4 additions and 1 deletions
  1. 3 0
      html/admin/iplist/index.php
  2. 1 1
      scripts/parse_flow.pl

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

@@ -40,6 +40,7 @@ if (isset($_POST["ApplyForAll"])) {
     $a_dhcp_acl = $_POST["a_dhcp_acl"];
     $a_dhcp_acl = $_POST["a_dhcp_acl"];
     $a_queue = $_POST["a_queue_id"] * 1;
     $a_queue = $_POST["a_queue_id"] * 1;
     $a_group = $_POST["a_group_id"] * 1;
     $a_group = $_POST["a_group_id"] * 1;
+    $a_traf = $_POST["a_traf"] * 1;
     $msg="Массовое изменение пользователей!";
     $msg="Массовое изменение пользователей!";
     foreach ($auth_id as $key => $val) {
     foreach ($auth_id as $key => $val) {
         if ($val) {
         if ($val) {
@@ -49,6 +50,7 @@ if (isset($_POST["ApplyForAll"])) {
             $auth['queue_id'] = $a_queue;
             $auth['queue_id'] = $a_queue;
             $auth['dhcp'] = $a_dhcp;
             $auth['dhcp'] = $a_dhcp;
             $auth['dhcp_acl'] = $a_dhcp_acl;
             $auth['dhcp_acl'] = $a_dhcp_acl;
+            $auth['save_traf'] = $a_traf;
             update_record($db_link, "User_auth", "id='" . $val . "'", $auth);
             update_record($db_link, "User_auth", "id='" . $val . "'", $auth);
             }
             }
         }
         }
@@ -120,6 +122,7 @@ print_navigation($page_url,$page,$displayed,$count_records[0],$total);
 <td>Шейпер&nbsp<?php print_queue_select($db_link, 'a_queue_id', 0); ?></td>
 <td>Шейпер&nbsp<?php print_queue_select($db_link, 'a_queue_id', 0); ?></td>
 <td>Dhcp&nbsp<?php print_qa_select('a_dhcp', 1); ?></td>
 <td>Dhcp&nbsp<?php print_qa_select('a_dhcp', 1); ?></td>
 <td>Dhcp-acl&nbsp<?php print_dhcp_acl_select('a_dhcp_acl',''); ?></td>
 <td>Dhcp-acl&nbsp<?php print_dhcp_acl_select('a_dhcp_acl',''); ?></td>
+<td>Save traffic&nbsp<?php print_qa_select('a_traf',1); ?></td>
 <td>&nbsp<input type="submit" onclick="return confirm('Применить для выделенных?')" name="ApplyForAll" value="Применить"></td>
 <td>&nbsp<input type="submit" onclick="return confirm('Применить для выделенных?')" name="ApplyForAll" value="Применить"></td>
 <td align=right><input type="submit" onclick="return confirm('Удалить выделенных?')" name="removeauth" value="Удалить"></td>
 <td align=right><input type="submit" onclick="return confirm('Удалить выделенных?')" name="removeauth" value="Удалить"></td>
 </tr>
 </tr>

+ 1 - 1
scripts/parse_flow.pl

@@ -129,7 +129,7 @@ if (!$first_step) {
     }
     }
 $line_count++;
 $line_count++;
 push(@input_buf,$line);
 push(@input_buf,$line);
-if ($line_count < 5000) { next; }
+if ($line_count < 50000) { next; }
 $line_count = 0;
 $line_count = 0;
 my @tmp = @input_buf;
 my @tmp = @input_buf;
 undef @input_buf;
 undef @input_buf;