"; $add_tags = true; } $code = highlight_string($code, true); // Remove the first "" tag from "$code" (if any) if(substr($code, 0, 6) == '') { $code = substr($code, 6, (strlen($code) - 13));} // Replacement-map to replace deprecated "" tag with "" $xhtml_convmap = array( ' '' => '', 'color="' => 'style="color:', '
' => '
', '#000000">' => '#'.COLOR_DEFAULT.'">', '#0000BB">' => '#'.COLOR_FUNCTION.'">', '#007700">' => '#'.COLOR_KEYWORD.'">', '#FF8000">' => '#'.COLOR_COMMENT.'">', '#DD0000">' => '#'.COLOR_STRING.'">'); // Replace "" tags with "" tags, to generate a valid XHTML code $code = strtr($code, $xhtml_convmap); //strip default color (black) tags $code = substr($code, 25, (strlen($code) -33)); //strip the PHP tags if they were added by the script if($add_tags) { $code = substr($code, 0, 26).substr($code, 36, (strlen($code) - 74));} return $code; } function insertlinks($Text) { $NotAnchor='(?$0",$Text); $NotAnchor='(?$0",$Result ); } $bad=array(); $good=array(); $badwords=file("c:/Neo-Fringe/main/badwords.txt",FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES); //$good=file("c:/Neo-Fringe/main/words-good.txt",FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES); for($i=0;$i')) $res = $res.'<'.$strs[$i]; else $res = $res.'<'.$strs[$i]; } return html_entity_decode(strip_tags($res,$str2)); } function codeit($in) { $in=str_replace("
","~",$in); $in=stripslashes($in); //$in=html_entity_decode($in); $in=highlight_code($in); $in=str_replace("~","
",$in); $in=str_replace("","",$in); return "
 CODE 
