Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

>0 chaged to ==1

  • Loading branch information...
commit 2ca28c5dd8a5d30df44cac01dc633d1fe412acd7 1 parent b98bbb1
Lalit Khattar authored
4 chat/chat.php
View
@@ -8,7 +8,7 @@
$result = mysql_query($sql);
$count = mysql_num_rows($result);
- if($count>0) {
+ if($count==1) {
while($row = mysql_fetch_assoc($result)) {
$username = $row['username'];
$enroll = $row['enroll'];
@@ -25,7 +25,7 @@
</head>
<body>
<div id="online_box" class="online">
- <audio controls="controls" style="display:none;" id="soundHandle"></audio>
+ <audio controls="controls" style="display:none;" id="soundHandle"></audio> //this tag is for chat sound
<div id="online_title_box" class="online" >
<div id="online_title" onClick="goOnline()">Who's Online</div>
<div id="min" class="opt" onClick="goOffline()" title="Go offline">-</div>
2  chat/chatFunctions.php
View
@@ -23,7 +23,7 @@ function setOnlineStatus($enroll,$status) {
function sendChat($to_enroll,$to_user,$msg,$enroll,$username) {
- $t=time()-180;
+ $t=time()-180; // time to be used to check if the message can be concatinated.
$i=0;
$msg = htmlentities($msg);
$msg = mysql_real_escape_string($msg);
2  chat/processRequest.php
View
@@ -9,7 +9,7 @@
$result = mysql_query($sql);
$count = mysql_num_rows($result);
- if($count>0) {
+ if($count==1) {
while($row = mysql_fetch_assoc($result)) {
$username = $row['username'];
$enroll = $row['enroll'];
2  chat/show_online.php
View
@@ -32,7 +32,7 @@
}
}
else
- echo "<div class='err_msg'>Invalid Username/Password</div>";
+ echo "<div class='err_msg'>Invalid Username/Password, please <a href='../'>login </a>again</div>";
}
else
echo "<div class='err_msg'>Session expired, please <a href='../'>login </a>again</div>";
Please sign in to comment.
Something went wrong with that request. Please try again.