avoid instantiating SplFileInfo objects

This commit is contained in:
Ben Harris 2021-01-03 18:57:28 -05:00
parent a712e41cd8
commit 9d36f047bd
Signed by untrusted user: ben
GPG Key ID: 4E0AF802FFF7960C
7 changed files with 7 additions and 13 deletions

View File

@ -3,7 +3,7 @@
<pre>ECDSA fingerprint: SHA256:R3qNfKIF3IiXhKCbFX6rCKl73yzexi9Wodsow6XFres</pre>
<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>
<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,6 +1,5 @@
<?php
$path = new SplFileInfo(__FILE__);
$filepath = $path->getRealPath();
$filepath = __FILE__;
include 'header.php';
require __DIR__.'/vendor/autoload.php';
$parser = Tildeverse\Wiki\Parser::factory();

View File

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

View File

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

View File

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

View File

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

View File

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