$in
"; } $sicon=array(":9","|-O","(^.^)/","<(|-B",";_;","@}->--",":-d",":@)","<*_*>","<^O^>",":-[",":-G",":-x",":x",">:-O",":(|)",":|]","3:)","O:)",":))",":((",":'(",":-)",":)",";-)",";)",":-(",":(",":-|",":|",":-*",":*",":-D","^_^",":-o","*:o)","8-X",":3","8-)","8)",":-p","<3","</3","<(\")","B-|","B|","%%-","(%)",":\\","*<|:{)}","=^..^=","(.)(.)","(*)","X-(","<:-O",">:}"); $licon=array(":yum:",":yawn:",":wave:",":silly:",":sad:",":rose:",":razz:",":pig:",":loveeyes:",":lol:",":grumpy:",":gagged:",":sealed:",":sealed:",":angry:",":monkey:",":robot:",":devil:",":angel:",":laugh:",":cry:",":tear:",":smile:",":smile:",":wink:",":wink:",":frown:",":frown:",":indifferent:",":indifferent:",":kiss:",":kiss:",":biggrin:",":happy:",":shock:",":clown:",":crossbones:",":catsmile:",":glasses:",":glasses:",":tongue:",":heart:",":brokenheart:",":penguin:",":cool:",":cool:",":shamrock:",":yinyang:",":confused:",":santa:",":kitty:",":boobies:",":star:",":dead:",":eek:",":evil:"); $req=0; require("nfirst.php"); $pa=array("All","Message","Image","File","Link","Quiz","Poll"); //attrib 0=all 1=message 2=image 3=file 4=link 5=quiz 6=poll $pn="Scribble Wall"; $id=intval($id); if ($id>0) : $pn=getalias($id)." $pn"; if ($pn!='None') : $tt.=" AND toid=$id"; $zz.="&id=$id"; endif; endif; $sortby=intval($sortby); if ($sortby>0) : $zz.="&sortby=$sortby"; endif; if ($sortby<>$prevsortby&&$prevsortby<>'') : $page=1; endif; if ($ss) : $search=$ss; $prevsearch=$ss; endif; if ($search<>$prevsearch) : $page=1; endif; require("ntop.php"); print""; require("nleft.php"); print""; //print"search=$search,prevsearch=$prevsearch,sortby=$sortby,prevsortby=$prevsortby,page=$page"; print"
"; print""; print""; print""; print""; print""; if (!$search) : list($tot)=mysql_fetch_row(mysql_query("SELECT COUNT(wallid) FROM wall WHERE attrib=0$tt")); else : list($tot)=mysql_fetch_row(mysql_query("SELECT COUNT(wallid) FROM wall WHERE attrib=0$tt AND blurb LIKE '%$search%'")); $zz.="&ss=$search"; endif; $tot=intval($tot); $totboxes=10; $maxpages=ceil($tot/$totboxes); if ($maxpages<1) : $maxpages=1; endif; if ($page<1) : $page=1; elseif ($page>$maxpages) : $page=$maxpages; endif; if ($page<$maxpages) : $next=$page+1; else : $next=$maxpages; endif; if ($page>2) : $prev=$page-1; else : $prev=1; endif; print"
"; print"Page of $maxpages   "; //print"Sort   "; //print"Keyword "; //print""; if ($page>1) : print" "; endif; if ($page<$maxpages) : print" "; endif; print"
"; print"
"; print""; print""; print""; print"
$pn
Found $tot scribbles"; if ($d>0) : print" within last $d days"; endif; print"
"; print""; print""; $x2=(($page-1)*$totboxes); if (!$search) : $query="SELECT wallid,blurb,fromid,toid,ltime FROM wall WHERE attrib=0$tt ORDER BY $sa[$sortby] LIMIT $x2,$totboxes"; else : $query="SELECT wallid,blurb,fromid,toid,ltime FROM wall WHERE attrib=0$tt AND blurb LIKE '%$search%' ORDER BY $sa[$sortby] LIMIT $x2,$totboxes"; endif; $result=mysql_query($query); $num_rows=mysql_num_rows($result); if ($num_rows>0) : $nw=416; while(list($wallid,$buff,$fromid,$toid,$ltime2)=mysql_fetch_row($result)) : list($alias2,$avatar2,$creds2,$firsttime2,$city2,$country2,$uid2,$homepage2,$osbrowser2,$email2)=mysql_fetch_row(mysql_query("SELECT alias,avatar,creds,firsttime,city,country,uniqueid,homepage,osbrowser,email FROM members WHERE userid=$fromid")); print""; print""; endwhile; else : print""; endif; print"
Scribbles
$alias2"; print"$alias2
"; if ($country2[2]=='c') : $flag='ca'; elseif ($country2[2]=='u') : $flag='us'; else : $flag=$country2; endif; print"
$city2"; if ($userid>0) : print"  "; list($user2,$site2)=explode("@",$email2); print""; print"email"; endif; if ($homepage2) : print"  homepage"; endif; $osbrowser2=str_replace(' ',' ',$osbrowser2); print"  $osbrowser2"; if (substr($uid2,0,3)<>'OFF') : print"  ONLINE"; endif; print"
"; print""; if ($fromid==$userid||$toid==$userid) : //print""; endif; print"
"; print date("D, M jS Y @ g:i:sa",strtotime($ltime2)); if (!$id) : print" to ".getalias($toid).""; endif; print" by $alias2
"; $buff=my_strip_tags($buff,"
"); //$buff=wordwrap($buff,80); $buff=preg_replace("(\([^\~]*)\)","$1",$buff); $buff=preg_replace("/\\[b\\](.+?)\[\/b\]/is",'\1',$buff); $buff=preg_replace("/\\[i\\](.+?)\[\/i\]/is",'\1',$buff); $buff=preg_replace("/\[s\](.+?)\[\/s\]/is",'\1',$buff); $buff=preg_replace("/\\[u\\](.+?)\[\/u\]/is",'\1',$buff); $buff=preg_replace("/\\[code\\](.+?)\[\/code\]/ise","codeit('$1')", $buff); $buff=preg_replace("/\\[quote\\](.+?)\[\/quote\]/is","
 QUOTE 
$1
",$buff); $buff=eregi_replace("\\[color=([^\\[]*)\\]([^\\[]*)\\[/color\\]","\\2",$buff); $buff=eregi_replace("\\[post=([^\\[]*)\\]([^\\[]*)\\[/post\\]","\\2",$buff); $buff=eregi_replace("\\[img]([^\\[]*)\\[/img\\]","",$buff); $buff=eregi_replace("\\[size=([^\\[]*)\\]([^\\[]*)\\[/size\\]","\\2",$buff); $buff=insertlinks($buff); $buff=str_replace($sicon,$licon,$buff); $buff=preg_replace("/:([a-z0-9_-]*):/ie","iconok(\"\\1\")",$buff); if ($access>4) : $buff=preg_replace($bad,$good,$buff); $buff=str_replace(array("*@n@l*","*sl#t*"),array("*anal*","*slut*"),$buff); //fix $buff=preg_replace("/\*([a-z0-9_-]*)\*/ie","iconok2(\"\\1\")",$buff); else : $buff=preg_replace($bad,"word removed",$buff); endif; print"$buff

"; if (file_exists("C:/Neo-Fringe/wall/u$toid/pic$wallid.jpg")) : print"
Click to view full size original
"; elseif (file_exists("C:/Neo-Fringe/wall/u$toid/pic$wallid.gif")) : print"
Click to view full size original
"; endif; print"
"; //print"Delete"; //print"
No scribbles
"; print"
"; print"
"; //print""; if ($page>1) : print" "; endif; if ($page<$maxpages) : print" "; endif; print"
"; print""; require("nright.php"); print""; require("nbottom.php"); ?>