Polly po-cket
:) :( :P :o :C ;Y :0 :D :/ :s :r ;) :H) :i) :Q) Powered By:Cute Guestbook"; if($do=="do_sign"){ if ($name!="" && $comment !=""){ $name = str_replace ("|~!|","", $name); $comment = str_replace ("\n", "
", $comment); $comment = str_replace ("|~!|", "-", $comment); $comment = str_replace ("", $comment); $comment = str_replace (":(","", $comment); $comment = str_replace (":P","", $comment); $comment = str_replace (":o","", $comment); $comment = str_replace (":C","", $comment); $comment = str_replace (";)","", $comment); $comment = str_replace (";Y","", $comment); $comment = str_replace (":D","", $comment); $comment = str_replace (":s","", $comment); $comment = str_replace (":r","", $comment); $comment = str_replace (":/","", $comment); $comment = str_replace (":O)","", $comment); $comment = str_replace (":H)","", $comment); $comment = str_replace (":i)","", $comment); $comment = str_replace (":Q)","", $comment); $name = stripslashes ($name); $comment = stripslashes ($comment); $lis="0"; $user=file("badwords.txt"); for($x=0;$xThank you for signing our guestbook.
"; }else{ echo"Please fill the required fields

";} } $latest_rev = $maximum; $lp=file("guestbook.txt"); $abd = count($lp); //echo "$abd"; if ($abd > $latest_rev) { $folename = "guestbook.txt"; $fd = fopen ($folename, "r"); $puff = fread ($fd, filesize($folename)); fclose ($fd); $last_file = fopen ("temp.txt", "a+"); fwrite ($last_file, $puff); fclose($last_file); $fz = fopen ("guestbook.txt", "w"); fwrite ($fz, ""); fclose($fz); $lines14 = file("temp.txt"); $a1 = count($lines14); $u = $a1 - $maximum; for($i1 = $a1; $i1 >= $u ;$i1--){ $msg_old = $lines14[$i1] . $msg_old; } $fz = fopen ("guestbook.txt", "a+"); fwrite ($fz,$msg_old); fclose($fz); } $fz = fopen ("temp.txt", "w"); fwrite ($fz, ""); fclose($fz); $user1=file("guestbook.txt"); if($action==""){ echo "Click here to sign our Guestbook"; echo ""; } } $pages=$s/$listings_per_page; $pages1=round($pages, 2); $p= explode(".", $pages1); $pcount=count($p); $ext=$p[$pcount-2]; if ($ext!=0) { $num=$p[0]+1; } else { $num=$p[0]; } echo "
"; $tlis = 0; for($mp=sizeof($user1)-1;$mp>=0;$mp--){ $mop = explode("|~!|",$user1[$mp]); $opp[$mp] = "$mop[0]|~!|$mop[1]|~!|$mop[2]|~!|$mop[3]|~!|$mop[4]|~!|$mop[5]|~!|"; $list123[$tlis] = $opp[$mp]; $tlis++; } $latest_max = sizeof($list123); $u = $a - $latest_max; if (is_file("guestbook.txt")) { $s=sizeof($list123); if ($page=='' or !$page) { $page=1; } $end=$listings_per_page*$page; $start=$end-$listings_per_page; if ($start<>'0') { $new_page=$page-1; $prev="<<-Previous"; } else { $prev="<<-Previous"; } if ($end<$s) { $new_page1=$page+1; $next="Next->>"; } else { $next="Next->>"; } $today = time(); for ($i=$start; $i<$end; $i++){ if(substr($list123[$i], 1, 5 )!= "") { $p=explode('|~!|', $list123[$i]); if ($p[2]=="http://"){ $link="None"; }else{ $link="$p[2]"; }if($p[1]==""){ $nm=$p[0]; }else{ $nm="$p[0]"; } echo "
Name:$nm
Website:$link
Comments:$p[3]
Signed on:$p[4]
$prev"; for ($i=1; $i<=$num; $i++) { if ($i==$page) { echo " $i "; } else { echo " $i "; } } echo "$next
"; } } if ($action=="sign"){ echo"Sign our Guestbook
"; echo "
* Name:
Email:
Website:
"; smiles(); echo"
* Comments:
Characters Left:
* = Required
"; } echo "
$copyright
"; ?>