Test Failed
Push — main ( f077d4...7f2ac2 )
by chief
03:05
created
web/public/entertainment.php 1 patch
Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -138,16 +138,16 @@  discard block
 block discarded – undo
138 138
 									</div>
139 139
 									<div class="browse-item-row ytg-box">
140 140
 										<?php
141
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Entertainment' ORDER BY rand() LIMIT 4");
142
-											$stmt->execute();
143
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
144
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
145
-												$video['duration'] = $__time_h->timestamp($video['duration']);
146
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
147
-												$video['author'] = htmlspecialchars($video['author']);		
148
-												$video['title'] = htmlspecialchars($video['title']);
149
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
150
-										?>
141
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Entertainment' ORDER BY rand() LIMIT 4");
142
+                                            $stmt->execute();
143
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
144
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
145
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
146
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
147
+                                                $video['author'] = htmlspecialchars($video['author']);		
148
+                                                $video['title'] = htmlspecialchars($video['title']);
149
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
150
+                                        ?>
151 151
 										<div class="browse-item yt-tile-default ">
152 152
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
153 153
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -173,16 +173,16 @@  discard block
 block discarded – undo
173 173
 									</div>
174 174
                                     <div class="browse-item-row ytg-box">
175 175
 										<?php
176
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Entertainment' ORDER BY rand() LIMIT 4");
177
-											$stmt->execute();
178
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
179
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
180
-												$video['duration'] = $__time_h->timestamp($video['duration']);
181
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
182
-												$video['author'] = htmlspecialchars($video['author']);		
183
-												$video['title'] = htmlspecialchars($video['title']);
184
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
185
-										?>
176
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Entertainment' ORDER BY rand() LIMIT 4");
177
+                                            $stmt->execute();
178
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
179
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
180
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
181
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
182
+                                                $video['author'] = htmlspecialchars($video['author']);		
183
+                                                $video['title'] = htmlspecialchars($video['title']);
184
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
185
+                                        ?>
186 186
 										<div class="browse-item yt-tile-default ">
187 187
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
188 188
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -208,16 +208,16 @@  discard block
 block discarded – undo
208 208
 									</div>
209 209
                                     <div class="browse-item-row ytg-box">
210 210
 										<?php
211
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Entertainment' ORDER BY rand() LIMIT 4");
212
-											$stmt->execute();
213
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
214
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
215
-												$video['duration'] = $__time_h->timestamp($video['duration']);
216
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
217
-												$video['author'] = htmlspecialchars($video['author']);		
218
-												$video['title'] = htmlspecialchars($video['title']);
219
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
220
-										?>
211
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Entertainment' ORDER BY rand() LIMIT 4");
212
+                                            $stmt->execute();
213
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
214
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
215
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
216
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
217
+                                                $video['author'] = htmlspecialchars($video['author']);		
218
+                                                $video['title'] = htmlspecialchars($video['title']);
219
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
220
+                                        ?>
221 221
 										<div class="browse-item yt-tile-default ">
222 222
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
223 223
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -243,16 +243,16 @@  discard block
 block discarded – undo
243 243
 									</div>
244 244
                                     <div class="browse-item-row ytg-box">
245 245
 										<?php
246
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Entertainment' ORDER BY rand() LIMIT 4");
247
-											$stmt->execute();
248
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
249
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
250
-												$video['duration'] = $__time_h->timestamp($video['duration']);
251
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
252
-												$video['author'] = htmlspecialchars($video['author']);		
253
-												$video['title'] = htmlspecialchars($video['title']);
254
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
255
-										?>
246
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Entertainment' ORDER BY rand() LIMIT 4");
247
+                                            $stmt->execute();
248
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
249
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
250
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
251
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
252
+                                                $video['author'] = htmlspecialchars($video['author']);		
253
+                                                $video['title'] = htmlspecialchars($video['title']);
254
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
255
+                                        ?>
256 256
 										<div class="browse-item yt-tile-default ">
257 257
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
258 258
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -278,16 +278,16 @@  discard block
 block discarded – undo
278 278
 									</div>
279 279
                                     <div class="browse-item-row ytg-box">
280 280
 										<?php
281
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Entertainment' ORDER BY rand() LIMIT 4");
282
-											$stmt->execute();
283
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
284
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
285
-												$video['duration'] = $__time_h->timestamp($video['duration']);
286
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
287
-												$video['author'] = htmlspecialchars($video['author']);		
288
-												$video['title'] = htmlspecialchars($video['title']);
289
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
290
-										?>
281
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Entertainment' ORDER BY rand() LIMIT 4");
282
+                                            $stmt->execute();
283
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
284
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
285
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
286
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
287
+                                                $video['author'] = htmlspecialchars($video['author']);		
288
+                                                $video['title'] = htmlspecialchars($video['title']);
289
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
290
+                                        ?>
291 291
 										<div class="browse-item yt-tile-default ">
292 292
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
293 293
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
Please login to merge, or discard this patch.
web/public/pets.php 1 patch
Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -138,16 +138,16 @@  discard block
 block discarded – undo
138 138
 									</div>
139 139
 									<div class="browse-item-row ytg-box">
140 140
 										<?php
141
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4");
142
-											$stmt->execute();
143
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
144
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
145
-												$video['duration'] = $__time_h->timestamp($video['duration']);
146
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
147
-												$video['author'] = htmlspecialchars($video['author']);		
148
-												$video['title'] = htmlspecialchars($video['title']);
149
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
150
-										?>
141
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4");
142
+                                            $stmt->execute();
143
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
144
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
145
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
146
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
147
+                                                $video['author'] = htmlspecialchars($video['author']);		
148
+                                                $video['title'] = htmlspecialchars($video['title']);
149
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
150
+                                        ?>
151 151
 										<div class="browse-item yt-tile-default ">
152 152
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
153 153
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -173,16 +173,16 @@  discard block
 block discarded – undo
173 173
 									</div>
174 174
                                     <div class="browse-item-row ytg-box">
175 175
 										<?php
176
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4");
177
-											$stmt->execute();
178
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
179
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
180
-												$video['duration'] = $__time_h->timestamp($video['duration']);
181
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
182
-												$video['author'] = htmlspecialchars($video['author']);		
183
-												$video['title'] = htmlspecialchars($video['title']);
184
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
185
-										?>
176
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4");
177
+                                            $stmt->execute();
178
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
179
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
180
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
181
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
182
+                                                $video['author'] = htmlspecialchars($video['author']);		
183
+                                                $video['title'] = htmlspecialchars($video['title']);
184
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
185
+                                        ?>
186 186
 										<div class="browse-item yt-tile-default ">
187 187
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
188 188
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -208,16 +208,16 @@  discard block
 block discarded – undo
208 208
 									</div>
209 209
                                     <div class="browse-item-row ytg-box">
210 210
 										<?php
211
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4");
212
-											$stmt->execute();
213
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
214
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
215
-												$video['duration'] = $__time_h->timestamp($video['duration']);
216
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
217
-												$video['author'] = htmlspecialchars($video['author']);		
218
-												$video['title'] = htmlspecialchars($video['title']);
219
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
220
-										?>
211
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4");
212
+                                            $stmt->execute();
213
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
214
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
215
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
216
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
217
+                                                $video['author'] = htmlspecialchars($video['author']);		
218
+                                                $video['title'] = htmlspecialchars($video['title']);
219
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
220
+                                        ?>
221 221
 										<div class="browse-item yt-tile-default ">
222 222
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
223 223
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -243,16 +243,16 @@  discard block
 block discarded – undo
243 243
 									</div>
244 244
                                     <div class="browse-item-row ytg-box">
245 245
 										<?php
246
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4");
247
-											$stmt->execute();
248
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
249
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
250
-												$video['duration'] = $__time_h->timestamp($video['duration']);
251
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
252
-												$video['author'] = htmlspecialchars($video['author']);		
253
-												$video['title'] = htmlspecialchars($video['title']);
254
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
255
-										?>
246
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4");
247
+                                            $stmt->execute();
248
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
249
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
250
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
251
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
252
+                                                $video['author'] = htmlspecialchars($video['author']);		
253
+                                                $video['title'] = htmlspecialchars($video['title']);
254
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
255
+                                        ?>
256 256
 										<div class="browse-item yt-tile-default ">
257 257
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
258 258
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -278,16 +278,16 @@  discard block
 block discarded – undo
278 278
 									</div>
279 279
                                     <div class="browse-item-row ytg-box">
280 280
 										<?php
281
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4");
282
-											$stmt->execute();
283
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
284
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
285
-												$video['duration'] = $__time_h->timestamp($video['duration']);
286
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
287
-												$video['author'] = htmlspecialchars($video['author']);		
288
-												$video['title'] = htmlspecialchars($video['title']);
289
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
290
-										?>
281
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4");
282
+                                            $stmt->execute();
283
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
284
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
285
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
286
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
287
+                                                $video['author'] = htmlspecialchars($video['author']);		
288
+                                                $video['title'] = htmlspecialchars($video['title']);
289
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
290
+                                        ?>
291 291
 										<div class="browse-item yt-tile-default ">
292 292
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
293 293
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
Please login to merge, or discard this patch.
web/public/gaming.php 1 patch
Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -138,16 +138,16 @@  discard block
 block discarded – undo
138 138
 									</div>
139 139
 									<div class="browse-item-row ytg-box">
140 140
 										<?php
141
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4");
142
-											$stmt->execute();
143
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
144
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
145
-												$video['duration'] = $__time_h->timestamp($video['duration']);
146
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
147
-												$video['author'] = htmlspecialchars($video['author']);		
148
-												$video['title'] = htmlspecialchars($video['title']);
149
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
150
-										?>
141
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4");
142
+                                            $stmt->execute();
143
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
144
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
145
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
146
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
147
+                                                $video['author'] = htmlspecialchars($video['author']);		
148
+                                                $video['title'] = htmlspecialchars($video['title']);
149
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
150
+                                        ?>
151 151
 										<div class="browse-item yt-tile-default ">
152 152
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
153 153
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -173,16 +173,16 @@  discard block
 block discarded – undo
173 173
 									</div>
174 174
                                     <div class="browse-item-row ytg-box">
175 175
 										<?php
176
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4");
177
-											$stmt->execute();
178
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
179
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
180
-												$video['duration'] = $__time_h->timestamp($video['duration']);
181
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
182
-												$video['author'] = htmlspecialchars($video['author']);		
183
-												$video['title'] = htmlspecialchars($video['title']);
184
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
185
-										?>
176
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4");
177
+                                            $stmt->execute();
178
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
179
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
180
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
181
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
182
+                                                $video['author'] = htmlspecialchars($video['author']);		
183
+                                                $video['title'] = htmlspecialchars($video['title']);
184
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
185
+                                        ?>
186 186
 										<div class="browse-item yt-tile-default ">
187 187
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
188 188
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -208,16 +208,16 @@  discard block
 block discarded – undo
208 208
 									</div>
209 209
                                     <div class="browse-item-row ytg-box">
210 210
 										<?php
211
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4");
212
-											$stmt->execute();
213
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
214
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
215
-												$video['duration'] = $__time_h->timestamp($video['duration']);
216
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
217
-												$video['author'] = htmlspecialchars($video['author']);		
218
-												$video['title'] = htmlspecialchars($video['title']);
219
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
220
-										?>
211
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4");
212
+                                            $stmt->execute();
213
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
214
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
215
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
216
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
217
+                                                $video['author'] = htmlspecialchars($video['author']);		
218
+                                                $video['title'] = htmlspecialchars($video['title']);
219
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
220
+                                        ?>
221 221
 										<div class="browse-item yt-tile-default ">
222 222
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
223 223
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -243,16 +243,16 @@  discard block
 block discarded – undo
