403Webshell
Server IP : 162.0.217.223  /  Your IP : 216.73.216.112
Web Server : LiteSpeed
System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : mypckeys ( 1539)
PHP Version : 8.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/mypckeys/www/wp-content/plugins/supportcandy/includes/admin/misc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mypckeys/www/wp-content/plugins/supportcandy/includes/admin/misc/class-wpsc-license.php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly!
}

if ( ! class_exists( 'WPSC_License' ) ) :

	final class WPSC_License {

		/**
		 * Initialize this class
		 *
		 * @return void
		 */
		public static function init() {

			add_action( 'wp_ajax_wpsc_license_sync', array( __CLASS__, 'sync_licenses' ) );
		}

		/**
		 * Activate license keys for add-ons
		 *
		 * @return void
		 */
		public static function layout() {
			?>
			<div class="wrap">
				<hr class="wp-header-end">
				<div id="wpsc-container">
					<h1>
						<?php esc_attr_e( 'Licenses', 'supportcandy' ); ?>
						<button class="sync page-title-action"><?php esc_attr_e( 'Sync', 'supportcandy' ); ?></button>
					</h1>
				</div>
				<p><?php esc_attr_e( 'Activate license keys for add-ons in order to get support and updates.', 'supportcandy' ); ?></p>
				<div class="wpsc-licenses-container">
					<?php do_action( 'wpsc_licenses' ); ?>
				</div>
			</div>
			<script>
				jQuery(document).ready(function(){
					jQuery('button.sync').click(function(){
						jQuery(this).text(supportcandy.translations.please_wait);
						const data = { action: 'wpsc_license_sync' };
						jQuery.post(supportcandy.ajax_url, data, function (response) {
							window.location.reload();
						});
					});
				});
			</script>
			<?php
		}

		/**
		 * Sync licenses
		 *
		 * @return void
		 */
		public static function sync_licenses() {

			if ( ! WPSC_Functions::is_site_admin() ) {
				wp_send_json_error( __( 'Unauthorized access!', 'supportcandy' ) );
			}

			do_action( 'wpsc_license_checker' );
			wp_die();
		}
	}
endif;

WPSC_License::init();

Youez - 2016 - github.com/yon3zu
LinuXploit