-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwelcome.php
More file actions
71 lines (68 loc) · 1.88 KB
/
welcome.php
File metadata and controls
71 lines (68 loc) · 1.88 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
// Oturum başlatma
session_start();
// Kullanıcı giriş yapmamışsa ana sayfaya yönlendir
if (!isset($_SESSION['user'])) {
header('Location: index.php');
exit;
}
// Kullanıcı bilgilerini al
$user = $_SESSION['user'];
?>
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hoş Geldiniz - Azure AD Kimlik Doğrulama</title>
<style>
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f0f2f5;
}
.welcome-container {
background-color: white;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
text-align: center;
max-width: 600px;
width: 90%;
}
.user-info {
margin: 2rem 0;
padding: 1rem;
background-color: #f8f9fa;
border-radius: 4px;
}
.logout-button {
background-color: #dc3545;
color: white;
padding: 0.8rem 1.5rem;
border: none;
border-radius: 4px;
font-size: 1rem;
cursor: pointer;
text-decoration: none;
display: inline-block;
}
.logout-button:hover {
background-color: #c82333;
}
</style>
</head>
<body>
<div class="welcome-container">
<h1>Hoş Geldiniz, <?php echo htmlspecialchars($user['name']); ?>!</h1>
<div class="user-info">
<p><strong>E-posta:</strong> <?php echo htmlspecialchars($user['email']); ?></p>
</div>
<a href="logout.php" class="logout-button">Çıkış Yap</a>
</div>
</body>
</html>