<?php require('style/layout/header.php'); ?>
<div class="content_left">
<ul id="breadcrumbs">
<li><a href="index.php"><?php echo $lang['main_page']; ?></a></li>
<li><a href="signout.php" class="actual"><?php echo $lang['signout']; ?></a></li>
</ul>
</div>
<div class="content_right"><form method="post" id="search" action="search.php?search">
<input type="text" name="search" placeholder="<?php echo $lang['enter_search_term']; ?>..." class="searchfield">
<input type="hidden" name="submit" value="<?php echo $lang['search']; ?>" alt="<?php echo $lang['search']; ?>">
</form>
</div>
<div class="clear"></div>
<div id="headline"> </div>
<?php
echo '<h1>' . $lang['signout']. '</h1>';
if($_SESSION['signed_in'] == TRUE) {
$_SESSION['signed_in'] = NULL;
$_SESSION['user_name'] = NULL;
$_SESSION['user_id'] = NULL;
$_SESSION = array();
$sql = "DELETE FROM
online
WHERE
DATE_SUB(NOW(), INTERVAL 1 MINUTE) > online_timed";
mysql_query($sql) OR die(mysql_error());
include_once('framework/controller.php');
close_connection();
$autoforward = 3;
echo '<p class="success">' . $lang['success_signout'] . '!</p>
<p><meta http-equiv="refresh" content="' . $autoforward . '; URL=index.php"></p>';
}else{
echo '<p class="false">' . $lang['not_loggedin'] . '</p>
<p>• <a href="signin.php">' . $lang['go_to_signin'] . '</a></p>';
}
?>
<?php require('style/layout/footer.php'); ?>