This repository was archived by the owner on Aug 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmobile.php
More file actions
210 lines (170 loc) · 7.35 KB
/
Copy pathmobile.php
File metadata and controls
210 lines (170 loc) · 7.35 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
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<?php require_once("includes/mobileHeader.php");
error_reporting(0); ?>
<style>
/* Header/Logo Title */
.header {
padding: 10px;
text-align: center;
background: #1E8449;
color: white;
}
#desc {
font-size: 25px;
}
</style>
<div class="column" style="border-radius: .5rem; ">
<div class="videoSection">
<?php
$subscriptionsProvider = new SubscriptionsProvider($con, $userLoggedInObj);
$subscriptionVideos = $subscriptionsProvider->getVideos();
$videoGrid = new VideoGrid($con, $userLoggedInObj->getUsername());
echo $videoGrid->create(null, "Recommended", false);
?>
<?php
if(User::isLoggedIn() && sizeof($subscriptionVideos) > 0) {
echo $videoGrid->create($subscriptionVideos, "Subscriptions", false);
}
?>
</div>
<b>Your Channel</b>
<hr>
<?php
$conn2 = mysqli_connect("localhost", "root", "", "videotube");
$sql2 = "SELECT firstName, lastName, username, profilePic FROM users WHERE username = '".$_SESSION['userLoggedIn']."'";
$result = $conn2->query($sql2);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo "<tr><td><img width='70' height='70' src='" . $row["profilePic"] . "'><b>" . $row["firstName"] . " "
. $row["lastName"] . "</b> - <tr><td><a href=profile.php?username=".$row["username"].">" .$row["username"]."</a></tr></td> | ";
}
echo "</table><br>";
} else { echo "
You are not signed in.
<br>Need an account? Sign Up <a href='signUp.php'>Here</a>
<br>Already have an account? Sign In <a href='signIn.php'>Here</a>
"; }
$conn2->close();
?>
<br>
<br><b>Featured Creators</b>
<hr>
<?php
$conn = mysqli_connect("localhost", "root", "", "videotube");
$sql = "SELECT firstName, lastName, username, profilePic FROM users order by RAND() LIMIT 10";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo "<tr><td><img width='70' height='70' src='" . $row["profilePic"] . "'><b>" . $row["firstName"] . " "
. $row["lastName"] . "</b> - <tr><td><a href=profile.php?username=".$row["username"].">" .$row["username"]."</a></tr></td> | ";
}
echo "</table>";
} else { echo "Error"; }
$conn->close();
?>
<div class="menu-top">
<hr>
<ul class="nav nav-pills justify-content-center">
<li class="nav-item">
<a href="http://winsdominoes.ddns.net:8080" class="nav-link">Community</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link" data-toggle="modal" data-target="#guidelines">Guidelines</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link" data-toggle="modal" data-target="#about">About</a>
</li>
<li class="nav-item">
<a href="http://winsdominoes.ddns.net:8080" class="nav-link" data-toggle="modal" data-target="#tips">Tips and Tricks</a>
</li>
<li class="nav-item">
<a href="" class="nav-link" data-toggle="modal" data-target="#help">Help Center</a>
</li>
</ul>
<div>
</div>
<div class="modal fade" id="guidelines" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">WinsVideo Guidelines</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<b>WinsVideo Guidelines</b>
<br>Community Guidelines
<br>The Community Guidelines for WinsVideo is the rule for every user to follow for the platform
<br>to make this platform better.
<br>1. Video Contains Bad Words, Appearance will be deleted.
<br>2. Videos which is duplicated title, or copied will be deleted.
<br>3. Videos contains Copyrighted Music, Images, And Video, will be claimed. And sometimes will be deleted.
<br>4. Video Contains quarells, bad politics, weapon releated games, alcoholic videos will be deleted.
<br>5. Video Contains Controversy, Antisemetic Content, and weapon related games, will be deleted.
<br>6. Videos contains sexual related, pornographic videos will be deleted and channel will also be terminated.
<br>7. No Doxxing, or showing personal information.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="about" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">About</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<b>About WinsVideo</b>
<p>WinsVideo is a video platform for users to upload their videos to the internet.
<br>Upload your style to make the platform more lively and better
<br></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="tips" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">Tips And Tricks</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<b>Tips And Tricks on WinsVideo</b>
<p>WinsVideo is a video platform for users to upload their videos to the internet.
<br>Which also contains useful features you didn't know!
<ul>
<li>Dark Mode</li>
- Although WinsVideo doesn't have built in Dark Mode feature, WinsVideo supports Dark Mode with extensions. For example, Chrome And Chromium based-browser have many dark mode extensions which the site support.
<br>
- <b>Did you know?</b>
<br>If you upload a transparent .png file as a profile picture when you activate dark mode the image's background will blend to the background in each page!
<li>Forums</li>
- Forums is where WinsVideo users can come to ask questions, make a discussion, and etc.
Just click the side button beside the WinsVideo logo, then click on Forums or click on the "Community" button on the home page
<li>Status</li>
- Users can add status to their profile page and your status can also be featured on the homepage!
</ul>
<br></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
<?php include_once("includes/footer.php") ?>