<?php
session_start();
require_once "../class/mysql.class.php";
require_once "../class/utils.class.php";
require_once "../config.php";
require_once "../include/auth.lib.php";
$db = &new MySQL($_CONFIG['host'],$_CONFIG['user'],$_CONFIG['pass'],$_CONFIG['dbname'],null) or die('Unable to establish connection ');
$utils = new Utils($db,null);
list($status, $user) = auth_get_status();
//set language
if ($utils->isIssetLang()) {
include "lang/".$utils->getLang();
} else {
include "lang/english.php";
}
header("Refresh: 5;URL=home.php");
echo '<style type="text/css">
@import url(css/style.css);
</style>';
echo '<div style="background: #FFFFFF; text-align: center;">
<img alt="EZPhotoPress" src="../images/logo.png" />
</div>';
echo "<br>";
echo "<br>";
echo '<center>
<img src="../images/loading.gif">
</center>';
echo "<br>";
echo "<br>";
if($status == AUTH_LOGGED){
if(auth_logout()){
echo '<div align="center">'.LOGOUT_DISCONNECTING.'</div>';
}else{
echo '<div align="center">'.LOGOUT_ERROR_DISCONNECTION.'</div>';
}
}else{
echo '<div align="center">'.LOGOUT_NOT_CONNECTED.'</div>';
}
echo "<br><br><br>";
echo "<center>";
echo "<br><br><br>";
echo '<a href="home.php" style="color: #0000FF; text-decoration: none;">'.LOGOUT_REFRESH_LINK.'</a>'.LOGOUT_REFRESH;
echo "</centrer>";
unset($db);
$utils->unsetLang();
?>