Skip to content

Commit

Permalink
changed index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
matjaz321 committed Jun 9, 2017
1 parent 25ffeea commit da3f4ec
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
session_start();
include_once '/php/connection-info.php';
include_once 'php/connection-info.php';
if(!isset($_SESSION['user'])) {
header("Location: /php/login.php");
header("Location: php/login.php");
}
?>
<!DOCTYPE html>
Expand All @@ -11,19 +11,19 @@
<title>Glasbena lestvica</title>
<meta charset="utf-8">
<meta name="viewport" content="with=device-with, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/css/index-style.css">
<script src="/js/jquery-3.2.1.min.js"></script>
<script src="/js/index.js"></script>
<link rel="stylesheet" type="text/css" href="css/index-style.css">
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/index.js"></script>
</head>
<body>
<div id="nav">
<div id="nav-container">
<ul id="ul_navigation">
<li><a href="../index.php">Home</a></li>
<li><a href="/php/top10.php">Top 10 of the week</a></li>
<li><a href="/php/music_chart.php">Music Chart</a></li>
<?php if($_SESSION['user_admin'] == 1) echo '<li><a href="/php/admin_website.php">Manage Webiste</li></a>'; ?>
<li><a href="/php/logout.php">Log Out</a></li>
<li><a href="index.php">Home</a></li>
<li><a href="php/top10.php">Top 10 of the week</a></li>
<li><a href="php/music_chart.php">Music Chart</a></li>
<?php if($_SESSION['user_admin'] == 1) echo '<li><a href="php/admin_website.php">Manage Webiste</li></a>'; ?>
<li><a href="php/logout.php">Log Out</a></li>
</ul>
<?php echo 'Welcome: '.$_SESSION['user'] ?>
</div>
Expand Down

0 comments on commit da3f4ec

Please sign in to comment.