GRAYBYTE WORDPRESS FILE MANAGER5120

Server IP : 68.65.123.43 / Your IP : 216.73.216.162
System : Linux server266.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/inteuuod/public_html/wp-content/plugins/complianz-gdpr/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/inteuuod/public_html/wp-content/plugins/complianz-gdpr//class-review.php
<?php
/*100% match*/

defined( 'ABSPATH' ) or die( "you do not have access to this page!" );

if ( ! class_exists( "cmplz_review" ) ) {
	class cmplz_review {
		private static $_this;


		function __construct() {
			if ( isset( self::$_this ) ) {
				wp_die( sprintf( '%s is a singleton class and you cannot create a second instance.',
						get_class( $this ) ) );
			}

			self::$_this = $this;

			//uncomment for testing
//			update_option('cmplz_review_notice_shown', false, false);
//			update_option( 'cmplz_activation_time', strtotime( "-2 month" ), false );
			//show review notice, only to free users
			if ( ! defined( "cmplz_premium" ) && ! is_multisite() ) {
				if ( ! get_option( 'cmplz_review_notice_shown' )
					 && get_option( 'cmplz_activation_time' )
					 && get_option( 'cmplz_activation_time' )
						< strtotime( "-1 month" )
				) {
					add_action( 'wp_ajax_cmplz_dismiss_review_notice', array( $this, 'dismiss_review_notice_callback' ) );
					add_action( 'admin_notices', array( $this, 'show_leave_review_notice' ) );
					add_action( 'admin_print_footer_scripts', array( $this, 'insert_dismiss_review' ) );
				}

				//set a time for users who didn't have it set yet.
				if ( ! get_option( 'cmplz_activation_time' ) ) {
					update_option( 'cmplz_activation_time', time() , false );
				}
			}

			add_action('admin_init', array($this, 'process_get_review_dismiss' ));

		}

		static function this() {
			return self::$_this;
		}

		public function show_leave_review_notice() {
			if (isset( $_GET['cmplz_dismiss_review'] ) ) return;

			/**
			 * Prevent notice from being shown on Gutenberg page, as it strips off the class we need for the ajax callback.
			 *
			 * */
			$screen = get_current_screen();
			if ( $screen && $screen->parent_base === 'edit' ) {
				return;
			}
			?>
			<style>
				#message.cmplz-review {
					margin-left:10px !important;
				}
				.cmplz-review .button {
					margin-right:10px;
				}
				.cmplz-review .cmplz-buttons-row {
					padding:10px 0;
				}
				.cmplz-buttons-row a{
					padding-top:20px
				}
			</style>
			<div id="message"
				 class="updated fade notice is-dismissible cmplz-review really-simple-plugins"
				 style="border-left:4px solid #333">
				<div class="cmplz-container" style="display:flex">
					<div class="cmplz-review-image" style="padding:20px 10px"><img width=80px"
																			  src="<?php echo CMPLZ_URL ?>assets/images/icon-logo.svg"
																			  alt="review-logo">
					</div>
					<div style="margin-left:30px">
                        <p><?php echo wp_kses_post( sprintf( __( 'Hi, you have been using Complianz | GDPR cookie consent for a month now, awesome! If you have a moment, please consider leaving a review on WordPress.org to spread the word. We greatly appreciate it! If you have any questions or feedback, leave us a %smessage%s.', 'complianz-gdpr' ),
								'<a href="https://complianz.io/contact" target="_blank">',
								'</a>') ); ?></p>
						<div class="cmplz-buttons-row">
							<a class="button button-primary" target="_blank" href="https://wordpress.org/support/plugin/complianz-gdpr/reviews/#new-post"><?php esc_html_e(__( 'Leave a review', 'complianz-gdpr' ) ); ?></a>

							<div class="dashicons dashicons-calendar"></div>
							<a href="#" id="maybe-later"><?php esc_html_e(__( 'Maybe later', 'complianz-gdpr' ) ); ?></a>

							<div class="dashicons dashicons-no-alt"></div>
							<a href="<?php echo add_query_arg(array('page'=>'complianz', 'cmplz_dismiss_review'=>1), admin_url('admin.php') )?>"><?php esc_html_e(__( 'Don\'t show again', 'complianz-gdpr' )); ?></a>
						</div>
					</div>
				</div>
			</div>
			<?php

		}

		/**
		 * Insert some ajax script to dismiss the review notice, and stop nagging about it
		 *
		 * @since  2.0
		 *
		 * @access public
		 *
		 * type: dismiss, later
		 *
		 */

		public function insert_dismiss_review() {
			$ajax_nonce = wp_create_nonce( "cmplz_dismiss_review" );
			?>
			<script type='text/javascript'>
				jQuery(document).ready(function ($) {
					$(".cmplz-review.notice.is-dismissible").on("click", ".notice-dismiss", function (event) {
						rsssl_dismiss_review('dismiss');
					});
					$(".cmplz-review.notice.is-dismissible").on("click", "#maybe-later", function (event) {
						rsssl_dismiss_review('later');
						$(this).closest('.cmplz-review').remove();
					});
					$(".cmplz-review.notice.is-dismissible").on("click", ".review-dismiss", function (event) {
						rsssl_dismiss_review('dismiss');
						$(this).closest('.cmplz-review').remove();
					});

					function rsssl_dismiss_review(type) {
						var data = {
							'action': 'cmplz_dismiss_review_notice',
							'type': type,
							'token': '<?php echo $ajax_nonce; ?>'
						};
						$.post(ajaxurl, data, function (response) {});
					}
				});
			</script>
			<?php
		}

		/**
		 * Process the ajax dismissal of the review message.
		 *
		 * @since  2.1
		 *
		 * @access public
		 *
		 */

		public function dismiss_review_notice_callback() {
			$type = isset( $_POST['type'] ) ? $_POST['type'] : false;

			if ( $type === 'dismiss' ) {
				update_option( 'cmplz_review_notice_shown', true, false );
			}
			if ( $type === 'later' ) {
				//Reset activation timestamp, notice will show again in one month.
				update_option( 'cmplz_activation_time', time(), false );
			}

			wp_die(); // this is required to terminate immediately and return a proper response
		}

		/**
		 * Dismiss review notice with get, which is more stable
		 */

		public function process_get_review_dismiss(){
			if (isset( $_GET['cmplz_dismiss_review'] ) ){
				update_option( 'cmplz_review_notice_shown', true, false );
			}
		}
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 13 2025 10:54:02
inteuuod / inteuuod
0755
DNSMPD
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
assets
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
config
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
cookie
--
July 10 2025 04:32:22
inteuuod / inteuuod
0755
cookiebanner
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
cron
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
documents
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
gutenberg
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
integrations
--
July 10 2025 04:32:22
inteuuod / inteuuod
0755
languages
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
mailer
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
onboarding
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
placeholders
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
progress
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
proof-of-consent
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
rest-api
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
settings
--
July 13 2025 14:37:40
inteuuod / inteuuod
0755
templates
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
upgrade
--
July 10 2025 04:32:22
inteuuod / inteuuod
0755
websitescan
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
.htaccess
0.41 KB
July 10 2025 04:32:22
inteuuod / inteuuod
0644
LICENSE.txt
17.984 KB
May 09 2022 13:18:48
inteuuod / inteuuod
0644
README.md
2.168 KB
October 04 2021 17:35:52
inteuuod / inteuuod
0644
class-admin.php
16.865 KB
June 18 2025 13:10:28
inteuuod / inteuuod
0644
class-company.php
3.506 KB
February 26 2024 13:54:50
inteuuod / inteuuod
0644
class-cookie-blocker.php
33.235 KB
April 30 2024 12:07:12
inteuuod / inteuuod
0644
class-document.php
90.921 KB
April 01 2025 15:24:50
inteuuod / inteuuod
0644
class-export.php
1.488 KB
February 26 2024 13:54:50
inteuuod / inteuuod
0644
class-field.php
117.262 KB
April 01 2025 15:24:50
inteuuod / inteuuod
0644
class-installer.php
3.975 KB
February 26 2024 13:54:50
inteuuod / inteuuod
0644
class-review.php
5.563 KB
June 18 2025 13:10:28
inteuuod / inteuuod
0644
class-wizard.php
37.096 KB
April 01 2025 15:24:50
inteuuod / inteuuod
0644
complianz-gpdr.php
14.414 KB
June 18 2025 13:10:28
inteuuod / inteuuod
0644
composer.json
0.695 KB
October 28 2024 14:44:26
inteuuod / inteuuod
0644
functions-legacy.php
0.171 KB
February 26 2024 13:54:50
inteuuod / inteuuod
0644
functions.php
78.289 KB
April 01 2025 15:24:50
inteuuod / inteuuod
0644
gulpfile.js
4.356 KB
March 11 2025 20:22:50
inteuuod / inteuuod
0644
index.php
0.027 KB
June 26 2018 16:32:12
inteuuod / inteuuod
0644
loco.xml
0.365 KB
October 05 2021 15:48:18
inteuuod / inteuuod
0644
readme.txt
28.087 KB
June 18 2025 13:10:28
inteuuod / inteuuod
0644
security.md
0.67 KB
August 09 2023 12:51:42
inteuuod / inteuuod
0644
system-status.php
4.751 KB
April 01 2025 15:24:50
inteuuod / inteuuod
0644
uninstall.php
6.524 KB
June 18 2025 13:10:28
inteuuod / inteuuod
0644
upgrade.php
34.728 KB
April 01 2025 15:24:50
inteuuod / inteuuod
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF