Add links to view source code of a page's php file, and rename the current "page source" link to "site source".

This commit is contained in:
Anton McClure 2020-12-30 12:04:09 -05:00
parent 3933270eef
commit 89caac5de2
7 changed files with 15 additions and 1 deletions

View File

@ -1,7 +1,9 @@
<hr>
<footer class="text-center">
<pre>ECDSA fingerprint: SHA256:R3qNfKIF3IiXhKCbFX6rCKl73yzexi9Wodsow6XFres</pre>
<a href="https://tildegit.org/team/site">page source</a>
<a href="https://tildegit.org/team/site">site source</a>
&mdash;
<a href="https://tildegit.org/team/site/src/branch/master/'.str_ireplace("/var/www/tilde.team/","",$filepath).'">page source</a>
&mdash;
<a href="https://bhh.sh/donate/">donate</a>
</footer>

View File

@ -1,4 +1,6 @@
<?php
$path = new SplFileInfo(__FILE__);
$filepath = $path->getRealPath();
include 'header.php';
require __DIR__.'/vendor/autoload.php';
$parser = Tildeverse\Wiki\Parser::factory();

View File

@ -1,4 +1,6 @@
<?php
$path = new SplFileInfo(__FILE__);
$filepath = $path->getRealPath();
require __DIR__.'/../vendor/autoload.php';
$additional_head = "

View File

@ -1,4 +1,6 @@
<?php
$path = new SplFileInfo(__FILE__);
$filepath = $path->getRealPath();
include __DIR__.'/../header.php';
?>

View File

@ -1,4 +1,6 @@
<?php
$path = new SplFileInfo(__FILE__);
$filepath = $path->getRealPath();
require __DIR__.'/../vendor/autoload.php';
require_once "email/smtp.php";

View File

@ -1,4 +1,6 @@
<?php
$path = new SplFileInfo(__FILE__);
$filepath = $path->getRealPath();
include __DIR__.'/../header.php';
$online_users = shell_exec("online-users");

View File

@ -1,4 +1,6 @@
<?php
$path = new SplFileInfo(__FILE__);
$filepath = $path->getRealPath();
require __DIR__.'/../vendor/autoload.php';
$additional_head = "