does this script have to do with the siteheader?

expired domain names
killamike513 asked:

<?
include("funcs.php");

function doswitch (){
global $tab, $time, $id, $tru;

$pimp = mysql_fetch_array(mysql_query("SELECT code FROM $tab[pimp] WHERE id='$id';"));
$user = mysql_fetch_array(mysql_query("SELECT username FROM $tab[user] WHERE code='$pimp[0]';"));

$getgames = mysql_query("SELECT round FROM $tab[game] WHERE starts$time ORDER BY round ASC;”);
while ($game = mysql_fetch_array($getgames))
{
if(fetch(“SELECT user FROM $tab[stat] WHERE user=’$user[0]‘ AND round=’$game[0]‘;”)){
?><a href="dologin.php?switch=game&tru=”>Round , <?
}
}

}

function ADMINHEADER ($title){
global $tab, $tru, $id;

$pimp = mysql_fetch_array(mysql_query("SELECT status FROM $tab[pimp] WHERE id='$id';"));
if($pimp[0] != admin){ echo"ACCESS DENIED!“; die(); }

header(“Cache-Control: no-cache, must-revalidate”);
Header(“Pragma: no-cache”);
Header(“Expires: Thu, 01 Jan 1970 00:00:00 GMT”);
?>

<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" 0){?>onLoad=”settimes()”>
3600){ header(“Location: ../play.php?msg=idle”); }
elseif ($boot[1] == banned){ header(“Location: ../play.php?msg=disabled”); }

$protection = mysql_fetch_array(mysql_query(“SELECT protection,protectstarted FROM $tab[pimp] WHERE id=’$id’;”));
$protect=$protection[0]+$protection[1]-$time;
if($protect

<!– Hide
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}

function MM_displayStatusMsg(msgStr) { //v1.0
status=msgStr;
document.MM_returnValue = true;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}

0){?>
function display(){
rtime=etime-ctime;
if (rtime>60)
m=parseInt(rtime/60);
else{
m=0;
}
s=parseInt(rtime-m*60);
if(s<10)
s=""+s
window.status="You have "+s+" seconds of protection left!"
window.setTimeout("checktime()",1000)
}

function settimes(){
var time= new Date();
secs= time.getSeconds();
etime=secs;
etime+=;
checktime();
}

function checktime(){
var time= new Date();
secs= time.getSeconds();
ctime=secs
if(ctime>=etime){
expired();
}
else
display();
}

function expired(){ window.status=”You have ran out of protection!!!”; }

alert (“”);
// Done hiding –>

<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" 0){?>onLoad=”settimes()”>

<a href="index.php?tru=”> switch rounds: contacts:  

<a href="scout.php?tru=”>scout •
<a href="produce.php?tru=”>produce •
<a href="collect.php?tru=”>collect •
<a href="travel.php?tru=”>travel •
<a href="purchase.php?tru=”>purchase •
<a href="ranks.php?tru=”>ranks


<a href="pimp.php?tru=”>find pimp •
<a href="crew.php?tru=”>find crew •
<a href="whosonline.php?tru=”>who’s online •
<a href="cranks.php?tru=”>crew ranks •
<a href="granks.php?tru=”>global ranks

<a href="board.php?tru=”>message board •
<a href="board.php?brd=recuit&tru=”>recuiting board •
<a href="pimpgods.php?tru=”>pimpgods


<a href="pimp.php?pid=&tru=”>my profile •
<a href="awards.php?tru=”>pimp awards •
game guide
game rules
<a href="options.php?tru=”>options •
<a href="logout.php?tru=”>logout
copyright © 2004 domain. all rights reserved





One Response to 'does this script have to do with the siteheader?'

  1. byteofk - March 3rd, 2010 at 3:31 pm

    This bit does:

    header(“Cache-Control: no-cache, must-revalidate”);
    Header(“Pragma: no-cache”);
    Header(“Expires: Thu, 01 Jan 1970 00:00:00 GMT”);

    Although this is probably what is triggering the error, not what is causing it.

    Somewhere before that you are echoing or printing data to the page and then when it wants to start the page with this header it errors out. Common PHP beginners error.

    Instead of echoing output, store it in a variable and output it right at the end. Nice and safe that way.


Leave a Reply