mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-10-13 18:04:54 +02:00
Importing Znote AAC 1.5_SVN rev 168 to github.
This commit is contained in:
20
protected.php
Normal file
20
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