243 243
 									</div>
244 244
                                     <div class="browse-item-row ytg-box">
245 245
 										<?php
246
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4");
247
-											$stmt->execute();
248
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
249
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
250
-												$video['duration'] = $__time_h->timestamp($video['duration']);
251
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
252
-												$video['author'] = htmlspecialchars($video['author']);		
253
-												$video['title'] = htmlspecialchars($video['title']);
254
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
255
-										?>
246
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4");
247
+                                            $stmt->execute();
248
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
249
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
250
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
251
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
252
+                                                $video['author'] = htmlspecialchars($video['author']);		
253
+                                                $video['title'] = htmlspecialchars($video['title']);
254
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
255
+                                        ?>
256 256
 										<div class="browse-item yt-tile-default ">
257 257
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
258 258
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -278,16 +278,16 @@  discard block
 block discarded – undo
278 278
 									</div>
279 279
                                     <div class="browse-item-row ytg-box">
280 280
 										<?php
281
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4");
282
-											$stmt->execute();
283
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
284
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
285
-												$video['duration'] = $__time_h->timestamp($video['duration']);
286
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
287
-												$video['author'] = htmlspecialchars($video['author']);		
288
-												$video['title'] = htmlspecialchars($video['title']);
289
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
290
-										?>
281
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4");
282
+                                            $stmt->execute();
283
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
284
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
285
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
286
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
287
+                                                $video['author'] = htmlspecialchars($video['author']);		
288
+                                                $video['title'] = htmlspecialchars($video['title']);
289
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
290
+                                        ?>
291 291
 										<div class="browse-item yt-tile-default ">
292 292
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
293 293
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
Please login to merge, or discard this patch.
web/public/comedy.php 1 patch
Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -138,16 +138,16 @@  discard block
 block discarded – undo
138 138
 									</div>
139 139
 									<div class="browse-item-row ytg-box">
140 140
 										<?php
141
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4");
142
-											$stmt->execute();
143
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
144
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
145
-												$video['duration'] = $__time_h->timestamp($video['duration']);
146
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
147
-												$video['author'] = htmlspecialchars($video['author']);		
148
-												$video['title'] = htmlspecialchars($video['title']);
149
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
150
-										?>
141
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4");
142
+                                            $stmt->execute();
143
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
144
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
145
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
146
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
147
+                                                $video['author'] = htmlspecialchars($video['author']);		
148
+                                                $video['title'] = htmlspecialchars($video['title']);
149
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
150
+                                        ?>
151 151
 										<div class="browse-item yt-tile-default ">
152 152
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
153 153
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -173,16 +173,16 @@  discard block
 block discarded – undo
173 173
 									</div>
174 174
                                     <div class="browse-item-row ytg-box">
175 175
 										<?php
176
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4");
177
-											$stmt->execute();
178
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
179
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
180
-												$video['duration'] = $__time_h->timestamp($video['duration']);
181
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
182
-												$video['author'] = htmlspecialchars($video['author']);		
183
-												$video['title'] = htmlspecialchars($video['title']);
184
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
185
-										?>
176
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4");
177
+                                            $stmt->execute();
178
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
179
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
180
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
181
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
182
+                                                $video['author'] = htmlspecialchars($video['author']);		
183
+                                                $video['title'] = htmlspecialchars($video['title']);
184
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
185
+                                        ?>
186 186
 										<div class="browse-item yt-tile-default ">
187 187
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
188 188
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -208,16 +208,16 @@  discard block
 block discarded – undo
208 208
 									</div>
209 209
                                     <div class="browse-item-row ytg-box">
210 210
 										<?php
211
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4");
212
-											$stmt->execute();
213
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
214
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
215
-												$video['duration'] = $__time_h->timestamp($video['duration']);
216
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
217
-												$video['author'] = htmlspecialchars($video['author']);		
218
-												$video['title'] = htmlspecialchars($video['title']);
219
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
220
-										?>
211
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4");
212
+                                            $stmt->execute();
213
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
214
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
215
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
216
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
217
+                                                $video['author'] = htmlspecialchars($video['author']);		
218
+                                                $video['title'] = htmlspecialchars($video['title']);
219
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
220
+                                        ?>
221 221
 										<div class="browse-item yt-tile-default ">
222 222
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
223 223
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -243,16 +243,16 @@  discard block
 block discarded – undo
243 243
 									</div>
244 244
                                     <div class="browse-item-row ytg-box">
245 245
 										<?php
246
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4");
247
-											$stmt->execute();
248
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
249
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
250
-												$video['duration'] = $__time_h->timestamp($video['duration']);
251
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
252
-												$video['author'] = htmlspecialchars($video['author']);		
253
-												$video['title'] = htmlspecialchars($video['title']);
254
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
255
-										?>
246
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4");
247
+                                            $stmt->execute();
248
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
249
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
250
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
251
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
252
+                                                $video['author'] = htmlspecialchars($video['author']);		
253
+                                                $video['title'] = htmlspecialchars($video['title']);
254
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
255
+                                        ?>
256 256
 										<div class="browse-item yt-tile-default ">
257 257
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
258 258
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -278,16 +278,16 @@  discard block
 block discarded – undo
278 278
 									</div>
279 279
                                     <div class="browse-item-row ytg-box">
280 280
 										<?php
281
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4");
282
-											$stmt->execute();
283
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
284
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
285
-												$video['duration'] = $__time_h->timestamp($video['duration']);
286
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
287
-												$video['author'] = htmlspecialchars($video['author']);		
288
-												$video['title'] = htmlspecialchars($video['title']);
289
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
290
-										?>
281
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4");
282
+                                            $stmt->execute();
283
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
284
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
285
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
286
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
287
+                                                $video['author'] = htmlspecialchars($video['author']);		
288
+                                                $video['title'] = htmlspecialchars($video['title']);
289
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
290
+                                        ?>
291 291
 										<div class="browse-item yt-tile-default ">
292 292
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
293 293
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
Please login to merge, or discard this patch.
web/public/autos.php 1 patch
Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -138,16 +138,16 @@  discard block
 block discarded – undo
138 138
 									</div>
139 139
 									<div class="browse-item-row ytg-box">
140 140
 										<?php
141
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Autos & Vehicles' ORDER BY rand() LIMIT 4");
142
-											$stmt->execute();
143
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
144
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
145
-												$video['duration'] = $__time_h->timestamp($video['duration']);
146
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
147
-												$video['author'] = htmlspecialchars($video['author']);		
148
-												$video['title'] = htmlspecialchars($video['title']);
149
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
150
-										?>
141
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Autos & Vehicles' ORDER BY rand() LIMIT 4");
142
+                                            $stmt->execute();
143
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
144
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
145
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
146
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
147
+                                                $video['author'] = htmlspecialchars($video['author']);		
148
+                                                $video['title'] = htmlspecialchars($video['title']);
149
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
150
+                                        ?>
151 151
 										<div class="browse-item yt-tile-default ">
152 152
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
153 153
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -173,16 +173,16 @@  discard block
 block discarded – undo
173 173
 									</div>
174 174
                                     <div class="browse-item-row ytg-box">
175 175
 										<?php
176
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Autos & Vehicles' ORDER BY rand() LIMIT 4");
177
-											$stmt->execute();
178
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
179
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
180
-												$video['duration'] = $__time_h->timestamp($video['duration']);
181
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
182
-												$video['author'] = htmlspecialchars($video['author']);		
183
-												$video['title'] = htmlspecialchars($video['title']);
184
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
185
-										?>
176
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Autos & Vehicles' ORDER BY rand() LIMIT 4");
177
+                                            $stmt->execute();
178
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
179
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
180
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
181
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
182
+                                                $video['author'] = htmlspecialchars($video['author']);		
183
+                                                $video['title'] = htmlspecialchars($video['title']);
184
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
185
+                                        ?>
186 186
 										<div class="browse-item yt-tile-default ">
187 187
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
188 188
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -208,16 +208,16 @@  discard block
 block discarded – undo
208 208
 									</div>
209 209
                                     <div class="browse-item-row ytg-box">
210 210
 										<?php
211
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Autos & Vehicles' ORDER BY rand() LIMIT 4");
212
-											$stmt->execute();
213
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
214
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
215
-												$video['duration'] = $__time_h->timestamp($video['duration']);
216
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
217
-												$video['author'] = htmlspecialchars($video['author']);		
218
-												$video['title'] = htmlspecialchars($video['title']);
219
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
220
-										?>
211
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Autos & Vehicles' ORDER BY rand() LIMIT 4");
212
+                                            $stmt->execute();
213
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
214
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
215
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
216
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
217
+                                                $video['author'] = htmlspecialchars($video['author']);		
218
+                                                $video['title'] = htmlspecialchars($video['title']);
219
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
220
+                                        ?>
221 221
 										<div class="browse-item yt-tile-default ">
222 222
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
223 223
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -243,16 +243,16 @@  discard block
 block discarded – undo
243 243
 									</div>
244 244
                                     <div class="browse-item-row ytg-box">
245 245
 										<?php
246
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Autos & Vehicles' ORDER BY rand() LIMIT 4");
247
-											$stmt->execute();
248
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
249
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
250
-												$video['duration'] = $__time_h->timestamp($video['duration']);
251
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
252
-												$video['author'] = htmlspecialchars($video['author']);		
253
-												$video['title'] = htmlspecialchars($video['title']);
254
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
255
-										?>
246
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Autos & Vehicles' ORDER BY rand() LIMIT 4");
247
+                                            $stmt->execute();
248
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
249
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
250
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
251
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
252
+                                                $video['author'] = htmlspecialchars($video['author']);		
253
+                                                $video['title'] = htmlspecialchars($video['title']);
254
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
255
+                                        ?>
256 256
 										<div class="browse-item yt-tile-default ">
257 257
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
258 258
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -278,16 +278,16 @@  discard block
 block discarded – undo
278 278
 									</div>
279 279
                                     <div class="browse-item-row ytg-box">
280 280
 										<?php
281
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Autos & Vehicles' ORDER BY rand() LIMIT 4");
282
-											$stmt->execute();
283
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
284
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
285
-												$video['duration'] = $__time_h->timestamp($video['duration']);
286
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
287
-												$video['author'] = htmlspecialchars($video['author']);		
288
-												$video['title'] = htmlspecialchars($video['title']);
289
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
290
-										?>
281
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Autos & Vehicles' ORDER BY rand() LIMIT 4");
282
+                                            $stmt->execute();
283
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
284
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
285
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
286
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
287
+                                                $video['author'] = htmlspecialchars($video['author']);		
288
+                                                $video['title'] = htmlspecialchars($video['title']);
289
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
290
+                                        ?>
291 291
 										<div class="browse-item yt-tile-default ">
292 292
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
293 293
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
Please login to merge, or discard this patch.
web/public/film.php 1 patch
Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -138,16 +138,16 @@  discard block
 block discarded – undo
138 138
 									</div>
139 139
 									<div class="browse-item-row ytg-box">
140 140
 										<?php
141
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Film & Animation' ORDER BY rand() LIMIT 4");
142
-											$stmt->execute();
143
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
144
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
145
-												$video['duration'] = $__time_h->timestamp($video['duration']);
146
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
147
-												$video['author'] = htmlspecialchars($video['author']);		
148
-												$video['title'] = htmlspecialchars($video['title']);
149
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
150
-										?>
141
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Film & Animation' ORDER BY rand() LIMIT 4");
142
+                                            $stmt->execute();
143
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
144
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
145
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
146
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
147
+                                                $video['author'] = htmlspecialchars($video['author']);		
148
+                                                $video['title'] = htmlspecialchars($video['title']);
149
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
150
+                                        ?>
151 151
 										<div class="browse-item yt-tile-default ">
