mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
cron web pages
This commit is contained in:
parent
f14550a5a7
commit
2c237a82dd
11 changed files with 361 additions and 10 deletions
17
web/unsuspend/cron/index.php
Normal file
17
web/unsuspend/cron/index.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
// Init
|
||||
error_reporting(NULL);
|
||||
ob_start();
|
||||
session_start();
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
if ($_SESSION['user'] == 'admin') {
|
||||
if (!empty($_GET['job'])) {
|
||||
$v_username = escapeshellarg($user);
|
||||
$v_job = escapeshellarg($_GET['job']);
|
||||
exec (VESTA_CMD."v_unsuspend_cron_job ".$v_username." ".$v_job, $output, $return_var);
|
||||
unset($output);
|
||||
}
|
||||
}
|
||||
|
||||
header("Location: /list/cron/");
|
Loading…
Add table
Add a link
Reference in a new issue