Files
VestaCP/web/delete/cron/index.php
Serghey Rodin 2c237a82dd cron web pages
2012-06-22 15:40:29 +03:00

18 lines
437 B
PHP

<?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_delete_cron_job ".$v_username." ".$v_job, $output, $return_var);
unset($output);
}
}
header("Location: /list/cron/");