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
/
index.php
112 lines (109 loc) · 4.09 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
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
108
109
110
111
112
<?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>
<!-- my profile !-->
<span class="friends">내 프로필</span>
<div style="height:9px;"></div>
<div class="d-flex justify-content-start">
<?php
$sql = mq("select * from member where id='{$_SESSION['userid']}'");
while($member = $sql->fetch_array()){
?>
<div>
<a href="profile/info_my.php">
<div
class="profile"
style="background-image:url('<?php echo $member['profile_image']; ?>');"></div>
</div>
<div>
<div style="margin-top: 8px;"></div>
<h5 style="margin-bottom:0;"><?php echo $member['name']; ?></h5>
<p class="intro" style="margin-bottom:0;"><?php echo $member['intro']; ?></p>
</div>
</a>
</div>
<?php } ?>
<div style="height:10px;"></div>
<hr>
<span class="friends">추천 친구
</span>
<?php
$sql = mq("select * from member where access='admin'");
while($member = $sql->fetch_array()){
?>
<div style="height:9px;"></div>
<a href="profile/info.php?name=<?php echo $member['name']; ?>">
<div class="d-flex justify-content-start">
<div>
<div
class="profile"
style="background-image:url('<?php echo $member['profile_image']; ?>');"></div>
</div>
<div>
<div style="margin-top: 8px;"></div>
<h5 style="margin-bottom:0;"><?php echo $member['name']; ?></h5>
<p class="intro" style="margin-bottom:0;"><?php echo $member['intro']; ?></p>
</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-solid 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>