Updated to include pure, major major major overhaul

This commit is contained in:
2015-02-11 23:52:11 -05:00
parent 7097e9c67a
commit e65ba7741c
187 changed files with 2581 additions and 338 deletions

28
logout.php Normal file
View File

@@ -0,0 +1,28 @@
<?php
session_start();
require_once("config.inc.php");
$yaptc_pagename = "Logout";
require_once($yaptc_inc . "header.inc.php");
require_once($yaptc_inc . "menu.inc.php");
//********** BEGIN CONTENT **********//
// Does user have any session settings active? Kill them all...
if (isset($_SESSION['user_id']) || isset($_SESSION['signature']) || isset($_SESSION['loggedIn']) || $_SESSION['loggedIn'] = true || $_SESSION['signature'] = md5($_SESSION['user_id'] . $_SERVER['HTTP_USER_AGENT']))
{
session_start();
session_unset();
session_destroy();
header ("Refresh:3; url=login.php", true, 303);
echo "<h2 class=\"content-subhead\">You have successfully logged out...</h2>";
}
else
{
session_start();
session_unset();
session_destroy();
header ("Location: login.php");
}
//********** END CONTENT **********//
require_once($yaptc_inc . "footer.inc.php");
?>