152 152
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
153 153
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -173,16 +173,16 @@  discard block
 block discarded – undo
173 173
 									</div>
174 174
                                     <div class="browse-item-row ytg-box">
175 175
 										<?php
176
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Film & Animation' ORDER BY rand() LIMIT 4");
177
-											$stmt->execute();
178
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
179
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
180
-												$video['duration'] = $__time_h->timestamp($video['duration']);
181
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
182
-												$video['author'] = htmlspecialchars($video['author']);		
183
-												$video['title'] = htmlspecialchars($video['title']);
184
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
185
-										?>
176
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Film & Animation' ORDER BY rand() LIMIT 4");
177
+                                            $stmt->execute();
178
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
179
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
180
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
181
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
182
+                                                $video['author'] = htmlspecialchars($video['author']);		
183
+                                                $video['title'] = htmlspecialchars($video['title']);
184
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
185
+                                        ?>
186 186
 										<div class="browse-item yt-tile-default ">
187 187
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
188 188
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -208,16 +208,16 @@  discard block
 block discarded – undo
208 208
 									</div>
209 209
                                     <div class="browse-item-row ytg-box">
210 210
 										<?php
211
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Film & Animation' ORDER BY rand() LIMIT 4");
212
-											$stmt->execute();
213
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
214
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
215
-												$video['duration'] = $__time_h->timestamp($video['duration']);
216
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
217
-												$video['author'] = htmlspecialchars($video['author']);		
218
-												$video['title'] = htmlspecialchars($video['title']);
219
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
220
-										?>
211
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Film & Animation' ORDER BY rand() LIMIT 4");
212
+                                            $stmt->execute();
213
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
214
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
215
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
216
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
217
+                                                $video['author'] = htmlspecialchars($video['author']);		
218
+                                                $video['title'] = htmlspecialchars($video['title']);
219
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
220
+                                        ?>
221 221
 										<div class="browse-item yt-tile-default ">
222 222
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
223 223
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -243,16 +243,16 @@  discard block
 block discarded – undo
243 243
 									</div>
244 244
                                     <div class="browse-item-row ytg-box">
245 245
 										<?php
246
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Film & Animation' ORDER BY rand() LIMIT 4");
247
-											$stmt->execute();
248
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
249
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
250
-												$video['duration'] = $__time_h->timestamp($video['duration']);
251
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
252
-												$video['author'] = htmlspecialchars($video['author']);		
253
-												$video['title'] = htmlspecialchars($video['title']);
254
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
255
-										?>
246
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Film & Animation' ORDER BY rand() LIMIT 4");
247
+                                            $stmt->execute();
248
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
249
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
250
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
251
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
252
+                                                $video['author'] = htmlspecialchars($video['author']);		
253
+                                                $video['title'] = htmlspecialchars($video['title']);
254
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
255
+                                        ?>
256 256
 										<div class="browse-item yt-tile-default ">
257 257
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
258 258
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -278,16 +278,16 @@  discard block
 block discarded – undo
278 278
 									</div>
279 279
                                     <div class="browse-item-row ytg-box">
280 280
 										<?php
281
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Film & Animation' ORDER BY rand() LIMIT 4");
282
-											$stmt->execute();
283
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
284
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
285
-												$video['duration'] = $__time_h->timestamp($video['duration']);
286
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
287
-												$video['author'] = htmlspecialchars($video['author']);		
288
-												$video['title'] = htmlspecialchars($video['title']);
289
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
290
-										?>
281
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Film & Animation' ORDER BY rand() LIMIT 4");
282
+                                            $stmt->execute();
283
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
284
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
285
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
286
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
287
+                                                $video['author'] = htmlspecialchars($video['author']);		
288
+                                                $video['title'] = htmlspecialchars($video['title']);
289
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
290
+                                        ?>
291 291
 										<div class="browse-item yt-tile-default ">
292 292
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
293 293
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
Please login to merge, or discard this patch.
web/public/howto.php 1 patch
Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -138,16 +138,16 @@  discard block
 block discarded – undo
138 138
 									</div>
139 139
 									<div class="browse-item-row ytg-box">
140 140
 										<?php
141
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4");
142
-											$stmt->execute();
143
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
144
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
145
-												$video['duration'] = $__time_h->timestamp($video['duration']);
146
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
147
-												$video['author'] = htmlspecialchars($video['author']);		
148
-												$video['title'] = htmlspecialchars($video['title']);
149
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
150
-										?>
141
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4");
142
+                                            $stmt->execute();
143
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
144
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
145
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
146
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
147
+                                                $video['author'] = htmlspecialchars($video['author']);		
148
+                                                $video['title'] = htmlspecialchars($video['title']);
149
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
150
+                                        ?>
151 151
 										<div class="browse-item yt-tile-default ">
152 152
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
153 153
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -173,16 +173,16 @@  discard block
 block discarded – undo
173 173
 									</div>
174 174
                                     <div class="browse-item-row ytg-box">
175 175
 										<?php
176
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4");
177
-											$stmt->execute();
178
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
179
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
180
-												$video['duration'] = $__time_h->timestamp($video['duration']);
181
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
182
-												$video['author'] = htmlspecialchars($video['author']);		
183
-												$video['title'] = htmlspecialchars($video['title']);
184
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
185
-										?>
176
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4");
177
+                                            $stmt->execute();
178
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
179
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
180
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
181
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
182
+                                                $video['author'] = htmlspecialchars($video['author']);		
183
+                                                $video['title'] = htmlspecialchars($video['title']);
184
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
185
+                                        ?>
186 186
 										<div class="browse-item yt-tile-default ">
187 187
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
188 188
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -208,16 +208,16 @@  discard block
 block discarded – undo
208 208
 									</div>
209 209
                                     <div class="browse-item-row ytg-box">
210 210
 										<?php
