The Angry Ox: Weird: Answering Machine Messages
0) { echo "{$num} messages found.\n"; echo ""; $first = " first"; while($row = mysql_fetch_array($r)) { echo ""; $first = ""; } echo "
".nl2br($row['text'])."
"; } else { echo "0 (that's zero) messages found.

Try Again.\n"; } } function random() { $r = dbq("select * from messages where approved order by rand() limit 1"); echo "Here's a random message. I hope it's a good one. Have another.\n"; echo ""; while($row = mysql_fetch_array($r)) { echo ""; } echo "
".nl2br($row['text'])."
"; displayad(); } function all() { $r = dbq("select * from messages order by text"); echo "This is ALL of the messages we have. Wheee!\n"; echo ""; $first = " first"; $count = 0; while($row = mysql_fetch_array($r)) { echo ""; $first = ""; if ($count++ % 15 == 0) { echo ""; } } echo "
".nl2br($row['text'])."
"; displayad(); echo "
"; } function submit($d) { if (is_array($d)) { if (empty($d['text'])) $err .= "You must ACTUALLY enter an answering machine message.
"; if (empty($d['email'])) $err .= "You must ACTUALLY enter your email address.
"; if (!empty($d['text']) and preg_match("(\<|\>)", $d['text'])) $err .= "No HTML! Remove it.
"; include_once("../../lib/email-valid.inc"); if (_is_valid_simple($d['email']) != 1) $err .= "Your email address is invalid. Try again."; if (empty($err)) { // process the data $d['text'] = preg_replace("/ +/"," ",$d['text']); $d['email'] = trim($d['email']); $hash = md5($d['text']); $r = dbq("insert into messages (text,email,date,hash) values (\"{$d['text']}\",'{$d['email']}',now(),'{$hash}')"); $d['text'] = stripslashes($d['text']); $d['email'] = stripslashes($d['email']); if ($r) { $message = <<"); echo "Thanks! You need to go to the URL in your email to verify your submission. If you do not, your submission will be deleted after 72 hours, and never reviewed. Make sure you check your email and go to that URL!"; echo "

Go ahead and submit another, if you like!

"; $d['text'] = ""; $GLOBALS[d]['text'] = ""; } } } echo "Submit your own answering machine message!

NOTE: Your message will NOT be reviewed or posted if your email is invalid. You must confirm your submission via email!

"; include_once("../../lib/pbform.inc"); $f = new HTML_Form($GLOBALS['PHP_SELF'],"post"); $f->start(); if (!empty($err)) echo "{$err}"; echo ""; $f->displaytextarearow("d[text]","Answering Machine
Message","",40,5); $f->displaytextrow("d[email]","Your Email Address",$_COOKIE['email'],30); $f->displaysubmitrow("submit","Save Message"); $f->displayhidden("f","submit"); echo "

"; echo "Some Tips:

  • Use real names, like John or Jen. Don't write \"[your name here].\"
  • [Sound effects or descriptions] should go in square brackets.
  • Limit your use of HTML to bold, italics and underline.
  • Search the database to make sure there isn't another version already in there.
"; } function verify($h) { $r = dbq("select id,email,hash,verified,approved,date,text from messages where hash='{$h}'"); if (mysql_num_rows($r) == 1) { $row = mysql_fetch_array($r); if ($row['verified'] == 0) { $s = dbq("update messages set verified=1 where id={$row['id']}"); echo "Your message is verified! We will review your message ASAP, and post it if it doesn't suck!

"; } else { echo "Your message is already verified!!! We are reviewing it, I swear!!! Stop reloading the page!

"; } } else { echo "We couldn't find that message submission. Sorry, that message already exists in our database. Try again.

"; } else { echo "Sorry, a database error has occurred. Peter has been notified.

"; echo nl2br($errstr); mail("beckman@AngryOx.com","AMM Site Error",$errstr,"From: AMM Site Error "); } } function mainpage() { ?> I finally redesigned this site! The messages are now 100% searchable, and soon you'll be able to submit your own, rate others, and generally spend lots of valuable time here. Aren't you excited?

[ Random Message | All Messages | Submit a Message ]

These are links to WAY cool sites with answering machine messages that I just couldn't take the time to duplicate -- check 'em out! Funny stuff! WAV, MP3, Real, WMV -- you name it. You can even use these on your cell phone! Get beyond the "Leave your message after the beep." greetings. Celebrity announcements too!

They are ordered in the order in which I felt they should be ordered, in descending order: