<?
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# DataDivisions, Build 1.0, 12/11/2003 #
# FileName: viewDetails.php #
# File Description: #
# Sets up functionality for user to view a detailed analysis of a #
# display's information (popup) #
# #
# +-----------------------------------------------------------------------+ #
# | DataDivisions - Website Statistic Visualization Software | #
# | Copyright (c) 2003, Brian Willison | #
# +-----------------------------------------------------------------------+ #
# | The contents of this file are subject to the GNU General Public | #
# | License version 2 (June 1991). This file and all its contents (incl. | #
# | functions, methods, etc.) are free for general use within any | #
# | community. This software is distributed with the intent to allow | #
# | developers the opportunity to copy, manipulate and revamp this | #
# | application in part or whole for best use cases. | #
# | | #
# | This software is distributed "AS-IS" with no warranties of any kind | #
# | either expressed or implied. | #
# | | #
# | Please refer to the GPL license document for more information: | #
# | (_docs/gplLicense.pdf) | #
# +-----------------------------------------------------------------------+ #
# | Developer, Designer, Initial Creator: | #
# | Brian Willison (hide@address.com) | #
# +-----------------------------------------------------------------------+ #
# | Initial Download Reference: | #
# | http://datadivisions.sourceforge.net | #
# +-----------------------------------------------------------------------+ #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
// Include Necessary Files
require("includes/varFile.php");
require(funcGlobalFile);
require(funcDisplaySetupFile);
// Get Cookie Data Or Redirect If Not Set To Login Or Register
if (isset($_COOKIE[appCookieAppSession])) {
$username = $_COOKIE[appCookieAppSession];
} else {
if (isset($_COOKIE[appCookieUsername])) {
$username = $_COOKIE[appCookieUsername];
} else {
$username = false;
}
}
if ($username == false) {
redirectToLoginPage(); // cookie or session not set -> redirect to login page
} else {
// Set/Reset Session Cookie
setAppSessionCookie($username);
// Generate App. Header (function in global file)
genAppViewDetails(pageName,$username);
}
?>