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

View file

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