mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -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);
|
exec (VESTA_CMD."v-stop-service ".$v_service, $output, $return_var);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($return_var != 0) {
|
if ($return_var != 0) {
|
||||||
$error = implode('<br>', $output);
|
$error = implode('<br>', $output);
|
||||||
if (empty($error)) $error = __('SERVICE_ACTION_FAILED',__('stop'),$v_service);
|
if (empty($error)) {
|
||||||
$_SESSION['error_srv'] = $error;
|
$error = __('SERVICE_ACTION_FAILED', __('stop'), $v_service);
|
||||||
|
}
|
||||||
|
|
||||||
|
$_SESSION['error_srv'] = $error;
|
||||||
}
|
}
|
||||||
unset($output);
|
unset($output);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue