Skip to content

Commit

Permalink
Moved <script> tags to scripts.php, updated reference in index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza1886 committed Apr 17, 2020
1 parent 8a58a1d commit c4a1a2a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 6 additions & 4 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Home | Company</title>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css"/>
<link rel="stylesheet" href="css/font-awesome.min.css">
</head>
Expand All @@ -12,7 +14,7 @@
require_once 'model/Permission.php';
require_once 'model/PrivilegedUser.php';

if (session_status() == PHP_SESSION_NONE) {
if (session_status() === PHP_SESSION_NONE) {
session_start();
}

Expand All @@ -24,7 +26,7 @@

if (!$u->hasPrivilege('view_role')) {
header("Location: index.php", true, 403);
die ("<h2>403 Forbidden</h2><p>You are not allowed here. Please contact administrator <a href='[email protected]'>[email protected]</a>.</p>");
die ("<h2>403 Forbidden</h2><p>You are not allowed here. Please contact administrator <a href='mailto:[email protected]'>[email protected]</a>.</p>");
}

require_once 'menu.php';
Expand Down Expand Up @@ -88,6 +90,6 @@
<pre><?php print_r($u); ?></pre>
</div>

<?php require_once 'footer.php'; ?>
<?php require_once 'script.php'; ?>
</body>
</html>
2 changes: 2 additions & 0 deletions script.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<script type="text/javascript" href="js/jquery-2.2.2.min.js"></script>
<script type="text/javascript" href="js/bootstrap.min.js"></script>

0 comments on commit c4a1a2a

Please sign in to comment.