Code: Select all
$x = explode("]-_-ї",$idsї$id]);
if ($xї3] > 0) {
$sql = "UPDATE $xї2] SET out=out+1, credits=credits-1 WHERE id='$xї0]'";
} else {
$sql = "UPDATE $xї2] SET out=out+1 WHERE id='$xї0]'";
}
$result = $s24_sql->query($sql);
$url = $xї1];
$content = "URL: $url";
setcookie($cookiename, $content, time()+($hours*60*60));
if (empty($url)) {
exit;
}
echo "function popup() {\n";
echo " window.open('$url','popup','scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no');\n";
echo " self.focus();\n";
echo "}\n";
?>Code: Select all
<script language="JavaScript"><!--
if (window.screen) {
window.moveTo(0,0);
window.outerHeight = screen.availHeight;
window.outerWidth = screen.availWidth;
self.resizeTo(screen.availWidth,screen.availHeight);
}
//--></script>
<script language="JavaScript1.2">
var minWidth=600,minHeight=350;
var animRate = 25;
var ie5_nn6=false;
var ie_ver=0;
var nn_ver=0;
var target_url = "http://adscruise.com/rotate/r1.html";
//check browser
if (navigator.appVersion.indexOf("MSIE")!=-1){
temp=navigator.appVersion.split("MSIE");
ie_ver=parseFloat(tempї1]);
}
if(navigator.appName=="Netscape"){
if((ps=navigator.userAgent.indexOf("Netscape"))!=-1){
tempstr=navigator.userAgent.substring(ps);
if((ps=tempstr.indexOf("/"))!=-1){
temp=tempstr.substring(ps+1,ps+4);
nn_ver=parseFloat(temp);
}
}
}
if (ie_ver>=5.0||nn_ver>=6.0){
ie5_nn6=true;
}
function createLayer(name, left, top, width, height, visible, content) {
if(ie5_nn6){
document.writeln('<div id="' + name + '" style="position:absolute; overflow:none; left:' + left + 'px; top:' + top + 'px; width:' + width + 'px; height:' + height + 'px;' + ' visibility:' + (visible ? 'visible;' : 'hidden;') + '">');
document.writeln(content);
document.writeln('</div>');
}
}
function hideLayer(name) {
var layer = getLayer(name);
if(ie5_nn6){
layer.visibility = "hidden";
}
}
function showLayer(name) {I have tried to 'echo' every line, close the php, everything I can think of, to no avail. This page is called by the following tag in the HTML of the webpage.
Code: Select all
<SCRIPT LANGUAGE="JavaScript" SRC="http://rx2advantage.com/exit/popup.php?account=rx2group"></SCRIPT>