mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
check_return_code function
This commit is contained in:
parent
3cb02aec9d
commit
d0f6d5d65f
19 changed files with 118 additions and 229 deletions
|
@ -11,13 +11,8 @@ if ($_SESSION['user'] == 'admin') {
|
|||
$v_username = escapeshellarg($_GET['user']);
|
||||
exec (VESTA_CMD."v-suspend-user ".$v_username, $output, $return_var);
|
||||
}
|
||||
if ($return_var != 0) {
|
||||
$error = implode('<br>', $output);
|
||||
if (empty($error)) $error = __('Error: vesta did not return any output.');
|
||||
$_SESSION['error_msg'] = $error;
|
||||
}
|
||||
check_return_code($return_var,$output);
|
||||
unset($output);
|
||||
|
||||
}
|
||||
|
||||
$back = $_SESSION['back'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue