Serghey Rodin 12 лет назад
Родитель
Сommit
5b52823570

+ 5 - 0
web/edit/backup/exclusions/index.php

@@ -89,6 +89,11 @@ if (empty($_SESSION['error_msg'])) {
         $v_db_tmp = rtrim($v_db_tmp, ",");
         $v_db_tmp = "DB=" . escapeshellarg($v_db_tmp);
 
+        $v_cron = $_POST['v_cron'];
+        $v_cron_tmp = str_replace("\r\n", ",", $_POST['v_cron']);
+        $v_cron_tmp = rtrim($v_cron_tmp, ",");
+        $v_cron_tmp = "CRON=" . escapeshellarg($v_cron_tmp);
+
         $v_userdir = $_POST['v_userdir'];
         $v_userdir_tmp = str_replace("\r\n", ",", $_POST['v_userdir']);
         $v_userdir_tmp = rtrim($v_userdir_tmp, ",");

+ 2 - 0
web/inc/i18n/en.php

@@ -103,6 +103,7 @@ $LANG['en'] = array(
     'Editing Package'  => 'Editing Package',
     'Adding IP address'  => 'Adding IP address',
     'Editing IP Address'  => 'Editing IP Address',
+    'Editing Backup Exclusions' => 'Editing Backup Exclusions',
     'Generating CSR' => 'Generating CSR',
     'Listing'  => 'Listing',
     'Search Results'  => 'Search Results',
@@ -404,6 +405,7 @@ $LANG['en'] = array(
     'DNS_EXCLUSIONS' => "Type domain name, one per line. To exlude all domains use *",
     '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",
     'DB_EXCLUSIONS' => "Type full database name, one per line. To exlude all databases use *",
+    'CRON_EXCLUSIONS' => "To exlude all jobs use *",
     'USER_EXCLUSIONS' => "Type directory name, one per line. Directories should not include leading or trailing slashes. To exlude all dirs use *",
 
     'Welcome to Vesta Control Panel'  => 'Welcome to Vesta Control Panel',

+ 10 - 0
web/templates/admin/edit_backup_exclusions.html

@@ -77,6 +77,16 @@
                                     <textarea class="vst-textinput" name="v_db" placeholder="<?php echo __('DB_EXCLUSIONS') ?>"><?php if (isset($v_db)) echo $v_db; ?></textarea>
                                 </td>
                             </tr>
+                            <tr>
+                                <td class="vst-text" style="padding: 12px 0 0 0;">
+                                    <?php print __('Cron');?>
+                                </td>
+                            </tr>
+                            <tr>
+                                <td>
+                                    <textarea size="20" class="vst-textinput" name="v_cron" placeholder="<?php echo __('CRON_EXCLUSIONS') ?>"><?php if (isset($v_cron)) echo $v_cron; ?></textarea>
+                                </td>
+                            </tr>
                             <tr>
                                 <td class="vst-text" style="padding: 12px 0 0 0;">
                                     <?php print __('User Directories');?>