| Server IP : 104.21.73.115 / Your IP : 216.73.217.154 Web Server : Apache System : Linux vps42439 6.8.0-136-generic #136~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 3 16:29:11 UTC x86_64 User : dh_7hi3h9 ( 6349477) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/dh_7hi3h9/regalflower.com/wp-content/plugins/analytics-code/ |
Upload File : |
<div class="acp_get_pro">
<?php
if (isset($_GET['pay']) && $_GET['pay'] == 'success') {
ga_tc_check_license();
}
if (get_option('ga_tc_pro')):
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pro_info.php';
else:
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pro_get.php';
endif;
function ga_tc_check_license() {
$params = array(
'method' => 'POST',
'timeout' => 45,
'redirection' => 5,
'httpversion' => '1.0',
'blocking' => true,
'headers' => array(),
'body' => array( 'url' => home_url() ),
'cookies' => array(),
);
$pro = 0;
$request = wp_remote_post(GA_TC_SERVER . '/api/plugin-info', $params);
if ( !is_wp_error( $request ) || wp_remote_retrieve_response_code( $request ) === 200 ) {
$answer = json_decode($request['body'], true);
if (is_array($answer) && isset($answer['data']['info'])) {
$info = json_decode($answer['data']['info'], true);
if (isset($info['license']) && !empty($info['license'])) {
$pro = 1;
}
}
}
update_option('ga_tc_pro', $pro);
}
?>
</div>