mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
aligned code formating
This commit is contained in:
parent
baae928144
commit
dab033ed0b
12 changed files with 290 additions and 236 deletions
|
@ -5,18 +5,21 @@ ob_start();
|
|||
session_start();
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
if ($_SESSION['user'] == 'admin') {
|
||||
if (!empty($_GET['user'])) {
|
||||
$user=$_GET['user'];
|
||||
}
|
||||
if (!empty($_GET['job'])) {
|
||||
$v_username = escapeshellarg($user);
|
||||
$v_job = escapeshellarg($_GET['job']);
|
||||
exec (VESTA_CMD."v-suspend-cron-job ".$v_username." ".$v_job, $output, $return_var);
|
||||
}
|
||||
check_return_code($return_var,$output);
|
||||
unset($output);
|
||||
// Check user
|
||||
if ($_SESSION['user'] != 'admin') {
|
||||
header("Location: /list/user");
|
||||
exit;
|
||||
}
|
||||
if (!empty($_GET['user'])) {
|
||||
$user=$_GET['user'];
|
||||
}
|
||||
if (!empty($_GET['job'])) {
|
||||
$v_username = escapeshellarg($user);
|
||||
$v_job = escapeshellarg($_GET['job']);
|
||||
exec (VESTA_CMD."v-suspend-cron-job ".$v_username." ".$v_job, $output, $return_var);
|
||||
}
|
||||
check_return_code($return_var,$output);
|
||||
unset($output);
|
||||
|
||||
$back = $_SESSION['back'];
|
||||
if (!empty($back)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue