Test Failed
Pull Request — main (#32)
by
unknown
02:53
created
web/public/d/edit_video.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
         "description" => $_POST['description'],
24 24
         "tags" => $_POST['tags'],
25 25
         "privacy" => $_POST['privacy'],
26
-         /* 
26
+            /* 
27 27
             Public   : n
28 28
             Unlisted : u
29 29
             Private  : v
Please login to merge, or discard this patch.
web/public/index.php 1 patch
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -8,10 +8,10 @@  discard block
 block discarded – undo
8 8
 <?php $__db_h = new db_helper(); ?>
9 9
 <?php $__time_h = new time_helper(); ?>
10 10
 <?php
11
-	$__server->page_embeds->page_title = "SubRocks - Homepage";
12
-	$__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube.";
13
-	$__server->page_embeds->page_image = "/yt/imgbin/full-size-logo.png";
14
-	$__server->page_embeds->page_url = "https://subrock.rocks/";
11
+    $__server->page_embeds->page_title = "SubRocks - Homepage";
12
+    $__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube.";
13
+    $__server->page_embeds->page_image = "/yt/imgbin/full-size-logo.png";
14
+    $__server->page_embeds->page_url = "https://subrock.rocks/";
15 15
 ?>
16 16
 <!DOCTYPE html>
17 17
 <html>
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
 							</div>
62 62
 							<div class="guide">
63 63
 							<?php 
64
-								if(isset($_SESSION['siteusername'])) {
65
-								?>
64
+                                if(isset($_SESSION['siteusername'])) {
65
+                                ?>
66 66
 								<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">
67 67
 								<a href="/user/<?php echo htmlspecialchars($_SESSION['siteusername']); ?>" style="color: inherit;">My channel
68 68
 								<img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" class="see-more-arrow" alt=""></a>        
@@ -225,16 +225,16 @@  discard block
 block discarded – undo
225 225
 							</p>
226 226
 							<ul>
227 227
 								<?php
228
-									$stmt = $__db->prepare("SELECT * FROM videos WHERE visibility = 'n' ORDER BY rand() LIMIT 4");
229
-									$stmt->execute();
230
-									while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
231
-										$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
232
-										$video['duration'] = $__time_h->timestamp($video['duration']);
233
-										$video['views'] = $__video_h->fetch_video_views($video['rid']);
234
-										$video['author'] = htmlspecialchars($video['author']);		
235
-										$video['title'] = htmlspecialchars($video['title']);
236
-										$video['description'] = $__video_h->shorten_description($video['description'], 50);
237
-								?>
228
+                                    $stmt = $__db->prepare("SELECT * FROM videos WHERE visibility = 'n' ORDER BY rand() LIMIT 4");
229
+                                    $stmt->execute();
230
+                                    while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
231
+                                        $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
232
+                                        $video['duration'] = $__time_h->timestamp($video['duration']);
233
+                                        $video['views'] = $__video_h->fetch_video_views($video['rid']);
234
+                                        $video['author'] = htmlspecialchars($video['author']);		
235
+                                        $video['title'] = htmlspecialchars($video['title']);
236
+                                        $video['description'] = $__video_h->shorten_description($video['description'], 50);
237
+                                ?>
238 238
 								<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>
239 239
 									<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">
240 240
 									</span><img class="yt-uix-button-arrow" src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt=""></button>
@@ -248,16 +248,16 @@  discard block
 block discarded – undo
248 248
 							</h3>
249 249
 							<ul>
250 250
 								<?php
251
-									$stmt = $__db->prepare("SELECT * FROM videos WHERE featured = 'v' AND visibility = 'n' ORDER BY id DESC LIMIT 4");
252
-									$stmt->execute();
253
-									while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
254
-										$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
255
-										$video['duration'] = $__time_h->timestamp($video['duration']);
256
-										$video['views'] = $__video_h->fetch_video_views($video['rid']);
257
-										$video['author'] = htmlspecialchars($video['author']);		
258
-										$video['title'] = htmlspecialchars($video['title']);
259
-										$video['description'] = $__video_h->shorten_description($video['description'], 50);
260
-								?>
251
+                                    $stmt = $__db->prepare("SELECT * FROM videos WHERE featured = 'v' AND visibility = 'n' ORDER BY id DESC LIMIT 4");
252
+                                    $stmt->execute();
253
+                                    while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
254
+                                        $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
255
+                                        $video['duration'] = $__time_h->timestamp($video['duration']);
256
+                                        $video['views'] = $__video_h->fetch_video_views($video['rid']);
257
+                                        $video['author'] = htmlspecialchars($video['author']);		
258
+                                        $video['title'] = htmlspecialchars($video['title']);
259
+                                        $video['description'] = $__video_h->shorten_description($video['description'], 50);
260
+                                ?>
261 261
 								<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>
262 262
 									<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">
263 263
 									</span><img class="yt-uix-button-arrow" src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt=""></button>
@@ -281,16 +281,16 @@  discard block
 block discarded – undo
281 281
 									<div class="feed-page">
282 282
 										<ul>
283 283
 											<?php
284
-												$stmt = $__db->prepare("SELECT * FROM videos WHERE visibility = 'n' ORDER BY id DESC LIMIT 20");
285
-												$stmt->execute();
286
-												while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
287
-													$video['age'] = $__time_h->time_elapsed_string($video['publish']);		
288
-													$video['duration'] = $__time_h->timestamp($video['duration']);
289
-													$video['views'] = $__video_h->fetch_video_views($video['rid']);
290
-													$video['author'] = htmlspecialchars($video['author']);		
291
-													$video['title'] = htmlspecialchars($video['title']);
292
-													$video['description'] = $__video_h->shorten_description($video['description'], 50);
293
-											?>
284
+                                                $stmt = $__db->prepare("SELECT * FROM videos WHERE visibility = 'n' ORDER BY id DESC LIMIT 20");
285
+                                                $stmt->execute();
286
+                                                while($video = $stmt->fetch(PDO::FETCH_ASSOC)) {	
287
+                                                    $video['age'] = $__time_h->time_elapsed_string($video['publish']);		
288
+                                                    $video['duration'] = $__time_h->timestamp($video['duration']);
289
+                                                    $video['views'] = $__video_h->fetch_video_views($video['rid']);
290
+                                                    $video['author'] = htmlspecialchars($video['author']);		
291
+                                                    $video['title'] = htmlspecialchars($video['title']);
292
+                                                    $video['description'] = $__video_h->shorten_description($video['description'], 50);
293
+                                            ?>
294 294
 											<li>
295 295
 												<div class="feed-item-container first " data-channel-key="UCR2A9ZNliJfgC66IvIpe-Zw">
296 296
 													<div class="feed-author-bubble-container">
Please login to merge, or discard this patch.
web/public/channel.php 1 patch
Indentation   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@  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");
@@ -26,21 +26,21 @@  discard block
 block discarded – undo
26 26
         return preg_replace('/[^A-Za-z0-9\-]/', '', $string); // Removes special chars.
27 27
     }
28 28
 
29
-	function addhttp($url) {
30
-		if (!preg_match("~^(?:f|ht)tps?://~i", $url)) {
31
-			$url = "http://" . $url;
32
-		}
33
-		return $url;
34
-	}
29
+    function addhttp($url) {
30
+        if (!preg_match("~^(?:f|ht)tps?://~i", $url)) {
31
+            $url = "http://" . $url;
32
+        }
33
+        return $url;
34
+    }
35 35
 
36 36
     function check_valid_colorhex($colorCode) {
37 37
         // If user accidentally passed along the # sign, strip it off
38 38
         $colorCode = ltrim($colorCode, '#');
39 39
     
40 40
         if (
41
-              ctype_xdigit($colorCode) &&
41
+                ctype_xdigit($colorCode) &&
42 42
               (strlen($colorCode) == 6 || strlen($colorCode) == 3))
43
-                   return true;
43
+                    return true;
44 44
     
45 45
         else return false;
46 46
     }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     $_user['2012_bgcolor'] = substr($_user['2012_bgcolor'], 0, 7);
66 66
 
67 67
     $_user['genre'] = strtolower($_user['genre']);
68
-	$_user['subscribed'] = $__user_h->if_subscribed(@$_SESSION['siteusername'], $_user['username']);
68
+    $_user['subscribed'] = $__user_h->if_subscribed(@$_SESSION['siteusername'], $_user['username']);
69 69
 
70 70
     if(!check_valid_colorhex($_user['primary_color']) && strlen($_user['primary_color']) != 6) { $_user['primary_color'] = ""; }
71 71
     if(!check_valid_colorhex($_user['secondary_color']) && strlen($_user['secondary_color']) != 6) { $_user['secondary_color'] = ""; }
@@ -74,8 +74,8 @@  discard block
 block discarded – undo
74 74
     if(!check_valid_colorhex($_user['primary_color_text']) && strlen($_user['primary_color_text']) != 6) { $_user['primary_color_text'] = ""; }
75 75
     if(!check_valid_colorhex($_user['2012_bgcolor']) && strlen($_user['2012_bgcolor']) != 6) { $_user['2012_bgcolor'] = ""; }
76 76
 
77
-	if(isset($_SESSION['siteusername']))
78
-    	$__user_i->check_view_channel($_user['username'], @$_SESSION['siteusername']);
77
+    if(isset($_SESSION['siteusername']))
78
+        $__user_i->check_view_channel($_user['username'], @$_SESSION['siteusername']);
79 79
 
80 80
     if($_SERVER['REQUEST_METHOD'] == 'POST') {
81 81
         $error = array();
@@ -89,11 +89,11 @@  discard block
 block discarded – undo
89 89
         //if(ifBlocked(@$_SESSION['siteusername'], $user['username'], $__db)) { $error = "This user has blocked you!"; $error['status'] = true; } 
90 90
 
91 91
         if(!isset($error['message'])) {
92
-			$text = $_POST['comment'];
92
+            $text = $_POST['comment'];
93 93
             $stmt = $__db->prepare("INSERT INTO profile_comments (toid, author, comment) VALUES (:id, :username, :comment)");
94
-			$stmt->bindParam(":id", $_user['username']);
95
-			$stmt->bindParam(":username", $_SESSION['siteusername']);
96
-			$stmt->bindParam(":comment", $text);
94
+            $stmt->bindParam(":id", $_user['username']);
95
+            $stmt->bindParam(":username", $_SESSION['siteusername']);
96
+            $stmt->bindParam(":comment", $text);
97 97
             $stmt->execute();
98 98
 
99 99
             $_user_update_utils->update_comment_cooldown_time($_SESSION['siteusername']);
@@ -105,10 +105,10 @@  discard block
 block discarded – undo
105 105
     }
106 106
 ?>
107 107
 <?php
108
-	$__server->page_embeds->page_title = "SubRocks - " . htmlspecialchars($_user['username']);
109
-	$__server->page_embeds->page_description = htmlspecialchars($_user['bio']);
110
-	$__server->page_embeds->page_image = "/dynamic/pfp/" . htmlspecialchars($_user['pfp']);
111
-	$__server->page_embeds->page_url = "https://subrock.rocks/";
108
+    $__server->page_embeds->page_title = "SubRocks - " . htmlspecialchars($_user['username']);
109
+    $__server->page_embeds->page_description = htmlspecialchars($_user['bio']);
110
+    $__server->page_embeds->page_image = "/dynamic/pfp/" . htmlspecialchars($_user['pfp']);
111
+    $__server->page_embeds->page_url = "https://subrock.rocks/";
112 112
 ?>
113 113
 <!DOCTYPE html>
114 114
 <html dir="ltr" xmlns:og="http://opengraphprotocol.org/schema/" lang="en">
@@ -140,27 +140,27 @@  discard block
 block discarded – undo
140 140
 				background-image: url(/dynamic/banners/<?php echo $_user['2012_bg']; ?>);
141 141
 				background-repeat: repeat;
142 142
 				<?php
143
-					switch($_user['2012_bgoption']) {
144
-						case "stretch":
145
-						echo "background-size: cover;";
146
-						break;
147
-						case "solid":
148
-						echo "";
149
-						break;
150
-						case "norepeat":
151
-						echo "background-repeat: no-repeat !important;";
152
-						break;
153
-						case "repeatxy":
154
-						echo "background-repeat: repeat;";
155
-						break;
156
-						case "repeaty":
157
-						echo "background-repeat: repeat-y;";
158
-						break;
159
-						case "repeatx":
160
-						echo "background-repeat: repeat-x;";
161
-						break;
162
-					}
163
-				?>
143
+                    switch($_user['2012_bgoption']) {
144
+                        case "stretch":
145
+                        echo "background-size: cover;";
146
+                        break;
147
+                        case "solid":
148
+                        echo "";
149
+                        break;
150
+                        case "norepeat":
151
+                        echo "background-repeat: no-repeat !important;";
152
+                        break;
153
+                        case "repeatxy":
154
+                        echo "background-repeat: repeat;";
155
+                        break;
156
+                        case "repeaty":
157
+                        echo "background-repeat: repeat-y;";
158
+                        break;
159
+                        case "repeatx":
160
+                        echo "background-repeat: repeat-x;";
161
+                        break;
162
+                    }
163
+                ?>
164 164
 			}
165 165
    		</style>
166 166
 		   <script>
@@ -188,9 +188,9 @@  discard block
 block discarded – undo
188 188
 					<div class="channel_customization"><?php require($_SERVER['DOCUMENT_ROOT'] . "/s/mod/channel_customization.php"); ?></div>
189 189
 				<?php } ?>
190 190
 				<?php
191
-					if(empty(trim($_user['bio'])))
192
-						$_user['bio'] = "This user has no description.";
193
-				?>
191
+                    if(empty(trim($_user['bio'])))
192
+                        $_user['bio'] = "This user has no description.";
193
+                ?>
194 194
 				<div id="content">
195 195
 					<div class="subscription-menu-expandable subscription-menu-expandable-channels3 yt-rounded ytg-wide hid">
196 196
 						<div class="content" id="recommended-channels-list"></div>
Please login to merge, or discard this patch.
web/public/s/mod/channel_featured.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -215,13 +215,13 @@  discard block
 block discarded – undo
215 215
 												<div class="module-view other-channels-view">
216 216
 													<h2 <?php if(@$_SESSION['siteusername'] == $_user['username']) { ?>style="display: inline-block;position: relative;bottom: 10px;"<?php } ?>>Featured Channels</h2> 
217 217
 													<?php if(@$_SESSION['siteusername'] == $_user['username']) { 
218
-														echo "<a href='#' style='float:right;font-size:11px;color:black;' onclick=';open_featured_channels();return false;'>edit</a>"; 
219
-													} ?>
218
+                                                        echo "<a href='#' style='float:right;font-size:11px;color:black;' onclick=';open_featured_channels();return false;'>edit</a>"; 
219
+                                                    } ?>
220 220
 													<ul class="channel-summary-list ">
221 221
 														<?php 
222
-															foreach($_user['featured_channels'] as $user) {
223
-																if($__user_h->user_exists($user)) {
224
-														?>
222
+                                                            foreach($_user['featured_channels'] as $user) {
223
+                                                                if($__user_h->user_exists($user)) {
224
+                                                        ?>
225 225
 															<li class="yt-tile-visible yt-uix-tile">
226 226
 																<div class="channel-summary clearfix channel-summary-compact">
227 227
 																	<div class="channel-summary-thumb">
@@ -245,19 +245,19 @@  discard block
 block discarded – undo
245 245
 											</div>
246 246
 
247 247
 											<?php 
248
-												$stmt = $__db->prepare("SELECT * FROM playlists WHERE author = :search ORDER BY id DESC LIMIT 10");
249
-												$stmt->bindParam(":search", $_user['username']);
250
-												$stmt->execute();
248
+                                                $stmt = $__db->prepare("SELECT * FROM playlists WHERE author = :search ORDER BY id DESC LIMIT 10");
249
+                                                $stmt->bindParam(":search", $_user['username']);
250
+                                                $stmt->execute();
251 251
 
252
-												if($stmt->rowCount() != 0) {
253
-											?>
252
+                                                if($stmt->rowCount() != 0) {
253
+                                            ?>
254 254
 												<div class="playlists-narrow channel-module yt-uix-c3-module-container">
255 255
 													<div class="module-view gh-featured">
256 256
 														<h2>Featured Playlists</h2>     
257 257
 														<?php
258
-														while($playlist = $stmt->fetch(PDO::FETCH_ASSOC)) { 
259
-															$playlist['videos'] = json_decode($playlist['videos']);
260
-														?> 
258
+                                                        while($playlist = $stmt->fetch(PDO::FETCH_ASSOC)) { 
259
+                                                            $playlist['videos'] = json_decode($playlist['videos']);
260
+                                                        ?> 
261 261
 															<div class="playlist yt-tile-visible yt-uix-tile">
262 262
 																<a href="/view_playlist?v=<?php echo $playlist['rid']; ?>">
263 263
 																<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.
web/public/s/mod/channel_feed.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -50,19 +50,19 @@  discard block
 block discarded – undo
50 50
 																	  ORDER BY 
51 51
 																		`date` DESC;");
52 52
                                                                         $stmt->bindParam(":comment_username", $_user['username']);
53
-																		$stmt->bindParam(":videos_username", $_user['username']);
53
+                                                                        $stmt->bindParam(":videos_username", $_user['username']);
54 54
                                                                         $stmt->execute();
55 55
                                                                         while($content = $stmt->fetch(PDO::FETCH_ASSOC)) { 
56
-																			if((int)$content['id']) {
57
-																				$content = $__video_h->fetch_comment_id($content['id']);
58
-																				$content['video'] = $__video_h->fetch_video_rid($content['toid']);
59
-																				$content['type'] = "comment";
60
-																			} else {
61
-																				$content = $__video_h->fetch_video_rid($content['id']);
62
-																				$content['type'] = "video";
63
-																			}
56
+                                                                            if((int)$content['id']) {
57
+                                                                                $content = $__video_h->fetch_comment_id($content['id']);
58
+                                                                                $content['video'] = $__video_h->fetch_video_rid($content['toid']);
59
+                                                                                $content['type'] = "comment";
60
+                                                                            } else {
61
+                                                                                $content = $__video_h->fetch_video_rid($content['id']);
62
+                                                                                $content['type'] = "video";
63
+                                                                            }
64 64
 
65
-																			if($content['type'] == "video") {
65
+                                                                            if($content['type'] == "video") {
66 66
                                                                     ?>
67 67
                                                                     <div class="feed-item-container" data-channel-key="UCc6W7efUSkd9YYoxOnctlFg">
68 68
                                                                         <a href="/user/<?php echo htmlspecialchars($content['author']); ?>?feature=plcp" class="feed-author-bubble " title="<?php echo htmlspecialchars($content['author']); ?>">  <span class="feed-item-author">
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
                                                                         </div>
135 135
                                                                     </div>
136 136
                                                                     <?php } else { 
137
-																		if($__video_h->video_exists($content['video']['rid'])) { ?>
137
+                                                                        if($__video_h->video_exists($content['video']['rid'])) { ?>
138 138
 																	<div class="feed-item-container" data-channel-key="UCXf1X2u5gsmuqcuTQlpOGhw">
139 139
 																		<a href="/user/<?php echo htmlspecialchars($content['author']); ?>?feature=plcp" class="feed-author-bubble " title="<?php echo htmlspecialchars($content['author']); ?>">  <span class="feed-item-author">
140 140
 																		<span class="video-thumb ux-thumb yt-thumb-square-28 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="<?php echo htmlspecialchars($content['author']); ?>" data-thumb="/dynamic/pfp/<?php echo $__user_h->fetch_pfp($content['author']); ?>" width="28"><span class="vertical-align"></span></span></span></span>
@@ -305,13 +305,13 @@  discard block
 block discarded – undo
305 305
 												<div class="module-view other-channels-view">
306 306
 													<h2 <?php if(@$_SESSION['siteusername'] == $_user['username']) { ?>style="display: inline-block;position: relative;bottom: 10px;"<?php } ?>>Featured Channels</h2> 
307 307
 													<?php if(@$_SESSION['siteusername'] == $_user['username']) { 
308
-														echo "<a href='#' style='float:right;font-size:11px;color:black;' onclick=';open_featured_channels();return false;'>edit</a>"; 
309
-													} ?>
308
+                                                        echo "<a href='#' style='float:right;font-size:11px;color:black;' onclick=';open_featured_channels();return false;'>edit</a>"; 
309
+                                                    } ?>
310 310
 													<ul class="channel-summary-list ">
311 311
 														<?php 
312
-															foreach($_user['featured_channels'] as $user) {
313
-																if($__user_h->user_exists($user)) {
314
-														?>
312
+                                                            foreach($_user['featured_channels'] as $user) {
313
+                                                                if($__user_h->user_exists($user)) {
314
+                                                        ?>
315 315
 															<li class="yt-tile-visible yt-uix-tile">
316 316
 																<div class="channel-summary clearfix channel-summary-compact">
317 317
 																	<div class="channel-summary-thumb">
@@ -335,19 +335,19 @@  discard block
 block discarded – undo
335 335
 											</div>
336 336
 
337 337
 											<?php 
338
-												$stmt = $__db->prepare("SELECT * FROM playlists WHERE author = :search ORDER BY id DESC LIMIT 10");
339
-												$stmt->bindParam(":search", $_user['username']);
340
-												$stmt->execute();
338
+                                                $stmt = $__db->prepare("SELECT * FROM playlists WHERE author = :search ORDER BY id DESC LIMIT 10");
339
+                                                $stmt->bindParam(":search", $_user['username']);
340
+                                                $stmt->execute();
341 341
 
342
-												if($stmt->rowCount() != 0) {
343
-											?>
342
+                                                if($stmt->rowCount() != 0) {
343
+                                            ?>
344 344
 												<div class="playlists-narrow channel-module yt-uix-c3-module-container">
345 345
 													<div class="module-view gh-featured">
346 346
 														<h2>Featured Playlists</h2>     
347 347
 														<?php
348
-														while($playlist = $stmt->fetch(PDO::FETCH_ASSOC)) { 
349
-															$playlist['videos'] = json_decode($playlist['videos']);
350
-														?> 
348
+                                                        while($playlist = $stmt->fetch(PDO::FETCH_ASSOC)) { 
349
+                                                            $playlist['videos'] = json_decode($playlist['videos']);
350
+                                                        ?> 
351 351
 															<div class="playlist yt-tile-visible yt-uix-tile">
352 352
 																<a href="/view_playlist?v=<?php echo $playlist['rid']; ?>">
353 353
 																<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.
web/public/s/mod/channel_playlists.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -215,13 +215,13 @@  discard block
 block discarded – undo
215 215
 												<div class="module-view other-channels-view">
216 216
 													<h2 <?php if(@$_SESSION['siteusername'] == $_user['username']) { ?>style="display: inline-block;position: relative;bottom: 10px;"<?php } ?>>Featured Channels</h2> 
217 217
 													<?php if(@$_SESSION['siteusername'] == $_user['username']) { 
218
-														echo "<a href='#' style='float:right;font-size:11px;color:black;' onclick=';open_featured_channels();return false;'>edit</a>"; 
219
-													} ?>
218
+                                                        echo "<a href='#' style='float:right;font-size:11px;color:black;' onclick=';open_featured_channels();return false;'>edit</a>"; 
219
+                                                    } ?>
220 220
 													<ul class="channel-summary-list ">
221 221
 														<?php 
222
-															foreach($_user['featured_channels'] as $user) {
223
-																if($__user_h->user_exists($user)) {
224
-														?>
222
+                                                            foreach($_user['featured_channels'] as $user) {
223
+                                                                if($__user_h->user_exists($user)) {
224
+                                                        ?>
225 225
 															<li class="yt-tile-visible yt-uix-tile">
226 226
 																<div class="channel-summary clearfix channel-summary-compact">
227 227
 																	<div class="channel-summary-thumb">
@@ -245,19 +245,19 @@  discard block
 block discarded – undo
245 245
 											</div>
246 246
 
247 247
 											<?php 
248
-												$stmt = $__db->prepare("SELECT * FROM playlists WHERE author = :search ORDER BY id DESC LIMIT 10");
249
-												$stmt->bindParam(":search", $_user['username']);
250
-												$stmt->execute();
248
+                                                $stmt = $__db->prepare("SELECT * FROM playlists WHERE author = :search ORDER BY id DESC LIMIT 10");
249
+                                                $stmt->bindParam(":search", $_user['username']);
250
+                                                $stmt->execute();
251 251
 
252
-												if($stmt->rowCount() != 0) {
253
-											?>
252
+                                                if($stmt->rowCount() != 0) {
253
+                                            ?>
254 254
 												<div class="playlists-narrow channel-module yt-uix-c3-module-container">
255 255
 													<div class="module-view gh-featured">
256 256
 														<h2>Featured Playlists</h2>     
257 257
 														<?php
258
-														while($playlist = $stmt->fetch(PDO::FETCH_ASSOC)) { 
259
-															$playlist['videos'] = json_decode($playlist['videos']);
260
-														?> 
258
+                                                        while($playlist = $stmt->fetch(PDO::FETCH_ASSOC)) { 
259
+                                                            $playlist['videos'] = json_decode($playlist['videos']);
260
+                                                        ?> 
261 261
 															<div class="playlist yt-tile-visible yt-uix-tile">
262 262
 																<a href="/view_playlist?v=<?php echo $playlist['rid']; ?>">
263 263
 																<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.
web/public/admin/bans.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,10 +12,10 @@
 block discarded – undo
12 12
 <?php if(!isset($_SESSION['siteusername'])) { header("Location: /sign_in"); } ?>
13 13
 <?php if(!$__user_h->if_admin($_SESSION['siteusername'])) { header("Location: /"); } ?>
14 14
 <?php
15
-	$__server->page_embeds->page_title = "SubRocks - Ban User";
16
-	$__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube.";
17
-	$__server->page_embeds->page_image = "/yt/imgbin/full-size-logo.png";
18
-	$__server->page_embeds->page_url = "https://subrock.rocks/";
15
+    $__server->page_embeds->page_title = "SubRocks - Ban User";
16
+    $__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube.";
17
+    $__server->page_embeds->page_image = "/yt/imgbin/full-size-logo.png";
18
+    $__server->page_embeds->page_url = "https://subrock.rocks/";
19 19
 ?>
20 20
 <!DOCTYPE html>
21 21
 <html dir="ltr">
Please login to merge, or discard this patch.
web/public/view_playlist.php 1 patch
Indentation   +68 added lines, -68 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']);
@@ -104,10 +104,10 @@  discard block
 block discarded – undo
104 104
     }
105 105
 ?>
106 106
 <?php
107
-	$__server->page_embeds->page_title = "SubRocks - " . htmlspecialchars($_playlist['title']);
108
-	$__server->page_embeds->page_description = htmlspecialchars($_playlist['description']);
109
-	$__server->page_embeds->page_image = "/yt/imgbin/full-size-logo.png";
110
-	$__server->page_embeds->page_url = "https://subrock.rocks/";
107
+    $__server->page_embeds->page_title = "SubRocks - " . htmlspecialchars($_playlist['title']);
108
+    $__server->page_embeds->page_description = htmlspecialchars($_playlist['description']);
109
+    $__server->page_embeds->page_image = "/yt/imgbin/full-size-logo.png";
110
+    $__server->page_embeds->page_url = "https://subrock.rocks/";
111 111
 ?>	
112 112
 <!DOCTYPE html>
113 113
 <html dir="ltr" xmlns:og="http://opengraphprotocol.org/schema/" lang="en">
@@ -135,27 +135,27 @@  discard block
 block discarded – undo
135 135
 				background-image: url(/dynamic/banners/<?php echo $_user['2012_bg']; ?>);
136 136
 				background-repeat: repeat;
137 137
 				<?php
138
-					switch($_user['2012_bgoption']) {
139
-						case "stretch":
140
-						echo "background-size: cover;";
141
-						break;
142
-						case "solid":
143
-						echo "";
144
-						break;
145
-						case "norepeat":
146
-						echo "background-repeat: no-repeat !important;";
147
-						break;
148
-						case "repeatxy":
149
-						echo "background-repeat: repeat;";
150
-						break;
151
-						case "repeaty":
152
-						echo "background-repeat: repeat-y;";
153
-						break;
154
-						case "repeatx":
155
-						echo "background-repeat: repeat-x;";
156
-						break;
157
-					}
158
-				?>
138
+                    switch($_user['2012_bgoption']) {
139
+                        case "stretch":
140
+                        echo "background-size: cover;";
141
+                        break;
142
+                        case "solid":
143
+                        echo "";
144
+                        break;
145
+                        case "norepeat":
146
+                        echo "background-repeat: no-repeat !important;";
147
+                        break;
148
+                        case "repeatxy":
149
+                        echo "background-repeat: repeat;";
150
+                        break;
151
+                        case "repeaty":
152
+                        echo "background-repeat: repeat-y;";
153
+                        break;
154
+                        case "repeatx":
155
+                        echo "background-repeat: repeat-x;";
156
+                        break;
157
+                    }
158
+                ?>
159 159
 			}
160 160
    		</style>
161 161
 	</head>
@@ -172,9 +172,9 @@  discard block
 block discarded – undo
172 172
 					<div class="channel_customization"><?php require($_SERVER['DOCUMENT_ROOT'] . "/s/mod/channel_customization.php"); ?></div>
173 173
 				<?php } ?>
174 174
 				<?php
175
-					if(empty(trim($_user['bio'])))
176
-						$_user['bio'] = "This user has no description.";
177
-				?>
175
+                    if(empty(trim($_user['bio'])))
176
+                        $_user['bio'] = "This user has no description.";
177
+                ?>
178 178
 				<div id="content">
179 179
 					<div class="subscription-menu-expandable subscription-menu-expandable-channels3 yt-rounded ytg-wide hid">
180 180
 						<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
 																		"> 
@@ -477,9 +477,9 @@  discard block
 block discarded – undo
477 477
 													<h2>Featured Channels</h2>
478 478
 													<ul class="channel-summary-list ">
479 479
 														<?php 
480
-															foreach($_user['featured_channels'] as $user) {
481
-																if($__user_h->user_exists($user)) {
482
-														?>
480
+                                                            foreach($_user['featured_channels'] as $user) {
481
+                                                                if($__user_h->user_exists($user)) {
482
+                                                        ?>
483 483
 															<li class="yt-tile-visible yt-uix-tile">
484 484
 																<div class="channel-summary clearfix channel-summary-compact">
485 485
 																	<div class="channel-summary-thumb">
@@ -503,19 +503,19 @@  discard block
 block discarded – undo
503 503
 											</div>
504 504
 
505 505
 											<?php 
506
-												$stmt = $__db->prepare("SELECT * FROM playlists WHERE author = :search ORDER BY id DESC LIMIT 10");
507
-												$stmt->bindParam(":search", $_user['username']);
508
-												$stmt->execute();
506
+                                                $stmt = $__db->prepare("SELECT * FROM playlists WHERE author = :search ORDER BY id DESC LIMIT 10");
507
+                                                $stmt->bindParam(":search", $_user['username']);
508
+                                                $stmt->execute();
509 509
 
510
-												if($stmt->rowCount() != 0) {
511
-											?>
510
+                                                if($stmt->rowCount() != 0) {
511
+                                            ?>
512 512
 												<div class="playlists-narrow channel-module yt-uix-c3-module-container">
513 513
 													<div class="module-view gh-featured">
514 514
 														<h2>Featured Playlists</h2>     
515 515
 														<?php
516
-														while($playlist = $stmt->fetch(PDO::FETCH_ASSOC)) { 
517
-															$playlist['videos'] = json_decode($playlist['videos']);
518
-														?> 
516
+                                                        while($playlist = $stmt->fetch(PDO::FETCH_ASSOC)) { 
517
+                                                            $playlist['videos'] = json_decode($playlist['videos']);
518
+                                                        ?> 
519 519
 															<div class="playlist yt-tile-visible yt-uix-tile">
520 520
 																<a href="/view_playlist?v=<?php echo $playlist['rid']; ?>">
521 521
 																<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.
web/public/channel_feed.php 1 patch
Indentation   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@  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");
@@ -26,21 +26,21 @@  discard block
 block discarded – undo
26 26
         return preg_replace('/[^A-Za-z0-9\-]/', '', $string); // Removes special chars.
27 27
     }
28 28
 
29
-	function addhttp($url) {
30
-		if (!preg_match("~^(?:f|ht)tps?://~i", $url)) {
31
-			$url = "http://" . $url;
32
-		}
33
-		return $url;
34
-	}
29
+    function addhttp($url) {
30
+        if (!preg_match("~^(?:f|ht)tps?://~i", $url)) {
31
+            $url = "http://" . $url;
32
+        }
33
+        return $url;
34
+    }
35 35
 
36 36
     function check_valid_colorhex($colorCode) {
37 37
         // If user accidentally passed along the # sign, strip it off
38 38
         $colorCode = ltrim($colorCode, '#');
39 39
     
40 40
         if (
41
-              ctype_xdigit($colorCode) &&
41
+                ctype_xdigit($colorCode) &&
42 42
               (strlen($colorCode) == 6 || strlen($colorCode) == 3))
43
-                   return true;
43
+                    return true;
44 44
     
45 45
         else return false;
46 46
     }
@@ -75,8 +75,8 @@  discard block
 block discarded – undo
75 75
     if(!check_valid_colorhex($_user['primary_color_text']) && strlen($_user['primary_color_text']) != 6) { $_user['primary_color_text'] = ""; }
76 76
     if(!check_valid_colorhex($_user['2009_bgcolor']) && strlen($_user['2009_bgcolor']) != 6) { $_user['2009_bgcolor'] = ""; }
77 77
 
78
-	if(isset($_SESSION['siteusername']))
79
-    	$__user_i->check_view_channel($_user['username'], @$_SESSION['siteusername']);
78
+    if(isset($_SESSION['siteusername']))
79
+        $__user_i->check_view_channel($_user['username'], @$_SESSION['siteusername']);
80 80
 
81 81
     if($_SERVER['REQUEST_METHOD'] == 'POST') {
82 82
         $error = array();
@@ -90,11 +90,11 @@  discard block
 block discarded – undo
90 90
         //if(ifBlocked(@$_SESSION['siteusername'], $user['username'], $__db)) { $error = "This user has blocked you!"; $error['status'] = true; } 
91 91
 
92 92
         if(!isset($error['message'])) {
93
-			$text = $_POST['comment'];
93
+            $text = $_POST['comment'];
94 94
             $stmt = $__db->prepare("INSERT INTO profile_comments (toid, author, comment) VALUES (:id, :username, :comment)");
95
-			$stmt->bindParam(":id", $_user['username']);
96
-			$stmt->bindParam(":username", $_SESSION['siteusername']);
97
-			$stmt->bindParam(":comment", $text);
95
+            $stmt->bindParam(":id", $_user['username']);
96
+            $stmt->bindParam(":username", $_SESSION['siteusername']);
97
+            $stmt->bindParam(":comment", $text);
98 98
             $stmt->execute();
99 99
 
100 100
             $_user_update_utils->update_comment_cooldown_time($_SESSION['siteusername']);
@@ -106,10 +106,10 @@  discard block
 block discarded – undo
106 106
     }
107 107
 ?>
108 108
 <?php
109
-	$__server->page_embeds->page_title = "SubRocks - " . htmlspecialchars($_user['username']);
110
-	$__server->page_embeds->page_description = htmlspecialchars($_user['bio']);
111
-	$__server->page_embeds->page_image = "/dynamic/pfp/" . htmlspecialchars($_user['pfp']);
112
-	$__server->page_embeds->page_url = "https://subrock.rocks/";
109
+    $__server->page_embeds->page_title = "SubRocks - " . htmlspecialchars($_user['username']);
110
+    $__server->page_embeds->page_description = htmlspecialchars($_user['bio']);
111
+    $__server->page_embeds->page_image = "/dynamic/pfp/" . htmlspecialchars($_user['pfp']);
112
+    $__server->page_embeds->page_url = "https://subrock.rocks/";
113 113
 ?>
114 114
 <!DOCTYPE html>
115 115
 <html dir="ltr" xmlns:og="http://opengraphprotocol.org/schema/" lang="en">
@@ -137,27 +137,27 @@  discard block
 block discarded – undo
137 137
 				background-image: url(/dynamic/banners/<?php echo $_user['2012_bg']; ?>);
138 138
 				background-repeat: repeat;
139 139
 				<?php
140
-					switch($_user['2012_bgoption']) {
141
-						case "stretch":
142
-						echo "background-size: cover;";
143
-						break;
144
-						case "solid":
145
-						echo "";
146
-						break;
147
-						case "norepeat":
148
-						echo "background-repeat: no-repeat !important;";
149
-						break;
150
-						case "repeatxy":
151
-						echo "background-repeat: repeat;";
152
-						break;
153
-						case "repeaty":
154
-						echo "background-repeat: repeat-y;";
155
-						break;
156
-						case "repeatx":
157
-						echo "background-repeat: repeat-x;";
158
-						break;
159
-					}
160
-				?>
140
+                    switch($_user['2012_bgoption']) {
141
+                        case "stretch":
142
+                        echo "background-size: cover;";
143
+                        break;
144
+                        case "solid":
145
+                        echo "";
146
+                        break;
147
+                        case "norepeat":
148
+                        echo "background-repeat: no-repeat !important;";
149
+                        break;
150
+                        case "repeatxy":
151
+                        echo "background-repeat: repeat;";
152
+                        break;
153
+                        case "repeaty":
154
+                        echo "background-repeat: repeat-y;";
155
+                        break;
156
+                        case "repeatx":
157
+                        echo "background-repeat: repeat-x;";
158
+                        break;
159
+                    }
160
+                ?>
161 161
 			}
162 162
    		</style>
163 163
 	</head>
@@ -174,9 +174,9 @@  discard block
 block discarded – undo
174 174
 					<div class="channel_customization"><?php require($_SERVER['DOCUMENT_ROOT'] . "/s/mod/channel_customization.php"); ?></div>
175 175
 				<?php } ?> 
176 176
 				<?php
177
-					if(empty(trim($_user['bio'])))
178
-						$_user['bio'] = "This user has no description.";
179
-				?>
177
+                    if(empty(trim($_user['bio'])))
178
+                        $_user['bio'] = "This user has no description.";
179
+                ?>
180 180
 				<div id="content">
181 181
 					<div class="subscription-menu-expandable subscription-menu-expandable-channels3 yt-rounded ytg-wide hid">
182 182
 						<div class="content" id="recommended-channels-list"></div>
Please login to merge, or discard this patch.