home/mip/public_html_/old-website/employer/logout.php 0000644 00000003133 15152075062 0017021 0 ustar 00 <?
session_start();
require_once("func_all.php");
$old_user = $principal_valid_user; // store to test if they *were* logged in
$result = session_unregister("principal_valid_user");
$result1 = session_unregister("myprincipalid");
session_destroy();
setcookie ("myprincipalid", $myprincipalid,time()-7200);
setcookie ("principal_valid_user", $principal_valid_user,time()-7200);
?>
<html>
<head><title>IRIS Online</title>
<link href="menu.css" rel="stylesheet" type="text/css">
</head>
<body>
<?
if (!empty($old_user))
{
if ($result)
{
// if they were logged in and are not logged out
display_login_form();exit;
}
else
{
// they were logged in and could not be logged out
print "<table border=0 cellspacing=0 width=100% cellpadding=0 bgcolor=#f1f1f1>";
print "<tr><td bgcolor=#330067 background=img/logo-tile.jpg valign=top height=72>";
print "<table border=0 width=100% cellspacing=0 cellpadding=0>";
print "<tr><td valign=top><img src=img/logo.jpg border=0></td>";
print "<td width=100%><img src=img/logo-tile.jpg border=0></td>";
print "<td align=right><img src=img/logo-line.jpg border=0></td>";
print "<td valign=top align=right><img src=img/logo-earth.jpg border=0></td>";
print "</tr>";
print "</table>";
print "</td></tr>";
print "<tr><td><br><Br> <font size=2>Could not log you out.</font><br>";
}
}
else
{
// if they weren't logged in but came to this page somehow
display_login_form();exit;
}
?>
</td></tr>
</table>
<? do_html_footer(); ?>
</body>
</html>