Sfoglia il codice sorgente

reread system ip addresses

Serghey Rodin 13 anni fa
parent
commit
f20252098b
2 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 4 1
      web/bulk/ip/index.php
  2. 1 0
      web/templates/admin/list_ip.html

+ 4 - 1
web/bulk/ip/index.php

@@ -11,6 +11,10 @@ $action = $_POST['action'];
 
 if ($_SESSION['user'] == 'admin') {
     switch ($action) {
+        case 'reread IP': exec(VESTA_CMD."v-update-sys-ip", $output, $return_var);
+                header("Location: /list/ip/");
+                exit;
+            break;
         case 'delete': $cmd='v-delete-sys-ip';
             break;
         default: header("Location: /list/ip/"); exit;
@@ -25,5 +29,4 @@ foreach ($ip as $value) {
     exec (VESTA_CMD.$cmd." ".$value, $output, $return_var);
 }
 
-
 header("Location: /list/ip/");

+ 1 - 0
web/templates/admin/list_ip.html

@@ -16,6 +16,7 @@
                                                 <a style="padding: 0 4px 0 12px" class="select-controls" href='javascript:checkedAll("objects");'> <?php print _('toggle all');?> </a>
                                                 <select style="margin:0 2px 0 0px;" name="action">
                                                     <option><?php print _('apply to selected');?></option>
+                                                    <option><?php print _('reread  IP');?></option>
                                                     <option><?php print _('delete');?></option>
                                                 </select>
                                                 <input type="submit" name="ok" value="›" class="button" style="width: 37px; font-size: 12px; height: 24px;">