mirror of
https://github.com/Mibew/design.git
synced 2025-01-22 18:10:33 +03:00
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:
parent
8ea16f2ec3
commit
79df1b80f1
10
site/login/login/admin/auth.php
Normal file
10
site/login/login/admin/auth.php
Normal 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();
|
||||
}
|
||||
?>
|
5
site/login/login/admin/index.php
Normal file
5
site/login/login/admin/index.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
require_once('auth.php');
|
||||
?>
|
||||
|
||||
<p>Welcome to the admin panel. </p>
|
Loading…
Reference in New Issue
Block a user