mirror of
https://github.com/xodivorce/xeorl.git
synced 2025-12-19 08:13:00 +05:30
39 lines
1.6 KiB
PHP
Executable File
39 lines
1.6 KiB
PHP
Executable File
<?php
|
|
if (session_status() === PHP_SESSION_NONE) {
|
|
session_start();
|
|
}
|
|
?>
|
|
|
|
<link rel="stylesheet" href="assets/css/_header.css">
|
|
<header class="header">
|
|
<div class="header-container" style="user-select: none;">
|
|
<div class="logo">
|
|
<img src="assets/images/url.png" alt="Xeorl Logo" class="logo-img">
|
|
<span>Xeorl</span>
|
|
<span class="version-number">3.2.0</span>
|
|
</div>
|
|
<label class="burger" for="burger">
|
|
<input type="checkbox" id="burger">
|
|
<span></span>
|
|
<span></span>
|
|
<span></span>
|
|
</label> <!-- Hamburger Menu -->
|
|
<nav>
|
|
<ul>
|
|
<li><a href="index.php" class="<?php echo basename($_SERVER['PHP_SELF']) == 'index.php' ? 'active disabled' : ''; ?>">Home</a></li>
|
|
<li><a href="monetization.php" class="<?php echo basename($_SERVER['PHP_SELF']) == 'monetization.php' ? 'active disabled' : ''; ?>">Monetization</a></li>
|
|
|
|
<?php if (isset($_SESSION['user_id'])): ?>
|
|
<!-- Show Account if user is logged in -->
|
|
<li><a href="account.php" class="<?php echo basename($_SERVER['PHP_SELF']) == 'account.php' ? 'active disabled' : ''; ?>">Account</a></li>
|
|
<?php else: ?>
|
|
<!-- Show Get-Started if user is not logged in -->
|
|
<li><a href="login.php" class="<?php echo basename($_SERVER['PHP_SELF']) == 'login.php' ? 'active disabled' : ''; ?>">Get-Started</a></li>
|
|
<?php endif; ?>
|
|
|
|
<li><a href="contact.php" class="<?php echo basename($_SERVER['PHP_SELF']) == 'contact.php' ? 'active disabled' : ''; ?>">Contact</a></li>
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
</header>
|