=$max order by id"; $res = mysql_query($query); if ($res) { while ($row = mysql_fetch_assoc($res)) { extract($row); $msg = ''; $what = str_replace('`1','',$what); $what = str_replace('`2','',$what); $what = str_replace('`3','',$what); $what = str_replace('`4','',$what); $what = str_replace('`5','',$what); $what = str_replace('`6','',$what); $what = str_replace('`7','',$what); $what = str_replace('`8','',$what); $what = str_replace('`9','',$what); $what = str_replace('`0','',$what); $what = str_replace('`!','',$what); $what = str_replace('`@','',$what); $what = str_replace('`#','',$what); $what = str_replace('`$','',$what); $what = str_replace('`%','',$what); $msg = $msg . $what . ''; print << STOP; } } else { print "\n"; // print "\n"; } print "\n"; if ($_SESSION['uid'] > 0) { if ($_SESSION['banned'] == 0) { print << STOP; } else { print << STOP; } } else { print << STOP; } print << STOP; } function addScreen () { print << STOP; } function saveConvo () { global $_REQUEST; if (strlen($_REQUEST['text']) < 5) { print << STOP; return; } $who = safe_mysql($_SESSION['uname']); $_REQUEST['text'] = str_replace("<","<",$_REQUEST['text']); $what = safe_mysql($_REQUEST['text']); $query = "select count(*) from barconvo where who='$who' and what='$what'"; $res = mysql_query($query); list ($count) = mysql_fetch_row($res); if ($count == 0) { $query = "insert into barconvo (who,what,`when`) values ($who,$what,now())"; mysql_query($query); listBar(); } else { ?> 0 && $_SESSION['banned'] == 0 && $action == 'add') { addScreen(); } elseif ($_SESSION['uid'] > 0 && $_SESSION['banned'] == 0 && $action == 'save') { saveConvo(); } else { listBar(); } include('inc/finish.php'); ?>
Legend of the Red Dragon - Converse with the Patrons
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
$who
$msg
Sorry. Cant hit the database. Please try later.
" . mysql_error() . "
 
(A)dd to the convo
You are not allowed to add to the convo board
(L)ogin to add to the convo
(Q)uit to main
 
What would you like to add?
 
(R)eturn to the Bar
Everyone thought you had something to say. But you didn't.
 
(R)eturn to the Bar
Duplicate post found. Not added.
 
(R)eturn to the Bar
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
The "Converse with the Patrons" board does allow SANSI codes. However, it is not a place for BBS advertisements, or talk that's unrelated to LORD. Anyone caught advertising, or talking off-topic will be banned from the board.