vv456 |
Advanced user |

 |
|
Joined: Aug 24, 2012 |
Posts: 190 |
|
|
|
 |
 |
 |
|
Code: | <?php
/**
*
* @ Power Decoder
* @ vv456
* @ www.waraxe.us/forum-userprofile-8669.html
*/
function check_serial_valid() {
{
$serial = get_option('wls_license');
$email = get_option('wls_email');
$prod_name = 'wpls';
$domain = $_SERVER['SERVER_NAME'];
if (substr($domain, 0, 4) == "www.") { $domain = substr($domain, 4);}
$userip = isset($_SERVER['SERVER_ADDR']) ? $_SERVER['SERVER_ADDR'] : $_SERVER['LOCAL_ADDR'];
$validdomain = str_replace("www.", "", $domain);
$key_info['key'] = $serial;
$key_info['email'] = $email;
$key_info['product'] = $prod_name;
$key_info['domain'] = $validdomain;
$key_info['validip'] = $userip;
$serverurl = "http://wplicensesoft.com/";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $serverurl."wp-content/plugins/wp-licensing-svr/auth/verify.php");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $key_info);
curl_setopt($ch, CURLOPT_TIMEOUT, 3600);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close($ch);
$result = json_decode($result, true);
if($result['valid'] == "true"){
return true;
} else {
$serverurl = "http://wpbuz.com/ev/check.php";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $serverurl);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 3600);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $key_info);
curl_setopt($ch, CURLOPT_TIMEOUT, 3600);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close($ch);
$result = json_decode($result, true);
if($result['valid'] == "true"){
return true;
}
}
}
return false;
}
?> |
|
|