MISCELLANEOUS Message Board"; $countfile = "count001.txt"; $postfile = "posts001.txt"; $nick = $HTTP_POST_VARS["nick"]; $email = $HTTP_POST_VARS["email"]; $message = $HTTP_POST_VARS["message"]; $view = $HTTP_POST_VARS["view"]; $url = $HTTP_POST_VARS["url"]; $post = $HTTP_POST_VARS["post"]; $date = date("D, M d, Y - g:i:s a "); if ($execconfig == 1) die(); //////////////////////////////////// if ($post == "1") { if ($nick == "" || trim($message) == "") { DisplayPage(); Die(); } //--Must retain the CTRL-Z in the next statement--// $message = eregi_replace("", "", $message); $message = eregi_replace("&", "&", $message); $message = eregi_replace("
", "<br >", $message); $message = eregi_replace("\r\n", "
", $message); $message = eregi_replace("\r", "
", $message); $message = eregi_replace("\n", "
", $message); $message = stripslashes($message); // $message = eregi_replace("\", "\\", $message); $message = eregi_replace("<", "<", $message); $message = eregi_replace(">", ">", $message); $message = eregi_replace("<br>", "
", $message); $message = eregi_replace("<br >", "<br>", $message); $nick = eregi_replace("<", "<", $nick); $url = eregi_replace("<", "<", $url); $email = eregi_replace("<", "<", $email); $nick = eregi_replace(">", "", $nick); $url = eregi_replace(">", ">", $url); $email = eregi_replace(">", ">", $email); if (trim($email) != "") { $email = "mailto:$email"; } if (!ereg("://", $url) && trim($url) != "") { $url = "http://$url"; } $postcount = fopen ($countfile, "r"); $count = fgets($postcount, 64); if (empty($count)) { $count = "0"; } ++$count; fclose($postcount); $postpost = fopen ($postfile, "a+"); $postcount = fopen ($countfile, "w+"); $date = "$count) $date"; $writer = fwrite($postpost, "$date\n"); $writer = fwrite($postpost, "$nick\n"); $writer = fwrite($postpost, "$email\n"); $writer = fwrite($postpost, "$url\n"); $writer = fwrite($postpost, "$message\n"); $writer = fwrite($postpost, "-----------------------------------\n"); $writer = fwrite($postcount, $count); fclose($postpost); fclose($postcount); DisplayPage(); Die(); } if ($post != "1") { DisplayPage(); Die(); } function DisplayPage() { global $websitetitle, $countfile, $postfile, $show, $nick, $email, $view, $date, $url; echo " $websitetitle

Arachne $websitetitle

[ For miscellaneous messages - I check these posts about once per day ]
"; switch ($view) { case 1: $postlimit = "1"; break; case 2: $postlimit = "11"; break; case 3: $postlimit = "16"; break; case 4: $postlimit = "32"; break; case 5: $postlimit = "42"; break; case 6: $postlimit = "64"; break; case 7: $postlimit = "128"; break; case 8: $postlimit = "256"; break; case 9: $postlimit = "512"; break; case 10: $postlimit = "1024"; break; case 11: $postlimit = "0"; break; case 0: $postlimit = "11"; break; default: $postlimit = "11"; $post = "2"; } $postcount = fopen ($countfile, "r"); $count = fgets($postcount, 64); if (empty($count)) { $count = "0"; } fclose($postcount); $newcount = $count - $postlimit; if ($newcount < "0") $newcount = "0"; $postposts = fopen($postfile, "r"); if ($postlimit != "0") { while ($newcount != 0) { $postdate1 = fgets($postposts, 80); $postname1 = fgets($postposts, 80); $postemail1 = fgets($postposts, 80); $posturl1 = fgets($postposts, 1024); $postmsg1 = fgets($postposts, 20480); $postdash1 = fgets($postposts, 80); --$newcount; } } $postshown = "0"; if ($postlimit == "0") { $postlimit = $count; } while ($postshown != $postlimit) { $postdate1 = fgets($postposts, 80); $postname1 = fgets($postposts, 80); $postemail1 = fgets($postposts, 80); $posturl1 = fgets($postposts, 1024); $postmsg1 = fgets($postposts, 20480); $postdashes1 = fgets($postposts, 80); if ($postname1 == "") break; $posturl1 = eregi_replace("\n", "", $posturl1); $postname1 = eregi_replace("\n", "", $postname1); $postemail1 = eregi_replace("\n", "", $postemail1); $postmsg1 = eregi_replace("\n", "", $postmsg1); $postdate1 = eregi_replace("\n", "", $postdate1); $postmsg1 = eregi_replace("
", "
 ", $postmsg1); $postmsg1 = eregi_replace(" ", "  ", $postmsg1); echo "

$postdate1
"; if($posturl1) echo"URL"; echo"
"; if($postemail1) echo"$postname1>
"; if (!$postemail1) echo"$postname1>
"; //echo"$postmsg1"; echo"$postmsg1"; flush(); // the next 2 lines place the "end anchor" 2 messages from the end ++$end; if ($end == ($postlimit - 2) || $end == ($count - 2))echo""; } $email = eregi_replace("mailto:", "", $email); echo "

"; //these 4 lines only try to use the end anchor after 2 posts have been made //and only when more than 2 posts are being shown //no more "beep, beep" execpt when choosing to show only one post. ;-) if ($count > 2 && $postlimit > 2) echo"
"; else echo""; echo"
Nick:    
Email:  
URL:    

There have been $count posts so-far this month.

This server displays time at  (US MDT == GMT -0600) What's the correct time right now?
Take this link to the Archives
Colby Schoolcraft ``....consider it GPLed, v2 of the license as of now :)''
Thank you, True. :) And in the true-spirit of Free-SRC..... "; } ?>