-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.php
34 lines (28 loc) · 1.29 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
session_start();
// kullanıcı giriş yapmış mı kontrol ediyoruz
if (!isset($_SESSION["id"]) && !isset($_SESSION["username"]) && !isset($_SESSION["email"])) {
header("Location: login.php");
exit();
}
// burası kullanıcının giriş yaptıktan sonra görebildiği sayfa
// şablon olarak kullanabilirsiniz
// bu sayfayı şu anki haliyle kopyalayarak giriş yapılmadan erişilemeyen sayfalar oluşturabilirsiniz
?>
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Anasayfa</title>
<link rel="stylesheet" type="text/css" href="./css/index.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css" integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;600&display=swap" rel="stylesheet">
</head>
<body>
<h1>Merhaba, <?php echo $_SESSION["username"]; ?></h1>
<a href="./reset-password.php">Şifre Sıfırla</a></br>
<a href="./logout.php">Çıkış Yap</a>
</body>
</html>