Viewing file: logout.inc.php3 (1.07 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
require("$mysqlCall");
if(checkSuperSession($superSession, $REMOTE_ADDR))
{
$Query = "DELETE ";
$Query .= "FROM $superSessionT ";
$Query .= "WHERE ID='$superSession' ";
$mysql_result = mysql_query($Query, $mysql_link) or die(mysql_error());
if($mysql_result)
{
print("Looks as though that worked :)");
}
else
{
print("Something Wrong Here");
}
}
else if(checkNormalSession($session, $REMOTE_ADDR))
{
$Query = "DELETE ";
$Query .= "FROM $normalSessionT ";
$Query .= "WHERE ID='$session' ";
$mysql_result = mysql_query($Query, $mysql_link) or die(mysql_error());
if($mysql_result)
{
print("Looks as though that worked :)");
}
else
{
print("Something Wrong Here");
}
}
else
{
/* session is bad */
print("Bad Session ID ($superSession)!<BR>\n");
$superSession = "";
}
include("include/guiBase.inc.php3");
?>
|