First commit
This commit is contained in:
20
app/ZnoteAAC/protected.php
Normal file
20
app/ZnoteAAC/protected.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
require_once 'engine/init.php';
|
||||
// To direct users here, add: protect_page(); Here before loading header.
|
||||
include 'layout/overall/header.php';
|
||||
if (user_logged_in() === true) {
|
||||
?>
|
||||
|
||||
<h1>STOP!</h1>
|
||||
<p>Ummh... Why are you sniffing around here?</p>
|
||||
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
|
||||
<h1>Sorry, you need to be logged in to do that!</h1>
|
||||
<p>Please register or log in.</p>
|
||||
|
||||
<?php
|
||||
}
|
||||
include 'layout/overall/footer.php'; ?>
|
Reference in New Issue
Block a user