
<html>

<head>
<title>Manase</title>
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">
<link href="css/navigation.css" rel="stylesheet" type="text/css">

<?php
include('include/session.php');



date_default_timezone_set('Africa/Gaborone');
$entry_date = date("Y-m-d H:i:s", time()); 

$table_name = $_SESSION['db_prefix']."_tracking_log_in";
$action_query = "INSERT INTO $table_name (entry_date, user, action, details) VALUES ('".$entry_date."' ,'".$_SESSION['username']."','log out' ,'' )";
execsql($action_query);

$table_name = $_SESSION['db_prefix']."_active_users";
	$delete_query = "DELETE FROM $table_name WHERE username =  '".$_SESSION['username']."' "; 
	execsql($delete_query);
?>

</head>

<body>

<br>
<br>
<div class="top_frame" style="width:310px;">
<b>MANASE COMPANY MANAGEMENT SYSTEM</b> </div>
<div class="openings_frame" style="height:300px; width:310px;" ></div>
<div class="bottom_frame" style="height:40px; width:310px;" > You have logged out.<br>
Click <a href="login.php?e=">here</a> to login again.</div>
<br>
<br>
</body>


</html>