211
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4");
212
-											$stmt->execute();
213
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
214
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
215
-												$video['duration'] = $__time_h->timestamp($video['duration']);
216
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
217
-												$video['author'] = htmlspecialchars($video['author']);		
218
-												$video['title'] = htmlspecialchars($video['title']);
219
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
220
-										?>
211
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4");
212
+                                            $stmt->execute();
213
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
214
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
215
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
216
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
217
+                                                $video['author'] = htmlspecialchars($video['author']);		
218
+                                                $video['title'] = htmlspecialchars($video['title']);
219
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
220
+                                        ?>
221 221
 										<div class="browse-item yt-tile-default ">
222 222
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
223 223
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -243,16 +243,16 @@  discard block
 block discarded – undo
243 243
 									</div>
244 244
                                     <div class="browse-item-row ytg-box">
245 245
 										<?php
246
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4");
247
-											$stmt->execute();
248
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
249
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
250
-												$video['duration'] = $__time_h->timestamp($video['duration']);
251
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
252
-												$video['author'] = htmlspecialchars($video['author']);		
253
-												$video['title'] = htmlspecialchars($video['title']);
254
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
255
-										?>
246
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4");
247
+                                            $stmt->execute();
248
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
249
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
250
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
251
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
252
+                                                $video['author'] = htmlspecialchars($video['author']);		
253
+                                                $video['title'] = htmlspecialchars($video['title']);
254
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
255
+                                        ?>
256 256
 										<div class="browse-item yt-tile-default ">
257 257
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
258 258
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
@@ -278,16 +278,16 @@  discard block
 block discarded – undo
278 278
 									</div>
279 279
                                     <div class="browse-item-row ytg-box">
280 280
 										<?php
281
-											$stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4");
282
-											$stmt->execute();
283
-											while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
284
-												$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
285
-												$video['duration'] = $__time_h->timestamp($video['duration']);
286
-												$video['views'] = $__video_h->fetch_video_views($video['rid']);
287
-												$video['author'] = htmlspecialchars($video['author']);		
288
-												$video['title'] = htmlspecialchars($video['title']);
289
-												$video['description'] = $__video_h->shorten_description($video['description'], 50);
290
-										?>
281
+                                            $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4");
282
+                                            $stmt->execute();
283
+                                            while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
284
+                                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
285
+                                                $video['duration'] = $__time_h->timestamp($video['duration']);
286
+                                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
287
+                                                $video['author'] = htmlspecialchars($video['author']);		
288
+                                                $video['title'] = htmlspecialchars($video['title']);
289
+                                                $video['description'] = $__video_h->shorten_description($video['description'], 50);
290
+                                        ?>
291 291
 										<div class="browse-item yt-tile-default ">
292 292
 											<a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&amp;feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
293 293
 											<button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
Please login to merge, or discard this patch.
web/public/results.php 1 patch
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -6,34 +6,34 @@  discard block
 block discarded – undo
6 6
 <?php require_once($_SERVER['DOCUMENT_ROOT'] . "/s/classes/user_helper.php"); ?>
7 7
 <?php require_once($_SERVER['DOCUMENT_ROOT'] . "/s/classes/video_helper.php"); ?>
8 8
 <?php
9
-   $request = (object) [
10
-      "search_term"      => htmlspecialchars($_GET['search_query']),
11
-      "like_search_term" => "%" . htmlspecialchars($_GET['search_query']) . "%",
12
-      "search_amount"    => 0 /* [fallback] */
13
-   ];
9
+    $request = (object) [
10
+        "search_term"      => htmlspecialchars($_GET['search_query']),
11
+        "like_search_term" => "%" . htmlspecialchars($_GET['search_query']) . "%",
12
+        "search_amount"    => 0 /* [fallback] */
13
+    ];
14 14
 
15
-   $stmt = $__db->prepare("SELECT * FROM videos WHERE lower(title) LIKE lower(:search) ");
16
-   $stmt->bindParam(":search", $request->like_search_term);
17
-   $stmt->execute(); 
18
-   $request->search_amount = $stmt->rowCount();
15
+    $stmt = $__db->prepare("SELECT * FROM videos WHERE lower(title) LIKE lower(:search) ");
16
+    $stmt->bindParam(":search", $request->like_search_term);
17
+    $stmt->execute(); 
18
+    $request->search_amount = $stmt->rowCount();
19 19
 
20
-   $results_per_page = 12;
21
-   $number_of_result = $request->search_amount;
22
-   $number_of_page = ceil ($number_of_result / $results_per_page);  
20
+    $results_per_page = 12;
21
+    $number_of_result = $request->search_amount;
22
+    $number_of_page = ceil ($number_of_result / $results_per_page);  
23 23
 
24
-   if (!isset ($_GET['page']) ) {  
25
-       $page = 1;  
26
-   } else {  
27
-       $page = (int)$_GET['page'];  
28
-   }  
24
+    if (!isset ($_GET['page']) ) {  
25
+        $page = 1;  
26
+    } else {  
27
+        $page = (int)$_GET['page'];  
28
+    }  
29 29
 
30
-   $page_first_result = ($page - 1) * $results_per_page;  
30
+    $page_first_result = ($page - 1) * $results_per_page;  
31 31
 
32
-   $stmt6 = $__db->prepare("SELECT * FROM videos WHERE lower(title) LIKE lower(:search) ORDER BY id DESC LIMIT :pfirst, :pper");
33
-   $stmt6->bindParam(":search", $request->like_search_term);
34
-   $stmt6->bindParam(":pfirst", $page_first_result);
35
-   $stmt6->bindParam(":pper", $results_per_page);
36
-   $stmt6->execute();
32
+    $stmt6 = $__db->prepare("SELECT * FROM videos WHERE lower(title) LIKE lower(:search) ORDER BY id DESC LIMIT :pfirst, :pper");
33
+    $stmt6->bindParam(":search", $request->like_search_term);
34
+    $stmt6->bindParam(":pfirst", $page_first_result);
35
+    $stmt6->bindParam(":pper", $results_per_page);
36
+    $stmt6->execute();
37 37
 ?>
