unified error msg variable

This commit is contained in:
Serghey Rodin 2013-11-02 16:43:40 +02:00
commit 849d536993
7 changed files with 36 additions and 35 deletions

View file

@ -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);
}

View file

@ -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);
}