Initial
This commit is contained in:
23
web/suspend/cron/index.php
Normal file
23
web/suspend/cron/index.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
use function Hestiacp\quoteshellarg\quoteshellarg;
|
||||
ob_start();
|
||||
include $_SERVER["DOCUMENT_ROOT"] . "/inc/main.php";
|
||||
|
||||
// Check token
|
||||
verify_csrf($_GET);
|
||||
|
||||
if (!empty($_GET["job"])) {
|
||||
$v_job = quoteshellarg($_GET["job"]);
|
||||
exec(HESTIA_CMD . "v-suspend-cron-job " . $user . " " . $v_job, $output, $return_var);
|
||||
check_return_code($return_var, $output);
|
||||
unset($output);
|
||||
}
|
||||
|
||||
$back = $_SESSION["back"];
|
||||
if (!empty($back)) {
|
||||
header("Location: " . $back);
|
||||
exit();
|
||||
}
|
||||
|
||||
header("Location: /list/cron/");
|
||||
exit();
|
||||
Reference in New Issue
Block a user