<?php
#
# Projeto :  Lucato 
# Data : 08/12/2012
# 
# LOGOUT
#

    //*******************************************************************
	// INCLUDES nao alterar a ordem dos includes
    //*******************************************************************
	include "includes/library.php";

	include "includes/session.php";

    //*******************************************************************
	// SOURCE
    //*******************************************************************
	session_unset();
	session_destroy();

?>

<?php include("includes/top.php"); ?>
<script type="text/javascript" src="scripts/user_logout.js"></script>
<script language="JavaScript">
	function logar() {

			if(typeof(parent.LeaveControl)=="number") {
				parent.LeaveControl = 0;
				parent.document.location = "user_login.php?";
			} else {
			 	document.location = "user_login.php";
			}
	}

</script>

<center>
<div>
<h1>Sessão encerrada.</h1>
<h2><a href="javascript:logar();">Clique aqui </a> para logar novamente. Obrigado!</h2>
</div>
</center>


<?php include("includes/bottom_comum.php"); ?>

