Skip to content

Commit 5b52823

Browse files
committed
added cron exlusions
1 parent 24fd351 commit 5b52823

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

web/edit/backup/exclusions/index.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@
8989
$v_db_tmp = rtrim($v_db_tmp, ",");
9090
$v_db_tmp = "DB=" . escapeshellarg($v_db_tmp);
9191

92+
$v_cron = $_POST['v_cron'];
93+
$v_cron_tmp = str_replace("\r\n", ",", $_POST['v_cron']);
94+
$v_cron_tmp = rtrim($v_cron_tmp, ",");
95+
$v_cron_tmp = "CRON=" . escapeshellarg($v_cron_tmp);
96+
9297
$v_userdir = $_POST['v_userdir'];
9398
$v_userdir_tmp = str_replace("\r\n", ",", $_POST['v_userdir']);
9499
$v_userdir_tmp = rtrim($v_userdir_tmp, ",");

web/inc/i18n/en.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
'Editing Package' => 'Editing Package',
104104
'Adding IP address' => 'Adding IP address',
105105
'Editing IP Address' => 'Editing IP Address',
106+
'Editing Backup Exclusions' => 'Editing Backup Exclusions',
106107
'Generating CSR' => 'Generating CSR',
107108
'Listing' => 'Listing',
108109
'Search Results' => 'Search Results',
@@ -404,6 +405,7 @@
404405
'DNS_EXCLUSIONS' => "Type domain name, one per line. To exlude all domains use *",
405406
'MAIL_EXCLUSIONS' => "Type domain name, one per line. To exlude all domains use *. To exclude specific accounts use following format: domain.com:info:support:postmaster",
406407
'DB_EXCLUSIONS' => "Type full database name, one per line. To exlude all databases use *",
408+
'CRON_EXCLUSIONS' => "To exlude all jobs use *",
407409
'USER_EXCLUSIONS' => "Type directory name, one per line. Directories should not include leading or trailing slashes. To exlude all dirs use *",
408410

409411
'Welcome to Vesta Control Panel' => 'Welcome to Vesta Control Panel',

web/templates/admin/edit_backup_exclusions.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,16 @@
7777
<textarea class="vst-textinput" name="v_db" placeholder="<?php echo __('DB_EXCLUSIONS') ?>"><?php if (isset($v_db)) echo $v_db; ?></textarea>
7878
</td>
7979
</tr>
80+
<tr>
81+
<td class="vst-text" style="padding: 12px 0 0 0;">
82+
<?php print __('Cron');?>
83+
</td>
84+
</tr>
85+
<tr>
86+
<td>
87+
<textarea size="20" class="vst-textinput" name="v_cron" placeholder="<?php echo __('CRON_EXCLUSIONS') ?>"><?php if (isset($v_cron)) echo $v_cron; ?></textarea>
88+
</td>
89+
</tr>
8090
<tr>
8191
<td class="vst-text" style="padding: 12px 0 0 0;">
8292
<?php print __('User Directories');?>

0 commit comments

Comments
 (0)