@@ -16,8 +16,8 @@ discard block |
||
16 | 16 | } |
17 | 17 | |
18 | 18 | |
19 | - if($_SERVER['REQUEST_METHOD'] == 'POST' && @$_GET['n']) { |
|
20 | - if(!empty($_GET["n"]) && $_GET['n'] == "pfp") { |
|
19 | + if ($_SERVER['REQUEST_METHOD'] == 'POST' && @$_GET['n']) { |
|
20 | + if (!empty($_GET["n"]) && $_GET['n'] == "pfp") { |
|
21 | 21 | $target_dir = "../dynamic/pfp/"; |
22 | 22 | $imageFileType = strtolower(pathinfo($_FILES["file"]["name"], PATHINFO_EXTENSION)); |
23 | 23 | $target_name = md5_file($_FILES["file"]["tmp_name"]) . "." . $imageFileType; |
@@ -27,8 +27,8 @@ discard block |
||
27 | 27 | $uploadOk = true; |
28 | 28 | $movedFile = false; |
29 | 29 | |
30 | - if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
31 | - && $imageFileType != "gif" ) { |
|
30 | + if ($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
31 | + && $imageFileType != "gif") { |
|
32 | 32 | $fileerror = 'unsupported file type. must be jpg, png, jpeg, or gif'; |
33 | 33 | $uploadOk = false; |
34 | 34 | goto skip; |
@@ -51,8 +51,8 @@ discard block |
||
51 | 51 | } |
52 | 52 | } |
53 | 53 | } |
54 | - } else if($_SERVER['REQUEST_METHOD'] == 'POST' && @$_FILES['backgroundbgset']) { |
|
55 | - if(!empty($_FILES["backgroundbgset"]["name"])) { |
|
54 | + } else if ($_SERVER['REQUEST_METHOD'] == 'POST' && @$_FILES['backgroundbgset']) { |
|
55 | + if (!empty($_FILES["backgroundbgset"]["name"])) { |
|
56 | 56 | $target_dir = "../dynamic/banners/"; |
57 | 57 | $imageFileType = strtolower(pathinfo($_FILES["backgroundbgset"]["name"], PATHINFO_EXTENSION)); |
58 | 58 | $target_name = md5_file($_FILES["backgroundbgset"]["tmp_name"]) . "." . $imageFileType; |
@@ -62,14 +62,14 @@ discard block |
||
62 | 62 | $uploadOk = true; |
63 | 63 | $movedFile = false; |
64 | 64 | |
65 | - if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
66 | - && $imageFileType != "gif" ) { |
|
65 | + if ($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
66 | + && $imageFileType != "gif") { |
|
67 | 67 | $fileerror = 'unsupported file type. must be jpg, png, jpeg, or gif'; |
68 | 68 | $uploadOk = false; |
69 | 69 | goto skip; |
70 | 70 | } |
71 | 71 | |
72 | - if($uploadOk) { |
|
72 | + if ($uploadOk) { |
|
73 | 73 | if (file_exists($target_file)) { |
74 | 74 | $movedFile = true; |
75 | 75 | } else { |
@@ -85,9 +85,9 @@ discard block |
||
85 | 85 | } |
86 | 86 | } |
87 | 87 | } |
88 | - } else if($_SERVER['REQUEST_METHOD'] == 'POST' && @$_FILES['watchsubset']) { |
|
88 | + } else if ($_SERVER['REQUEST_METHOD'] == 'POST' && @$_FILES['watchsubset']) { |
|
89 | 89 | echo "asdas"; |
90 | - if(!empty($_FILES["watchsubset"]["name"])) { |
|
90 | + if (!empty($_FILES["watchsubset"]["name"])) { |
|
91 | 91 | echo "asdas"; |
92 | 92 | |
93 | 93 | $target_dir = "../dynamic/banners/"; |
@@ -99,14 +99,14 @@ discard block |
||
99 | 99 | $uploadOk = true; |
100 | 100 | $movedFile = false; |
101 | 101 | |
102 | - if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
103 | - && $imageFileType != "gif" ) { |
|
102 | + if ($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
103 | + && $imageFileType != "gif") { |
|
104 | 104 | $fileerror = 'unsupported file type. must be jpg, png, jpeg, or gif'; |
105 | 105 | $uploadOk = false; |
106 | 106 | goto skip; |
107 | 107 | } |
108 | 108 | |
109 | - if($uploadOk) { |
|
109 | + if ($uploadOk) { |
|
110 | 110 | if (file_exists($target_file)) { |
111 | 111 | $movedFile = true; |
112 | 112 | } else { |
@@ -122,8 +122,8 @@ discard block |
||
122 | 122 | } |
123 | 123 | } |
124 | 124 | } |
125 | - } else if($_SERVER['REQUEST_METHOD'] == 'POST' && @$_POST['bannerset']) { |
|
126 | - if(!empty($_FILES["file"]["name"])) { |
|
125 | + } else if ($_SERVER['REQUEST_METHOD'] == 'POST' && @$_POST['bannerset']) { |
|
126 | + if (!empty($_FILES["file"]["name"])) { |
|
127 | 127 | $target_dir = "../dynamic/banners/"; |
128 | 128 | $imageFileType = strtolower(pathinfo($_FILES["file"]["name"], PATHINFO_EXTENSION)); |
129 | 129 | $target_name = md5_file($_FILES["file"]["tmp_name"]) . "." . $imageFileType; |
@@ -133,14 +133,14 @@ discard block |
||
133 | 133 | $uploadOk = true; |
134 | 134 | $movedFile = false; |
135 | 135 | |
136 | - if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
137 | - && $imageFileType != "gif" ) { |
|
136 | + if ($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
137 | + && $imageFileType != "gif") { |
|
138 | 138 | $fileerror = 'unsupported file type. must be jpg, png, jpeg, or gif'; |
139 | 139 | $uploadOk = false; |
140 | 140 | goto skip; |
141 | 141 | } |
142 | 142 | |
143 | - if($uploadOk) { |
|
143 | + if ($uploadOk) { |
|
144 | 144 | if (file_exists($target_file)) { |
145 | 145 | $movedFile = true; |
146 | 146 | } else { |
@@ -156,8 +156,8 @@ discard block |
||
156 | 156 | } |
157 | 157 | } |
158 | 158 | } |
159 | - } else if($_SERVER['REQUEST_METHOD'] == 'POST' && @$_FILES['videopagebanner']) { |
|
160 | - if(!empty($_FILES["videopagebanner"]["name"])) { |
|
159 | + } else if ($_SERVER['REQUEST_METHOD'] == 'POST' && @$_FILES['videopagebanner']) { |
|
160 | + if (!empty($_FILES["videopagebanner"]["name"])) { |
|
161 | 161 | $target_dir = "/dynamic/subscribe/"; |
162 | 162 | $imageFileType = strtolower(pathinfo($_FILES["videopagebanner"]["name"], PATHINFO_EXTENSION)); |
163 | 163 | $target_name = md5_file($_FILES["videopagebanner"]["tmp_name"]) . "." . $imageFileType; |
@@ -167,14 +167,14 @@ discard block |
||
167 | 167 | $uploadOk = true; |
168 | 168 | $movedFile = false; |
169 | 169 | |
170 | - if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
171 | - && $imageFileType != "gif" ) { |
|
170 | + if ($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
171 | + && $imageFileType != "gif") { |
|
172 | 172 | $fileerror = 'unsupported file type. must be jpg, png, jpeg, or gif'; |
173 | 173 | $uploadOk = false; |
174 | 174 | goto skip; |
175 | 175 | } |
176 | 176 | |
177 | - if($uploadOk) { |
|
177 | + if ($uploadOk) { |
|
178 | 178 | if (file_exists($target_file)) { |
179 | 179 | $movedFile = true; |
180 | 180 | } else { |
@@ -192,94 +192,94 @@ discard block |
||
192 | 192 | } |
193 | 193 | } |
194 | 194 | |
195 | - if(!empty($_POST['bio'])) { |
|
195 | + if (!empty($_POST['bio'])) { |
|
196 | 196 | $__user_u->update_row($_SESSION['siteusername'], "bio", $_POST['bio']); |
197 | 197 | } |
198 | 198 | |
199 | - if(!empty($_POST['featuredchannels'])) { |
|
199 | + if (!empty($_POST['featuredchannels'])) { |
|
200 | 200 | $__user_u->update_row($_SESSION['siteusername'], "featured_channels", $_POST['featuredchannels']); |
201 | 201 | } |
202 | 202 | |
203 | - if(!empty($_POST['custom_label_title'])) { |
|
203 | + if (!empty($_POST['custom_label_title'])) { |
|
204 | 204 | $__user_u->update_row($_SESSION['siteusername'], "uploaded_videos_title", $_POST['custom_label_title']); |
205 | 205 | } |
206 | 206 | |
207 | - if(!empty($_POST['custom_label_description'])) { |
|
207 | + if (!empty($_POST['custom_label_description'])) { |
|
208 | 208 | $__user_u->update_row($_SESSION['siteusername'], "uploaded_videos_description", $_POST['custom_label_description']); |
209 | 209 | } |
210 | 210 | |
211 | - if(!empty($_POST['css'])) { |
|
211 | + if (!empty($_POST['css'])) { |
|
212 | 212 | $__user_u->update_row($_SESSION['siteusername'], "css", $_POST['css']); |
213 | 213 | } |
214 | 214 | |
215 | - if(!empty($_POST['videoid'])) { |
|
215 | + if (!empty($_POST['videoid'])) { |
|
216 | 216 | $__user_u->update_row($_SESSION['siteusername'], "featured", $_POST['videoid']); |
217 | 217 | } |
218 | 218 | |
219 | - if(!empty($_POST['solidcolor'])) { |
|
219 | + if (!empty($_POST['solidcolor'])) { |
|
220 | 220 | $__user_u->update_row($_SESSION['siteusername'], "background_option", $_POST['bgoption']); |
221 | 221 | |
222 | - if($_POST['bgoption'] == "solid") |
|
222 | + if ($_POST['bgoption'] == "solid") |
|
223 | 223 | $__user_u->update_row($_SESSION['siteusername'], "2012_bg", ""); |
224 | 224 | |
225 | 225 | $__user_u->update_row($_SESSION['siteusername'], "primary_color", $_POST['solidcolor']); |
226 | 226 | } |
227 | 227 | |
228 | - if(!empty($_POST['transparency'])) { |
|
228 | + if (!empty($_POST['transparency'])) { |
|
229 | 229 | $__user_u->update_row($_SESSION['siteusername'], "transparency", $_POST['transparency']); |
230 | 230 | } |
231 | 231 | |
232 | - if(!empty($_POST['genre'])) { |
|
232 | + if (!empty($_POST['genre'])) { |
|
233 | 233 | $__user_u->update_row($_SESSION['siteusername'], "genre", $_POST['genre']); |
234 | 234 | } |
235 | 235 | |
236 | - if(!empty($_POST['bordercolor'])) { |
|
236 | + if (!empty($_POST['bordercolor'])) { |
|
237 | 237 | $__user_u->update_row($_SESSION['siteusername'], "border_color", $_POST['bordercolor']); |
238 | 238 | } |
239 | 239 | |
240 | - if(!empty($_POST['country'])) { |
|
240 | + if (!empty($_POST['country'])) { |
|
241 | 241 | $__user_u->update_row($_SESSION['siteusername'], "country", $_POST['country']); |
242 | 242 | } // duplicate? |
243 | 243 | |
244 | - if(!empty($_POST['header'])) { |
|
244 | + if (!empty($_POST['header'])) { |
|
245 | 245 | $__user_u->update_row($_SESSION['siteusername'], "custom_header", $_POST['header']); |
246 | 246 | } |
247 | 247 | |
248 | - if(!empty($_POST['customtext'])) { |
|
248 | + if (!empty($_POST['customtext'])) { |
|
249 | 249 | $__user_u->update_row($_SESSION['siteusername'], "custom_text", $_POST['customtext']); |
250 | 250 | } |
251 | 251 | |
252 | - if(!empty($_POST['country'])) { |
|
252 | + if (!empty($_POST['country'])) { |
|
253 | 253 | $__user_u->update_row($_SESSION['siteusername'], "custom_text", $_POST['country']); |
254 | 254 | } // duplicate? |
255 | 255 | |
256 | - if(!empty($_POST['website'])) { |
|
256 | + if (!empty($_POST['website'])) { |
|
257 | 257 | $__user_u->update_row($_SESSION['siteusername'], "website", $_POST['website']); |
258 | 258 | } |
259 | 259 | |
260 | - if(!empty($_POST['channelboxcolor'])) { |
|
260 | + if (!empty($_POST['channelboxcolor'])) { |
|
261 | 261 | $__user_u->update_row($_SESSION['siteusername'], "secondary_color", $_POST['channelboxcolor']); |
262 | 262 | } |
263 | 263 | |
264 | - if(!empty($_POST['backgroundcolor'])) { |
|
264 | + if (!empty($_POST['backgroundcolor'])) { |
|
265 | 265 | $__user_u->update_row($_SESSION['siteusername'], "third_color", $_POST['backgroundcolor']); |
266 | 266 | } |
267 | 267 | |
268 | - if(!empty($_POST['textmaincolor'])) { |
|
268 | + if (!empty($_POST['textmaincolor'])) { |
|
269 | 269 | $__user_u->update_row($_SESSION['siteusername'], "primary_color_text", $_POST['textmaincolor']); |
270 | 270 | } |
271 | 271 | |
272 | - if(!empty($_POST['layout_channel'])) { |
|
273 | - if( |
|
274 | - $_POST['layout_channel'] == "feed" || |
|
275 | - $_POST['layout_channel'] == "featured" || |
|
272 | + if (!empty($_POST['layout_channel'])) { |
|
273 | + if ( |
|
274 | + $_POST['layout_channel'] == "feed" || |
|
275 | + $_POST['layout_channel'] == "featured" || |
|
276 | 276 | $_POST['layout_channel'] == "playlists" || |
277 | 277 | $_POST['layout_channel'] == "everything" |
278 | 278 | ) |
279 | 279 | $__user_u->update_row($_SESSION['siteusername'], "layout", $_POST['layout_channel']); |
280 | 280 | } |
281 | 281 | |
282 | - if(!empty($_POST['bgoptionset'])) { |
|
282 | + if (!empty($_POST['bgoptionset'])) { |
|
283 | 283 | $bgoption = $_POST['bgoption']; |
284 | 284 | $bgcolor = $_POST['solidcolor']; |
285 | 285 | $default = "default.png"; |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | |
289 | 289 | $__user_u->update_row($_SESSION['siteusername'], "2012_bgcolor", $bgcolor); |
290 | 290 | |
291 | - if($bgoption == "solid") { |
|
291 | + if ($bgoption == "solid") { |
|
292 | 292 | $__user_u->update_row($_SESSION['siteusername'], "2012_bg ", $default); |
293 | 293 | } |
294 | 294 | } |
@@ -219,8 +219,9 @@ discard block |
||
219 | 219 | if(!empty($_POST['solidcolor'])) { |
220 | 220 | $__user_u->update_row($_SESSION['siteusername'], "background_option", $_POST['bgoption']); |
221 | 221 | |
222 | - if($_POST['bgoption'] == "solid") |
|
223 | - $__user_u->update_row($_SESSION['siteusername'], "2012_bg", ""); |
|
222 | + if($_POST['bgoption'] == "solid") { |
|
223 | + $__user_u->update_row($_SESSION['siteusername'], "2012_bg", ""); |
|
224 | + } |
|
224 | 225 | |
225 | 226 | $__user_u->update_row($_SESSION['siteusername'], "primary_color", $_POST['solidcolor']); |
226 | 227 | } |
@@ -275,8 +276,9 @@ discard block |
||
275 | 276 | $_POST['layout_channel'] == "featured" || |
276 | 277 | $_POST['layout_channel'] == "playlists" || |
277 | 278 | $_POST['layout_channel'] == "everything" |
278 | - ) |
|
279 | - $__user_u->update_row($_SESSION['siteusername'], "layout", $_POST['layout_channel']); |
|
279 | + ) { |
|
280 | + $__user_u->update_row($_SESSION['siteusername'], "layout", $_POST['layout_channel']); |
|
281 | + } |
|
280 | 282 | } |
281 | 283 | |
282 | 284 | if(!empty($_POST['bgoptionset'])) { |
@@ -1,18 +1,18 @@ discard block |
||
1 | 1 | <?php |
2 | - if(isset($_SESSION['siteusername'])) { |
|
2 | + if(isset($_SESSION['siteusername'])) { |
|
3 | 3 | $stmt = $__db->prepare("UPDATE users SET ip = :ip WHERE username = :username"); |
4 | 4 | $stmt->bindParam(":username", $_SESSION['siteusername']); |
5 | - $stmt->bindParam(":ip", $_SERVER["HTTP_CF_CONNECTING_IP"]); |
|
5 | + $stmt->bindParam(":ip", $_SERVER["HTTP_CF_CONNECTING_IP"]); |
|
6 | 6 | $stmt->execute(); |
7 | 7 | |
8 | - $stmt = $__db->prepare("UPDATE users SET lastlogin = now() WHERE username = :username"); |
|
8 | + $stmt = $__db->prepare("UPDATE users SET lastlogin = now() WHERE username = :username"); |
|
9 | 9 | $stmt->bindParam(":username", $_SESSION['siteusername']); |
10 | 10 | $stmt->execute(); |
11 | - } |
|
11 | + } |
|
12 | 12 | |
13 | - if(isset($_SESSION['siteusername']) && !$__user_h->user_exists(@$_SESSION['siteusername'])) { |
|
14 | - die("<a href='/logout'>Your user has been deleted. Logout</a>"); |
|
15 | - } |
|
13 | + if(isset($_SESSION['siteusername']) && !$__user_h->user_exists(@$_SESSION['siteusername'])) { |
|
14 | + die("<a href='/logout'>Your user has been deleted. Logout</a>"); |
|
15 | + } |
|
16 | 16 | ?> |
17 | 17 | <!-- begin masthead --> |
18 | 18 | <div id="masthead" class="" dir="ltr"> |
@@ -109,10 +109,10 @@ discard block |
||
109 | 109 | <div id="masthead-expanded" class="hid" style="display: none;height: 165px;"> |
110 | 110 | <div id="masthead-expanded-container" style="height: 142px;" class="with-sandbar"> |
111 | 111 | <?php |
112 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE author = :username ORDER BY id DESC LIMIT 20"); |
|
113 | - $stmt->bindParam(":username", $_SESSION['siteusername']); |
|
114 | - $stmt->execute(); |
|
115 | - ?> |
|
112 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE author = :username ORDER BY id DESC LIMIT 20"); |
|
113 | + $stmt->bindParam(":username", $_SESSION['siteusername']); |
|
114 | + $stmt->execute(); |
|
115 | + ?> |
|
116 | 116 | <div class="yt-uix-slider yt-rounded" id="watch-channel-discoverbox" data-slider-slide-selected="3" data-slider-slides="<?php echo $stmt->rowCount(); ?>" |
117 | 117 | style=" |
118 | 118 | width: 580px; |
@@ -127,14 +127,14 @@ discard block |
||
127 | 127 | <div class="yt-uix-slider-body" style="width: 525px;"> |
128 | 128 | <div class="yt-uix-slider-slides"> |
129 | 129 | <?php |
130 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
131 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
132 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
133 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
134 | - $video['author'] = htmlspecialchars($video['author']); |
|
135 | - $video['title'] = htmlspecialchars($video['title']); |
|
136 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
137 | - ?> |
|
130 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
131 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
132 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
133 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
134 | + $video['author'] = htmlspecialchars($video['author']); |
|
135 | + $video['title'] = htmlspecialchars($video['title']); |
|
136 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
137 | + ?> |
|
138 | 138 | <ul class="yt-uix-slider-slide "> |
139 | 139 | <li class="yt-uix-slider-slide-item "> |
140 | 140 | <div class="video-list-item yt-tile-default "> |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | - if(isset($_SESSION['siteusername'])) { |
|
2 | + if (isset($_SESSION['siteusername'])) { |
|
3 | 3 | $stmt = $__db->prepare("UPDATE users SET ip = :ip WHERE username = :username"); |
4 | 4 | $stmt->bindParam(":username", $_SESSION['siteusername']); |
5 | - $stmt->bindParam(":ip", $_SERVER["HTTP_CF_CONNECTING_IP"]); |
|
5 | + $stmt->bindParam(":ip", $_SERVER["HTTP_CF_CONNECTING_IP"]); |
|
6 | 6 | $stmt->execute(); |
7 | 7 | |
8 | 8 | $stmt = $__db->prepare("UPDATE users SET lastlogin = now() WHERE username = :username"); |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | $stmt->execute(); |
11 | 11 | } |
12 | 12 | |
13 | - if(isset($_SESSION['siteusername']) && !$__user_h->user_exists(@$_SESSION['siteusername'])) { |
|
13 | + if (isset($_SESSION['siteusername']) && !$__user_h->user_exists(@$_SESSION['siteusername'])) { |
|
14 | 14 | die("<a href='/logout'>Your user has been deleted. Logout</a>"); |
15 | 15 | } |
16 | 16 | ?> |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | <a id="logo-container" href="/" title="SubRocks home"> |
20 | 20 | <img id="logo" src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="SubRocks home"> |
21 | 21 | </a> |
22 | - <?php if(!isset($_SESSION['siteusername'])) { ?> |
|
22 | + <?php if (!isset($_SESSION['siteusername'])) { ?> |
|
23 | 23 | <div id="yt-masthead-signin"> |
24 | 24 | <div id="masthead-user-display"><span id="masthead-user-wrapper"><button href="/sign_in" type="button" id="masthead-user-button" onclick=";window.location.href=this.getAttribute('href');return false;" class=" yt-uix-button yt-uix-button-text" role="button"><span class="yt-uix-button-content"> <span id="masthead-user-image"> |
25 | 25 | <span class="clip"> |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | <div id="masthead-user-bar"> |
38 | 38 | <div id="masthead-user"> |
39 | 39 | <span id="masthead-gaia-user-expander" class="masthead-user-menu-expander masthead-expander" onclick="yt.www.masthead.toggleExpandedMasthead()"><span id="masthead-gaia-user-wrapper" class="yt-rounded" tabindex="0"><?php echo htmlspecialchars($_SESSION['siteusername']); ?></span></span> |
40 | - <?php if($__user_h->fetch_unread_pms($_SESSION['siteusername']) != 0) { ?> |
|
40 | + <?php if ($__user_h->fetch_unread_pms($_SESSION['siteusername']) != 0) { ?> |
|
41 | 41 | <button type="button" onclick=";window.location.href=this.getAttribute('href');return false;" href="/inbox/" class="sb-button sb-notif-on yt-uix-button" id="sb-button-notify" role="button"><span class="yt-uix-button-content"><?php echo $__user_h->fetch_unread_pms($_SESSION['siteusername']); ?></span></button> |
42 | 42 | <?php } else { ?> |
43 | 43 | <button type="button" onclick=";window.location.href=this.getAttribute('href');return false;" href="/inbox/" class="sb-button sb-notif-off yt-uix-button" id="sb-button-notify" role="button"><span class="yt-uix-button-content"><?php echo $__user_h->fetch_unread_pms($_SESSION['siteusername']); ?></span></button> |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | <div class="alerts-2012"> |
60 | 60 | |
61 | 61 | </div> |
62 | - <?php if(isset($error['status'])) { ?> |
|
62 | + <?php if (isset($error['status'])) { ?> |
|
63 | 63 | <div id="masthead_child_div" style="width: 970px;margin: auto;"><div class="yt-alert yt-alert-default yt-alert-error yt-alert-player"> <div class="yt-alert-icon"> |
64 | 64 | <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" class="icon master-sprite" alt="Alert icon"> |
65 | 65 | </div> |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | </div> |
70 | 70 | </div></div></div> |
71 | 71 | <?php } ?> |
72 | - <?php if(isset($_GET['error'])) { ?> |
|
72 | + <?php if (isset($_GET['error'])) { ?> |
|
73 | 73 | <div id="masthead_child_div" style="width: 970px;margin: auto;"><div class="yt-alert yt-alert-default yt-alert-error "> <div class="yt-alert-icon"> |
74 | 74 | <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" class="icon master-sprite" alt="Alert icon"> |
75 | 75 | </div> |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | </div> |
80 | 80 | </div></div></div> |
81 | 81 | <?php } ?> |
82 | - <?php if(isset($_GET['success'])) { ?> |
|
82 | + <?php if (isset($_GET['success'])) { ?> |
|
83 | 83 | <div id="masthead_child_div" style="width: 970px;margin: auto;"><div class="yt-alert yt-alert-default yt-alert-success "> <div class="yt-alert-icon"> |
84 | 84 | <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" class="icon master-sprite" alt="Alert icon"> |
85 | 85 | </div> |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | </div> |
90 | 90 | </div></div></div> |
91 | 91 | <?php } ?> |
92 | - <?php if(isset($_SESSION['error'])) { ?> |
|
92 | + <?php if (isset($_SESSION['error'])) { ?> |
|
93 | 93 | <div id="masthead_child_div" style="width: 970px;margin: auto;"><div class="yt-alert yt-alert-default yt-alert-error"> <div class="yt-alert-icon"> |
94 | 94 | <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" class="icon master-sprite" alt="Alert icon"> |
95 | 95 | </div> |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | <b>New minor update: <pre style="display:inline-block;">1fe1fa4</pre></b> <pre style="display:inline-block;font-size:10px;margin-left:35px;">This is a part of the Communications update. The inbox has been updated with a cleaner look.</pre> |
106 | 106 | </div></div></div></div><br> |
107 | 107 | --> |
108 | -<?php if(isset($_SESSION['siteusername'])) { ?> |
|
108 | +<?php if (isset($_SESSION['siteusername'])) { ?> |
|
109 | 109 | <div id="masthead-expanded" class="hid" style="display: none;height: 165px;"> |
110 | 110 | <div id="masthead-expanded-container" style="height: 142px;" class="with-sandbar"> |
111 | 111 | <?php |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | <div class="yt-uix-slider-body" style="width: 525px;"> |
128 | 128 | <div class="yt-uix-slider-slides"> |
129 | 129 | <?php |
130 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
130 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
131 | 131 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
132 | 132 | $video['duration'] = $__time_h->timestamp($video['duration']); |
133 | 133 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | <div class="activity-feed"> |
26 | 26 | <div class="feed-list-container"> |
27 | 27 | <div class="feed-item-list"> |
28 | - <?php if(isset($_SESSION['siteusername'])) { ?> |
|
28 | + <?php if (isset($_SESSION['siteusername'])) { ?> |
|
29 | 29 | <form method="post" action="/d/comment_profile?u=<?php echo htmlspecialchars($_user['username']); ?>"> |
30 | 30 | <img style="width: 50px;" src=""> |
31 | 31 | <textarea style="resize:none;padding:5px;border-radius:5px;background-color:white;border: 1px solid #d3d3d3; width: 577px; resize: none;"cols="32" id="com" placeholder="Share your thoughts" name="comment"></textarea><br> |
@@ -41,15 +41,15 @@ discard block |
||
41 | 41 | $stmt->execute(); |
42 | 42 | |
43 | 43 | $number_of_result = $stmt->rowCount(); |
44 | - $number_of_page = ceil ($number_of_result / $results_per_page); |
|
44 | + $number_of_page = ceil($number_of_result/$results_per_page); |
|
45 | 45 | |
46 | - if (!isset ($_GET['page']) ) { |
|
46 | + if (!isset ($_GET['page'])) { |
|
47 | 47 | $page = 1; |
48 | 48 | } else { |
49 | - $page = (int)$_GET['page']; |
|
49 | + $page = (int) $_GET['page']; |
|
50 | 50 | } |
51 | 51 | |
52 | - $page_first_result = ($page - 1) * $results_per_page; |
|
52 | + $page_first_result = ($page - 1)*$results_per_page; |
|
53 | 53 | |
54 | 54 | $stmt = $__db->prepare("SELECT * FROM profile_comments WHERE toid = :rid ORDER BY id DESC LIMIT :pfirst, :pper"); |
55 | 55 | $stmt->bindParam(":rid", $_user['username']); |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | $stmt->bindParam(":pper", $results_per_page); |
58 | 58 | $stmt->execute(); |
59 | 59 | |
60 | - while($comment = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
60 | + while ($comment = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
61 | 61 | |
62 | 62 | ?> |
63 | 63 | |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | <span dir="ltr"><?php echo $__time_h->time_elapsed_string($comment['date']); ?><span> |
77 | 77 | </span> |
78 | 78 | </span></span> |
79 | - <?php if($comment['likes'] != 0) { ?> |
|
79 | + <?php if ($comment['likes'] != 0) { ?> |
|
80 | 80 | <span dir="ltr" class="comments-rating-positive" title="9 up, 1 down"> |
81 | 81 | <?php echo $comment['likes']; ?> |
82 | 82 | <img class="comments-rating-thumbs-up" src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif"> |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | </button> |
105 | 105 | </span> |
106 | 106 | </div> |
107 | - <?php if(isset($_SESSION['siteusername'])) { ?> |
|
107 | + <?php if (isset($_SESSION['siteusername'])) { ?> |
|
108 | 108 | <li id="reply_to_<?php echo $comment['id']; ?>" style="display: none;" class="comment yt-tile-default child" data-tag="O" data-author-viewing="" data-id="iRV7EkT9us81mDLFDSB6FAsB156Fdn13HUmTm26C3PE" data-score="34" data-author="<?php echo htmlspecialchars($row['author']); ?>"> |
109 | 109 | |
110 | 110 | <div class="comment-body"> |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | <div class="channel-tab-content channel-layout-two-column selected blogger-template"> |
3 | 3 | <div class="tab-content-body"> |
4 | 4 | <div class="primary-pane"> |
5 | - <?php if($_user['featured'] != false && $__video_h->video_exists($_user['featured'])) { ?> |
|
5 | + <?php if ($_user['featured'] != false && $__video_h->video_exists($_user['featured'])) { ?> |
|
6 | 6 | <div class="channels-featured-video channel-module yt-uix-c3-module-container has-visible-edge"> |
7 | 7 | <div class="module-view featured-video-view-module"> |
8 | 8 | <div id="watch-video" > |
@@ -56,12 +56,12 @@ discard block |
||
56 | 56 | ?> |
57 | 57 | <div class="playlist-info"> |
58 | 58 | <h2><?php echo htmlspecialchars($_user['username']); ?>'s playlists</h2> |
59 | - <?php if($stmt->rowCount() == 0) { echo "<span style='font-size:11px;color:grey;'>This user has no playlists available currently.</span><br><br>"; } ?> |
|
59 | + <?php if ($stmt->rowCount() == 0) { echo "<span style='font-size:11px;color:grey;'>This user has no playlists available currently.</span><br><br>"; } ?> |
|
60 | 60 | <div class="yt-horizontal-rule "><span class="first"></span><span class="second"></span><span class="third"></span></div> |
61 | 61 | </div> |
62 | 62 | <?php |
63 | - if($stmt->rowCount() != 0) { |
|
64 | - while($playlist = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
63 | + if ($stmt->rowCount() != 0) { |
|
64 | + while ($playlist = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
65 | 65 | $playlist['videos'] = json_decode($playlist['videos']); |
66 | 66 | ?> |
67 | 67 | <div class="playlist yt-tile-visible yt-uix-tile"> |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | <div class="playlist-info"> |
100 | 100 | <h2>Uploaded videos</h2> |
101 | 101 | <div class="yt-horizontal-rule "><span class="first"></span><span class="second"></span><span class="third"></span></div> |
102 | - <?php if($_user['videos'] == 0) { ?> |
|
102 | + <?php if ($_user['videos'] == 0) { ?> |
|
103 | 103 | <h4>This user has not uploaded a video yet.</h4> |
104 | 104 | <?php } ?> |
105 | 105 | </div> |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | $stmt = $__db->prepare("SELECT * FROM videos WHERE author = :username ORDER BY id DESC LIMIT 20"); |
109 | 109 | $stmt->bindParam(":username", $_user['username']); |
110 | 110 | $stmt->execute(); |
111 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
111 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
112 | 112 | ?> |
113 | 113 | <li class="blogger-video"> |
114 | 114 | <div class="video yt-tile-visible"> |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | </div> |
31 | 31 | <hr class="yt-horizontal-rule "> |
32 | 32 | </div> |
33 | - <?php if(!empty($_user['website'])) { ?> |
|
33 | + <?php if (!empty($_user['website'])) { ?> |
|
34 | 34 | <div class="user-profile-item"> |
35 | 35 | <div class="yt-c3-profile-custom-url field-container "> |
36 | 36 | <a href="<?php echo addhttp(htmlspecialchars($_user['website'])); ?>" rel="me nofollow" target="_blank" title="<?php echo htmlspecialchars($_user['website']); ?>" class="yt-uix-redirect-link"> |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | <h5>Country</h5> |
80 | 80 | <span class="value" id="country_change"><?php echo htmlspecialchars($_user['country']); ?></span> |
81 | 81 | </div> |
82 | - <?php if($_user['genre'] != "none") { ?> |
|
82 | + <?php if ($_user['genre'] != "none") { ?> |
|
83 | 83 | <div class="user-profile-item "> |
84 | 84 | <h5>Channel Genre</h5> |
85 | 85 | <span class="value"><?php echo htmlspecialchars(ucfirst($_user['genre'])); ?></span> |
@@ -100,10 +100,10 @@ discard block |
||
100 | 100 | } |
101 | 101 | </style> |
102 | 102 | <?php $_user['featured_channels'] = explode(",", $_user['featured_channels']); ?> |
103 | - <?php if(count($_user['featured_channels']) != 0) { ?> |
|
103 | + <?php if (count($_user['featured_channels']) != 0) { ?> |
|
104 | 104 | <div class="module-view other-channels-view"> |
105 | - <h2 <?php if(@$_SESSION['siteusername'] == $_user['username']) { ?>style="display: inline-block;position: relative;bottom: 10px;"<?php } ?>>Featured Channels</h2> |
|
106 | - <?php if(@$_SESSION['siteusername'] == $_user['username']) { |
|
105 | + <h2 <?php if (@$_SESSION['siteusername'] == $_user['username']) { ?>style="display: inline-block;position: relative;bottom: 10px;"<?php } ?>>Featured Channels</h2> |
|
106 | + <?php if (@$_SESSION['siteusername'] == $_user['username']) { |
|
107 | 107 | echo "<a href='#' style='float:right;font-size:11px;color:black;' onclick=';open_featured_channels();return false;'>edit</a>"; |
108 | 108 | } ?> |
109 | 109 | <div class="box-gray" style="display:none;" id="edit_featured_channels" style="margin-bottom: 8px;"> |
@@ -121,8 +121,8 @@ discard block |
||
121 | 121 | <input id="doocaca" class="yt-uix-form-input-text" type="text" style="width: 92%;margin-bottom:3px;" placeholder="Channel name"> |
122 | 122 | </li> |
123 | 123 | <?php |
124 | - foreach($_user['featured_channels'] as $user) { |
|
125 | - if($__user_h->user_exists($user)) { ?> |
|
124 | + foreach ($_user['featured_channels'] as $user) { |
|
125 | + if ($__user_h->user_exists($user)) { ?> |
|
126 | 126 | <li> |
127 | 127 | <input id="doocaca" class="yt-uix-form-input-text" type="text" style="width: 92%;margin-bottom:3px;" value="<?php echo htmlspecialchars($user); ?>" placeholder="Channel name"> |
128 | 128 | </li> |
@@ -138,8 +138,8 @@ discard block |
||
138 | 138 | |
139 | 139 | <ul class="channel-summary-list"> |
140 | 140 | <?php |
141 | - foreach($_user['featured_channels'] as $user) { |
|
142 | - if($__user_h->user_exists($user)) { |
|
141 | + foreach ($_user['featured_channels'] as $user) { |
|
142 | + if ($__user_h->user_exists($user)) { |
|
143 | 143 | ?> |
144 | 144 | <li class="yt-tile-visible yt-uix-tile"> |
145 | 145 | <div class="channel-summary clearfix channel-summary-compact"> |
@@ -214,13 +214,13 @@ discard block |
||
214 | 214 | $stmt->bindParam(":search", $_user['username']); |
215 | 215 | $stmt->execute(); |
216 | 216 | |
217 | - if($stmt->rowCount() != 0) { |
|
217 | + if ($stmt->rowCount() != 0) { |
|
218 | 218 | ?> |
219 | 219 | <div class="playlists-narrow channel-module yt-uix-c3-module-container"> |
220 | 220 | <div class="module-view gh-featured"> |
221 | 221 | <h2>Featured Playlists</h2> |
222 | 222 | <?php |
223 | - while($playlist = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
223 | + while ($playlist = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
224 | 224 | $playlist['videos'] = json_decode($playlist['videos']); |
225 | 225 | ?> |
226 | 226 | <div class="playlist yt-tile-visible yt-uix-tile"> |
@@ -51,20 +51,20 @@ discard block |
||
51 | 51 | ORDER BY |
52 | 52 | `date` DESC LIMIT 10;"); |
53 | 53 | $stmt->bindParam(":comment_username", $_user['username']); |
54 | - $stmt->bindParam(":videos_username", $_user['username']); |
|
54 | + $stmt->bindParam(":videos_username", $_user['username']); |
|
55 | 55 | $stmt->execute(); |
56 | - if($stmt->rowCount() == 0) { echo "<br><span style='color:grey;font-size:11px;'>This user has not done anything yet.</span>"; } |
|
56 | + if($stmt->rowCount() == 0) { echo "<br><span style='color:grey;font-size:11px;'>This user has not done anything yet.</span>"; } |
|
57 | 57 | while($content = $stmt->fetch(PDO::FETCH_ASSOC)) { |
58 | - if((int)$content['id']) { |
|
59 | - $content = $__video_h->fetch_comment_id($content['id']); |
|
60 | - $content['video'] = $__video_h->fetch_video_rid($content['toid']); |
|
61 | - $content['type'] = "comment"; |
|
62 | - } else { |
|
63 | - $content = $__video_h->fetch_video_rid($content['id']); |
|
64 | - $content['type'] = "video"; |
|
65 | - } |
|
58 | + if((int)$content['id']) { |
|
59 | + $content = $__video_h->fetch_comment_id($content['id']); |
|
60 | + $content['video'] = $__video_h->fetch_video_rid($content['toid']); |
|
61 | + $content['type'] = "comment"; |
|
62 | + } else { |
|
63 | + $content = $__video_h->fetch_video_rid($content['id']); |
|
64 | + $content['type'] = "video"; |
|
65 | + } |
|
66 | 66 | |
67 | - if($content['type'] == "video") { |
|
67 | + if($content['type'] == "video") { |
|
68 | 68 | ?> |
69 | 69 | <div class="feed-item-container" data-channel-key="UCc6W7efUSkd9YYoxOnctlFg"> |
70 | 70 | <a href="/user/<?php echo htmlspecialchars($content['author']); ?>?feature=plcp" class="feed-author-bubble " title="<?php echo htmlspecialchars($content['author']); ?>"> <span class="feed-item-author"> |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | </div> |
137 | 137 | </div> |
138 | 138 | <?php } else { |
139 | - if($__video_h->video_exists($content['video']['rid'])) { ?> |
|
139 | + if($__video_h->video_exists($content['video']['rid'])) { ?> |
|
140 | 140 | <div class="feed-item-container" data-channel-key="UCXf1X2u5gsmuqcuTQlpOGhw"> |
141 | 141 | <a href="/user/<?php echo htmlspecialchars($content['author']); ?>?feature=plcp" class="feed-author-bubble " title="<?php echo htmlspecialchars($content['author']); ?>"> <span class="feed-item-author"> |
142 | 142 | <span class="video-thumb ux-thumb yt-thumb-square-28 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="<?php echo htmlspecialchars($content['author']); ?>" data-thumb="/dynamic/pfp/<?php echo $__user_h->fetch_pfp($content['author']); ?>" width="28"><span class="vertical-align"></span></span></span></span> |
@@ -53,9 +53,9 @@ discard block |
||
53 | 53 | $stmt->bindParam(":comment_username", $_user['username']); |
54 | 54 | $stmt->bindParam(":videos_username", $_user['username']); |
55 | 55 | $stmt->execute(); |
56 | - if($stmt->rowCount() == 0) { echo "<br><span style='color:grey;font-size:11px;'>This user has not done anything yet.</span>"; } |
|
57 | - while($content = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
58 | - if((int)$content['id']) { |
|
56 | + if ($stmt->rowCount() == 0) { echo "<br><span style='color:grey;font-size:11px;'>This user has not done anything yet.</span>"; } |
|
57 | + while ($content = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
58 | + if ((int) $content['id']) { |
|
59 | 59 | $content = $__video_h->fetch_comment_id($content['id']); |
60 | 60 | $content['video'] = $__video_h->fetch_video_rid($content['toid']); |
61 | 61 | $content['type'] = "comment"; |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | $content['type'] = "video"; |
65 | 65 | } |
66 | 66 | |
67 | - if($content['type'] == "video") { |
|
67 | + if ($content['type'] == "video") { |
|
68 | 68 | ?> |
69 | 69 | <div class="feed-item-container" data-channel-key="UCc6W7efUSkd9YYoxOnctlFg"> |
70 | 70 | <a href="/user/<?php echo htmlspecialchars($content['author']); ?>?feature=plcp" class="feed-author-bubble " title="<?php echo htmlspecialchars($content['author']); ?>"> <span class="feed-item-author"> |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | </div> |
137 | 137 | </div> |
138 | 138 | <?php } else { |
139 | - if($__video_h->video_exists($content['video']['rid'])) { ?> |
|
139 | + if ($__video_h->video_exists($content['video']['rid'])) { ?> |
|
140 | 140 | <div class="feed-item-container" data-channel-key="UCXf1X2u5gsmuqcuTQlpOGhw"> |
141 | 141 | <a href="/user/<?php echo htmlspecialchars($content['author']); ?>?feature=plcp" class="feed-author-bubble " title="<?php echo htmlspecialchars($content['author']); ?>"> <span class="feed-item-author"> |
142 | 142 | <span class="video-thumb ux-thumb yt-thumb-square-28 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="<?php echo htmlspecialchars($content['author']); ?>" data-thumb="/dynamic/pfp/<?php echo $__user_h->fetch_pfp($content['author']); ?>" width="28"><span class="vertical-align"></span></span></span></span> |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | Choose image. Non-square images wil be cropped.<br> |
250 | 250 | Suggested dimensions: 800x800 pixels. Max size: 1MB. |
251 | 251 | </p> |
252 | - <?php if($_user['pfp'] != "default.png") { ?> |
|
252 | + <?php if ($_user['pfp'] != "default.png") { ?> |
|
253 | 253 | <a style="font-size: 11px;" href="/get/remove_profile_pic">Remove Profile Picture</a><br> |
254 | 254 | <?php } ?> |
255 | 255 | <br> |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | <input type="file" name="backgroundbgset" id="background-upload"> |
340 | 340 | <!--<button class="yt-uix-button yt-uix-button-default" id="av-uplod">Select File</button>--> |
341 | 341 | </div><br> |
342 | - <?php if($__user_h->if_partner($_user['username'])) { ?> |
|
342 | + <?php if ($__user_h->if_partner($_user['username'])) { ?> |
|
343 | 343 | <h2>Watch Page Subscribe Button</h2> |
344 | 344 | <span style="font-size: 11px;color:grey;" class="grey-text">Choose Image (Max file size: 10MB)</span><br> |
345 | 345 | <div id="watchsub" method="post" action="/d/channel_update?n=watchsub" enctype="multipart/form-data"> |
@@ -465,7 +465,7 @@ discard block |
||
465 | 465 | <td class="left-side-customization" style="width: 247px;"> |
466 | 466 | <h2>Channel information & Settings</h2> |
467 | 467 | <span style="font-size: 10px;color: grey;">Featured Video</span><br> |
468 | - <input class="yt-uix-form-input-text" style="width: 225px;" id="biomd" placeholder="Video ID" value="<?php echo htmlspecialchars($_user['featured']);?>" name="videoid"><br><br> |
|
468 | + <input class="yt-uix-form-input-text" style="width: 225px;" id="biomd" placeholder="Video ID" value="<?php echo htmlspecialchars($_user['featured']); ?>" name="videoid"><br><br> |
|
469 | 469 | <span style="font-size: 10px;color: grey;">Description</span><br> |
470 | 470 | <div id="bio" action="/d/channel_update" enctype="multipart/form-data"> |
471 | 471 | <textarea class="yt-uix-form-input-text" style="resize:none;height: 55px;width: 225px;background-color:white;border: 1px solid #d3d3d3;" id="readthisbio" placeholder="Bio" name="bio"><?php echo htmlspecialchars($_user['bio']); ?></textarea><br> |
@@ -478,12 +478,12 @@ discard block |
||
478 | 478 | <h2>Advanced</h2> |
479 | 479 | <span style="font-size: 10px;color: grey;">Website URL</span><br> |
480 | 480 | <div id="featuredvid" action="/d/channel_update" enctype="multipart/form-data"> |
481 | - <input class="yt-uix-form-input-text" style="width: 225px;" id="websiteurlinp" placeholder="Website URL" value="<?php echo htmlspecialchars($_user['website']);?>" name="website"> |
|
481 | + <input class="yt-uix-form-input-text" style="width: 225px;" id="websiteurlinp" placeholder="Website URL" value="<?php echo htmlspecialchars($_user['website']); ?>" name="website"> |
|
482 | 482 | </div><br> |
483 | 483 | <div> |
484 | 484 | <span style="font-size: 10px;color: grey;">Featured Channels</span> |
485 | 485 | <div id="featuredvid" action="/d/channel_update" enctype="multipart/form-data"> |
486 | - <input class="yt-uix-form-input-text" style="width: 291px;" id="biomd" placeholder="Seperate by commas!" value="<?php echo htmlspecialchars($_user['featured_channels']);?>" name="featuredchannels"> |
|
486 | + <input class="yt-uix-form-input-text" style="width: 291px;" id="biomd" placeholder="Seperate by commas!" value="<?php echo htmlspecialchars($_user['featured_channels']); ?>" name="featuredchannels"> |
|
487 | 487 | </div> |
488 | 488 | </div><br> |
489 | 489 | |
@@ -491,11 +491,11 @@ discard block |
||
491 | 491 | <div id="countryselect" action="/d/channel_update" enctype="multipart/form-data"> |
492 | 492 | <select style="width: 246px;" class="yt-uix-button yt-uix-button-default" id="country_input" name="country" value="<?php echo $_user['country']?>"> |
493 | 493 | <?php |
494 | - $countries = ["Select country","Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegowina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, the Democratic Republic of the", "Cook Islands", "Costa Rica", "Cote d'Ivoire", "Croatia (Hrvatska)", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Islands (Malvinas)", "Faroe Islands", "Fiji", "Finland", "France", "France Metropolitan", "French Guiana", "French Polynesia", "French Southern Territories", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Gibraltar", "Greece", "Greenland", "Grenada", "Guadeloupe", "Guam", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Heard and Mc Donald Islands", "Holy See (Vatican City State)", "Honduras", "Hong Kong", "Hungary", "Iceland", "India", "Indonesia", "Iran (Islamic Republic of)", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, Democratic People's Republic of", "Korea, Republic of", "Kuwait", "Kyrgyzstan", "Lao, People's Democratic Republic", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libyan Arab Jamahiriya", "Liechtenstein", "Lithuania", "Luxembourg", "Macau", "Macedonia, The Former Yugoslav Republic of", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Martinique", "Mauritania", "Mauritius", "Mayotte", "Mexico", "Micronesia, Federated States of", "Moldova, Republic of", "Monaco", "Mongolia", "Montserrat", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "Netherlands Antilles", "New Caledonia", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Niue", "Norfolk Island", "Northern Mariana Islands", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Pitcairn", "Poland", "Portugal", "Puerto Rico", "Qatar", "Reunion", "Romania", "Russian Federation", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Seychelles", "Sierra Leone", "Singapore", "Slovakia (Slovak Republic)", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Georgia and the South Sandwich Islands", "Spain", "Sri Lanka", "St. Helena", "St. Pierre and Miquelon", "Sudan", "Suriname", "Svalbard and Jan Mayen Islands", "Swaziland", "Sweden", "Switzerland", "Syrian Arab Republic", "Taiwan, Province of China", "Tajikistan", "Tanzania, United Republic of", "Thailand", "Togo", "Tokelau", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Turks and Caicos Islands", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "United States Minor Outlying Islands", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela", "Vietnam", "Virgin Islands (British)", "Virgin Islands (U.S.)", "Wallis and Futuna Islands", "Western Sahara", "Yemen", "Yugoslavia", "Zambia", "Zimbabwe"]; |
|
494 | + $countries = ["Select country", "Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegowina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, the Democratic Republic of the", "Cook Islands", "Costa Rica", "Cote d'Ivoire", "Croatia (Hrvatska)", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Islands (Malvinas)", "Faroe Islands", "Fiji", "Finland", "France", "France Metropolitan", "French Guiana", "French Polynesia", "French Southern Territories", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Gibraltar", "Greece", "Greenland", "Grenada", "Guadeloupe", "Guam", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Heard and Mc Donald Islands", "Holy See (Vatican City State)", "Honduras", "Hong Kong", "Hungary", "Iceland", "India", "Indonesia", "Iran (Islamic Republic of)", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, Democratic People's Republic of", "Korea, Republic of", "Kuwait", "Kyrgyzstan", "Lao, People's Democratic Republic", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libyan Arab Jamahiriya", "Liechtenstein", "Lithuania", "Luxembourg", "Macau", "Macedonia, The Former Yugoslav Republic of", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Martinique", "Mauritania", "Mauritius", "Mayotte", "Mexico", "Micronesia, Federated States of", "Moldova, Republic of", "Monaco", "Mongolia", "Montserrat", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "Netherlands Antilles", "New Caledonia", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Niue", "Norfolk Island", "Northern Mariana Islands", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Pitcairn", "Poland", "Portugal", "Puerto Rico", "Qatar", "Reunion", "Romania", "Russian Federation", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Seychelles", "Sierra Leone", "Singapore", "Slovakia (Slovak Republic)", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Georgia and the South Sandwich Islands", "Spain", "Sri Lanka", "St. Helena", "St. Pierre and Miquelon", "Sudan", "Suriname", "Svalbard and Jan Mayen Islands", "Swaziland", "Sweden", "Switzerland", "Syrian Arab Republic", "Taiwan, Province of China", "Tajikistan", "Tanzania, United Republic of", "Thailand", "Togo", "Tokelau", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Turks and Caicos Islands", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "United States Minor Outlying Islands", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela", "Vietnam", "Virgin Islands (British)", "Virgin Islands (U.S.)", "Wallis and Futuna Islands", "Western Sahara", "Yemen", "Yugoslavia", "Zambia", "Zimbabwe"]; |
|
495 | 495 | |
496 | 496 | $countryLength = sizeof($countries); |
497 | 497 | $i = 0; |
498 | - for($i = 0;$i <= $countryLength; $i++) |
|
498 | + for ($i = 0; $i <= $countryLength; $i++) |
|
499 | 499 | { |
500 | 500 | $c = $countries[$i]; |
501 | 501 | if ($c == $_user['country']) |
@@ -508,7 +508,7 @@ discard block |
||
508 | 508 | else |
509 | 509 | { |
510 | 510 | ?> |
511 | - <option value="<?php echo $c;?>"><?php echo $c; ?></option> |
|
511 | + <option value="<?php echo $c; ?>"><?php echo $c; ?></option> |
|
512 | 512 | <?php |
513 | 513 | } |
514 | 514 | } |
@@ -521,7 +521,7 @@ discard block |
||
521 | 521 | <span style="font-size: 10px;color: grey;">Channel Genre</span><br> |
522 | 522 | <div id="channellayout" action="/d/channel_update" enctype="multipart/form-data"> |
523 | 523 | <select style="width: 246px;" class="yt-uix-button yt-uix-button-default" name="genre"> |
524 | - <?php foreach($categories as $category) { ?> |
|
524 | + <?php foreach ($categories as $category) { ?> |
|
525 | 525 | <option value="<?php echo $category; ?>"><?php echo $category; ?></option> |
526 | 526 | <?php } ?> |
527 | 527 | </select> |
@@ -52,7 +52,7 @@ |
||
52 | 52 | $stmt = $__db->prepare("SELECT * FROM playlists WHERE author = :search ORDER BY id DESC LIMIT 10"); |
53 | 53 | $stmt->bindParam(":search", $_user['username']); |
54 | 54 | $stmt->execute(); |
55 | - ?> |
|
55 | + ?> |
|
56 | 56 | <div class="playlist-info"> |
57 | 57 | <h2><?php echo htmlspecialchars($_user['username']); ?>'s playlists</h2> |
58 | 58 | <?php if($stmt->rowCount() == 0) { echo "<span style='font-size:11px;color:grey;'>This user has no playlists available currently.</span><br><br>"; } ?> |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | <div class="channel-tab-content channel-layout-two-column selected blogger-template"> |
3 | 3 | <div class="tab-content-body"> |
4 | 4 | <div class="primary-pane"> |
5 | - <?php if($_user['featured'] != false && $__video_h->video_exists($_user['featured'])) { ?> |
|
5 | + <?php if ($_user['featured'] != false && $__video_h->video_exists($_user['featured'])) { ?> |
|
6 | 6 | <div class="channels-featured-video channel-module yt-uix-c3-module-container has-visible-edge"> |
7 | 7 | <div class="module-view featured-video-view-module"> |
8 | 8 | <div id="watch-video" > |
@@ -55,12 +55,12 @@ discard block |
||
55 | 55 | ?> |
56 | 56 | <div class="playlist-info"> |
57 | 57 | <h2><?php echo htmlspecialchars($_user['username']); ?>'s playlists</h2> |
58 | - <?php if($stmt->rowCount() == 0) { echo "<span style='font-size:11px;color:grey;'>This user has no playlists available currently.</span><br><br>"; } ?> |
|
58 | + <?php if ($stmt->rowCount() == 0) { echo "<span style='font-size:11px;color:grey;'>This user has no playlists available currently.</span><br><br>"; } ?> |
|
59 | 59 | <div class="yt-horizontal-rule "><span class="first"></span><span class="second"></span><span class="third"></span></div> |
60 | 60 | </div> |
61 | 61 | <?php |
62 | - if($stmt->rowCount() != 0) { |
|
63 | - while($playlist = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
62 | + if ($stmt->rowCount() != 0) { |
|
63 | + while ($playlist = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
64 | 64 | $playlist['videos'] = json_decode($playlist['videos']); |
65 | 65 | ?> |
66 | 66 | <div class="playlist yt-tile-visible yt-uix-tile"> |
@@ -57,10 +57,10 @@ |
||
57 | 57 | --> |
58 | 58 | </div> |
59 | 59 | <?php |
60 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE author = :username ORDER BY id DESC LIMIT 20"); |
|
61 | - $stmt->bindParam(":username", $_user['username']); |
|
62 | - $stmt->execute(); |
|
63 | - ?> |
|
60 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE author = :username ORDER BY id DESC LIMIT 20"); |
|
61 | + $stmt->bindParam(":username", $_user['username']); |
|
62 | + $stmt->execute(); |
|
63 | + ?> |
|
64 | 64 | <style> |
65 | 65 | .box-gray { |
66 | 66 | position: relative; |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | <div class="channel-tab-content channel-layout-two-column selected blogger-template"> |
3 | 3 | <div class="tab-content-body"> |
4 | 4 | <div class="primary-pane"> |
5 | - <?php if($_user['featured'] != false && $__video_h->video_exists($_user['featured'])) { ?> |
|
5 | + <?php if ($_user['featured'] != false && $__video_h->video_exists($_user['featured'])) { ?> |
|
6 | 6 | <div class="channels-featured-video channel-module yt-uix-c3-module-container has-visible-edge"> |
7 | 7 | <div class="module-view featured-video-view-module"> |
8 | 8 | <div id="watch-video" > |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | } |
72 | 72 | </style> |
73 | 73 | <div class="playlist-info"> |
74 | - <?php if(@$_SESSION['siteusername'] == $_user['username']) { ?> |
|
74 | + <?php if (@$_SESSION['siteusername'] == $_user['username']) { ?> |
|
75 | 75 | <div class="box-gray" style="display:none;height: 130px;" id="custom_labels" style="margin-bottom: 8px;"> |
76 | 76 | <h2>Edit custom labels</h2> |
77 | 77 | <input type="text" id="custom_title" style="margin-bottom:3px;width: 96.6%;" placeholder="Uploaded Videos Custom Text" value="<?php echo htmlspecialchars($_user['uploaded_videos_title']); ?>" class="yt-uix-form-input-text" name="custom_uploaded_videos_title"><br> |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | <span class="blogger-video-count">1-10 of <?php echo $stmt->rowCount(); ?></span> |
85 | 85 | <p id="custom_label_description_change" class="playlist-description"><?php echo htmlspecialchars($_user['uploaded_videos_description']); ?></p> |
86 | 86 | <div class="yt-horizontal-rule "><span class="first"></span><span class="second"></span><span class="third"></span></div> |
87 | - <?php if($_user['videos'] == 0) { ?> |
|
87 | + <?php if ($_user['videos'] == 0) { ?> |
|
88 | 88 | <h4>This user has not uploaded a video yet.</h4> |
89 | 89 | <?php } ?> |
90 | 90 | <script> |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | </div> |
126 | 126 | <ul class="gh-single-playlist"> |
127 | 127 | <?php |
128 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
128 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
129 | 129 | ?> |
130 | 130 | <li class="blogger-video"> |
131 | 131 | <div class="video yt-tile-visible"> |