Log Out

Started on the old forum in May 2007 · view the original in the archive · old links redirect here

17 replies · 1,442 views · started 19 years ago · 1 min read

4 participants
Guest #1

does ny1 know the codes of LOGOUT in lavalair script which helps to log out from all recent records of the sile by an user?

matthew26 Developer · 165 posts #2

yeah just put a logout link to your main page it logs you out

** visit my new forum wapsite on your mobile phone today.  wapfire.freehostia.com **

matthew26 Developer · 165 posts #3

if you want make a logout page with would you like to logout? with links saying yes no

** visit my new forum wapsite on your mobile phone today.  wapfire.freehostia.com **

Guest #4

if you want make a logout page with would you like to logout? with links saying yes no

Guest #5

ok.post ur codes methew26

phoenix90 Developer · 113 posts #7

All you have to do is make a new page to direct to, and on that page write a logged out message. Aslo add a sql code that delete's the users session.. It will be the ibwf_sid table where you should delete it, or if u use the funmobile one it will be ibwf_ses...

matthew26 Developer · 165 posts #8

i am a coder and id o have the code mate External image (may be gone) ill give it to you if y want

** visit my new forum wapsite on your mobile phone today.  wapfire.freehostia.com **

phoenix90 Developer · 113 posts #9

I'll accept the code from anybody, just post it.

hypetype Developer · 128 posts #13

Place this code in the index.php and put link on the main of the index.php

echo "<a href="index.php?action=logout&sid=$sid">".$logout."logout</a> ";

////////////////////////////////////////// logout else if($action=="logout") { $uid =getuid_sid($sid); if($uid>0) { addonline(getuid_sid($sid),"logout",""); } echo "<card id="main" title="Log Out">"; echo " "; $nick = getnick_sid($sid);

echo "Good Bye $nick!

Thnaks alot for your visit Bring all your friends on your next trip

"; mysql_query("DELETE FROM ibwf_ses WHERE uid='".$uid."'"); mysql_query("DELETE FROM ibwf_online WHERE userid='".$uid."'");

$bro=("$REMOTE_ADDR"); $usr = explode ('/', $HTTP_USER_AGENT); $phone = ("$usr[0]");

echo "<a href="http://surfwap.com/?site=ht650">$nick Get Free Downloads for your $phone HERE</a> "; echo "<a href="index.php"><img src="images/home.gif" alt="*"/>"; echo "Home</a>"; echo " "; echo "</card>"; }

linkrx7 #14

here is my code for logout

else if($action=="logout")
{
  $who = $_GET["who"];
  $user = getnick_uid($who);
  echo "<card id=\"main\" title=\"Logout\">";
  echo "<p align=\"center\">";
  $uid = getuid_sid($sid);
  if($who!=$uid){ 
  echo "[b]<img src=\"../images/notok.gif\" alt=\"x\"/>
Error!!!
Permission Denied...[/b]
";
  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 href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Ok!</a>";
  echo "</p>";
  }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=\"O\"/>[b]$user[/b]
U Hav Successfully Logged Out Pls Come Back Soon :o)";
  }else{
  echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Error Logging Out";
  }
  echo "<a href=\"index.php\"><img src=\"../images/home.gif\" alt=\"\"/>ok!</a>";
  echo "</p>";
  }
  echo "</card>";
}

then put this where ever u want the logout link

echo "<a href=\"index.php?action=logout&sid=$sid&who=$uid\">Logout</a>";
Guest #15

hypetype n linkrx7 thanks a lot,i thought i didnt get codes,coz u both posted in a few weeks

phoenix90 Developer · 113 posts #16

For funmobile users

echo "<a href="index.php?action=logout&ses=$ses">".$logout."logout</a> ";

////////////////////////////////////////// logout else if($action=="logout") { addonline(getuid_ses($ses),"Sending PM",""); if($mime== WEB) {

echo webhead($uthm,Logout from $stitle); echo " "; echo "$f1"; $nick = getnick_ses($ses);

echo "Good Bye $nick!

Thanks alot for your visit Bring all your friends on your next visit

"; mysql_query("DELETE FROM ibwf_ses WHERE uid='".$uid."'"); mysql_query("DELETE FROM ibwf_online WHERE userid='".$uid."'");

$bro=("$REMOTE_ADDR"); $usr = explode ('/', $HTTP_USER_AGENT); $phone = ("$usr[0]");

echo "<a href="index.php"><img src="images/home.gif" alt="*"/>"; echo "Home</a>"; echo "$f2"; echo " "; echo webfoot();

}else{

echo waphead(Logout from $stitle); echo " "; echo "$f1"; $nick = getnick_ses($ses);

echo "Good Bye $nick!

Thanks alot for your visit Bring all your friends on your next visit

"; mysql_query("DELETE FROM ibwf_ses WHERE uid='".$uid."'"); mysql_query("DELETE FROM ibwf_online WHERE userid='".$uid."'");

$bro=("$REMOTE_ADDR"); $usr = explode ('/', $HTTP_USER_AGENT); $phone = ("$usr[0]");

echo "<a href="index.php"><img src="images/home.gif" alt="*"/>"; echo "Home</a>"; echo "$f2"; echo " "; echo wapfoot();

}

Guest #17

here is one from me

else if($action=="logout") { $uid =getuid_sid($sid); if($uid>0) { addonline(getuid_sid($sid),"logout",""); } echo "<card id="main" title="Log-Out">"; echo " "; echo "Your are now logged out "; mysql_query("DELETE FROM ibwf_ses WHERE uid='".$uid."'"); mysql_query("DELETE FROM ibwf_online WHERE userid='".$uid."'");

echo "<a href=\"index.php\"><img src=\"images/home.gif\" alt=\"*\"/>";

echo "Home</a>"; echo " "; echo "</card>"; }

echo "<a href="index.php?action=logout&sid=$sid">»Logout</a> ";

matthew26 Developer · 165 posts #18

i like it

** visit my new forum wapsite on your mobile phone today.  wapfire.freehostia.com **

Sign in to reply.

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