summaryrefslogtreecommitdiff
path: root/includes/templates/header.php
diff options
context:
space:
mode:
authorcflip <36554078+cflip@users.noreply.github.com>2021-08-10 16:42:07 -0600
committercflip <36554078+cflip@users.noreply.github.com>2021-08-10 16:42:07 -0600
commit39f4d2134f332d3d6577f8cf5b3f4b9d4f665c41 (patch)
tree6521fed114e0227683291d17c7c7d8a14d1040a7 /includes/templates/header.php
parent5d703ab4ea6e8ead889232ba846596b948bdb051 (diff)
Change URLs to relative paths
Diffstat (limited to 'includes/templates/header.php')
-rwxr-xr-xincludes/templates/header.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/templates/header.php b/includes/templates/header.php
index 8187cb8..c70821a 100755
--- a/includes/templates/header.php
+++ b/includes/templates/header.php
@@ -1,8 +1,8 @@
<header>
<h1>cflip.net forum</h1>
<p>
-[<a href="/">Home</a>]
-[<a href="/create_thread.php">Create a thread</a>]
+[<a href="./">Home</a>]
+[<a href="create_thread.php">Create a thread</a>]
<span style="float:right;">
<?php
include_once './includes/Session.php';
@@ -10,9 +10,9 @@
if (Session::get()->is_signed_in()) {
$user = Session::get()->get_current_user();
- echo '[<a href="/viewuser.php?id=' . $user->id . '">' . $user->name . '\'s Profile</a>] [<a href="signout.php">Log out</a>]';
+ echo '[<a href="viewuser.php?id=' . $user->id . '">' . $user->name . '\'s Profile</a>] [<a href="signout.php">Log out</a>]';
} else {
- echo '[<a href="/signin.php">Sign in</a>] or [<a href="/register.php">Register an account</a>]';
+ echo '[<a href="signin.php">Sign in</a>] or [<a href="register.php">Register an account</a>]';
}
?>
</span>