34702-vm/header.php
2025-10-05 21:53:53 +00:00

31 lines
1.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php session_start(); ?>
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Beni de Ünlü Yap</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Georgia:wght@700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/assets/css/custom.css">
</head>
<body>
<header>
<nav>
<a href="/" class="logo">Beni de Ünlü Yap</a>
<ul>
<li><a href="/">Ana Sayfa</a></li>
<li><a href="/influencers.php">Influencerlar</a></li>
<?php if (isset($_SESSION['loggedin'])): ?>
<li><a href="/dashboard.php">Panel</a></li>
<?php if (isset($_SESSION['role']) && $_SESSION['role'] === 'admin'): ?>
<li><a href="/admin.php">Admin Paneli</a></li>
<?php endif; ?>
<li><a href="/logout.php">Çıkış Yap</a></li>
<?php else: ?>
<li><a href="/login.php">Giriş Yap</a></li>
<li><a href="/register.php">Kayıt Ol</a></li>
<?php endif; ?>
</ul>
</nav>
</header>
<main>