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

@ -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 = "