reversed the order of the title and added a fallback php self to pagename var
This commit is contained in:
parent
259a20bc4b
commit
b94b5266bb
|
|
@ -14,7 +14,7 @@ $user = new User($con, $_SESSION['user']);
|
||||||
$getitstarted = new PartyStarter;
|
$getitstarted = new PartyStarter;
|
||||||
$getitstarted->header();
|
$getitstarted->header();
|
||||||
?> </head>
|
?> </head>
|
||||||
<title><?php echo $sitename; ?> | <?php echo $pagename; ?></title>
|
<title><?php echo $pagename; ?> | <?php echo $sitename; ?></title>
|
||||||
<body>
|
<body>
|
||||||
<main class="container" style="width: 100%;">
|
<main class="container" style="width: 100%;">
|
||||||
<br>
|
<br>
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ if($devmode) {
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
}
|
}
|
||||||
|
|
||||||
$pagename = ucfirst(str_replace(".php", NULL, str_replace("/", NULL, $_SERVER['DOCUMENT_URI'])));
|
$pagename = ucfirst(str_replace(".php", NULL, str_replace("/", NULL, $_SERVER['DOCUMENT_URI'] ?? $_SERVER['PHP_SELF'] )));
|
||||||
|
|
||||||
$maintainers = array("Mario1", "qzip", "nolanwhy");
|
$maintainers = array("Mario1", "qzip", "nolanwhy");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ $getitstarted = new PartyStarter;
|
||||||
$getitstarted->header();
|
$getitstarted->header();
|
||||||
?>
|
?>
|
||||||
</head>
|
</head>
|
||||||
<title><?php echo $sitename; ?> | <?php echo $pagename; ?></title>
|
<title><?php echo $pagename; ?> | <?php echo $sitename; ?></title>
|
||||||
<body>
|
<body>
|
||||||
<main class="container mx-auto position-absolute top-50 start-50 translate-middle text-center" style="width: 100%;">
|
<main class="container mx-auto position-absolute top-50 start-50 translate-middle text-center" style="width: 100%;">
|
||||||
<?php echo $errorImage; ?>
|
<?php echo $errorImage; ?>
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ $getitstarted = new PartyStarter;
|
||||||
$getitstarted->header();
|
$getitstarted->header();
|
||||||
?>
|
?>
|
||||||
</head>
|
</head>
|
||||||
<title><?php echo $sitename; ?> | <?php echo $pagename; ?></title>
|
<title><?php echo $pagename; ?> | <?php echo $sitename; ?></title>
|
||||||
<body>
|
<body>
|
||||||
<main class="container" style="width: 100%; float: left; margin-left: 20px">
|
<main class="container" style="width: 100%; float: left; margin-left: 20px">
|
||||||
<br>
|
<br>
|
||||||
|
|
|
||||||
2
home.php
2
home.php
|
|
@ -35,7 +35,7 @@ $getitstarted = new PartyStarter;
|
||||||
$getitstarted->header();
|
$getitstarted->header();
|
||||||
?>
|
?>
|
||||||
</head>
|
</head>
|
||||||
<title><?php echo $sitename; ?> | <?php echo $pagename; ?></title>
|
<title><?php echo $pagename; ?> | <?php echo $sitename; ?></title>
|
||||||
<body>
|
<body>
|
||||||
<main class="container text-white" style="width: 100%;">
|
<main class="container text-white" style="width: 100%;">
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ body {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<title><?php echo $sitename; ?></title>
|
<title><?php echo $pagename; ?> | <?php echo $sitename; ?></title>
|
||||||
<body data-bs-theme="dark">
|
<body data-bs-theme="dark">
|
||||||
<div class="position-absolute top-50 start-50 translate-middle col d-flex justify-content-center align-middle">
|
<div class="position-absolute top-50 start-50 translate-middle col d-flex justify-content-center align-middle">
|
||||||
<div class="card shadow-sm bg-dark text-white text-center">
|
<div class="card shadow-sm bg-dark text-white text-center">
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ $result = file_get_contents("https://useless-facts.sameerkumar.website/api");
|
||||||
$thefunfact = json_decode($result);
|
$thefunfact = json_decode($result);
|
||||||
?>
|
?>
|
||||||
</head>
|
</head>
|
||||||
<title><?php echo $sitename; ?> | <?php echo $pagename; ?></title>
|
<title><?php echo $pagename; ?> | <?php echo $sitename; ?></title>
|
||||||
<body>
|
<body>
|
||||||
<div class="container position-absolute top-50 start-50 translate-middle">
|
<div class="container position-absolute top-50 start-50 translate-middle">
|
||||||
<div class="row align-items-center">
|
<div class="row align-items-center">
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ $result = file_get_contents("https://useless-facts.sameerkumar.website/api");
|
||||||
$thefunfact = json_decode($result);
|
$thefunfact = json_decode($result);
|
||||||
?>
|
?>
|
||||||
</head>
|
</head>
|
||||||
<title><?php echo $sitename; ?> | <?php echo $pagename; ?></title>
|
<title><?php echo $pagename; ?> | <?php echo $sitename; ?></title>
|
||||||
<body>
|
<body>
|
||||||
<div class="container position-absolute top-50 start-50 translate-middle">
|
<div class="container position-absolute top-50 start-50 translate-middle">
|
||||||
<div class="row align-items-center">
|
<div class="row align-items-center">
|
||||||
|
|
|
||||||
2
user.php
2
user.php
|
|
@ -30,7 +30,7 @@ $getitstarted = new PartyStarter;
|
||||||
$getitstarted->header();
|
$getitstarted->header();
|
||||||
?>
|
?>
|
||||||
</head>
|
</head>
|
||||||
<title><?php echo $sitename; ?> | <?php echo htmlspecialchars($requestUser["username"]); ?></title>
|
<title><?php echo htmlspecialchars($requestUser["username"]); ?> | <?php echo $sitename; ?></title>
|
||||||
<body>
|
<body>
|
||||||
<main class="container" style="width: 100%;">
|
<main class="container" style="width: 100%;">
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue