what's with this number string?
Posted: Sun Sep 14, 2003 4:01 pm
i was having issues with the forums when it was loading and getting no errors. i decided to go to sleep for the night. i think php restarted because i got notices now which i hadn't been getting even after switching from E_ALL ~E_NOTICE to E_ALL
in any case, the notices allowed me to figure out why i wasn't seeing anything (combined with an echo to track doen bugs) but now i have another issue, i'm getting a number string that i don't understand where it's coming from. i want to get rid of JUST the number string but since i don't understand what's causing it....
could anyone tell me what's causing this number string (taken from a view while logged out):note: it's also in the print out used in the display, so i do need to track it down
in any case, the notices allowed me to figure out why i wasn't seeing anything (combined with an echo to track doen bugs) but now i have another issue, i'm getting a number string that i don't understand where it's coming from. i want to get rid of JUST the number string but since i don't understand what's causing it....
could anyone tell me what's causing this number string (taken from a view while logged out):
from this code:test:
test:1062417559
Problems/Suggestions 0
test:10624175591062417560
Problems/Suggestions 0
Fakes 0
test:10624175591062417560
Problems/Suggestions 0
Fakes 0
test:10624175591062417560
Problems/Suggestions 0
Fakes 0
Code: Select all
function getforums($ual, $db, $utds, $gmtos){ # get the forum listing by user access level, db link
include('/home/joshua/includes/fyd.altincs.php'); # includes file
$findforums=mysql_query("SELECT * FROM forums", $db); # get forum info
$forumlist=''; # create an empty list. that will be filled with forums
while($foruminf=mysql_fetch_array($findforums)){ // while we can retrieve more forums
$fal=$foruminf['access']; # get forum access level
if($fal==$visitor){ # if everyone can see
$forum=$foruminf['title']; $fid=$foruminf['forum_id']; $threads=$foruminf['threads'];
$lauth=$foruminf['last_post_auth']; $lpt=$foruminf['last_post_time']; # who/when of last post
$lpt=gmmktime($utds, (toTimestamp($lpt)+($gmtos*60*60))); # change to the user's time format/zone
$forumlist.=" <tr><td><a href="forums.php?fid=$fid">$forum</a></td><td>$threads</td><td>$lauth</td><td></td>$l
pt</tr>\n"; # add the row with the forum
}elseif($fal==$rmember){ # restricted to members
if((contains($ual, $regulars))||(contains($ual, $desireds))){ # if you're signed in
$forum=$foruminf['title']; $fid=$foruminf['forum_id']; $threads=$foruminf['threads'];
$lauth=$foruminf['last_post_auth']; $lpt=$foruminf['last_post_time']; # who/when of last post
$lpt=gmmktime($utds, (toTimestamp($lpt)+($gmtos*60*60))); # change to user's time format/zone
$forumlist.=" <tr><td><a href="forums.php?fid=$fid">$forum</a></td><td>$threads</td><td>$lauth</td><td></td>$l
pt</tr>\n"; # add the row with the forum
}
}elseif($fal==$pmember){ # resticted to paying members
if(contains($ual, $desireds)){ # you're a paying member
$forum=$foruminf['title']; $fid=$foruminf['forum_id']; $threads=$foruminf['threads'];
$lauth=$foruminf['last_post_auth']; $lpt=$foruminf['last_post_time']; # who/when of last post
$lpt=gmmktime($utds, (toTimestamp($lpt)+($gmtos*60*60))); # change to user's time format/zone
$forumlist.=" <tr><td><a href="forums.php?fid=$fid">$forum</a></td><td>$threads</td><td>$lauth</td><td></td>$l
pt</tr>\n"; # add the row with the forum
}
}elseif($fal==$adult){ # restricted to those verified 18+
if(contains($ual, $adult)){ # you're verified 18+
$forum=$foruminf['title']; $fid=$foruminf['forum_id']; $threads=$foruminf['threads'];
$lauth=$foruminf['last_post_auth']; $lpt=$foruminf['last_post_time']; # who/when of last post
$lpt=gmmktime($utds, (toTimestamp($lpt)+($gmtos*60*60))); # change to user's time format/zone
$forumlist.=" <tr><td><a href="forums.php?fid=$fid">$forum</a></td><td>$threads</td><td>$lauth</td><td></td>$l
pt</tr>\n"; # add the row with the forum
}
}elseif($fal==$admoap){ # restricted to moderators/approvers/(jr) admins
if((contains($ual, $moderators))||(contains($ual, $approvers))){ # you're a mod/app/...
$forum=$foruminf['title']; $fid=$foruminf['forum_id']; $threads=$foruminf['threads'];
$lauth=$foruminf['last_post_auth']; $lpt=$foruminf['last_post_time']; # who/when of last post
$lpt=gmmktime($utds, (toTimestamp($lpt)+($gmtos*60*60))); # change to user's time format/zone
$forumlist.=" <tr><td><a href="forums.php?fid=$fid">$forum</a></td><td>$threads</td><td>$lauth</td><td></td>$l
pt</tr>\n"; # add the row with the forum
}
}elseif($fal==$admin){ # restricted to (jr) admins
if(($ual==$wbm)||($ual==$adm)||($ual==$jra)){ # you're on the admin team
$forum=$foruminf['title']; $fid=$foruminf['forum_id']; $threads=$foruminf['threads'];
$lauth=$foruminf['last_post_auth']; $lpt=$foruminf['last_post_time']; # who/when of last post
$lpt=gmmktime($utds, (toTimestamp($lpt)+($gmtos*60*60))); # change to user's time format/zone
$forumlist.=" <tr><td><a href="forums.php?fid=$fid">$forum</a></td><td>$threads</td><td>$lauth</td><td></td>$l
pt</tr>\n"; # add the row with the forum
}
}
echo "<p>test:<table>$forumlist</table></p>";
}
return $forumlist;
}