reread system ip addresses

This commit is contained in:
Serghey Rodin 2013-02-20 15:21:25 +02:00
commit f20252098b
2 changed files with 5 additions and 1 deletions

View file

@ -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/");