PHP 8.2.31
Preview: license.class.php Size: 2.20 KB
//home/nshryvcy/radiantskinclinics.org/wp-content/plugins/revslider/admin/includes/license.class.php

<?php
/**
 * @author    ThemePunch <info@themepunch.com>
 * @link      https://www.themepunch.com/
 * @copyright 2024 ThemePunch
 * @since	  6.2.0
 */

if(!defined('ABSPATH')) exit();

class RevSliderLicense extends RevSliderFunctions {
	/**
	 * Activate the Plugin through the ThemePunch Servers
	 * @before 6.0.0: RevSliderOperations::checkPurchaseVerification();
	 * @before 6.2.0: RevSliderAdmin::activate_plugin();
	 **/
	public function activate_plugin($code){
		$rstrack = new RevSliderTracking();
		$rstrack->_run(true);

		$rslb = RevSliderGlobals::instance()->get('RevSliderLoadBalancer');
		$data = array(
			'code'		=> urlencode($code),
			'version'	=> urlencode(RS_REVISION),
			'product'	=> urlencode(RS_PLUGIN_SLUG),
			'addition'	=> apply_filters('revslider_activate_plugin_info_addition', array())
		);
		
		$response	  = $rslb->call_url('activate.php', $data, 'updates');
		$version_info = wp_remote_retrieve_body($response);
		
		if(is_wp_error($version_info)) return false;
		if($version_info == 'valid'){
			update_option('revslider-valid', 'true');
			update_option('revslider-code', $code);
			update_option('revslider-deregister-popup', 'false');

			return true;
		}
		if($version_info == 'exist') return 'exist';
		if($version_info == 'banned') return 'banned';
		
		return false;
	}
	
	
	/**
	 * Deactivate the Plugin through the ThemePunch Servers
	 * @before 6.0.0: RevSliderOperations::doPurchaseDeactivation();
	 * @before 6.2.0: RevSliderAdmin::deactivate_plugin();
	 **/
	public function deactivate_plugin(){
		$rstrack = new RevSliderTracking();
		$rstrack->_run(false);

		$rslb = RevSliderGlobals::instance()->get('RevSliderLoadBalancer');
		$code = get_option('revslider-code', '');
		$data = array(
			'code' => urlencode($code),
			'product' => urlencode(RS_PLUGIN_SLUG),
			'addition' => apply_filters('revslider_deactivate_plugin_info_addition', array())
		);
		
		$res = $rslb->call_url('deactivate.php', $data, 'updates');
		$vi	 = wp_remote_retrieve_body($res);
		
		if(is_wp_error($vi)) return false;

		if($vi == 'valid'){
			update_option('revslider-valid', 'false');
			update_option('revslider-code', '');
			update_option('revslider-deregister-popup', 'true');

			return true;
		}
		
		return false;
	}
}

Directory Contents

Dirs: 1 × Files: 19

Name Size Perms Modified Actions
- drwxr-xr-x 2026-02-23 02:01:24
Edit Download
205 B lr--r--r-- 2026-02-23 02:01:24
Edit Download
7.42 KB lrw-r--r-- 2025-04-07 05:23:13
Edit Download
2.81 KB lrw-r--r-- 2025-04-07 05:23:13
Edit Download
30.50 KB lrw-r--r-- 2025-04-07 05:23:13
Edit Download
14.67 KB lrw-r--r-- 2025-04-07 05:23:13
Edit Download
27.68 KB lrw-r--r-- 2025-04-07 05:23:13
Edit Download
4.17 KB lrw-r--r-- 2025-04-07 05:23:13
Edit Download
61.09 KB lrw-r--r-- 2025-04-07 05:23:13
Edit Download
585.66 KB lrw-r--r-- 2025-04-07 05:23:13
Edit Download
74.31 KB lrw-r--r-- 2025-04-07 05:23:13
Edit Download
27 B lrw-r--r-- 2025-04-07 05:23:13
Edit Download
2.20 KB lrw-r--r-- 2025-04-07 05:23:13
Edit Download
3.70 KB lrw-r--r-- 2025-04-07 05:23:13
Edit Download
1.70 KB lrw-r--r-- 2025-04-07 05:23:13
Edit Download
371.25 KB lrw-r--r-- 2025-04-07 05:23:13
Edit Download
23.98 KB lrw-r--r-- 2025-04-07 05:23:13
Edit Download
31.76 KB lrw-r--r-- 2025-04-07 05:23:13
Edit Download
10.80 KB lrw-r--r-- 2025-04-07 05:23:13
Edit Download
4.74 KB lrw-r--r-- 2025-04-07 05:23:13
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).