Test Failed
Push — main ( 00747d...5f665f )
by chief
03:00
created
web/public/channel_videos.php 1 patch
Indentation   +59 added lines, -59 removed lines patch added patch discarded remove patch
@@ -12,21 +12,21 @@  discard block
 block discarded – undo
12 12
 <?php $__db_h = new db_helper(); ?>
13 13
 <?php $__time_h = new time_helper(); ?>
14 14
 <?php
15
-	if(isset($_SESSION['siteusername']))
16
-	    $_user_hp = $__user_h->fetch_user_username($_SESSION['siteusername']);
15
+    if(isset($_SESSION['siteusername']))
16
+        $_user_hp = $__user_h->fetch_user_username($_SESSION['siteusername']);
17 17
 
18 18
     if(!$__user_h->user_exists($_GET['n']))
19 19
         header("Location: /?userdoesntexist");
20 20
 
21 21
     $_user = $__user_h->fetch_user_username($_GET['n']);
22 22
 
23
-	$stmt = $__db->prepare("SELECT * FROM bans WHERE username = :username ORDER BY id DESC");
24
-	$stmt->bindParam(":username", $_user['username']);
25
-	$stmt->execute();
23
+    $stmt = $__db->prepare("SELECT * FROM bans WHERE username = :username ORDER BY id DESC");
24
+    $stmt->bindParam(":username", $_user['username']);
25
+    $stmt->execute();
26 26
 
27
-	while($ban = $stmt->fetch(PDO::FETCH_ASSOC)) { 
28
-		header("Location: /?error=This user has been terminated for violating SubRock's Community Guidelines.");
29
-	}
27
+    while($ban = $stmt->fetch(PDO::FETCH_ASSOC)) { 
28
+        header("Location: /?error=This user has been terminated for violating SubRock's Community Guidelines.");
29
+    }
30 30
 
31 31
     function clean($string) {
32 32
         $string = str_replace(' ', '-', $string); // Replaces all spaces with hyphens.
@@ -34,21 +34,21 @@  discard block
 block discarded – undo
34 34
         return preg_replace('/[^A-Za-z0-9\-]/', '', $string); // Removes special chars.
35 35
     }
36 36
 
37
-	function addhttp($url) {
38
-		if (!preg_match("~^(?:f|ht)tps?://~i", $url)) {
39
-			$url = "http://" . $url;
40
-		}
41
-		return $url;
42
-	}
37
+    function addhttp($url) {
38
+        if (!preg_match("~^(?:f|ht)tps?://~i", $url)) {
39
+            $url = "http://" . $url;
40
+        }
41
+        return $url;
42
+    }
43 43
 
44 44
     function check_valid_colorhex($colorCode) {
45 45
         // If user accidentally passed along the # sign, strip it off
46 46
         $colorCode = ltrim($colorCode, '#');
47 47
     
48 48
         if (
49
-              ctype_xdigit($colorCode) &&
49
+                ctype_xdigit($colorCode) &&
50 50
               (strlen($colorCode) == 6 || strlen($colorCode) == 3))
51
-                   return true;
51
+                    return true;
52 52
     
53 53
         else return false;
54 54
     }
@@ -83,8 +83,8 @@  discard block
 block discarded – undo
83 83
     if(!check_valid_colorhex($_user['primary_color_text']) && strlen($_user['primary_color_text']) != 6) { $_user['primary_color_text'] = ""; }
84 84
     if(!check_valid_colorhex($_user['2009_bgcolor']) && strlen($_user['2009_bgcolor']) != 6) { $_user['2009_bgcolor'] = ""; }
85 85
 
86
-	if(isset($_SESSION['siteusername']))
87
-    	$__user_i->check_view_channel($_user['username'], @$_SESSION['siteusername']);
86
+    if(isset($_SESSION['siteusername']))
87
+        $__user_i->check_view_channel($_user['username'], @$_SESSION['siteusername']);
88 88
 
