Test Failed
Pull Request — main (#32)
by
unknown
02:53
created
web/public/uploaded_video.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -12,26 +12,26 @@
 block discarded – undo
12 12
 <?php $__db_h = new db_helper(); ?>
13 13
 <?php $__time_h = new time_helper(); ?>
14 14
 <?php
15
-	if(!$__video_h->video_exists($_GET['v']))
16
-		header("Location: /?error=Your video has not processed correctly. Try reuploading it with a shorter title, description, or tag.");
15
+    if(!$__video_h->video_exists($_GET['v']))
16
+        header("Location: /?error=Your video has not processed correctly. Try reuploading it with a shorter title, description, or tag.");
17 17
 
18
-	$_video = $__video_h->fetch_video_rid($_GET['v']); 
19
-	$_video['video_responses'] = $__video_h->get_video_responses($_video['rid']);
20
-	$_video['age'] = $__time_h->time_elapsed_string($_video['publish']);		
21
-	$_video['duration'] = $__time_h->timestamp($_video['duration']);
22
-	$_video['views'] = $__video_h->fetch_video_views($_video['rid']);
23
-	$_video['author'] = htmlspecialchars($_video['author']);		
24
-	$_video['title'] = htmlspecialchars($_video['title']);
25
-	$_video['description'] = $__video_h->shorten_description($_video['description'], 50);
18
+    $_video = $__video_h->fetch_video_rid($_GET['v']); 
19
+    $_video['video_responses'] = $__video_h->get_video_responses($_video['rid']);
20
+    $_video['age'] = $__time_h->time_elapsed_string($_video['publish']);		
21
+    $_video['duration'] = $__time_h->timestamp($_video['duration']);
22
+    $_video['views'] = $__video_h->fetch_video_views($_video['rid']);
23
+    $_video['author'] = htmlspecialchars($_video['author']);		
24
+    $_video['title'] = htmlspecialchars($_video['title']);
25
+    $_video['description'] = $__video_h->shorten_description($_video['description'], 50);
26 26
 
27 27
     if($_SESSION['siteusername'] != $_video['author'])
28 28
         header("Location: /");
29 29
 ?>
30 30
 <?php
31
-	$__server->page_embeds->page_title = "SubRocks - Uploaded Video";
32
-	$__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube.";
33
-	$__server->page_embeds->page_image = "/yt/imgbin/full-size-logo.png";
34
-	$__server->page_embeds->page_url = "https://subrock.rocks/";
31
+    $__server->page_embeds->page_title = "SubRocks - Uploaded Video";
32
+    $__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube.";
33
+    $__server->page_embeds->page_image = "/yt/imgbin/full-size-logo.png";
34
+    $__server->page_embeds->page_url = "https://subrock.rocks/";
35 35
 ?>
36 36
 <!DOCTYPE html>
37 37
 <html>
Please login to merge, or discard this patch.
web/public/my_videos.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,10 +8,10 @@
 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 - My Videos";
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 - My Videos";
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
 <?php if(!isset($_SESSION['siteusername'])) { header("Location: /sign_in"); } ?>
17 17
 <!DOCTYPE html>
Please login to merge, or discard this patch.
web/public/playlists.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@
 block discarded – undo
37 37
     }
38 38
 ?>
39 39
 <?php
40
-	$__server->page_embeds->page_title = "SubRocks - Your Playlists";
41
-	$__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube.";
42
-	$__server->page_embeds->page_image = "/yt/imgbin/full-size-logo.png";
43
-	$__server->page_embeds->page_url = "https://subrock.rocks/";
40
+    $__server->page_embeds->page_title = "SubRocks - Your Playlists";
41
+    $__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube.";
42
+    $__server->page_embeds->page_image = "/yt/imgbin/full-size-logo.png";
43
+    $__server->page_embeds->page_url = "https://subrock.rocks/";
44 44
 ?>
45 45
 <!DOCTYPE html>
46 46
 <html dir="ltr">
Please login to merge, or discard this patch.
web/public/edit_playlist.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,10 +8,10 @@
 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 - Edit Playlist";
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 - Edit Playlist";
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
 <?php if(!isset($_SESSION['siteusername'])) { header("Location: /sign_in"); } ?>
17 17
 <?php $_playlist = $__video_h->fetch_playlist_rid($_GET['id']); ?>
Please login to merge, or discard this patch.
web/public/favorite_videos.php 1 patch
Indentation   +30 added lines, -30 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">
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
                                 ?>
179 179
                                 <?php 
180 180
                                     $stmt6 = $__db->prepare("SELECT * FROM favorite_video WHERE sender = :search ORDER BY id DESC LIMIT :pfirst, :pper");
181
-									$stmt6->bindParam(":search", $search);
181
+                                    $stmt6->bindParam(":search", $search);
182 182
                                     $stmt6->bindParam(":pfirst", $page_first_result);
183 183
                                     $stmt6->bindParam(":pper", $results_per_page);
184 184
                                     $stmt6->execute();
@@ -195,32 +195,32 @@  discard block
 block discarded – undo
195 195
                                     
196 196
                                     <?php
