Location: PHPKode > projects > TVEz - Media Library > tvez-0.2.1/html/admin/admin_access.php
<?php
// Check for administrative access

if ( $LOGIN_ENABLED ) {
	if ( (!isset($_SESSION['tvezAccess'])) || $_SESSION['tvezAccess'] != "admin") {
		echo '<br><div class="usermsg">'.localize_string("You are not logged in as an administrator").'.</div>';
	flush();

	sleep(2);
		echo '
        <script type="text/javascript">
		   document.location.replace("tvez.php?content=user&page=login&lastcontent=admin");
        </script>
		</td></tr></table>
		</body>
		</html>
		';
		exit;
	}
}


?>
Return current item: TVEz - Media Library