Test Failed
Push — main ( 00747d...5f665f )
by chief
03:00
created
web/public/inbox/delete_message.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 <?php $__db_h = new db_helper(); ?>
12 12
 <?php $__time_h = new time_helper(); ?>
13 13
 <?php
14
-    if(!isset($_SESSION['siteusername'])) { die(); }
14
+    if (!isset($_SESSION['siteusername'])) { die(); }
15 15
 
16 16
     $request = (object) [
17 17
         "id" => $_GET['id'],
Please login to merge, or discard this patch.
web/public/channel_discussion.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -12,10 +12,10 @@  discard block
 block discarded – undo
12 12
 <?php $__db_h = new db_helper(); ?>
13 13
 <?php $__time_h = new time_helper(); ?>
14 14
 <?php
15
-	if(isset($_SESSION['siteusername']))
15
+	if (isset($_SESSION['siteusername']))
16 16
 	    $_user_hp = $__user_h->fetch_user_username($_SESSION['siteusername']);
17 17
 
18
-    if(!$__user_h->user_exists($_GET['n']))
18
+    if (!$__user_h->user_exists($_GET['n']))
19 19
         header("Location: /?userdoesntexist");
20 20
 
21 21
     $_user = $__user_h->fetch_user_username($_GET['n']);
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 	$stmt->bindParam(":username", $_user['username']);
25 25
 	$stmt->execute();
26 26
 
27
-	while($ban = $stmt->fetch(PDO::FETCH_ASSOC)) { 
27
+	while ($ban = $stmt->fetch(PDO::FETCH_ASSOC)) { 
28 28
 		header("Location: /?error=This user has been terminated for violating SubRock's Community Guidelines.");
29 29
 	}
30 30
 
@@ -76,28 +76,28 @@  discard block
 block discarded – undo
76 76
     $_user['genre'] = strtolower($_user['genre']);
77 77
     $_user['subscribed'] = $__user_h->if_subscribed(@$_SESSION['siteusername'], $_user['username']);
78 78
 
79
-    if(!check_valid_colorhex($_user['primary_color']) && strlen($_user['primary_color']) != 6) { $_user['primary_color'] = ""; }
80
-    if(!check_valid_colorhex($_user['secondary_color']) && strlen($_user['secondary_color']) != 6) { $_user['secondary_color'] = ""; }
81
-    if(!check_valid_colorhex($_user['third_color']) && strlen($_user['third_color']) != 6) { $_user['third_color'] = ""; }
82
-    if(!check_valid_colorhex($_user['text_color']) && strlen($_user['text_color']) != 6) { $_user['text_color'] = ""; }
83
-    if(!check_valid_colorhex($_user['primary_color_text']) && strlen($_user['primary_color_text']) != 6) { $_user['primary_color_text'] = ""; }
84
-    if(!check_valid_colorhex($_user['2009_bgcolor']) && strlen($_user['2009_bgcolor']) != 6) { $_user['2009_bgcolor'] = ""; }
79
+    if (!check_valid_colorhex($_user['primary_color']) && strlen($_user['primary_color']) != 6) { $_user['primary_color'] = ""; }
80
+    if (!check_valid_colorhex($_user['secondary_color']) && strlen($_user['secondary_color']) != 6) { $_user['secondary_color'] = ""; }
81
+    if (!check_valid_colorhex($_user['third_color']) && strlen($_user['third_color']) != 6) { $_user['third_color'] = ""; }
82
+    if (!check_valid_colorhex($_user['text_color']) && strlen($_user['text_color']) != 6) { $_user['text_color'] = ""; }
83
+    if (!check_valid_colorhex($_user['primary_color_text']) && strlen($_user['primary_color_text']) != 6) { $_user['primary_color_text'] = ""; }
84
+    if (!check_valid_colorhex($_user['2009_bgcolor']) && strlen($_user['2009_bgcolor']) != 6) { $_user['2009_bgcolor'] = ""; }
85 85
 
86
-	if(isset($_SESSION['siteusername']))
86
+	if (isset($_SESSION['siteusername']))
87 87
     	$__user_i->check_view_channel($_user['username'], @$_SESSION['siteusername']);
88 88
 
89
-    if($_SERVER['REQUEST_METHOD'] == 'POST') {
89
+    if ($_SERVER['REQUEST_METHOD'] == 'POST') {
90 90
         $error = array();
91 91
 
92
-        if(!isset($_SESSION['siteusername'])){ $error['message'] = "you are not logged in"; $error['status'] = true; }
93
-        if(!$_POST['comment']){ $error['message'] = "your comment cannot be blank"; $error['status'] = true; }
94
-        if(strlen($_POST['comment']) > 1000){ $error['message'] = "your comment must be shorter than 1000 characters"; $error['status'] = true; }
92
+        if (!isset($_SESSION['siteusername'])) { $error['message'] = "you are not logged in"; $error['status'] = true; }
93
+        if (!$_POST['comment']) { $error['message'] = "your comment cannot be blank"; $error['status'] = true; }
94
+        if (strlen($_POST['comment']) > 1000) { $error['message'] = "your comment must be shorter than 1000 characters"; $error['status'] = true; }
95 95
         //if(!isset($_POST['g-recaptcha-response'])){ $error['message'] = "captcha validation failed"; $error['status'] = true; }
96 96
         //if(!$_user_insert_utils->validateCaptcha($config['recaptcha_secret'], $_POST['g-recaptcha-response'])) { $error['message'] = "captcha validation failed"; $error['status'] = true; }
97
-        if($__user_h->if_cooldown($_SESSION['siteusername'])) { $error['message'] = "You are on a cooldown! Wait for a minute before posting another comment."; $error['status'] = true; }
97
+        if ($__user_h->if_cooldown($_SESSION['siteusername'])) { $error['message'] = "You are on a cooldown! Wait for a minute before posting another comment."; $error['status'] = true; }
98 98
         //if(ifBlocked(@$_SESSION['siteusername'], $user['username'], $__db)) { $error = "This user has blocked you!"; $error['status'] = true; } 
99 99
 
100
-        if(!isset($error['message'])) {
100
+        if (!isset($error['message'])) {
101 101
 			$text = $_POST['comment'];
102 102
             $stmt = $__db->prepare("INSERT INTO profile_comments (toid, author, comment) VALUES (:id, :username, :comment)");
103 103
 			$stmt->bindParam(":id", $_user['username']);
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 
108 108
             $_user_update_utils->update_comment_cooldown_time($_SESSION['siteusername']);
109 109
 
110
-            if(@$_SESSION['siteusername'] != $_user['username']) { 
110
+            if (@$_SESSION['siteusername'] != $_user['username']) { 
111 111
                 $_user_insert_utils->send_message($_user['username'], "New comment", 'I commented "' . $_POST['comment'] . '" on your profile!', $_SESSION['siteusername']);
112 112
             }
113 113
         }
@@ -141,11 +141,11 @@  discard block
 block discarded – undo
141 141
 		<link rel="stylesheet" href="/yt/cssbin/www-extra.css">
142 142
 		<style>
143 143
 			#content-container {
144
-				background-color: <?php echo $_user['primary_color'];  ?>;
144
+				background-color: <?php echo $_user['primary_color']; ?>;
145 145
 				background-image: url(/dynamic/banners/<?php echo $_user['2012_bg']; ?>);
146 146
 				background-repeat: repeat;
147 147
 				<?php
148
-					switch($_user['2012_bgoption']) {
148
+					switch ($_user['2012_bgoption']) {
149 149
 						case "stretch":
150 150
 						echo "background-size: cover;";
151 151
 						break;
@@ -178,11 +178,11 @@  discard block
 block discarded – undo
178 178
 			<div id="masthead-container"><?php require($_SERVER['DOCUMENT_ROOT'] . "/s/mod/header.php"); ?></div>
179 179
 			<div id="content-container">
180 180
 				<!-- begin content -->
181
-				<?php if(isset($_SESSION['siteusername']) && $_user['username'] == $_SESSION['siteusername']) { ?>
181
+				<?php if (isset($_SESSION['siteusername']) && $_user['username'] == $_SESSION['siteusername']) { ?>
182 182
 					<div class="channel_customization"><?php require($_SERVER['DOCUMENT_ROOT'] . "/s/mod/channel_customization.php"); ?></div>
183 183
 				<?php } ?> 
184 184
 				<?php
185
-					if(empty(trim($_user['bio'])))
185
+					if (empty(trim($_user['bio'])))
186 186
 						$_user['bio'] = "This user has no description.";
187 187
 				?>
188 188
 				<div id="content">
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
 												<h1><?php echo htmlspecialchars($_user['username']); ?></h1>
238 238
 											</div>
239 239
 											<div class="upper-left-section enable-fancy-subscribe-button">
240
-											<?php if($_user['username'] != @$_SESSION['siteusername']) { ?>
240
+											<?php if ($_user['username'] != @$_SESSION['siteusername']) { ?>
241 241
 													<div class="yt-subscription-button-hovercard yt-uix-hovercard">
242 242
 														<button 
243 243
 															href="#" 
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
 															title="" 
246 246
 															id="subscribe-button"
247 247
 															type="button" 
248
-															class="yt-subscription-button <?php if($_user['subscribed']) { echo "subscribed "; } ?>  yt-uix-button yt-uix-button-subscription yt-uix-tooltip" 
248
+															class="yt-subscription-button <?php if ($_user['subscribed']) { echo "subscribed "; } ?>  yt-uix-button yt-uix-button-subscription yt-uix-tooltip" 
249 249
 															role="button"><span class="yt-uix-button-icon-wrapper"><img class="yt-uix-button-icon yt-uix-button-icon-subscribe" 
250 250
 															src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt=""></span><span class="yt-uix-button-content">  <span class="subscribe-label">Subscribe</span>
251 251
 														<span class="subscribed-label">Subscribed</span>
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
 												<?php } else { ?>
262 262
 
263 263
 												<?php } ?>
264
-												<?php if($__user_h->if_partner($_user['username'])) { ?>
264
+												<?php if ($__user_h->if_partner($_user['username'])) { ?>
265 265
 													<img style="width: 29px;vertical-align: middle;margin-left: 10px;" title="This user is a SubRocks partner" src="/yt/imgbin/RenderedImage.png">
266 266
 												<?php } ?>
267 267
 											</div>
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
 									</div>
320 320
 								</div>
321 321
 							</div>
322
-                            <?php if($_user['featured'] != "None") { $video = $__video_h->fetch_video_rid($_user['featured']); } else { $_user['featured'] = false; } ?>
322
+                            <?php if ($_user['featured'] != "None") { $video = $__video_h->fetch_video_rid($_user['featured']); } else { $_user['featured'] = false; } ?>
323 323
 							<div id="branded-page-body">
324 324
 								<div class="channel-tab-content channel-layout-two-column selected blogger-template"><?php require($_SERVER['DOCUMENT_ROOT'] . "/s/mod/channel_discussion.php"); ?></div>
325 325
 							</div>
Please login to merge, or discard this patch.
web/public/d/comment_profile.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -25,13 +25,13 @@  discard block
 block discarded – undo
25 25
     ]
26 26
 ]; 
27 27
 
28
-if($_SERVER['REQUEST_METHOD'] == 'POST') {
29
-    if(!isset($request->username)){ $request->error->message = "you are not logged in"; $request->error->status = ""; }
30
-    if(!$request->touser){ $request->error->message = "your comment cannot be blank"; $request->error->status = ""; }
31
-    if(strlen($request->touser) > 1000){ $request->error->message = "your comment must be shorter than 1000 characters"; $request->error->status = ""; }
32
-    if($__user_h->if_cooldown($request->username)) { $request->error->message = "You are on a cooldown! Wait for a minute before posting another comment."; $request->error->status = ""; }
28
+if ($_SERVER['REQUEST_METHOD'] == 'POST') {
29
+    if (!isset($request->username)) { $request->error->message = "you are not logged in"; $request->error->status = ""; }
30
+    if (!$request->touser) { $request->error->message = "your comment cannot be blank"; $request->error->status = ""; }
31
+    if (strlen($request->touser) > 1000) { $request->error->message = "your comment must be shorter than 1000 characters"; $request->error->status = ""; }
32
+    if ($__user_h->if_cooldown($request->username)) { $request->error->message = "You are on a cooldown! Wait for a minute before posting another comment."; $request->error->status = ""; }
33 33
 
34
-    if($request->error->status == "OK") {
34
+    if ($request->error->status == "OK") {
35 35
         $stmt = $__db->prepare("INSERT INTO profile_comments (toid, author, comment) VALUES (:username, :from, :comment)");
36 36
         $stmt->bindParam(":username", $request->touser);
37 37
         $stmt->bindParam(":from", $request->username);
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         $stmt->execute();
40 40
 
41 41
         $__user_u->update_cooldown_time($request->username, "cooldown_comment");
42
-        if(@$request->username != $_user['author'])
42
+        if (@$request->username != $_user['author'])
43 43
             $__user_i->send_message($request->username, "New profile comment", $_user['username'], "I commented \"" . $request->touser . "\" on your profile!", "", "nt");
44 44
         
45 45
         header("Location: /user/" . $request->touser . "/discussion");
Please login to merge, or discard this patch.
web/public/d/channel_update.php 1 patch
Spacing   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
web/public/s/mod/header.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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']);
Please login to merge, or discard this patch.
web/public/s/mod/channel_discussion.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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">
Please login to merge, or discard this patch.
web/public/s/mod/channel_everything.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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">
Please login to merge, or discard this patch.
web/public/s/mod/secondary_pane.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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">
Please login to merge, or discard this patch.
web/public/s/mod/channel_feed.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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>
Please login to merge, or discard this patch.