From 89caac5de22f40172cac4405dcb34acb6d3e82ba Mon Sep 17 00:00:00 2001 From: Anton McClure Date: Wed, 30 Dec 2020 12:04:09 -0500 Subject: [PATCH] Add links to view source code of a page's php file, and rename the current "page source" link to "site source". --- footer.php | 4 +++- index.php | 2 ++ news/index.php | 2 ++ signup/index.php | 2 ++ signup/signup-handler.php | 2 ++ users/index.php | 2 ++ wiki/index.php | 2 ++ 7 files changed, 15 insertions(+), 1 deletion(-) diff --git a/footer.php b/footer.php index 93b3d41..2e49ac9 100644 --- a/footer.php +++ b/footer.php @@ -1,7 +1,9 @@
diff --git a/index.php b/index.php index 2c612d4..4cfc5e8 100755 --- a/index.php +++ b/index.php @@ -1,4 +1,6 @@ getRealPath(); include 'header.php'; require __DIR__.'/vendor/autoload.php'; $parser = Tildeverse\Wiki\Parser::factory(); diff --git a/news/index.php b/news/index.php index e41a1b8..42122bb 100644 --- a/news/index.php +++ b/news/index.php @@ -1,4 +1,6 @@ getRealPath(); require __DIR__.'/../vendor/autoload.php'; $additional_head = " diff --git a/signup/index.php b/signup/index.php index eb7cef8..b829e82 100644 --- a/signup/index.php +++ b/signup/index.php @@ -1,4 +1,6 @@ getRealPath(); include __DIR__.'/../header.php'; ?> diff --git a/signup/signup-handler.php b/signup/signup-handler.php index c34db05..b51b038 100644 --- a/signup/signup-handler.php +++ b/signup/signup-handler.php @@ -1,4 +1,6 @@ getRealPath(); require __DIR__.'/../vendor/autoload.php'; require_once "email/smtp.php"; diff --git a/users/index.php b/users/index.php index 2bfe220..d09c24b 100644 --- a/users/index.php +++ b/users/index.php @@ -1,4 +1,6 @@ getRealPath(); include __DIR__.'/../header.php'; $online_users = shell_exec("online-users"); diff --git a/wiki/index.php b/wiki/index.php index f8686f3..5ba12a2 100644 --- a/wiki/index.php +++ b/wiki/index.php @@ -1,4 +1,6 @@ getRealPath(); require __DIR__.'/../vendor/autoload.php'; $additional_head = "