Lava/wapdesire Automatic Logout

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

No replies · 660 views · started 18 years ago · 1 min read

honkytonkman Senior · 252 posts #1

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:CODE ///////////////////////////Logout///////////////////////////////

else if($action=="logout")

{

echo "<meta http-equiv="refresh" content="9;url=index.php?time=".date('dmHis')."" />\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 " "; $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&sid=$sid"><img src="../images/home.gif" alt=""/>Ok!</a>"; echo " "; }else{ echo " "; $res = mysql_query("DELETE FROM ibwf_ses WHERE uid='".$who."'"); 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 " "; } echo "</body>"; } ///////////////////////////////////

the italian/international COMMUNITY of friendship http://people2000.netne.net WAP/WEB peoplemailbox@katamail.com

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