89 89
     if($_SERVER['REQUEST_METHOD'] == 'POST') {
90 90
         $error = array();
@@ -98,11 +98,11 @@  discard block
 block discarded – undo
98 98
         //if(ifBlocked(@$_SESSION['siteusername'], $user['username'], $__db)) { $error = "This user has blocked you!"; $error['status'] = true; } 
99 99
 
100 100
         if(!isset($error['message'])) {
101
-			$text = $_POST['comment'];
101
+            $text = $_POST['comment'];
102 102
             $stmt = $__db->prepare("INSERT INTO profile_comments (toid, author, comment) VALUES (:id, :username, :comment)");
103
-			$stmt->bindParam(":id", $_user['username']);
104
-			$stmt->bindParam(":username", $_SESSION['siteusername']);
105
-			$stmt->bindParam(":comment", $text);
103
+            $stmt->bindParam(":id", $_user['username']);
104
+            $stmt->bindParam(":username", $_SESSION['siteusername']);
105
+            $stmt->bindParam(":comment", $text);
106 106
             $stmt->execute();
107 107
 
108 108
             $_user_update_utils->update_comment_cooldown_time($_SESSION['siteusername']);
@@ -114,10 +114,10 @@  discard block
 block discarded – undo
114 114
     }
115 115
 ?>
116 116
 <?php
117
-	$__server->page_embeds->page_title = "SubRocks - " . htmlspecialchars($_user['username']);
118
-	$__server->page_embeds->page_description = htmlspecialchars($_user['bio']);
119
-	$__server->page_embeds->page_image = "/dynamic/pfp/" . htmlspecialchars($_user['pfp']);
120
-	$__server->page_embeds->page_url = "https://subrock.rocks/";
117
+    $__server->page_embeds->page_title = "SubRocks - " . htmlspecialchars($_user['username']);
118
+    $__server->page_embeds->page_description = htmlspecialchars($_user['bio']);
119
+    $__server->page_embeds->page_image = "/dynamic/pfp/" . htmlspecialchars($_user['pfp']);
120
+    $__server->page_embeds->page_url = "https://subrock.rocks/";
121 121
 ?>
122 122
 <!DOCTYPE html>
123 123
 <html dir="ltr" xmlns:og="http://opengraphprotocol.org/schema/" lang="en">
@@ -145,27 +145,27 @@  discard block
 block discarded – undo
145 145
 				background-image: url(/dynamic/banners/<?php echo $_user['2012_bg']; ?>);
146 146
 				background-repeat: repeat;
147 147
 				<?php
148
-					switch($_user['2012_bgoption']) {
149
-						case "stretch":
150
-						echo "background-size: cover;";
151
-						break;
152
-						case "solid":
153
-						echo "";
154
-						break;
155
-						case "norepeat":
156
-						echo "background-repeat: no-repeat !important;";
157
-						break;
158
-						case "repeatxy":
159
-						echo "background-repeat: repeat;";
160
-						break;
161
-						case "repeaty":
162
-						echo "background-repeat: repeat-y;";
163
-						break;
164
-						case "repeatx":
165
-						echo "background-repeat: repeat-x;";
166
-						break;
167
-					}
168
-				?>
148
+                    switch($_user['2012_bgoption']) {
149
+                        case "stretch":
150
+                        echo "background-size: cover;";
151
+                        break;
152
+                        case "solid":
153
+                        echo "";
154
+                        break;
155
+                        case "norepeat":
156
+                        echo "background-repeat: no-repeat !important;";
157
+                        break;
158
+                        case "repeatxy":
159
+                        echo "background-repeat: repeat;";
160
+                        break;
161
+                        case "repeaty":
162
+                        echo "background-repeat: repeat-y;";
163
+                        break;
164
+                        case "repeatx":
165
+                        echo "background-repeat: repeat-x;";
166
+                        break;
167
+                    }
168
+                ?>
169 169
 			}
170 170
    		</style>
171 171
 	</head>
@@ -346,19 +346,19 @@  discard block
 block discarded – undo
346 346
                                             <div class="channel-filtered-content">
347 347
                                                 <ol class="channel-videos-list">
348 348
 													<?php
349
-														$stmt = $__db->prepare("SELECT * FROM videos WHERE author = :username ORDER BY id DESC");
350
-														$stmt->bindParam(":username", $_user['username']);
351
-														$stmt->execute();
352
-														if($stmt->rowCount() == 0) { echo '<span style="font-size:11px;color:grey;">This user has no videos uploaded.</span>'; }
349
+                                                        $stmt = $__db->prepare("SELECT * FROM videos WHERE author = :username ORDER BY id DESC");
350
+                                                        $stmt->bindParam(":username", $_user['username']);
351
+                                                        $stmt->execute();
352
+                                                        if($stmt->rowCount() == 0) { echo '<span style="font-size:11px;color:grey;">This user has no videos uploaded.</span>'; }
353 353
 
