Log Out
Started on the old forum in May 2007 · view the original in the archive · old links redirect here
Heam dont have cods mate is not a coder -lol- wants to be a coder but is not ...tell me whaer you whont to redirect the logaut page and maibe cant make a code for that stuf External image (may be gone)
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 **
lol Mate is a good joke if you are a coder why all the time you need another to install a databse and make the cod for you External image (may be gone)
External image (may be gone) ok matthew26 plz post ur codes for log out option.thanks
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>"; }
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>";
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();
}
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> ";