Lava/wapdesire Automatic Logout

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

    Lava/wapdesire Automatic Logout

    this is a automatic log out for go back at index page without link..you can decide time about it ,changing :

    content=\"9 (9 seconds),
    content=\"5 (5 seconds),etc.


    on index.php:<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
    ///////////////////////////Logout///////////////////////////////

    else if($action=="logout")

    {

    echo "<meta http-equiv=\"refresh\" content=\"9;url=index.php?time=".date(&#39;dmHis&# 39;)."\" />\n";


    $who = $_GET["who"];
    $user = getnick_uid($who);
    echo "<head>";
    echo "<title>logout</title>";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
    echo "</head>";

    //echo "<body>";
    echo "<p align=\"center\">";
    $uid = getuid_sid($sid);
    if($who!=$uid){
    echo "<img src=\"../images/notok.gif\" alt=\"\"/>
    ErrorE!!!
    ALT!..

    ";
    echo "
    $user, U Cannot Log Someone Out
    This Is An Attempt To Breach Site Security
    If U Are Caught Trying This Again U Will Be Banned
    ";
    echo "
    <a accesskey=\"1\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Ok!</a>";
    echo "</p>";
    }else{
    echo "
    ";
    $res = mysql_query("DELETE FROM ibwf_ses WHERE uid=&#39;".$who."&#39;");
    if($res)
    {
    addonline($who,"logging out","");
    echo "<img src=\"../images/ok.gif\" alt=\"\"/>$user
    hi..
    ";
    ?>now waits for automatic logout ..
    <?
    }else{
    echo "<img src=\"../images/notok.gif\" alt=\"\"/>Error";
    }
    //echo "
    <a accesskey=\"1\" href=\"index.php\"><img src=\"../images/home.gif\" alt=\"\"/>[ok!]</a>";
    //echo "
    <a accesskey=\"1\" href=\"index.php\"></a>";




    echo "</p>";
    }
    echo "</body>";
    }
    ///////////////////////////////////</div>
    sigpicthe italian/international COMMUNITY of friendship
    http://people2000.netne.net
    WAP/WEB
    peoplemailbox@katamail.com
Working...
X