Guest_imported
New member
- Jan 1, 1970
- 0
Hi I was wondering if someone could tell me what's wrong with the script below, i'm not too familiar with echo statements but i'd be greatful for your help. Thanx
echo '
<table cellspacing='0' cellpadding='0' border='0' width='100%' height='100%'>
<tr><td valign='center'>
<center><form name='countDown'><a href='chatterbox.php'>Refresh Window</a> <input name='ticker' type='text' size='2'> - <a href='' onclick='window.close()'>Close Window</a> \n";
if($status == "Administrator" {
- <a href='chatterbox.php?action=delete'>Delete All Posts</a> }
</center>\n
<hr noshade size=\"1\">
</form><p><p style='margin-top: -15'></p>\n
<p><b>Who's chatting?</b>
$query = $db->query("SELECT * FROM xmb_nfp_whosonline WHERE username NOT LIKE '%guest%' AND location LIKE '%chatterbox.php%' ORDER BY username"
while($online = $db->fetch_array($query)) {
echo "$comma<a href='member.php?action=viewpro&member=$online[username]' target='_blank'>$online[username]</a>";
$comma = ", "; }
?>
<p> </p>
<form action="chatterbox.php?action=post" method="post" name="input">
<p style="margin-top: -15"><center><b>Message:</b> <input type="text" name="mesg" size="30" value="" style="width: 160px"> <input type='submit' value='Post'> <input type="reset" value="Clear"></center></p>
<p style="margin-top: -15" align="center">
<a href="javascript:icon('')"><img src="<?=$smdir?>/smile.gif" border="0"></a>
<a href="javascript:icon('')"><img src="<?=$smdir?>/sad.gif" border="0"></a>
<a href="javascript:icon('')"><img src="<?=$smdir?>/biggrin.gif" border="0"></a>
<a href="javascript:icon('')"><img src="<?=$smdir?>/wink.gif" border="0"></a>
<a href="javascript:icon('')"><img src="<?=$smdir?>/cool.gif" border="0"></a>
<a href="javascript:icon('')"><img src="<?=$smdir?>/mad.gif" border="0"></a>
<a href="javascript:icon('')"><img src="<?=$smdir?>/shocked.gif" border="0"></a>
<a href="javascript:icon('')"><img src="<?=$smdir?>/tongue.gif" border="0"></a>
<a href="javascript:icon(':?')"><img src="<?=$smdir?>/puzzled.gif" border="0"></a>
<a href="javascript:bold()"><img src="<?=$imgdir?>/bb_bold.gif" border="0" alt="Insert Bold Text"></a>
<a href="javascript:italic()"><img src="<?=$imgdir?>/bb_italicize.gif" border="0" alt="Insert Italicized Text"></a>
<a href="javascript:underline()"><img src="<?=$imgdir?>/bb_underline.gif" border="0" alt="Insert Underlined Text"></a>
<a href="javascript:hyperlink()"><img src="<?=$imgdir?>/bb_url.gif" border="0" alt="Insert a Hyperlink"></a>
<a href="javascript:email()"><img src="<?=$imgdir?>/bb_email.gif" border="0" alt="Insert an Email Address"></a>
</p>
<p style="margin-top: -15"><hr noshade size="1">
</tr><tr><iframe name="frame" src="chat.php" width="100%" height="700" scrolling="Auto" frameborder="0" ></iframe></tr></table>
</form>';
echo '
<table cellspacing='0' cellpadding='0' border='0' width='100%' height='100%'>
<tr><td valign='center'>
<center><form name='countDown'><a href='chatterbox.php'>Refresh Window</a> <input name='ticker' type='text' size='2'> - <a href='' onclick='window.close()'>Close Window</a> \n";
if($status == "Administrator" {
- <a href='chatterbox.php?action=delete'>Delete All Posts</a> }
</center>\n
<hr noshade size=\"1\">
</form><p><p style='margin-top: -15'></p>\n
<p><b>Who's chatting?</b>
$query = $db->query("SELECT * FROM xmb_nfp_whosonline WHERE username NOT LIKE '%guest%' AND location LIKE '%chatterbox.php%' ORDER BY username"
while($online = $db->fetch_array($query)) {
echo "$comma<a href='member.php?action=viewpro&member=$online[username]' target='_blank'>$online[username]</a>";
$comma = ", "; }
?>
<p> </p>
<form action="chatterbox.php?action=post" method="post" name="input">
<p style="margin-top: -15"><center><b>Message:</b> <input type="text" name="mesg" size="30" value="" style="width: 160px"> <input type='submit' value='Post'> <input type="reset" value="Clear"></center></p>
<p style="margin-top: -15" align="center">
<a href="javascript:icon('')"><img src="<?=$smdir?>/smile.gif" border="0"></a>
<a href="javascript:icon('')"><img src="<?=$smdir?>/sad.gif" border="0"></a>
<a href="javascript:icon('')"><img src="<?=$smdir?>/biggrin.gif" border="0"></a>
<a href="javascript:icon('')"><img src="<?=$smdir?>/wink.gif" border="0"></a>
<a href="javascript:icon('')"><img src="<?=$smdir?>/cool.gif" border="0"></a>
<a href="javascript:icon('')"><img src="<?=$smdir?>/mad.gif" border="0"></a>
<a href="javascript:icon('')"><img src="<?=$smdir?>/shocked.gif" border="0"></a>
<a href="javascript:icon('')"><img src="<?=$smdir?>/tongue.gif" border="0"></a>
<a href="javascript:icon(':?')"><img src="<?=$smdir?>/puzzled.gif" border="0"></a>
<a href="javascript:bold()"><img src="<?=$imgdir?>/bb_bold.gif" border="0" alt="Insert Bold Text"></a>
<a href="javascript:italic()"><img src="<?=$imgdir?>/bb_italicize.gif" border="0" alt="Insert Italicized Text"></a>
<a href="javascript:underline()"><img src="<?=$imgdir?>/bb_underline.gif" border="0" alt="Insert Underlined Text"></a>
<a href="javascript:hyperlink()"><img src="<?=$imgdir?>/bb_url.gif" border="0" alt="Insert a Hyperlink"></a>
<a href="javascript:email()"><img src="<?=$imgdir?>/bb_email.gif" border="0" alt="Insert an Email Address"></a>
</p>
<p style="margin-top: -15"><hr noshade size="1">
</tr><tr><iframe name="frame" src="chat.php" width="100%" height="700" scrolling="Auto" frameborder="0" ></iframe></tr></table>
</form>';