38 38
 <?php $__video_h = new video_helper($__db); ?>
39 39
 <?php $__user_h = new user_helper($__db); ?>
@@ -213,14 +213,14 @@  discard block
 block discarded – undo
213 213
                   <div id="results-main-content">
214 214
                      <ol id="search-results">
215 215
                         <?php
216
-                           while($video = $stmt6->fetch(PDO::FETCH_ASSOC)) { 
217
-                              $video['video_responses'] = $__video_h->get_video_responses($video['rid']);
218
-                              $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
219
-                              $video['duration'] = $__time_h->timestamp($video['duration']);
220
-                              $video['views'] = $__video_h->fetch_video_views($video['rid']);
221
-                              $video['author'] = htmlspecialchars($video['author']);		
222
-                              $video['title'] = htmlspecialchars($video['title']);
223
-                              $video['description'] = $__video_h->shorten_description($video['description'], 50, true);
216
+                            while($video = $stmt6->fetch(PDO::FETCH_ASSOC)) { 
217
+                                $video['video_responses'] = $__video_h->get_video_responses($video['rid']);
218
+                                $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
219
+                                $video['duration'] = $__time_h->timestamp($video['duration']);
220
+                                $video['views'] = $__video_h->fetch_video_views($video['rid']);
221
+                                $video['author'] = htmlspecialchars($video['author']);		
222
+                                $video['title'] = htmlspecialchars($video['title']);
223
+                                $video['description'] = $__video_h->shorten_description($video['description'], 50, true);
224 224
                         ?>
225 225
                               <li class="yt-grid-box result-item-video *sr ">
226 226
                                  <div id="" class="yt-uix-tile yt-lockup-list yt-tile-default yt-grid-box ">
Please login to merge, or discard this patch.
web/public/view_playlist.php 1 patch
Indentation   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -25,21 +25,21 @@  discard block
 block discarded – undo
25 25
         return preg_replace('/[^A-Za-z0-9\-]/', '', $string); // Removes special chars.
26 26
     }
27 27
 
28
-	function addhttp($url) {
29
-		if (!preg_match("~^(?:f|ht)tps?://~i", $url)) {
30
-			$url = "http://" . $url;
31
-		}
32
-		return $url;
33
-	}
28
+    function addhttp($url) {
29
+        if (!preg_match("~^(?:f|ht)tps?://~i", $url)) {
30
+            $url = "http://" . $url;
31
+        }
32
+        return $url;
33
+    }
34 34
 
35 35
     function check_valid_colorhex($colorCode) {
36 36
         // If user accidentally passed along the # sign, strip it off
37 37
         $colorCode = ltrim($colorCode, '#');
38 38
     
39 39
         if (
40
-              ctype_xdigit($colorCode) &&
40
+                ctype_xdigit($colorCode) &&
41 41
               (strlen($colorCode) == 6 || strlen($colorCode) == 3))
42
-                   return true;
42
+                    return true;
43 43
     
44 44
         else return false;
45 45
     }
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     $_user['2009_bgcolor'] = substr($_user['2009_bgcolor'], 0, 7);
65 65
 
66 66
     $_user['genre'] = strtolower($_user['genre']);
67
-	$_user['subscribed'] = $__user_h->if_subscribed(@$_SESSION['siteusername'], $_user['username']);
67
+    $_user['subscribed'] = $__user_h->if_subscribed(@$_SESSION['siteusername'], $_user['username']);
68 68
 
69 69
     if(!check_valid_colorhex($_user['primary_color']) && strlen($_user['primary_color']) != 6) { $_user['primary_color'] = ""; }
70 70
     if(!check_valid_colorhex($_user['secondary_color']) && strlen($_user['secondary_color']) != 6) { $_user['secondary_color'] = ""; }
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
     if(!check_valid_colorhex($_user['primary_color_text']) && strlen($_user['primary_color_text']) != 6) { $_user['primary_color_text'] = ""; }
74 74
     if(!check_valid_colorhex($_user['2009_bgcolor']) && strlen($_user['2009_bgcolor']) != 6) { $_user['2009_bgcolor'] = ""; }
75 75
 
76
-	if(isset($_SESSION['siteusername']))
77
-    	$__user_i->check_view_channel($_user['username'], @$_SESSION['siteusername']);
76
+    if(isset($_SESSION['siteusername']))
77
+        $__user_i->check_view_channel($_user['username'], @$_SESSION['siteusername']);
78 78
 
79 79
     if($_SERVER['REQUEST_METHOD'] == 'POST') {
80 80
         $error = array();
@@ -88,11 +88,11 @@  discard block
 block discarded – undo
88 88
         //if(ifBlocked(@$_SESSION['siteusername'], $user['username'], $__db)) { $error = "This user has blocked you!"; $error['status'] = true; } 
89 89
 
90 90
         if(!isset($error['message'])) {
91
-			$text = $_POST['comment'];
91
+            $text = $_POST['comment'];
92 92
             $stmt = $__db->prepare("INSERT INTO profile_comments (toid, author, comment) VALUES (:id, :username, :comment)");
93
-			$stmt->bindParam(":id", $_user['username']);
94
-			$stmt->bindParam(":username", $_SESSION['siteusername']);
95
-			$stmt->bindParam(":comment", $text);
93
+            $stmt->bindParam(":id", $_user['username']);
94
+            $stmt->bindParam(":username", $_SESSION['siteusername']);
95
+            $stmt->bindParam(":comment", $text);
96 96
             $stmt->execute();
97 97
 
98 98
             $_user_update_utils->update_comment_cooldown_time($_SESSION['siteusername']);
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
             }
103 103
         }
104 104
     }
105
-	?>
105
+    ?>
106 106
 <!DOCTYPE html>