197 197
                                         while($video = $stmt6->fetch(PDO::FETCH_ASSOC)) { 
198
-											if($__video_h->video_exists($video['reciever'])) {
199
-												$_video = $__video_h->fetch_video_rid($video['reciever']);
200
-												$_video['video_responses'] = $__video_h->get_video_responses($_video['rid']);
201
-												$_video['age'] = $__time_h->time_elapsed_string($_video['publish']);		
202
-												$_video['duration'] = $__time_h->timestamp($_video['duration']);
203
-												$_video['views'] = $__video_h->fetch_video_views($_video['rid']);
204
-												$_video['author'] = htmlspecialchars($_video['author']);		
205
-												$_video['title'] = htmlspecialchars($_video['title']);
206
-												$_video['description'] = $__video_h->shorten_description($_video['description'], 50);
207
-
208
-												if($_video['thumbnail'] == ".png" && $_video['filename'] == ".mp4") {
209
-													$status = "Corrupted";
210
-												} else if($_video['visibility'] == "v") {
211
-													$status = "Approved";
212
-												} else if($_video['visibility'] == "n") {
213
-													$status = "Approved";
214
-												} else if($_video['visibility'] == "o") {
215
-													$status = "Disapproved";
216
-												} else {
217
-													$status = "Unknown";
218
-												}                      
198
+                                            if($__video_h->video_exists($video['reciever'])) {
199
+                                                $_video = $__video_h->fetch_video_rid($video['reciever']);
200
+                                                $_video['video_responses'] = $__video_h->get_video_responses($_video['rid']);
201
+                                                $_video['age'] = $__time_h->time_elapsed_string($_video['publish']);		
202
+                                                $_video['duration'] = $__time_h->timestamp($_video['duration']);
203
+                                                $_video['views'] = $__video_h->fetch_video_views($_video['rid']);
204
+                                                $_video['author'] = htmlspecialchars($_video['author']);		
205
+                                                $_video['title'] = htmlspecialchars($_video['title']);
206
+                                                $_video['description'] = $__video_h->shorten_description($_video['description'], 50);
207
+
208
+                                                if($_video['thumbnail'] == ".png" && $_video['filename'] == ".mp4") {
209
+                                                    $status = "Corrupted";
210
+                                                } else if($_video['visibility'] == "v") {
211
+                                                    $status = "Approved";
212
+                                                } else if($_video['visibility'] == "n") {
213
+                                                    $status = "Approved";
214
+                                                } else if($_video['visibility'] == "o") {
215
+                                                    $status = "Disapproved";
216
+                                                } else {
217
+                                                    $status = "Unknown";
218
+                                                }                      
219 219
 												
220
-												if($_video['commenting'] == "a") 
221
-													$_video['commentstatus'] = "Commenting allowed";
222
-												else 
223
-													$_video['commentstatus'] = "Commenting disallowed";
220
+                                                if($_video['commenting'] == "a") 
221
+                                                    $_video['commentstatus'] = "Commenting allowed";
222
+                                                else 
223
+                                                    $_video['commentstatus'] = "Commenting disallowed";
224 224
                                     ?> 
225 225
                                     <tr style="margin-top: 5px;" id="videoslist">
226 226
                                         <td class="video-manager-left">
Please login to merge, or discard this patch.
web/public/inbox/pm.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,10 +10,10 @@
 block discarded – undo
10 10
 <?php $__time_h = new time_helper(); ?>
11 11
 <?php if(!isset($_SESSION['siteusername'])) { header("Location: /sign_in"); } ?>
12 12
 <?php
13
-	$__server->page_embeds->page_title = "SubRocks - Personal Messages";
14
-	$__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube.";
15
-	$__server->page_embeds->page_image = "/yt/imgbin/full-size-logo.png";
16
-	$__server->page_embeds->page_url = "https://subrock.rocks/";
13
+    $__server->page_embeds->page_title = "SubRocks - Personal Messages";
14
+    $__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube.";
15
+    $__server->page_embeds->page_image = "/yt/imgbin/full-size-logo.png";
16
+    $__server->page_embeds->page_url = "https://subrock.rocks/";
17 17
 ?>
18 18
 <!DOCTYPE html>
19 19
 <html dir="ltr">
Please login to merge, or discard this patch.
web/public/inbox/notifications.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@
 block discarded – undo
9 9
 <?php $__db_h = new db_helper(); ?>
10 10
 <?php $__time_h = new time_helper(); ?>
11 11
 <?php
12
-	$__server->page_embeds->page_title = "SubRocks - Notifications";
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 - Notifications";
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
 <?php if(!isset($_SESSION['siteusername'])) { header("Location: /sign_in"); } ?>
18 18
 <!DOCTYPE html>
Please login to merge, or discard this patch.
web/public/inbox/compose.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,10 +10,10 @@
 block discarded – undo
10 10
 <?php $__time_h = new time_helper(); ?>
11 11
 <?php if(!isset($_SESSION['siteusername'])) { header("Location: /sign_in"); } ?>
12 12
 <?php
13
-	$__server->page_embeds->page_title = "SubRocks - Compose";
14
-	$__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube.";
15
-	$__server->page_embeds->page_image = "/yt/imgbin/full-size-logo.png";
16
-	$__server->page_embeds->page_url = "https://subrock.rocks/";
13
+    $__server->page_embeds->page_title = "SubRocks - Compose";
14
+    $__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube.";
15
+    $__server->page_embeds->page_image = "/yt/imgbin/full-size-logo.png";
16
+    $__server->page_embeds->page_url = "https://subrock.rocks/";
17 17
 ?>
18 18
 <?php
19 19
     if($_SERVER['REQUEST_METHOD'] == 'POST') {
Please login to merge, or discard this patch.
web/public/inbox/index.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,10 +11,10 @@
 block discarded – undo
11 11
 <?php $__time_h = new time_helper(); ?>
12 12
 <?php if(!isset($_SESSION['siteusername'])) { header("Location: /sign_in"); } ?>
13 13
 <?php
14
-	$__server->page_embeds->page_title = "SubRocks - Inbox";
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 - Inbox";
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 dir="ltr">
Please login to merge, or discard this patch.