mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
cron email reporting
This commit is contained in:
parent
75a50c9cd6
commit
baae928144
6 changed files with 65 additions and 11 deletions
13
web/add/cron/reports/index.php
Normal file
13
web/add/cron/reports/index.php
Normal 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;
|
13
web/delete/cron/reports/index.php
Normal file
13
web/delete/cron/reports/index.php
Normal 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-delete-cron-reports ".$user, $output, $return_var);
|
||||
$_SESSION['error_msg'] = __('Cronjob email reporting has been successfully disabled');
|
||||
unset($output);
|
||||
|
||||
header("Location: /list/cron/");
|
||||
exit;
|
|
@ -21,6 +21,19 @@
|
|||
</select>
|
||||
<input type="submit" name="ok" value="›" class="submenu-button-select">
|
||||
</div>
|
||||
<div class="submenu-select-block">
|
||||
<?php
|
||||
if($panel[$user]['CRON_REPORTS'] == 'yes') {
|
||||
?>
|
||||
<a class="submenu-select-link" href="/delete/cron/reports/">[ <?php print __('disable email reports');?> ]</a>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<a class="submenu-select-link" href="/add/cron/reports/">[ <?php print __('enable email reports');?> ]</a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php display_error_block(); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -19,6 +19,19 @@
|
|||
</select>
|
||||
<input type="submit" name="ok" value="›" class="submenu-button-select">
|
||||
</div>
|
||||
<div class="submenu-select-block">
|
||||
<?php
|
||||
if($panel[$user]['CRON_REPORTS'] == 'yes') {
|
||||
?>
|
||||
<a class="submenu-select-link" href="/delete/cron/reports/">[ <?php print __('disable email reports');?> ]</a>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<a class="submenu-select-link" href="/add/cron/reports/">[ <?php print __('enable email reports');?> ]</a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php display_error_block(); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue