cron email reporting

This commit is contained in:
Serghey Rodin 2014-09-24 02:52:24 +03:00
commit baae928144
6 changed files with 65 additions and 11 deletions

View file

@ -0,0 +1,13 @@
<?php
// Init
error_reporting(NULL);
ob_start();
session_start();
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
exec (VESTA_CMD."v-add-cron-reports ".$user, $output, $return_var);
$_SESSION['error_msg'] = __('Cronjob email reporting has been successfully enabled');
unset($output);
header("Location: /list/cron/");
exit;