diff --git a/credits.php b/credits.php index 29e2a09..37ff09f 100644 --- a/credits.php +++ b/credits.php @@ -1,9 +1,4 @@ - - Home - +

ByeCorps.com was handwritten by Bye using Sublime Text.

- - Blog - - +

Some icons by Yusuke Kamiyamane. Licensed under a Creative Commons Attribution 3.0 License.

diff --git a/footer.html b/footer.html index 6c13d39..ea59d32 100644 --- a/footer.html +++ b/footer.html @@ -8,7 +8,7 @@

- + Valid HTML 4.01 Transitional Bye's Button diff --git a/header.html b/header.html index ec3a59e..dbc88df 100644 --- a/header.html +++ b/header.html @@ -2,7 +2,7 @@ ByeCorps - +

ByeCorps

diff --git a/index.php b/index.php index a7547d1..0d764b5 100644 --- a/index.php +++ b/index.php @@ -12,13 +12,17 @@ if(isset($query_string[1])) { $query[$bits[0]] = $bits[1]; } - $path = $query['path'] ?? "/"; + $path = $query['path'] ?? null; } else { - $path = "/"; + $path = null; $query = array(); } +if (is_null($path)) { + $path = $query_string[0]; +} + if (str_ends_with($path, "/")) { $path = rtrim($path, "/"); }