📄 pcode.php
字号:
<?php
include_once './public/servername.php';
$cfg_siteurl = $cfg_servername;
echo 'var topu=top.location.href;';
$thisip = $_SERVER['REMOTE_ADDR'];
$fromurl = $_SERVER['HTTP_REFERER'];
if (!$fromurl)
{
exit ();
}
if ((((((!empty ($_REQUEST['username']) AND !empty ($_REQUEST['repl'])) AND !empty ($_REQUEST['adsid'])) AND !empty ($_REQUEST['adsuser'])) AND !empty ($_REQUEST['iw'])) AND !empty ($_REQUEST['ih'])))
{
echo 'var ckuser="' . $_REQUEST['username'] . '_' . $_REQUEST['adsid'] . '";
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
if (get_cookie(\'pcode_\'+ckuser)==\'\'){
var Then = new Date();
Then.setTime(Then.getTime() + 3600*1000);
document.cookie=\'pcode_\'+ckuser+\'=yes;expires=\'+ Then.toGMTString();
document.write("<iframe name=keyrunads width=' . $_REQUEST['iw'] . ' height=' . $_REQUEST['ih'] . ('' . ' src=\'http://' . $cfg_siteurl . '/ads/') . $_REQUEST['adsuser'] . '/' . $_REQUEST['adsid'] . ('' . '.php?username=' . $_REQUEST['username'] . '&adsid=' . $_REQUEST['adsid'] . '&adsuser=' . $_REQUEST['adsuser'] . '&repl=' . $_REQUEST['repl'] . '&cu=1&fu="+topu+"\' marginheight=0 marginwidth=0 frameborder=0 scrolling=no></iframe>");
}else{
document.write("<iframe name=keyrunads width=') . $_REQUEST['iw'] . ' height=' . $_REQUEST['ih'] . ('' . ' src=\'http://' . $cfg_siteurl . '/ads/') . $_REQUEST['adsuser'] . '/' . $_REQUEST['adsid'] . ('' . '.php?username=' . $_REQUEST['username'] . '&adsid=' . $_REQUEST['adsid'] . '&adsuser=' . $_REQUEST['adsuser'] . '&repl=' . $_REQUEST['repl'] . '&cu=2&fu="+topu+"\' marginheight=0 marginwidth=0 frameborder=0 scrolling=no></iframe>");
}
');
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -