summaryrefslogtreecommitdiff
path: root/header.php
diff options
context:
space:
mode:
Diffstat (limited to 'header.php')
-rw-r--r--header.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/header.php b/header.php
index e4286e4..5286ba5 100644
--- a/header.php
+++ b/header.php
@@ -1,5 +1,17 @@
<div id="header">
<a href="./index.php"><img id="dachai_logo" src="./res/dachai.png"/></a>
+ <?php
+ require_once 'functions.php' ;
+
+ if(!isLogin()){
+ echo '<a id="login-link" href="./login.php">Login</a>';
+ } else {
+ echo '<a id="login-link" href="./logout.php">Logout</a>';
+ echo '<a id="login-link" href="./admin.php">Admin</a>';
+ }
+
+ ?>
<label id="site_title">Dachai & Music<br/>Sound, BGM, Vocal, etc.</label>
+
</div>
<div style="clear:both;"></div> \ No newline at end of file