This repository has been archived by the owner on Nov 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
etc.php
107 lines (104 loc) · 3.43 KB
/
etc.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
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?php
include "db.php";
if(isset($_SESSION['userid'])){
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8"/>
<title>Dear for MIN SEONG</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65"
crossorigin="anonymous">
<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 rel="stylesheet" href="style.css">
</head>
<body>
<div class="container mt-5">
<h1>
<b>설정</b>
</h1>
<?php
?>
<div style="height:9px;"></div>
<a href="login/member/logout.php">
<div class="button-block">
<div class="container">
로그아웃
</div>
</div>
</a>
<div style="height:18px;"></div>
<a href="edit.php">
<div class="button-block">
<div class="container">
프로필 편집
</div>
</div>
</a>
<div style="height:18px;"></div>
<a href="edit_pw.php">
<div class="button-block">
<div class="container">
비밀번호 변경
</div>
</div>
</a>
<?php
$sql = mq("select * from member where id='{$_SESSION['userid']}'");
while($member = $sql->fetch_array()){
if($member['access'] == "admin") {
echo '<div style="height:18px;"></div>
<a href="chat/write.php">
<div class="button-block">
<div class="container">
메세지 관리
</div>
</div>
</a>';
}
?>
<?php } ?>
</div>
<div class="fixed-bottom">
<div class="menu">
<div class="d-flex justify-content-around">
<div>
<a href="index.php">
<i class="fa-regular fa-user" style="font-size:25px;"></i>
</a>
</div>
<div>
<a href="chat.php">
<i class="fa-regular fa-comment" style="font-size:25px;"></i>
</a>
</div>
<div>
<a href="etc.php">
<i class="fa-solid fa-bars" style="font-size:25px;"></i>
</a>
</div>
</div>
</div>
</div>
<?php
}else{
echo "<script>location.href='login';</script>";
} ?>
<script
src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"
integrity="sha384-oBqDVmMz9ATKxIep9tiCxS/Z9fNfEXiDAYTujMAeBAsjFuCZSmKbSSUnQlmh/jp3"
crossorigin="anonymous"></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-cuYeSxntonz0PPNlHhBs68uyIAVpIIOZZ5JqeqvYYIcEL727kskC66kF92t6Xl2V"
crossorigin="anonymous"></script>
</body>
</html>