-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile_content_friends.php
182 lines (135 loc) · 5.03 KB
/
profile_content_friends.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<?php
$login = new Login();
$user_data = $login->check_login($_SESSION['NFoster_userid']);
//posting code
if($_SERVER['REQUEST_METHOD'] == "POST")
{
$post = new Post();
$id = $_SESSION['NFoster_userid'];
$result = $post->create_post($id, $_POST);
if($result == "")
{
header("Location: profile.php");
die;
}else
{
echo"<div style='text-align:center; font-size: 12px; color:black; backgroud-color:blue;'>";
echo "<br>Following Errors are occures<br>";
echo $result;
echo"</div>";
}
}
//collect post
$post = new Post();
//$id = $_SESSION['NFoster_userid'];
$id = $user_data['userid'];
$posts = $post->get_posts($id);
//collect friends
$user = new User();
//$id = $_SESSION['NFoster_userid'];
$friends = $user->get_friends($id);
//image Class
$image_class = new Image();
?>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Adda - Social Network HTML Template</title>
<meta name="robots" content="noindex, follow" />
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Favicon -->
<link rel="shortcut icon" type="image/x-icon" href="assets/images/favicon.ico">
<!-- CSS
============================================ -->
<!-- google fonts -->
<link href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,500,500i,700,700i,900" rel="stylesheet">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="assets/css/vendor/bootstrap.min.css">
<!-- Icon Font CSS -->
<link rel="stylesheet" href="assets/css/vendor/bicon.min.css">
<!-- Flat Icon CSS -->
<link rel="stylesheet" href="assets/css/vendor/flaticon.css">
<!-- audio & video player CSS -->
<link rel="stylesheet" href="assets/css/plugins/plyr.css">
<!-- Slick CSS -->
<link rel="stylesheet" href="assets/css/plugins/slick.min.css">
<!-- nice-select CSS -->
<link rel="stylesheet" href="assets/css/plugins/nice-select.css">
<!-- perfect scrollbar css -->
<link rel="stylesheet" href="assets/css/plugins/perfect-scrollbar.css">
<!-- light gallery css -->
<link rel="stylesheet" href="assets/css/plugins/lightgallery.min.css">
<!-- Main Style CSS -->
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<!-- header area start -->
<header>
<?php
include("header.php");
?>
</header>
<!-- header area end -->
<main>
<div class="main-wrapper">
<!-- photo section start -->
<div class="friends-section mt-20">
<div class="container">
<div class="row">
<div class="col-12">
<div class="content-box friends-zone">
<div class="row mt--20 friends-list">
<?php
if($friends)
{
foreach ($friends as $FRIEND_ROW)
{
//print_r($ROW);
include("my_users.php");
}
}
?>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- photo section end -->
</div>
</main>
<!-- Scroll to top start -->
<div class="scroll-top not-visible">
<i class="bi bi-finger-index"></i>
</div>
<!-- Scroll to Top End -->
<!-- JS
============================================ -->
<!-- Modernizer JS -->
<script src="assets/js/vendor/modernizr-3.6.0.min.js"></script>
<!-- jQuery JS -->
<script src="assets/js/vendor/jquery-3.3.1.min.js"></script>
<!-- Popper JS -->
<script src="assets/js/vendor/popper.min.js"></script>
<!-- Bootstrap JS -->
<script src="assets/js/vendor/bootstrap.min.js"></script>
<!-- Slick Slider JS -->
<script src="assets/js/plugins/slick.min.js"></script>
<!-- nice select JS -->
<script src="assets/js/plugins/nice-select.min.js"></script>
<!-- audio video player JS -->
<script src="assets/js/plugins/plyr.min.js"></script>
<!-- perfect scrollbar js -->
<script src="assets/js/plugins/perfect-scrollbar.min.js"></script>
<!-- light gallery js -->
<script src="assets/js/plugins/lightgallery-all.min.js"></script>
<!-- image loaded js -->
<script src="assets/js/plugins/imagesloaded.pkgd.min.js"></script>
<!-- isotope filter js -->
<script src="assets/js/plugins/isotope.pkgd.min.js"></script>
<!-- Main JS -->
<script src="assets/js/main.js"></script>
</body>
</html>