107 107
 <html dir="ltr" xmlns:og="http://opengraphprotocol.org/schema/" lang="en">
108 108
 	<!-- machid: sNW5tN3Z2SWdXaDRqNGxuNEF5MFBxM1BxWXd0VGo0Rkg3UXNTTTNCUGRDWjR0WGpHR3R1YzFR -->
@@ -145,9 +145,9 @@  discard block
 block discarded – undo
145 145
 					<div class="channel_customization"><?php require($_SERVER['DOCUMENT_ROOT'] . "/s/mod/channel_customization.php"); ?></div>
146 146
 				<?php } ?>
147 147
 				<?php
148
-					if(empty(trim($_user['bio'])))
149
-						$_user['bio'] = "This user has no description.";
150
-				?>
148
+                    if(empty(trim($_user['bio'])))
149
+                        $_user['bio'] = "This user has no description.";
150
+                ?>
151 151
 				<div id="content">
152 152
 					<div class="subscription-menu-expandable subscription-menu-expandable-channels3 yt-rounded ytg-wide hid">
153 153
 						<div class="content" id="recommended-channels-list"></div>
@@ -306,20 +306,20 @@  discard block
 block discarded – undo
306 306
                                                         </div>
307 307
                                                         <ol>
308 308
 															<?php
309
-																$_playlist['videos'] = json_decode($_playlist['videos']);
310
-																$_playlist['count'] = 1;
311
-																foreach($_playlist['videos'] as $video) {
312
-																	if($__video_h->video_exists($video)) {
313
-																		$_video = $__video_h->fetch_video_rid($video);
314
-																		$_video['video_responses'] = $__video_h->get_video_responses($_video['rid']);
315
-																		$_video['age'] = $__time_h->time_elapsed_string($_video['publish']);		
316
-																		$_video['duration'] = $__time_h->timestamp($_video['duration']);
317
-																		$_video['views'] = $__video_h->fetch_video_views($_video['rid']);
318
-																		$_video['author'] = htmlspecialchars($_video['author']);		
319
-																		$_video['title'] = htmlspecialchars($_video['title']);
320
-																		$_video['description'] = $__video_h->shorten_description($_video['description'], 50);
321
-																		$_playlist['title'] = htmlspecialchars($_playlist['title']);
322
-																	?>
309
+                                                                $_playlist['videos'] = json_decode($_playlist['videos']);
310
+                                                                $_playlist['count'] = 1;
311
+                                                                foreach($_playlist['videos'] as $video) {
312
+                                                                    if($__video_h->video_exists($video)) {
313
+                                                                        $_video = $__video_h->fetch_video_rid($video);
314
+                                                                        $_video['video_responses'] = $__video_h->get_video_responses($_video['rid']);
315
+                                                                        $_video['age'] = $__time_h->time_elapsed_string($_video['publish']);		
316
+                                                                        $_video['duration'] = $__time_h->timestamp($_video['duration']);
317
+                                                                        $_video['views'] = $__video_h->fetch_video_views($_video['rid']);
318
+                                                                        $_video['author'] = htmlspecialchars($_video['author']);		
319
+                                                                        $_video['title'] = htmlspecialchars($_video['title']);
320
+                                                                        $_video['description'] = $__video_h->shorten_description($_video['description'], 50);
321
+                                                                        $_playlist['title'] = htmlspecialchars($_playlist['title']);
322
+                                                                    ?>
323 323
 																	<li class="playlist-video-item
324 324
 																		odd
325 325
 																		"> 
@@ -474,9 +474,9 @@  discard block
 block discarded – undo
474 474
 													<h2>Featured Channels</h2>
475 475
 													<ul class="channel-summary-list ">
476 476
 														<?php 
477
-															foreach($_user['featured_channels'] as $user) {
478
-																if($__user_h->user_exists($user)) {
479
-														?>
477
+                                                            foreach($_user['featured_channels'] as $user) {
478
+                                                                if($__user_h->user_exists($user)) {
479
+                                                        ?>
480 480
 															<li class="yt-tile-visible yt-uix-tile">
481 481
 																<div class="channel-summary clearfix channel-summary-compact">
482 482
 																	<div class="channel-summary-thumb">
@@ -500,19 +500,19 @@  discard block
 block discarded – undo
500 500
 											</div>
501 501
 
502 502
 											<?php 
503
-												$stmt = $__db->prepare("SELECT * FROM playlists WHERE author = :search ORDER BY id DESC LIMIT 10");
504
-												$stmt->bindParam(":search", $_user['username']);
505
-												$stmt->execute();
503
+                                                $stmt = $__db->prepare("SELECT * FROM playlists WHERE author = :search ORDER BY id DESC LIMIT 10");
504
+                                                $stmt->bindParam(":search", $_user['username']);
505
+                                                $stmt->execute();
506 506
 
507
-												if($stmt->rowCount() != 0) {
508
-											?>
507
+                                                if($stmt->rowCount() != 0) {
508
+                                            ?>
509 509
 												<div class="playlists-narrow channel-module yt-uix-c3-module-container">
510 510
 													<div class="module-view gh-featured">
511 511
 														<h2>Featured Playlists</h2>     
512 512
 														<?php
513
-														while($playlist = $stmt->fetch(PDO::FETCH_ASSOC)) { 
514
-															$playlist['videos'] = json_decode($playlist['videos']);
515
-														?> 
513
+                                                        while($playlist = $stmt->fetch(PDO::FETCH_ASSOC)) { 
514
+                                                            $playlist['videos'] = json_decode($playlist['videos']);
515
+                                                        ?> 
516 516
 															<div class="playlist yt-tile-visible yt-uix-tile">
517 517
 																<a href="/view_playlist?v=<?php echo $playlist['rid']; ?>">
518 518
 																<span class="playlist-thumb-strip playlist-thumb-strip-252"><span class="videos videos-4 horizontal-cutoff"><span class="clip"><span class="centering-offset"><span class="centering">
Please login to merge, or discard this patch.