"; $E=''; include('incutfcleanup.php'); include('incstarringroles.php'); $CCOLOR="WHITE"; if (isset($_COOKIE["rbname"])){ $whozzat=$_COOKIE["rbname"]; $pEditor=isEditor($whozzat); echo "Hi there, $whozzat!
"; if($pEditor != ""){ $CCOLOR=CheckEditor($pEditor); } //echo $pEditor; } else { $pEditor=""; } foreach ($_REQUEST as $key => $value){ $$key = $value; //echo "$key: $value
"; } $ID=intval($ID); $yesterday=date("m/d/Y",strtotime($D)-(3600*24)); function isEditor($x){ $SSQL="select * from tbleditors where upper(cookie)='" . str_replace("'","''",strtoupper($x)) . "'"; $result = pg_query($SSQL) or die ("Error in query: $SSQL. " . pg_last_error()); $row = pg_fetch_object($result); if ($row){ return $x; } return ""; } function CheckEditor($X){ $ssql = "select * from tbleditors where cookie='$X'"; $result = pg_query($ssql) or die ("Error in query: $ssql. " . pg_last_error()); $row = pg_fetch_object($result); if ($row) return $row->color; return "WHITE"; } $_poster=isPoster($whozzat); $_restricted=false; $D=date("Y-m-d",strtotime($D)); if($D != date("Y-m-d")){ echo "Archived material "; if($_poster==true || $pEditor != ''){ echo "Access okay"; }else{ echo "Access restricted"; $_restricted=true; } echo ""; } $DD=$D; $ssql="select id as dayzmax from tbltwar where rdate='" . $D . "' and published='YES' order by id desc limit 1"; $sresult = pg_query($ssql) or die ("Error in query: $ssql. " . pg_last_error()); if (pg_num_rows($sresult) > 0) { $srow = pg_fetch_object($sresult); $dayzmax=$srow->dayzmax; } $NEXTID=$ID+1; $PREVID=$ID-1; if(isset($_SERVER["REMOTE_ADDR"])){ $_ip=$_SERVER["REMOTE_ADDR"]; } if(isset($_SERVER["HTTP_REFERER"])){ $_orig=$_SERVER["HTTP_REFERER"]; } $query = "select viewcount from tblpghitz where id=$ID"; $sresult = pg_query($query) or die ("Error in query: $query . " . pg_last_error()); $srow = pg_fetch_object($sresult); if($srow){ $cnt=$srow->viewcount + 1; $ssql="update tblpghitz set viewcount=$cnt,rdate='$D',dtstamp='" . date("Y-m-d H:i:s") . "', ip_addr='$_ip',orig='$_orig',cookie='$whozzat' where id=$ID"; $sresult = pg_query($ssql) or die ("Error in query: $ssql. " . pg_last_error()); }else{ $cnt=1; $ssql="insert into tblpghitz (id,viewcount,rdate,dtstamp,ip_addr,orig,cookie) values ($ID,1,'$D','" . date("Y-m-d H:i:s") . "','$_ip','$_orig','$whozzat')"; $sresult = pg_query($ssql) or die ("Error in query: $ssql. " . pg_last_error()); } $query = "SELECT id as maxid,rdate FROM tbltwar where published='YES' order by id desc limit 1"; //echo $query; $sresult = pg_query($query) or die ("Error in query: $query. " . pg_last_error()); if (pg_num_rows($sresult) > 0) { $srow = pg_fetch_object($sresult); $maxid = $srow->maxid; $maxdate = $srow->rdate; } if(!isset($SO)) $SO=""; //$PREVID = ""; //$PREVDATE = date("Y-m-d"); $query = "SELECT id,rdate FROM tbltwar WHERE published='YES' and id ='" . $PREVID . "'"; //echo $query; $sresult = pg_query($query) or die ("Error in query: $query. " . pg_last_error()); if (pg_num_rows($sresult) > 0) { $srow = pg_fetch_object($sresult); $PREVID = $srow->id; $PREVDATE = $srow->rdate; } $query = "SELECT id,rdate FROM tbltwar WHERE published='YES' and id ='" . $NEXTID . "'"; //echo $query; $sresult = pg_query($query) or die ("Error in query: $query. " . pg_last_error()); $NEXTDATE=date("Y-m-d"); $NEXTID=$ID; if (pg_num_rows($sresult) > 0) { $srow = pg_fetch_object($sresult); $NEXTID = $srow->id; $NEXTDATE = $srow->rdate; } /****************************************************************************/ $query = "SELECT * FROM tbltwar WHERE id = $ID"; //echo $query; $sresult = pg_query($query) or die ("Error in query: $query. " . pg_last_error()); if (pg_num_rows($sresult) > 0) { $srow = pg_fetch_object($sresult); $rdate = $srow->rdate; $rbanner = $srow->rbanner; $rHeadline = $srow->rheadline; $rQuote = $srow->rquote; $rcommented = $srow->commented; $artOriginal = $srow->artoriginal ; $rposter = $srow->poster; $rTime = $srow->rtime; $referrer = $srow->referrer; $Classic = $srow->classic ; $file_under = $srow->file_under ; $TINDEX = $srow->tindex ; $KILLED = $srow->killed ; if(!isset($HC)) $HC=$srow->tindex; $basedate=' since 2007-05-07'; $HC=$TINDEX; if(strtotime($rdate) > strtotime("2007-05-06")){ $basedate=""; } /****************************************************************************/ ?> Article "; ?>
Rantburg

1) {?>
Today's Front Page   View All of Today's Front Page   View All of Today's Front Page   View All of View View View View View View
 
rquote); ?> id; //echo $query; $sresult = pg_query($query) or die ("Error in query: $query. " . pg_last_error()); /****************************************************************************/ if (pg_num_rows($sresult) > 0) { $crow = pg_fetch_object($sresult); echo "

Continued from Page $HC

"; echo nl2br($crow->article); } pg_free_result($sresult); ?> id) ?>
Archived material is restricted to Rantburg regulars and members. If you need access email fred.pruitt=at=gmail.com with your nick to be added to the members list. There is no charge to join Rantburg as a member.
Posted by   || E-Mail|| Poster||"; ?> Front Page||"; ?> ||Comments    [ views Top
File under:  
file_under != ""){ ?>  File under:  

email){ ?>
dumptext; $COMMENTS=$DUMPTEXT; if(strlen($COMMENTS)==0){ $COMMENTS=$srow->comments; } ?> # 
Posted by poster; ?>  dtg; ?>||
Posted by poster; ?> dtg; ?>|| webpage; ?>  dtg; ?>|| Poster||"; ?> Front Page"; ?> ||Comments   Top
[Spamcop cid; ?>  Smokey]

Sorry. That article has been deleted.

Google
Search WWW Search rantburg.com

We're sorry

The internet is closed for cleaning today

"; } */ ?> 1) {?>
Latest Post   <-- Next  
Date Today   View the Whole Day   Today   View the Whole Day   Previous -->