From f20252098ba3f4019de0c8c7304c9275070baa64 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Wed, 20 Feb 2013 15:21:25 +0200 Subject: [PATCH] reread system ip addresses --- web/bulk/ip/index.php | 5 ++++- web/templates/admin/list_ip.html | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/web/bulk/ip/index.php b/web/bulk/ip/index.php index 8f579247..846d8367 100644 --- a/web/bulk/ip/index.php +++ b/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/"); diff --git a/web/templates/admin/list_ip.html b/web/templates/admin/list_ip.html index 3cd81d4a..e2697d66 100644 --- a/web/templates/admin/list_ip.html +++ b/web/templates/admin/list_ip.html @@ -16,6 +16,7 @@