mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
reread system ip addresses
This commit is contained in:
parent
13847a198f
commit
f20252098b
2 changed files with 5 additions and 1 deletions
|
@ -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/");
|
||||
|
|
|
@ -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;">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue