diff --git a/inc/page.php b/inc/page.php index 599d468..743d153 100644 --- a/inc/page.php +++ b/inc/page.php @@ -621,7 +621,7 @@ class Page { $time = microtime(true) - $this->time; echo ""; - include_once './inc/footer.php'; + require_once './inc/footer.php'; } function append_param($url, $param) { diff --git a/inc/test/php/LangTest.php b/inc/test/php/LangTest.php index 06e145a..5e20f88 100644 --- a/inc/test/php/LangTest.php +++ b/inc/test/php/LangTest.php @@ -9,7 +9,7 @@ final class LangTest extends TestCase { $dir = './lang'; $langs = glob("$dir/*.php"); foreach ($langs as $lang) { - include_once $lang; + require_once $lang; $lang_class = $lang; $lang_class = substr($lang_class, strlen("$dir/")); // grab "en_US.utf8.php" from "./lang/en_US.utf8.php" $lang_class = substr($lang_class, 0, strpos($lang_class, ".")); // grab "en_US" from "en_US.utf8.php" diff --git a/inc/test/php/PageTest.php b/inc/test/php/PageTest.php index 37f9156..e8d5932 100644 --- a/inc/test/php/PageTest.php +++ b/inc/test/php/PageTest.php @@ -2,7 +2,7 @@ use PHPUnit\Framework\TestCase; -include_once './inc/page.php'; +require_once './inc/page.php'; final class PageTest extends TestCase { public function testBansPagerHTML(): void { diff --git a/index.php b/index.php index de837ae..7ca0b66 100644 --- a/index.php +++ b/index.php @@ -8,7 +8,7 @@ if ($page->settings->simple_urls && count($_GET) !== 0) { if ($target !== "index" && strlen($target) <= 16 && preg_match("/^[a-z]+$/", $target)) { $local_script = "./${target}.php"; if (file_exists($local_script)) { - include_once $local_script; + require_once $local_script; return; } }