mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -07:00
unified error msg variable
This commit is contained in:
parent
306907270e
commit
849d536993
7 changed files with 36 additions and 35 deletions
|
@ -13,7 +13,7 @@ if ($_SESSION['user'] == 'admin') {
|
|||
if ($return_var != 0) {
|
||||
$error = implode('<br>', $output);
|
||||
if (empty($error)) $error = __('SERVICE_ACTION_FAILED',__('restart'),$v_service);
|
||||
$_SESSION['error_srv'] = $error;
|
||||
$_SESSION['error_msg'] = $error;
|
||||
}
|
||||
unset($output);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
|||
if ($_SESSION['user'] == 'admin') {
|
||||
if (!empty($_GET['hostname'])) {
|
||||
exec (VESTA_CMD."v-restart-system yes", $output, $return_var);
|
||||
$_SESSION['error_srv'] = 'The system is going down for reboot NOW!';
|
||||
$_SESSION['error_msg'] = 'The system is going down for reboot NOW!';
|
||||
}
|
||||
unset($output);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue