Worky
This commit is contained in:
15
includes/header.php
Normal file
15
includes/header.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
include_once($_SERVER['DOCUMENT_ROOT'] . "/config.php")
|
||||
?>
|
||||
<div class="tab">
|
||||
<a class="tablinks" href="<?php echo $base_url ?>/">Home</a>
|
||||
<a class="tablinks" href="<?php echo $base_url ?>/panel/">Panel</a>
|
||||
<!--<a class="tablinks" href="/task/new/">New Task</a>-->
|
||||
<?php
|
||||
if (isset($_SESSION['authenticated']) && $_SESSION['authenticated'] === true) {
|
||||
echo '<a class="tablinks" href="' . $base_url . '/logout/">Logout</a>';
|
||||
} else {
|
||||
echo '<a class="tablinks" href="' . $base_url . '/login/">Login</a>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user