Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > filebird > > includes > Classes
Operation : Linux premium131.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 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
Attachment | Directory | - | - | |
Modules | Directory | - | - | |
ActivePro.php | File | 2084 bytes | August 23 2024 17:15:40. | |
Config.php | File | 1110 bytes | May 27 2024 10:21:44. | |
Convert.php | File | 4621 bytes | May 27 2024 10:21:44. | |
Core.php | File | 12018 bytes | February 12 2025 12:41:10. | |
Feedback.php | File | 577 bytes | May 27 2024 10:21:44. | |
FolderStateManager.php | File | 1805 bytes | May 27 2024 10:21:44. | |
Helpers.php | File | 5391 bytes | August 23 2024 17:15:40. | |
Review.php | File | 2688 bytes | May 27 2024 10:21:44. | |
Schedule.php | File | 1881 bytes | May 27 2024 10:21:44. | |
Tree.php | File | 6848 bytes | March 19 2025 13:38:06. |
<?php namespace FileBird\Classes; defined( 'ABSPATH' ) || exit; use FileBird\Model\Folder as FolderModel; class Schedule { public function __construct() { add_action( 'filebird_remove_zip_files', array( $this, 'actionRemoveZipFiles' ) ); add_action( 'filebird_every_12_hours_jobs', array( $this, 'backupFileBird' ) ); } public static function registerSchedule() { if ( ! wp_next_scheduled( 'filebird_remove_zip_files' ) ) { wp_schedule_event( time(), 'daily', 'filebird_remove_zip_files' ); } if ( ! wp_next_scheduled( 'filebird_every_12_hours_jobs' ) ) { wp_schedule_event( time(), 'twicedaily', 'filebird_every_12_hours_jobs' ); } } public static function clearSchedule() { wp_clear_scheduled_hook( 'filebird_remove_zip_files' ); wp_clear_scheduled_hook( 'filebird_every_12_hours_jobs' ); } public function actionRemoveZipFiles() { $saved_downloads = get_option( 'filebird_saved_downloads', array() ); if ( ! is_array( $saved_downloads ) ) { $saved_downloads = array(); } foreach ( $saved_downloads as $time => $path ) { if ( ( time() - $time ) >= ( 24 * 60 * 60 ) ) { $wp_dir = wp_upload_dir(); if ( file_exists( $wp_dir['basedir'] . $path ) ) { unlink( $wp_dir['basedir'] . $path ); } unset( $saved_downloads[ $time ] ); } } update_option( 'filebird_saved_downloads', $saved_downloads ); } public function backupFileBird() { global $wpdb; $keep = 29; $count_backup = $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->options} WHERE `option_name` LIKE 'filebird_backup_%'" ); if( $count_backup > $keep ) { $wpdb->query( "DELETE FROM {$wpdb->options} WHERE `option_name` LIKE 'filebird_backup_%' ORDER BY `option_id` ASC LIMIT " . (int)($count_backup - $keep) ); } $folders = FolderModel::exportAll(); update_option( 'filebird_backup_' . date('Y_m_d_H_i_s'), $folders, false ); } }
SILENT KILLER Tool