From 2288ffccba578269f5a2a30b50086a9b5a0220db Mon Sep 17 00:00:00 2001 From: ui0ppk Date: Sun, 5 Feb 2023 00:43:20 +0200 Subject: [PATCH] useful pagename variable --- core/config.php | 2 ++ error.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/config.php b/core/config.php index 5b70c19..0199aeb 100644 --- a/core/config.php +++ b/core/config.php @@ -11,6 +11,8 @@ if($devmode) { error_reporting(E_ALL); } +$pagename = ucfirst(str_replace(".php", NULL, str_replace("/", NULL, $_SERVER['DOCUMENT_URI']))); + $maintainers = array("Mario1", "qzip", "nolanwhy"); $arraybackground = array('win7.png', 'win8.png', 'epic.png', 'yosemite.png', 'aurora.png', 'tiger.png', 'fish.png', 'baconbloxii.png'); diff --git a/error.php b/error.php index 3e27bd9..5e8ebd7 100644 --- a/error.php +++ b/error.php @@ -36,7 +36,7 @@ $getitstarted = new PartyStarter; $getitstarted->header(); ?> -<?php echo $sitename; ?> | <?php echo htmlspecialchars($requestUser["username"]); ?> +<?php echo $sitename; ?> | <?php echo $pagename; ?>