Need Help For Chat Exit Function

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Need Help For Chat Exit Function

    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
    ===============================================
    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?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 "<p align=\"center\">";




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

    mysql_select_db("$dbname");

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

    $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=&#39;$username&#39;";

    $result = mysql_query($query); //send the query!



    echo "
    ";

    echo "<a title=\"Enter\" href=\"chatindex.php?username=$username&amp;passwo rd=$password\">Continue</a>";

    echo "
    ";

    }

    echo "</p>";
    echo "</body>";
    echo "</html>";

    ?> </div>
    ===============================================

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

    Comment


      #3
      <div class='quotetop'>QUOTE (something else @ Dec 3 2008, 01:28 AM) <{POST_SNAPBACK}></div>
      What is this function ment to do ?
      Delete the user from chat online list ? and then redirect out ?[/b]
      Yes ;) and when users logout from me site its say its online... I want really fast logout function can help me? :sad:

      Comment

      Working...
      X