/home/mip/public_html_/old_mip/admin/logout.php
<?
  session_start();
  
	require_once("func_all.php");
	
  $old_user = $_SESSION['valid_user'];  // store  to test if they *were* logged in
	$result1 = $old_user;
  unset($_SESSION['valid_user']);
  unset($_SESSION['accessID']);
  session_destroy();
?>
<html>
<head><title>IRIS</title>	  
<link href="sehwani.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>&nbsp;&nbsp;<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>