Need Help For Chat Exit Function

Started on the old forum in November 2008 · view the original in the archive · old links redirect here

2 replies · 403 views · started 18 years ago · 1 min read

2 participants
trytofly Newbie · 9 posts #1

Hello guys how can i use this script for LAVAIR script i need this function for my chat ...

HERES IS JUST EXAMPLE FROM BRUMI SOURCE

CODE<?php

include("config.inc.php");

header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); header("Content-type: text/html; charset=ISO-8859-1"); echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>"; echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">"; echo "<html xmlns="http://www.w3.org/1999/xhtml">";

echo "<head>";

echo "<title>$stitle</title>";
echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"theme/theme.css\" />";
echo "</head>";

echo "<body>";

echo " ";

$Connect = mysql_connect("$server","$user","$pass");

mysql_select_db("$dbname");

$result=mysql_query("select * from members where username='$username' and password='$password'");

$number_of_rows = mysql_num_rows($result);

if ($number_of_rows>0)

{

include("check.inc.php");

}

if ($ok>0)

{

include("online.inc.php");

?>

Redirection

<?php $query = "delete from chatusers where username='$username'"; $result = mysql_query($query); //send the query! echo " "; echo "<a title=\"Enter\" href=\"chatindex.php?username=$username&amp;password=$password\">Continue</a>"; echo " "; } echo " "; echo "</body>"; echo "</html>"; ?>

===============================================

something else Fellow · 2,296 posts #2

What is this function ment to do ? Delete the user from chat online list ? and then redirect out ?

trytofly Newbie · 9 posts #3

QUOTE (something else @ Dec 3 2008, 01:28 AM) <{POST_SNAPBACK}>

What is this function ment to do ? Delete the user from chat online list ? and then redirect out ?

Yes 😉 and when users logout from me site its say its online... I want really fast logout function can help me? :sad:

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close