354
-														while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
355
-															$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
356
-															$video['duration'] = $__time_h->timestamp($video['duration']);
357
-															$video['views'] = $__video_h->fetch_video_views($video['rid']);
358
-															$video['author'] = htmlspecialchars($video['author']);		
359
-															$video['title'] = htmlspecialchars($video['title']);
360
-															$video['description'] = $__video_h->shorten_description($video['description'], 50);
361
-													?>
354
+                                                        while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
355
+                                                            $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
356
+                                                            $video['duration'] = $__time_h->timestamp($video['duration']);
357
+                                                            $video['views'] = $__video_h->fetch_video_views($video['rid']);
358
+                                                            $video['author'] = htmlspecialchars($video['author']);		
359
+                                                            $video['title'] = htmlspecialchars($video['title']);
360
+                                                            $video['description'] = $__video_h->shorten_description($video['description'], 50);
361
+                                                    ?>
362 362
                                                     <li class="yt-c3-grid-item">
363 363
                                                         <a href="/watch?v=<?php echo htmlspecialchars($video['rid']); ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="feature=plcp&amp;context=C4e80d7cVDvjVQa1PpcFPHxNkhfeSQg8_nJHnhVurQf82C2OenNiw%3D"><span class="video-thumb ux-thumb yt-thumb-default-234 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" width="234"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
364 364
                                                         <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="yBlvNSfqAj0" 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/favorite_videos.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@  discard block
 block discarded – undo
9 9
 <?php $__time_h = new time_helper(); error_reporting(E_ERROR | E_PARSE); ?>
10 10
 <?php if(!isset($_SESSION['siteusername'])) { header("Location: /sign_in"); } ?>
11 11
 <?php
12
-	$__server->page_embeds->page_title = "SubRocks - Favorite Videos";
13
-	$__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube.";
14
-	$__server->page_embeds->page_image = "/yt/imgbin/full-size-logo.png";
15
-	$__server->page_embeds->page_url = "https://subrock.rocks/";
12
+    $__server->page_embeds->page_title = "SubRocks - Favorite Videos";
13
+    $__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube.";
14
+    $__server->page_embeds->page_image = "/yt/imgbin/full-size-logo.png";
15
+    $__server->page_embeds->page_url = "https://subrock.rocks/";
16 16
 ?>
17 17
 <!DOCTYPE html>
18 18
 <html dir="ltr">
@@ -157,10 +157,10 @@  discard block
 block discarded – undo
157 157
 							<div id="browse-main-column" style="float: right;margin: 0px 0 0 14px;" class="ytg-4col">
158 158
 								<div class="browse-collection  has-box-ad">
159 159
 								<?php 
160
-									$stmt = $__db->prepare("SELECT * FROM favorite_video WHERE sender = :username ORDER BY id DESC");
161
-									$stmt->bindParam(":username", $_SESSION['siteusername']);
162
-									$stmt->execute();									
163
-								?>
160
+                                    $stmt = $__db->prepare("SELECT * FROM favorite_video WHERE sender = :username ORDER BY id DESC");
161
+                                    $stmt->bindParam(":username", $_SESSION['siteusername']);
162
+                                    $stmt->execute();									
163
+                                ?>
164 164
 								<h1 style="display:inline-block;">Favorite Videos</h1><br>
165 165
 								<span style="font-size:11px;color:grey;">You currently have <b><?php echo $stmt->rowCount(); ?></b> favorite videos</span><br>
166 166
 								<hr><br>
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
                                 ?>
183 183
                                 <?php 
184 184
                                     $stmt6 = $__db->prepare("SELECT * FROM favorite_video WHERE sender = :search ORDER BY id DESC LIMIT :pfirst, :pper");
185
-									$stmt6->bindParam(":search", $search);
185
+                                    $stmt6->bindParam(":search", $search);
186 186
                                     $stmt6->bindParam(":pfirst", $page_first_result);
187 187
                                     $stmt6->bindParam(":pper", $results_per_page);
188 188
                                     $stmt6->execute();
