Initial Commit
This commit is contained in:
commit
67767e3faa
11 changed files with 343 additions and 0 deletions
9
views/https.php
Normal file
9
views/https.php
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
//If the HTTPS is not found to be "on"
|
||||
if(!isset($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] != "on")
|
||||
{
|
||||
//Tell the browser to redirect to the HTTPS URL.
|
||||
header("Location: https://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"], true, 301);
|
||||
//Prevent the rest of the script from executing.
|
||||
exit;
|
||||
}
|
37
views/navbar.php
Normal file
37
views/navbar.php
Normal file
|
@ -0,0 +1,37 @@
|
|||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
||||
<a class="navbar-brand" href="#"> <i class="far fa-user"></i> HACK13</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarColor02" aria-controls="navbarColor02" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarColor02">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/">Home</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="https://blog.hack13.me">Blog</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/guides">Guides</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/projects">Projects</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/about">About Me</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="https://github.com/hack13" target="_blank"><i class="fab fa-github fa-2x"></i></a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="https://meow.social/@hack13" target="_blank"><i class="fab fa-mastodon fa-2x"></i></a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="https://www.last.fm/user/dothacker552" target="_blank"><i class="fab fa-lastfm-square fa-2x"></i></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
Reference in a new issue