Test Failed
Push — main ( e9fad0...f33069 )
by chief
07:43
created
web/public/inbox/index.php 2 patches
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.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 <?php $__user_u = new user_update($__db); ?>
10 10
 <?php $__db_h = new db_helper(); ?>
11 11
 <?php $__time_h = new time_helper(); ?>
12
-<?php if(!isset($_SESSION['siteusername'])) { header("Location: /sign_in"); } ?>
12
+<?php if (!isset($_SESSION['siteusername'])) { header("Location: /sign_in"); } ?>
13 13
 <?php
14 14
 	$__server->page_embeds->page_title = "SubRocks - Inbox";
15 15
 	$__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube.";
@@ -170,15 +170,15 @@  discard block
 block discarded – undo
170 170
                                     $stmt->execute();
171 171
 
172 172
                                     $number_of_result = $stmt->rowCount();
173
-                                    $number_of_page = ceil ($number_of_result / $results_per_page);  
173
+                                    $number_of_page = ceil($number_of_result/$results_per_page);  
174 174
 
175
-                                    if (!isset ($_GET['page']) ) {  
175
+                                    if (!isset ($_GET['page'])) {  
176 176
                                         $page = 1;  
177 177
                                     } else {  
178
-                                        $page = (int)$_GET['page'];  
178
+                                        $page = (int) $_GET['page'];  
179 179
                                     }  
180 180
 
181
-                                    $page_first_result = ($page - 1) * $results_per_page;  
181
+                                    $page_first_result = ($page - 1)*$results_per_page;  
182 182
 
183 183
                                     $stmt6 = $__db->prepare("SELECT * FROM pms WHERE touser = :search ORDER BY id DESC LIMIT :pfirst, :pper");
184 184
                                     $stmt6->bindParam(":search", $search);
@@ -203,8 +203,8 @@  discard block
 block discarded – undo
203 203
                                     </tr>
204 204
                                     
205 205
                                     <?php
206
-                                        while($inbox = $stmt->fetch(PDO::FETCH_ASSOC)) { 
207
-                                            if($__video_h->video_exists($inbox['video_attribute'])) {
206
+                                        while ($inbox = $stmt->fetch(PDO::FETCH_ASSOC)) { 
207
+                                            if ($__video_h->video_exists($inbox['video_attribute'])) {
208 208
                                                 $inbox['video'] = $__video_h->fetch_video_rid($inbox['video_attribute']);
209 209
                                                 $inbox['video_attr_exists'] = true;
210 210
 
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
                                     ?> 
219 219
                                     <tr style="margin-top: 5px;" id="videoslist">
220 220
                                             <!--
221
-                                            <?php if($inbox['readed'] == "n") { ?>
221
+                                            <?php if ($inbox['readed'] == "n") { ?>
222 222
                                                 <a style="position:relative;top:7px;color: white;text-decoration: none;background-color: #d54343;padding: 7px;padding-left: 10px;margin-right: 12px;display: inline;" href="/inbox/">
223 223
                                                 NEW
224 224
                                                 </a>
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
                                         <td class="video-manager-stats" style="background: none;padding-left: 8px;">
242 242
                                             <h3><?php echo htmlspecialchars($inbox['subject']); ?></h3>
243 243
                                             <?php echo $__video_h->shorten_description($inbox['message'], 300, true); ?>
244
-                                            <?php if($inbox['video_attr_exists']) { ?>
244
+                                            <?php if ($inbox['video_attr_exists']) { ?>
245 245
                                                 <hr>
246 246
                                                 <ul>
247 247
                                                     <li class="video-list-item "><a href="/watch?v=<?php echo $inbox['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 $inbox['video']['title']; ?>" data-thumb="/dynamic/thumbs/<?php echo $inbox['video']['thumbnail']; ?>" width="120"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $inbox['video']['duration']; ?></span>
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
                                     </div>
269 269
                                 </center><br>
270 270
 
271
-                                <?php for($page = 1; $page<= $number_of_page; $page++) { ?>
271
+                                <?php for ($page = 1; $page <= $number_of_page; $page++) { ?>
272 272
                                     <button class="yt-uix-button yt-uix-button-default" onclick="ajax_fetch(<?php echo $page; ?>)"><?php echo $page; ?></button>
273 273
                                 <?php } ?>   
274 274
 
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
                                 </script>
293 293
 
294 294
                                 <?php 
295
-                                    if($stmt6->rowCount() == 0) { echo "
295
+                                    if ($stmt6->rowCount() == 0) { echo "
296 296
                                         You currently have no messages in your inbox.
297 297
                                     "; 
298 298
                                 } ?>
Please login to merge, or discard this patch.
web/public/inbox/sent.php 2 patches
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 - Sent 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 - Sent 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.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 <?php $__user_u = new user_update($__db); ?>
9 9
 <?php $__db_h = new db_helper(); ?>
10 10
 <?php $__time_h = new time_helper(); ?>
11
-<?php if(!isset($_SESSION['siteusername'])) { header("Location: /sign_in"); } ?>
11
+<?php if (!isset($_SESSION['siteusername'])) { header("Location: /sign_in"); } ?>
12 12
 <?php
13 13
 	$__server->page_embeds->page_title = "SubRocks - Sent Messages";
14 14
 	$__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube.";
@@ -169,15 +169,15 @@  discard block
 block discarded – undo
169 169
                                     $stmt->execute();
170 170
 
171 171
                                     $number_of_result = $stmt->rowCount();
172
-                                    $number_of_page = ceil ($number_of_result / $results_per_page);  
172
+                                    $number_of_page = ceil($number_of_result/$results_per_page);  
173 173
 
174
-                                    if (!isset ($_GET['page']) ) {  
174
+                                    if (!isset ($_GET['page'])) {  
175 175
                                         $page = 1;  
176 176
                                     } else {  
177
-                                        $page = (int)$_GET['page'];  
177
+                                        $page = (int) $_GET['page'];  
178 178
                                     }  
179 179
 
180
-                                    $page_first_result = ($page - 1) * $results_per_page;  
180
+                                    $page_first_result = ($page - 1)*$results_per_page;  
181 181
 
182 182
                                     $stmt6 = $__db->prepare("SELECT * FROM pms WHERE owner = :search ORDER BY id DESC LIMIT :pfirst, :pper");
183 183
                                     $stmt6->bindParam(":search", $search);
@@ -202,8 +202,8 @@  discard block
 block discarded – undo
202 202
                                     </tr>
203 203
                                     
204 204
                                     <?php
205
-                                        while($inbox = $stmt->fetch(PDO::FETCH_ASSOC)) { 
206
-                                            if($__video_h->video_exists($inbox['video_attribute'])) {
205
+                                        while ($inbox = $stmt->fetch(PDO::FETCH_ASSOC)) { 
206
+                                            if ($__video_h->video_exists($inbox['video_attribute'])) {
207 207
                                                 $inbox['video'] = $__video_h->fetch_video_rid($inbox['video_attribute']);
208 208
                                                 $inbox['video_attr_exists'] = true;
209 209
 
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
                                     ?> 
218 218
                                     <tr style="margin-top: 5px;" id="videoslist">
219 219
                                             <!--
220
-                                            <?php if($inbox['readed'] == "n") { ?>
220
+                                            <?php if ($inbox['readed'] == "n") { ?>
221 221
                                                 <a style="position:relative;top:7px;color: white;text-decoration: none;background-color: #d54343;padding: 7px;padding-left: 10px;margin-right: 12px;display: inline;" href="/inbox/">
222 222
                                                 NEW
223 223
                                                 </a>
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
                                         <td class="video-manager-stats" style="background: none;padding-left: 8px;">
241 241
                                             <h3><?php echo htmlspecialchars($inbox['subject']); ?></h3>
242 242
                                             <?php echo $__video_h->shorten_description($inbox['message'], 300, true); ?>
243
-                                            <?php if($inbox['video_attr_exists']) { ?>
243
+                                            <?php if ($inbox['video_attr_exists']) { ?>
244 244
                                                 <hr>
245 245
                                                 <ul>
246 246
                                                     <li class="video-list-item "><a href="/watch?v=<?php echo $inbox['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 $inbox['video']['title']; ?>" data-thumb="/dynamic/thumbs/<?php echo $inbox['video']['thumbnail']; ?>" width="120"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $inbox['video']['duration']; ?></span>
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
                                     </div>
268 268
                                 </center><br>
269 269
 
270
-                                <?php for($page = 1; $page<= $number_of_page; $page++) { ?>
270
+                                <?php for ($page = 1; $page <= $number_of_page; $page++) { ?>
271 271
                                     <button class="yt-uix-button yt-uix-button-default" onclick="ajax_fetch(<?php echo $page; ?>)"><?php echo $page; ?></button>
272 272
                                 <?php } ?>   
273 273
 
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
                                 </script>
292 292
 
293 293
                                 <?php 
294
-                                    if($stmt6->rowCount() == 0) { echo "
294
+                                    if ($stmt6->rowCount() == 0) { echo "
295 295
                                         You currently have no sent messages in your inbox.
296 296
                                     "; 
297 297
                                 } ?>
Please login to merge, or discard this patch.