@@ -199,32 +199,32 @@  discard block
 block discarded – undo
199 199
                                     
200 200
                                     <?php
201 201
                                         while($video = $stmt6->fetch(PDO::FETCH_ASSOC)) { 
202
-											if($__video_h->video_exists($video['reciever'])) {
203
-												$_video = $__video_h->fetch_video_rid($video['reciever']);
204
-												$_video['video_responses'] = $__video_h->get_video_responses($_video['rid']);
205
-												$_video['age'] = $__time_h->time_elapsed_string($_video['publish']);		
206
-												$_video['duration'] = $__time_h->timestamp($_video['duration']);
207
-												$_video['views'] = $__video_h->fetch_video_views($_video['rid']);
208
-												$_video['author'] = htmlspecialchars($_video['author']);		
209
-												$_video['title'] = htmlspecialchars($_video['title']);
210
-												$_video['description'] = $__video_h->shorten_description($_video['description'], 50);
211
-
212
-												if($_video['thumbnail'] == ".png" && $_video['filename'] == ".mp4") {
213
-													$status = "Corrupted";
214
-												} else if($_video['visibility'] == "v") {
215
-													$status = "Approved";
216
-												} else if($_video['visibility'] == "n") {
217
-													$status = "Approved";
218
-												} else if($_video['visibility'] == "o") {
219
-													$status = "Disapproved";
220
-												} else {
221
-													$status = "Unknown";
222
-												}                      
202
+                                            if($__video_h->video_exists($video['reciever'])) {
203
+                                                $_video = $__video_h->fetch_video_rid($video['reciever']);
204
+                                                $_video['video_responses'] = $__video_h->get_video_responses($_video['rid']);
205
+                                                $_video['age'] = $__time_h->time_elapsed_string($_video['publish']);		
206
+                                                $_video['duration'] = $__time_h->timestamp($_video['duration']);
207
+                                                $_video['views'] = $__video_h->fetch_video_views($_video['rid']);
208
+                                                $_video['author'] = htmlspecialchars($_video['author']);		
209
+                                                $_video['title'] = htmlspecialchars($_video['title']);
210
+                                                $_video['description'] = $__video_h->shorten_description($_video['description'], 50);
211
+
212
+                                                if($_video['thumbnail'] == ".png" && $_video['filename'] == ".mp4") {
213
+                                                    $status = "Corrupted";
214
+                                                } else if($_video['visibility'] == "v") {
215
+                                                    $status = "Approved";
216
+                                                } else if($_video['visibility'] == "n") {
217
+                                                    $status = "Approved";
218
+                                                } else if($_video['visibility'] == "o") {
219
+                                                    $status = "Disapproved";
220
+                                                } else {
221
+                                                    $status = "Unknown";
222
+                                                }                      
223 223
 												
224
-												if($_video['commenting'] == "a") 
225
-													$_video['commentstatus'] = "Commenting allowed";
226
-												else 
227
-													$_video['commentstatus'] = "Commenting disallowed";
224
+                                                if($_video['commenting'] == "a") 
225
+                                                    $_video['commentstatus'] = "Commenting allowed";
226
+                                                else 
227
+                                                    $_video['commentstatus'] = "Commenting disallowed";
228 228
                                     ?> 
229 229
                                     <tr style="margin-top: 5px;" id="videoslist">
230 230
                                         <td class="video-manager-left">
Please login to merge, or discard this patch.
web/public/s/classes/page_builder.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@
 block discarded – undo
10 10
 class page_builder {
11 11
     public $__root;
12 12
 
13
-	public function __construct($templates){
13
+    public function __construct($templates){
14 14
         $this->__root = $templates;
15
-	}
15
+    }
16 16
 
17 17
     function return_template_replace(string $template, array $inputs) {
18 18
         $__template_file = file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/" . $this->__root . "/" . $template);
Please login to merge, or discard this patch.
web/public/index.php 1 patch
Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -11,10 +11,10 @@  discard block
 block discarded – undo
11 11
 <?php $__time_h = new time_helper(); ?>
12 12
 <?php ob_start(); ?>
13 13
 <?php
14
-	$__server->page_embeds->page_title = "SubRocks - Homepage";
15
-	$__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube.";
16
-	$__server->page_embeds->page_image = "/yt/imgbin/full-size-logo.png";
17
-	$__server->page_embeds->page_url = "https://subrock.rocks/";
14
+    $__server->page_embeds->page_title = "SubRocks - Homepage";
15
+    $__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube.";
16
+    $__server->page_embeds->page_image = "/yt/imgbin/full-size-logo.png";
17
+    $__server->page_embeds->page_url = "https://subrock.rocks/";
18 18
 ?>
19 19
 <!DOCTYPE html>
20 20
 <html>
@@ -63,8 +63,8 @@  discard block
 block discarded – undo
63 63
 							</div>
64 64
 							<div class="guide">
65 65
 							<?php 
66
-								if(isset($_SESSION['siteusername'])) {
67
-								?>
66
+                                if(isset($_SESSION['siteusername'])) {
67
+                                ?>
68 68
 								<div style="/*! margin-top: 0px; *//*! margin-left: 10px; *//*! margin-bottom: 13px; */height: 99px;" class="guide-section feed-header channel first"><img alt="" src="/dynamic/pfp/<?php echo $__user_h->fetch_pfp($_SESSION['siteusername']); ?>" style="height: 88px;position: relative;top: 4px;left: 4px;" class="feed-header-thumb channel-thumb" width="88px"><div id="links" style="/*! margin-left: 5px; */position: relative;left: 13px;top: 7px;"><div style="font-size: 11px;margin-bottom: 6px;" class="metadata">
69 69
 								<a href="/user/<?php echo htmlspecialchars($_SESSION['siteusername']); ?>" style="color: inherit;">My channel
70 70
 								<img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" class="see-more-arrow" alt=""></a>        
@@ -227,16 +227,16 @@  discard block
 block discarded – undo
227 227
 							</p>
228 228
 							<ul>
229 229
 								<?php
230
-									$stmt = $__db->prepare("SELECT * FROM videos WHERE visibility = 'n' ORDER BY rand() LIMIT 4");
231
-									$stmt->execute();
232
-									while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
233
-										$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
234
-										$video['duration'] = $__time_h->timestamp($video['duration']);
235
-										$video['views'] = $__video_h->fetch_video_views($video['rid']);
236
-										$video['author'] = htmlspecialchars($video['author']);		
237
-										$video['title'] = htmlspecialchars($video['title']);
238
-										$video['description'] = $__video_h->shorten_description($video['description'], 50);
239
-								?>
230
+                                    $stmt = $__db->prepare("SELECT * FROM videos WHERE visibility = 'n' ORDER BY rand() LIMIT 4");
231
+                                    $stmt->execute();
232
+                                    while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
233
+                                        $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
234
+                                        $video['duration'] = $__time_h->timestamp($video['duration']);
235
+                                        $video['views'] = $__video_h->fetch_video_views($video['rid']);
236
+                                        $video['author'] = htmlspecialchars($video['author']);		
237
+                                        $video['title'] = htmlspecialchars($video['title']);
238
+                                        $video['description'] = $__video_h->shorten_description($video['description'], 50);
239
+                                ?>
240 240
 								<li class="video-list-item "><a href="/watch?v=<?php echo $video['rid']; ?>" class="video-list-item-link yt-uix-sessionlink" data-sessionlink="ei=CNLr3rbS3rICFSwSIQodSW397Q%3D%3D&amp;feature=g-sptl%26cid%3Dinp-hs-ytg"><span class="ux-thumb-wrap contains-addto "><span class="video-thumb ux-thumb yt-thumb-default-120 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="<?php echo $video['title']; ?>" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="120"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
241 241
 									<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="yuTBQ86r8o0" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
242 242
 									</span><img class="yt-uix-button-arrow" src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt=""></button>
@@ -250,16 +250,16 @@  discard block
 block discarded – undo
250 250
 							</h3>
251 251
 							<ul>
252 252
 								<?php
253
-									$stmt = $__db->prepare("SELECT * FROM videos WHERE featured = 'v' AND visibility = 'n' ORDER BY id DESC LIMIT 4");
254
-									$stmt->execute();
255
-									while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
256
-										$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
257
-										$video['duration'] = $__time_h->timestamp($video['duration']);
258
-										$video['views'] = $__video_h->fetch_video_views($video['rid']);
259
-										$video['author'] = htmlspecialchars($video['author']);		
260
-										$video['title'] = htmlspecialchars($video['title']);
261
-										$video['description'] = $__video_h->shorten_description($video['description'], 50);
262
-								?>
253
+                                    $stmt = $__db->prepare("SELECT * FROM videos WHERE featured = 'v' AND visibility = 'n' ORDER BY id DESC LIMIT 4");
254
+                                    $stmt->execute();
255
+                                    while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
256
+                                        $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
257
+                                        $video['duration'] = $__time_h->timestamp($video['duration']);
258
+                                        $video['views'] = $__video_h->fetch_video_views($video['rid']);
259
+                                        $video['author'] = htmlspecialchars($video['author']);		
260
+                                        $video['title'] = htmlspecialchars($video['title']);
261
+                                        $video['description'] = $__video_h->shorten_description($video['description'], 50);
262
+                                ?>
263 263
 								<li class="video-list-item "><a href="/watch?v=<?php echo $video['rid']; ?>" class="video-list-item-link yt-uix-sessionlink" data-sessionlink="ei=CNLr3rbS3rICFSwSIQodSW397Q%3D%3D&amp;feature=g-sptl%26cid%3Dinp-hs-ytg"><span class="ux-thumb-wrap contains-addto "><span class="video-thumb ux-thumb yt-thumb-default-120 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="<?php echo $video['title']; ?>" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="120"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span>
264 264
 									<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="yuTBQ86r8o0" role="button"><span class="yt-uix-button-content">  <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later">
265 265
 									</span><img class="yt-uix-button-arrow" src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt=""></button>
@@ -283,20 +283,20 @@  discard block
 block discarded – undo
283 283
 									<div class="feed-page">
284 284
 										<ul>
285 285
 											<?php
286
-												$stmt = $__db->prepare("SELECT * FROM videos WHERE visibility = 'n' ORDER BY id DESC LIMIT 20");
287
-												$stmt->execute();
288
-												while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
289
-													$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
290
-													$video['duration'] = $__time_h->timestamp($video['duration']);
291
-													$video['views'] = $__video_h->fetch_video_views($video['rid']);
292
-													$video['author'] = htmlspecialchars($video['author']);		
293
-													$video['title'] = htmlspecialchars($video['title']);
294
-													$video['description'] = $__video_h->shorten_description($video['description'], 50);
295
-													$video['pfp'] = $__user_h->fetch_pfp($video['author']);
286
+                                                $stmt = $__db->prepare("SELECT * FROM videos WHERE visibility = 'n' ORDER BY id DESC LIMIT 20");
287
+                                                $stmt->execute();
288
+                                                while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
289
+                                                    $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
290
+                                                    $video['duration'] = $__time_h->timestamp($video['duration']);
291
+                                                    $video['views'] = $__video_h->fetch_video_views($video['rid']);
292
+                                                    $video['author'] = htmlspecialchars($video['author']);		
293
+                                                    $video['title'] = htmlspecialchars($video['title']);
294
+                                                    $video['description'] = $__video_h->shorten_description($video['description'], 50);
295
+                                                    $video['pfp'] = $__user_h->fetch_pfp($video['author']);
296 296
 
297
-													echo $__page_b->return_template_replace("index_video_1.module", $video);
298
-												} 
299
-											?>
297
+                                                    echo $__page_b->return_template_replace("index_video_1.module", $video);
298
+                                                } 
299
+                                            ?>
300 300
 										</ul>
301 301
 									</div>
302 302
 								</div>
@@ -571,18 +571,18 @@  discard block
 block discarded – undo
571 571
 
572 572
 $__template = ob_get_clean();
573 573
 $__template_inputs = [
574
-	'header' => '',
575
-	'test2' => '',
576
-	'test3' => '',
574
+    'header' => '',
575
+    'test2' => '',
576
+    'test3' => '',
577 577
 ];
578 578
 
579 579
 foreach($__template_inputs as $key => $input) {
580
-	$__template = 
581
-		str_replace(
582
-			"{{" . $key . "}}", 
583
-			$input, 
584
-			$__template
585
-		);
580
+    $__template = 
581
+        str_replace(
582
+            "{{" . $key . "}}", 
583
+            $input, 
584
+            $__template
585
+        );
586 586
 }
587 587
 
588 588
 echo $__template;
Please login to merge, or discard this patch.