GRAYBYTE WORDPRESS FILE MANAGER5207

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/trustyourlawyer.com/wp-content/plugins/backwpup/parts/sidebar/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/trustyourlawyer.com/wp-content/plugins/backwpup/parts/sidebar//frequency.php
<?php
use BackWPup\Utils\BackWPupHelpers;

/**
 * @var int $job_id ID of the job we are retrieving the frequency settings for.
 */
BackWPupHelpers::component("closable-heading", [
  'title' => __("Job Scheduled Settings", 'backwpup'),
  'type' => 'sidebar'
]);


if ( ! isset ( $job_id ) ) {
  return;
}

$job_cron = BackWPup_Option::get($job_id, 'cron');

?>

<?php BackWPupHelpers::component("containers/scrollable-start", ["gap_size" => "small"]); ?>

<?php
try {
  $current = BackWPup_Cron::parse_cron_expression($job_cron);
} catch (Exception $e) {
  BackWPupHelpers::component("alerts/error", [
    "type" => "info",
    "font" => "small",
    "content" => __("Current cron expression is not supported by this UI.", 'backwpup'). ' ' . esc_html($job_cron),
  ]);
  $current = [
    'frequency' => '',
    'start_time' => '00:00',
    'hourly_start_time'  => 0,
    'monthly_start_day' => "",
    'weekly_start_day' => "",
  ];
}
?>

<?php
BackWPupHelpers::component("form/select", [
  "name" => "frequency",
  "label" => __("Frequency", 'backwpup'),
  "trigger" => "frequency-job",
  "value" => $basic_frequency ?? $current['frequency'], // hourly, daily, weekly, monthly   
  "options" => [
    'hourly' => __('Hourly', 'backwpup'),
    "daily" => __("Daily", 'backwpup'),
    "weekly" => __("Weekly", 'backwpup'),
    "monthly" => __("Monthly", 'backwpup'),
  ],
  "identifier" => 'backwpup_frequency',
]);
?>

<div class="js-backwpup-frequency-job-show-if-hourly">
  <?php
  BackWPupHelpers::component( 'form/select', [
    'name' => 'hourly_start_time',
    'label' => __( 'Minutes', 'backwpup' ),
    'value' => $current['hourly_start_time'],
    'options' => [
      '0' => 0,
      '5' => 5,
      '10' => 10,
      '15' => 15,
      '20' => 20,
      '25' => 25,
      '30' => 30,
      '35' => 35,
      '40' => 40,
      '45' => 45,
      '50' => 50,
      '55' => 55,
    ],
  ]);
  ?>
</div>

<div class="js-backwpup-frequency-job-show-if-monthly">
  <?php
  $days_in_month = cal_days_in_month( CAL_GREGORIAN, current_time( 'n' ), current_time( 'Y' ) );
  $days_in_month = range( 1,   $days_in_month );
  $days_in_month = array_map( function ( $day ) {
    return  sprintf('%02d', $day);
  }, $days_in_month );
  $days_in_month = array_combine( $days_in_month, $days_in_month );

  // Backward Compatibility with old monthly frequency.
  $old_monthly_frequency = [
    "first-monday" => __("1st Monday of the month", 'backwpup'),
    "first-sunday" => __("1st Sunday of the month", 'backwpup'),
  ];

  if ( in_array( $current['monthly_start_day'], array_keys( $old_monthly_frequency ), true ) ) {
    $days_in_month[ $current['monthly_start_day'] ] = $old_monthly_frequency[ $current['monthly_start_day'] ];
  }

  BackWPupHelpers::component("form/select", [
    "name" => "day_of_month",
    "label" => __("Start day", 'backwpup'),
    "value" => $current['monthly_start_day'],
    "options" => $days_in_month,
    "hide_subset_current_options" => array_keys( $old_monthly_frequency ),
    "identifier" => 'backwpup_day_of_month',
  ]);
  ?>
</div>

<div class="js-backwpup-frequency-job-show-if-weekly">
  <?php
  BackWPupHelpers::component("form/select", [
    "name" => "day_of_week",
    "label" => __("Start day", 'backwpup'),
    "value" => $current['weekly_start_day'],
    "options" => [
      "1"    => __("Monday", 'backwpup'),
      "2"   => __("Tuesday", 'backwpup'),
      "3" => __("Wednesday", 'backwpup'),
      "4"  => __("Thursday", 'backwpup'),
      "5"    => __("Friday", 'backwpup'),
      "6"  => __("Saturday", 'backwpup'),
      "0"    => __("Sunday", 'backwpup'),
    ],
  ]);
  ?>
</div>

<div class="js-backwpup-frequency-job-hide-if-hourly">
<?php
BackWPupHelpers::component("form/text", [
  "type" => "time",
  "name" => "start_time",
  "label" => __("Start time", 'backwpup'),
  "value" => $current['start_time'],
  "required" => true,
]);
?>
</div>

<div class="js-backwpup-frequency-job-hide-if-hourly">
<?php
BackWPupHelpers::component("alerts/info", [
  "type" => "alert",
  "font" => "small",
  "content" => __("Making a copy of your website can slow down your site a bit. We recommend doing this at night to avoid any inconvenience.", 'backwpup'),
]);
?>
</div>

<div class="js-backwpup-frequency-job-show-if-hourly">
<?php
BackWPupHelpers::component( 'alerts/info', [
  'type'    => 'alert',
  'font'    => 'small',
  'content' => __( 'Enable "Reduced server load" in “Advanced Settings > Jobs” to reduce website load and keep your site running smoothly during hourly backups.', 'backwpup' ),
]);
?>
</div>

<?php BackWPupHelpers::component("containers/scrollable-end"); ?>

<?php BackWPupHelpers::component("form/hidden", ["identifier" => 'job_id', "name" => "job_id", "value" => $job_id]); ?>

<?php
BackWPupHelpers::component("form/button", [
  "type" => "primary",
  "label" => __("Save settings", 'backwpup'),
  "full_width" => true,
  "class" => "mt-4 save_job_settings",
  "identifier" => 'save-job-settings',
]);
?>

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
dropbox-parts
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
parts
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
sugar-sync-parts
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:37
giriqfky / giriqfky
0644
advanced-settings.php
2.051 KB
February 04 2025 14:50:44
giriqfky / giriqfky
0644
edit-title.php
1.173 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
frequency.php
4.867 KB
April 29 2025 17:34:12
giriqfky / giriqfky
0644
select-files-free.php
1.038 KB
February 04 2025 14:50:44
giriqfky / giriqfky
0644
select-files.php
1.602 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
select-tables.php
2.505 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
settings-jobs.php
3.994 KB
April 23 2025 14:14:02
giriqfky / giriqfky
0644
settings-logs.php
3.402 KB
February 04 2025 14:50:44
giriqfky / giriqfky
0644
settings-network.php
2.636 KB
February 04 2025 14:50:44
giriqfky / giriqfky
0644
storage-DROPBOX.php
3.406 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
storage-FOLDER.php
2.6 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
storage-FTP.php
5.507 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
storage-MSAZURE.php
5.207 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
storage-RSC.php
5.088 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
storage-S3.php
9.357 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
storage-SUGARSYNC.php
3.08 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
storages.php
1.381 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF