avoid instantiating SplFileInfo objects
This commit is contained in:
parent
a712e41cd8
commit
9d36f047bd
|
@ -3,7 +3,7 @@
|
|||
<pre>ECDSA fingerprint: SHA256:R3qNfKIF3IiXhKCbFX6rCKl73yzexi9Wodsow6XFres</pre>
|
||||
<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://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,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();
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?php
|
||||
$path = new SplFileInfo(__FILE__);
|
||||
$filepath = $path->getRealPath();
|
||||
$filepath = __FILE__;
|
||||
require __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
$additional_head = "
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?php
|
||||
$path = new SplFileInfo(__FILE__);
|
||||
$filepath = $path->getRealPath();
|
||||
$filepath = __FILE__;
|
||||
include __DIR__.'/../header.php';
|
||||
?>
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?php
|
||||
$path = new SplFileInfo(__FILE__);
|
||||
$filepath = $path->getRealPath();
|
||||
$filepath = __FILE__;
|
||||
require __DIR__.'/../vendor/autoload.php';
|
||||
require_once "email/smtp.php";
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?php
|
||||
$path = new SplFileInfo(__FILE__);
|
||||
$filepath = $path->getRealPath();
|
||||
$filepath = __FILE__;
|
||||
include __DIR__.'/../header.php';
|
||||
|
||||
$online_users = shell_exec("online-users");
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?php
|
||||
$path = new SplFileInfo(__FILE__);
|
||||
$filepath = $path->getRealPath();
|
||||
$filepath = __FILE__;
|
||||
require __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
$additional_head = "
|
||||
|
|
Loading…
Reference in New Issue