Refactoring for publish, and also addition of "Services" page

This commit is contained in:
Halbear
2026-04-04 13:54:37 +01:00
parent b016e6bd13
commit e4f387d27a
235 changed files with 174 additions and 91 deletions
@@ -0,0 +1,45 @@
<?php
$HomeLocation = "../index.php";
if(isset($_SESSION["ReturnPage"])) {
switch($_SESSION["ReturnPage"]) {
case "Forum":
$HomeLocation = 'https://halbear.net/Desktop/Forum.php';
break;
case "Index":
$HomeLocation = 'https://halbear.net/Desktop/index.php';
break;
case "Software":
$HomeLocation = 'https://halbear.net/Desktop/Software.php';
break;
case "Artwork":
$HomeLocation = 'https://halbear.net/Desktop/Artwork.php';
break;
case "Contact":
$HomeLocation = 'https://halbear.net/Desktop/Contact.php';
break;
}
}
?>
<div class="HotbarWrapper">
<div class="HotbarSection">
<div class="Logo"></div>
<div class="Title">Halbear.Net Account Centre</div>
</div>
<div class="HotbarSection">
<button class="HotbarButton" onclick="HelpForm();">
Help
</button>
<button class="HotbarButton" onclick="document.location.href='<?php echo $HomeLocation; ?>'">
Back
</button>
<?php
if($LoggedIn){
$location = "'AccountCentre.php?logout=true'";
echo '<button class="HotbarButton" onclick="document.location.href='.$location.'">Log Out</Button>';
echo '<img class="AccountIcon" src="'.((isset($_SESSION["user_pfp"])) ? $_SESSION["user_pfp"] : "../GeneralAssets/AccountSymbol.png").'">';
} else{
echo '<button class="HotbarButton" onclick="signInForm();">Sign In</button>';
}
?>
</div>
</div>