topical media & game development
professional-sql-02-public-files-401.php / php
<?php
// start or join the session
session_start();
header('Cache-control: private');
// issue 401 error if user has not been authenticated
if (!isset(_SESSION['access'] != TRUE)
{
header('HTTP/1.0 401 Authorization Error');
GLOBALS['TEMPLATE']['content'] = ob_get_contents();
ob_end_clean();
include '../templates/template-page.php';
exit();
}
?>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.