Some tweaks I'm porting over from am32.org #80
|
@ -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>
|
||||
—
|
||||
<a href="https://tildegit.org/team/site/src/branch/master/'.str_ireplace("/var/www/tilde.team/","",$filepath).'">page source</a>
|
||||
—
|
||||
<a href="https://bhh.sh/donate/">donate</a>
|
||||
</footer>
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
<?php
|
||||
$path = new SplFileInfo(__FILE__);
|
||||
$filepath = $path->getRealPath();
|
||||
require __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
$additional_head = "
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
<?php
|
||||
$path = new SplFileInfo(__FILE__);
|
||||
$filepath = $path->getRealPath();
|
||||
include __DIR__.'/../header.php';
|
||||
?>
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
<?php
|
||||
$path = new SplFileInfo(__FILE__);
|
||||
$filepath = $path->getRealPath();
|
||||
require __DIR__.'/../vendor/autoload.php';
|
||||
require_once "email/smtp.php";
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
<?php
|
||||
$path = new SplFileInfo(__FILE__);
|
||||
$filepath = $path->getRealPath();
|
||||
include __DIR__.'/../header.php';
|
||||
|
||||
$online_users = shell_exec("online-users");
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
<?php
|
||||
$path = new SplFileInfo(__FILE__);
|
||||
$filepath = $path->getRealPath();
|
||||
require __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
$additional_head = "
|
||||
|
|
Loading…
Reference in New Issue
__FILE__
should have the same contents here, is there a difference with the getRealPath() method?looks like you can use
realpath(__FILE__)
to avoid instantiating another object but just__FILE__
would probably be fine