Admin page prep

git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@549 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
Ed Kraus 2009-06-07 17:16:20 +00:00
parent 8ea16f2ec3
commit 79df1b80f1
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,10 @@
<?php
//Start session
session_start();
//Check whether the session variable SESS_MEMBER_ID is present or not
if(!isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID']) == '')) {
header("location: access-denied.php");
exit();
}
?>

View File

@ -0,0 +1,5 @@
<?php
require_once('auth.php');
?>
<p>Welcome to the admin panel. </p>