useful pagename variable

This commit is contained in:
ui0ppk 2023-02-05 00:43:20 +02:00
parent 9add1d7fbf
commit 2288ffccba
2 changed files with 3 additions and 1 deletions

View File

@ -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');

View File

@ -36,7 +36,7 @@ $getitstarted = new PartyStarter;
$getitstarted->header();
?>
</head>
<title><?php echo $sitename; ?> | <?php echo htmlspecialchars($requestUser["username"]); ?></title>
<title><?php echo $sitename; ?> | <?php echo $pagename; ?></title>
<body>
<main class="container mx-auto position-absolute top-50 start-50 translate-middle text-center" style="width: 100%;">
<?php echo $errorImage; ?>