Commit c2d46dae authored by jlopez's avatar jlopez
Browse files

container creation file independent of the user connection

parent f23273c9
......@@ -12,10 +12,6 @@
session_start ();
if(!isset($_SESSION['username'])) {
header("Location: ./login.php");
}
require_once "./dao/DBquery.php";
$db = new DBquery();
......@@ -109,10 +105,11 @@ function printPanel($name) {
<div class="navbar-nav">
<?php
echo ' <a class="nav-item nav-link active" href="./index.php"> Home </a>';
if(isset($_SESSION['username']) && !empty($_SESSION['username']))
{
echo ' <a class="nav-item nav-link active" href="./index.php"> Home </a>';
if(isset($_SESSION['manage']) && !empty($_SESSION['manage']))
{
echo ' <a class="nav-item nav-link" href="./manage.php"> Manage </a>';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment