even more php changes
This commit is contained in:
parent
2fb77c6c1f
commit
e412daff09
@ -38,9 +38,10 @@ if (isset($_SESSION['user_id'])) {
|
||||
}
|
||||
} else {
|
||||
$nav = include_ob("$template_dir/navigation.html");
|
||||
$nav = replaceTemplateTags($nav); // Apply templating to the navigation
|
||||
}
|
||||
|
||||
$nav = replaceTemplateTags($nav); // Apply templating to the navigation
|
||||
|
||||
if($page_dir == "global") {
|
||||
if(!file_exists("$page_dir/index.html")) {
|
||||
$page_file = "$page_dir/login.html";
|
||||
@ -56,7 +57,7 @@ if(empty($page)){
|
||||
}
|
||||
}
|
||||
|
||||
// Check if user is logged in
|
||||
// Check if the user is logged in
|
||||
if (isset($_SESSION['user_id'])) {
|
||||
if ($_SESSION['user_isAdmin'] == 1) {
|
||||
$paths_to_check[] = "pages/admin";
|
||||
|
@ -4,7 +4,7 @@
|
||||
<div class="links">
|
||||
<li><a href="">Home</a></li>
|
||||
<li><a href="">Admin Panel</a></li>
|
||||
<li><a href="" class="pfp"><template name="gravatar image"></template></a></li>
|
||||
<li><a href="" class="pfp"><template name="gravatar image"></a></li>
|
||||
</div>
|
||||
</ul>
|
||||
</nav>
|
@ -4,7 +4,7 @@
|
||||
<div class="links">
|
||||
<li><a href="">Home</a></li>
|
||||
<li><a href=""></a></li>
|
||||
<li><a href="" class="pfp"><template name="gravatar image"></template></a></li>
|
||||
<li><a href="" class="pfp"><template name="gravatar image"></a></li>
|
||||
</div>
|
||||
</ul>
|
||||
</nav>
|
@ -4,7 +4,7 @@
|
||||
<div class="links">
|
||||
<li><a href="">Home</a></li>
|
||||
<li><a href=""></a></li>
|
||||
<li><a href="" class="pfp"><template name="gravatar image"></template></a></li>
|
||||
<li><a href="" class="pfp"><template name="gravatar image"></a></li>
|
||||
</div>
|
||||
</ul>
|
||||
</nav>
|
Loading…
Reference in New Issue
Block a user