Priority File Manager

📁 public_html
Base Directory:
/home/ecedu/public_html/wp-content/plugins/updraftplus/includes
NameTypeSizeActions
📁 .. Folder -
📁 Dropbox2 Folder -
📁 Google Folder -
📄 S3.php File 78483
Edit Download
📄 S3compat.php File 31581
Edit Download
📁 blockui Folder -
📄 cacert.pem File 221470
Edit Download
📁 checkout-embed Folder -
📄 class-backup-history.php File 40508
Edit Download
📄 class-commands.php File 49966
Edit Download
📄 class-database-utility.php File 37569
Edit Download
📄 class-filesystem-functions.php File 41611
Edit Download
📄 class-http-error-descriptions.php File 11669
Edit Download
📄 class-job-scheduler.php File 10552
Edit Download
📄 class-manipulation-functions.php File 17139
Edit Download
📄 class-partialfileservlet.php File 7558
Edit Download
📄 class-remote-send.php File 32760
Edit Download
📄 class-search-replace.php File 20570
Edit Download
📄 class-semaphore.php File 6757
Edit Download
📄 class-storage-methods-interface.php File 18664
Edit Download
📄 class-updraft-dashboard-news.php File 8242
Edit Download
📄 class-updraft-semaphore.php File 7693
Edit Download
📄 class-updraftcentral-updraftplus-commands.php File 1857
Edit Download
📄 class-updraftplus-encryption.php File 14031
Edit Download
📄 class-wpadmin-commands.php File 39447
Edit Download
📄 class-zip.php File 18336
Edit Download
📁 cloudfiles Folder -
📄 ftp.class.php File 6769
Edit Download
📄 get-cpanel-quota-usage.pl File 408
Edit Download
📄 google-extensions.php File 9497
Edit Download
📁 handlebars Folder -
📁 images Folder -
📄 jquery-ui.custom-v1.11.4-1-25-7.min.css File 38751
Edit Download
📄 jquery-ui.custom-v1.11.4-1-25-7.min.css.map File 58374
Edit Download
📄 jquery-ui.custom-v1.11.4.css File 43193
Edit Download
📄 jquery-ui.custom-v1.12.1-1-25-7.min.css File 40497
Edit Download
📄 jquery-ui.custom-v1.12.1-1-25-7.min.css.map File 60839
Edit Download
📄 jquery-ui.custom-v1.12.1.css File 45090
Edit Download
📁 jquery-ui.dialog.extended Folder -
📁 jquery.serializeJSON Folder -
📁 jstree Folder -
📁 labelauty Folder -
📄 migrator-lite.php File 53735
Edit Download
📁 pcloud Folder -
📁 select2 Folder -
📁 tether Folder -
📁 tether-shepherd Folder -
📄 updraft-admin-common-1-25-7.min.js File 158895
Edit Download
📄 updraft-admin-common.js File 263234
Edit Download
📄 updraft-restorer-skin-compatibility.php File 452
Edit Download
📄 updraft-restorer-skin.php File 1723
Edit Download
📄 updraftcentral.php File 3464
Edit Download
📁 updraftclone Folder -
📄 updraftplus-clone.php File 7237
Edit Download
📄 updraftplus-login.php File 4368
Edit Download
📄 updraftplus-notices.php File 18842
Edit Download
📄 updraftplus-tour.php File 13521
Edit Download
📄 updraftvault.php File 2040
Edit Download
jobdata_get('run_times'); if (!is_array($time_passed)) $time_passed = array(); $time_this_run = microtime(true)-$updraftplus->opened_log_time; $time_passed[$updraftplus->current_resumption] = $time_this_run; $updraftplus->jobdata_set('run_times', $time_passed); $resume_interval = $updraftplus->jobdata_get('resume_interval'); if ($time_this_run + 30 > $resume_interval) { $new_interval = ceil($time_this_run + 30); set_site_transient('updraft_initial_resume_interval', (int) $new_interval, 8*86400); $updraftplus->log("The time we have been running (".round($time_this_run, 1).") is approaching the resumption interval ($resume_interval) - increasing resumption interval to $new_interval"); $updraftplus->jobdata_set('resume_interval', $new_interval); } } /** * This method helps with efficient scheduling */ public static function reschedule_if_needed() { global $updraftplus; // If nothing is scheduled, then no re-scheduling is needed, so return if (empty($updraftplus->newresumption_scheduled)) return; $time_away = $updraftplus->newresumption_scheduled - time(); // 45 is chosen because it is 15 seconds more than what is used to detect recent activity on files (file mod times). (If we use exactly the same, then it's more possible to slightly miss each other) if ($time_away > 1 && $time_away <= 45) { $updraftplus->log('The scheduled resumption is within 45 seconds - will reschedule'); // Increase interval generally by 45 seconds, on the assumption that our prior estimates were innaccurate (i.e. not just 45 seconds *this* time) self::increase_resume_and_reschedule(45); } } /** * Indicate that something useful happened. Calling this at appropriate times is an important part of scheduling decisions. */ public static function something_useful_happened() { global $updraftplus; self::record_still_alive(); if (!$updraftplus->something_useful_happened) { // Update the record of when something useful happened $useful_checkins = $updraftplus->jobdata_get('useful_checkins'); if (!is_array($useful_checkins)) $useful_checkins = array(); if (!in_array($updraftplus->current_resumption, $useful_checkins)) { $useful_checkins[] = $updraftplus->current_resumption; $updraftplus->jobdata_set('useful_checkins', $useful_checkins); } } $updraftplus->something_useful_happened = true; $clone_job = $updraftplus->jobdata_get('clone_job'); if (!empty($clone_job)) { static $last_call = false; // Check we haven't yet made a call or that 15 minutes has passed before we make another call if (!$last_call || time() - $last_call > 900) { $last_call = time(); $clone_id = $updraftplus->jobdata_get('clone_id'); $secret_token = $updraftplus->jobdata_get('secret_token'); $log_data = $updraftplus->get_last_log_chunk($updraftplus->file_nonce); $log_contents = isset($log_data['log_contents']) ? $log_data['log_contents'] : ''; $first_byte = isset($log_data['first_byte']) ? $log_data['first_byte'] : 0; $response = $updraftplus->get_updraftplus_clone()->backup_checkin(array('clone_id' => $clone_id, 'secret_token' => $secret_token, 'first_byte' => $first_byte, 'log_contents' => $log_contents)); if (!isset($response['status']) || 'success' != $response['status']) { $updraftplus->log("UpdraftClone backup check-in failed."); } else { $updraftplus->log("UpdraftClone backup check-in made successfully."); } } } $updraft_dir = $updraftplus->backups_dir_location(); if (file_exists($updraft_dir.'/deleteflag-'.$updraftplus->nonce.'.txt')) { $updraftplus->log("User request for abort: backup job will be immediately halted"); @unlink($updraft_dir.'/deleteflag-'.$updraftplus->nonce.'.txt');// phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged -- Silenced to suppress errors that may arise because of the method. $updraftplus->backup_finish(true, true, true); die; } if ($updraftplus->current_resumption >= 9 && false == $updraftplus->newresumption_scheduled) { $updraftplus->log("This is resumption ".$updraftplus->current_resumption.", but meaningful activity is still taking place; so a new one will be scheduled"); // We just use max here to make sure we get a number at all $resume_interval = max($updraftplus->jobdata_get('resume_interval'), 75); // Don't consult the minimum here // if (!is_numeric($resume_interval) || $resume_interval<300) { $resume_interval = 300; } $schedule_for = time()+$resume_interval; $updraftplus->newresumption_scheduled = $schedule_for; wp_schedule_single_event($schedule_for, 'updraft_backup_resume', array($updraftplus->current_resumption + 1, $updraftplus->nonce)); } else { self::reschedule_if_needed(); } } /** * Reschedule the next resumption for the specified amount of time in the future * * @uses wp_schedule_single_event() * * @param Integer $how_far_ahead - a number of seconds */ public static function reschedule($how_far_ahead) { global $updraftplus; // Reschedule - remove presently scheduled event $next_resumption = $updraftplus->current_resumption + 1; wp_clear_scheduled_hook('updraft_backup_resume', array($next_resumption, $updraftplus->nonce)); // Add new event // This next line may be too cautious; but until 14-Aug-2014, it was 300. // Update 20-Mar-2015 - lowered from 180 to 120 // Update 03-Aug-2018 - lowered from 120 to 100 // Update 09-Oct-2020 - lowered from 100 to 60 if ($how_far_ahead < 60) $how_far_ahead = 60; $schedule_for = time() + $how_far_ahead; $updraftplus->log("Rescheduling resumption $next_resumption: moving to $how_far_ahead seconds from now ($schedule_for)"); wp_schedule_single_event($schedule_for, 'updraft_backup_resume', array($next_resumption, $updraftplus->nonce)); $updraftplus->newresumption_scheduled = $schedule_for; } /** * Terminate a backup run because other activity on the backup has been detected * * @uses die() * * @param String $file - Indicate the file whose recent modification is indicative of activity * @param Integer $time_now - The epoch time at which the detection took place * @param Integer $time_mod - The epoch time at which the file was modified * @param Boolean $increase_resumption - Whether or not to increase the resumption interval */ public static function terminate_due_to_activity($file, $time_now, $time_mod, $increase_resumption = true) { global $updraftplus; // We check-in, to avoid 'no check in last time!' detectors firing. self::record_still_alive(); // Log $file_size = file_exists($file) ? round(filesize($file)/1024, 1). 'KB' : 'n/a'; $updraftplus->log("Terminate: ".basename($file)." exists with activity within the last 30 seconds (time_mod=$time_mod, time_now=$time_now, diff=".(floor($time_now-$time_mod)).", size=$file_size). This likely means that another UpdraftPlus run is at work; so we will exit."); $increase_by = $increase_resumption ? 120 : 0; self::increase_resume_and_reschedule($increase_by, true); // Die, unless there was a deliberate over-ride (for development purposes) if (!defined('UPDRAFTPLUS_ALLOW_RECENT_ACTIVITY') || !UPDRAFTPLUS_ALLOW_RECENT_ACTIVITY) die; } /** * Increase the resumption interval and reschedule the next resumption * * @uses self::reschedule() * * @param Integer $howmuch - how much to add to the existing resumption interval * @param Boolean $due_to_overlap - setting this changes the strategy for calculating the next resumption; it indicates that the reason for an increase is because of recent activity detection */ private static function increase_resume_and_reschedule($howmuch = 120, $due_to_overlap = false) { global $updraftplus; $resume_interval = max((int) $updraftplus->jobdata_get('resume_interval'), (0 === $howmuch) ? 120 : 300); if (empty($updraftplus->newresumption_scheduled) && $due_to_overlap) { $updraftplus->log('A new resumption will be scheduled to prevent the job ending'); } $new_resume = $resume_interval + $howmuch; // It may be that we're increasing for the second (or more) time during a run, and that we already know that the new value will be insufficient, and can be increased if ($updraftplus->opened_log_time > 100 && microtime(true)-$updraftplus->opened_log_time > $new_resume) { $new_resume = ceil(microtime(true)-$updraftplus->opened_log_time)+45; $howmuch = $new_resume-$resume_interval; } // This used to be always $new_resume, until 14-Aug-2014. However, people who have very long-running processes can end up with very long times between resumptions as a result. // Actually, let's not try this yet. I think it is safe, but think there is a more conservative solution available. // $how_far_ahead = min($new_resume, 600); // Nov 2018 - scheduling the next resumption unnecessarily-far-in-the-future after an overlap is still occurring, so, we're adjusting this to have a maximum value in that particular case $how_far_ahead = $due_to_overlap ? min($new_resume, 900) : $new_resume; // If it is very long-running, then that would normally be known soon. // If the interval is already 12 minutes or more, then try the next resumption 10 minutes from now (i.e. sooner than it would have been). Thus, we are guaranteed to get at least 24 minutes of processing in the first 34. if ($updraftplus->current_resumption <= 1 && $new_resume > 720) $how_far_ahead = 600; if (!empty($updraftplus->newresumption_scheduled) || $due_to_overlap) self::reschedule($how_far_ahead); $updraftplus->jobdata_set('resume_interval', $new_resume); $updraftplus->log("To decrease the likelihood of overlaps, increasing resumption interval to: $resume_interval + $howmuch = $new_resume"); } }