<?php
session_start();
include('secretpath.class.php');
if( empty($_SESSION['secpth']) ){
header('location: example.php');
exit;
}else{
$secpth = unserialize($_SESSION['secpth']);
}
if( $secpth->testAuth() === true ){
echo 'Authorized Access!';
}else{
echo 'Access Denied!';
}
?>
|