mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 12:36:23 -07:00
Update index.php
This commit is contained in:
parent
1e4063eb7a
commit
8ae70316e9
1 changed files with 6 additions and 2 deletions
|
@ -14,10 +14,14 @@ if ($_SESSION['user'] == 'admin') {
|
|||
exec (VESTA_CMD."v-stop-service ".$v_service, $output, $return_var);
|
||||
}
|
||||
}
|
||||
|
||||
if ($return_var != 0) {
|
||||
$error = implode('<br>', $output);
|
||||
if (empty($error)) $error = __('SERVICE_ACTION_FAILED',__('stop'),$v_service);
|
||||
$_SESSION['error_srv'] = $error;
|
||||
if (empty($error)) {
|
||||
$error = __('SERVICE_ACTION_FAILED', __('stop'), $v_service);
|
||||
}
|
||||
|
||||
$_SESSION['error_srv'] = $error;
|
||||
}
|
||||
unset($output);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue