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; class Review { public function __construct() { add_action( 'wp_ajax_fbv_save_review', array( $this, 'fbv_save_review' ) ); $option = get_option( 'fbv_review', false ); if ( time() >= intval( $option ) && '0' !== $option ) { add_action( 'admin_notices', array( $this, 'give_review' ) ); } } public function enqueue_scripts() { wp_enqueue_script( 'fbv-review', NJFB_PLUGIN_URL . 'assets/js/review.js', array( 'jquery' ), NJFB_VERSION, false ); } public function checkNonce( $nonce ) { if ( ! wp_verify_nonce( $nonce, 'fbv_nonce' ) ) { wp_send_json_error( array( 'status' => 'Wrong nonce validate!' ) ); exit(); } } public function hasField( $field, $request ) { return isset( $request[ $field ] ) ? sanitize_text_field( $request[ $field ] ) : null; } public function fbv_save_review() { if ( count( $_REQUEST ) ) { $nonce = $this->hasField( 'nonce', $_REQUEST ); $field = $this->hasField( 'field', $_REQUEST ); $this->checkNonce( $nonce ); if ( 'later' == $field ) { update_option( 'fbv_review', time() + 5 * 60 * 60 * 24 ); //After 3 days show } elseif ( 'alreadyDid' == $field || 'rateNow' == $field ) { update_option( 'fbv_review', 0 ); } wp_send_json_success(); } wp_send_json_error( array( 'message' => 'Update fail!' ) ); } public static function update_time_display() { $option = get_option( 'fbv_review', false ); if ( '0' !== $option ) { update_option( 'fbv_review', time() + 3 * 60 * 60 * 24 ); //After 3 days show } } public function give_review() { if ( function_exists( 'get_current_screen' ) ) { if ( get_current_screen()->id == 'upload' || get_current_screen()->id == 'plugins' ) { $this->enqueue_scripts(); ?> <div class="notice notice-success is-dismissible filebird-notice" id="njt-FileBird-review"> <h3><?php esc_html_e( 'Give FileBird a review', 'filebird' ); ?></h3> <p> <?php esc_html_e( 'Thank you for choosing FileBird. We hope you love it. Could you take a couple of seconds posting a nice review to share your happy experience?', 'filebird' ); ?> </p> <p> <?php esc_html_e( 'We will be forever grateful. Thank you in advance ;)', 'filebird' ); ?> </p> <p> <a href="javascript:;" data="rateNow" class="button button-primary"><?php esc_html_e( 'Rate now', 'filebird' ); ?></a> <a href="javascript:;" data="later" class="button"><?php esc_html_e( 'Later', 'filebird' ); ?></a> <a href="javascript:;" data="alreadyDid" class="button"><?php esc_html_e( 'No, thanks', 'filebird' ); ?></a> </p> </div> <?php } } } }
SILENT KILLER Tool