summaryrefslogtreecommitdiffstats
path: root/pages/chat.php
diff options
context:
space:
mode:
authorBlueRaja <BlueRaja.admin@gmail.com>2013-01-25 19:28:27 -0600
committerBlueRaja <BlueRaja.admin@gmail.com>2013-01-25 19:28:27 -0600
commit2667aded58dddf8bc1ea9c6e83151684e2b7d5cc (patch)
treea0eafd320725ab14876d0a064cba1c9d739a44f6 /pages/chat.php
parentaeacdd6ac410d4b576cf9e804d709cd64fa00384 (diff)
downloadpathery-2667aded58dddf8bc1ea9c6e83151684e2b7d5cc.tar.xz
Don't show chat bar if not logged in
Diffstat (limited to 'pages/chat.php')
-rw-r--r--pages/chat.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/pages/chat.php b/pages/chat.php
index 094f86a..5ecbaab 100644
--- a/pages/chat.php
+++ b/pages/chat.php
@@ -247,10 +247,11 @@ function htmlEncode(value){
<div class='chatContainer2'>
<form id='sendChat' onsubmit="return false">
- <input type="hidden" name="stuff" value="1724">
- <input class='chatButton' type="button" class="send" id='chatSendBtn' value='Send' onClick="sendChat();">
- <input class='chatInputMessage' type="text" name="message" id="message" value="" maxlength="255" autocomplete="off" >
-
+ <? if($accepted) { /*Only show the chat button if we're logged in*/ ?>
+ <input type="hidden" name="stuff" value="1724">
+ <input class='chatButton' type="button" class="send" id='chatSendBtn' value='Send' onClick="sendChat();">
+ <input class='chatInputMessage' type="text" name="message" id="message" value="" maxlength="255" autocomplete="off" >
+ <? } ?>
</form>
<div id='chatContainer'>