@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | <?php $__user_h = new user_helper($__db); ?> |
11 | 11 | <?php $__db_h = new db_helper(); ?> |
12 | 12 | <?php $__time_h = new time_helper(); ?> |
13 | -<?php if(!isset($_SESSION['siteusername'])) { header("Location: /sign_in"); } ?> |
|
13 | +<?php if (!isset($_SESSION['siteusername'])) { header("Location: /sign_in"); } ?> |
|
14 | 14 | <!DOCTYPE html> |
15 | 15 | <html dir="ltr"> |
16 | 16 | <head> |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | ?> |
161 | 161 | |
162 | 162 | <div class="my_videos_ajax"> |
163 | - <?php while($user = $stmt->fetch(PDO::FETCH_ASSOC)) { ?> |
|
163 | + <?php while ($user = $stmt->fetch(PDO::FETCH_ASSOC)) { ?> |
|
164 | 164 | <div style="width: 33%;display: inline-block;"> |
165 | 165 | <img style="width: 50px;height:50px;" src="/dynamic/pfp/<?php echo $__user_h->fetch_pfp($user['reciever']); ?>"> |
166 | 166 | <span style="display: inline-block; vertical-align:top;width: 100px;font-size: 11px;"> |
@@ -8,10 +8,10 @@ |
||
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 - Replace me"; |
|
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 - Replace me"; |
|
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> |
@@ -8,17 +8,17 @@ |
||
8 | 8 | <?php $__db_h = new db_helper(); ?> |
9 | 9 | <?php $__time_h = new time_helper(); ?> |
10 | 10 | <?php |
11 | - if(!$__video_h->video_exists($_GET['v'])) |
|
12 | - header("Location: /?error=Your video has not processed correctly. Try reuploading it with a shorter title, description, or tag."); |
|
11 | + if(!$__video_h->video_exists($_GET['v'])) |
|
12 | + header("Location: /?error=Your video has not processed correctly. Try reuploading it with a shorter title, description, or tag."); |
|
13 | 13 | |
14 | - $video = $__video_h->fetch_video_rid($_GET['v']); |
|
15 | - $video['video_responses'] = $__video_h->get_video_responses($video['rid']); |
|
16 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
17 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
18 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
19 | - $video['author'] = htmlspecialchars($video['author']); |
|
20 | - $video['title'] = htmlspecialchars($video['title']); |
|
21 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
14 | + $video = $__video_h->fetch_video_rid($_GET['v']); |
|
15 | + $video['video_responses'] = $__video_h->get_video_responses($video['rid']); |
|
16 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
17 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
18 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
19 | + $video['author'] = htmlspecialchars($video['author']); |
|
20 | + $video['title'] = htmlspecialchars($video['title']); |
|
21 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
22 | 22 | |
23 | 23 | if($_SESSION['siteusername'] != $video['author']) |
24 | 24 | header("Location: /"); |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | <?php $__db_h = new db_helper(); ?> |
9 | 9 | <?php $__time_h = new time_helper(); ?> |
10 | 10 | <?php |
11 | - if(!$__video_h->video_exists($_GET['v'])) |
|
11 | + if (!$__video_h->video_exists($_GET['v'])) |
|
12 | 12 | header("Location: /?error=Your video has not processed correctly. Try reuploading it with a shorter title, description, or tag."); |
13 | 13 | |
14 | 14 | $video = $__video_h->fetch_video_rid($_GET['v']); |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | $video['title'] = htmlspecialchars($video['title']); |
21 | 21 | $video['description'] = $__video_h->shorten_description($video['description'], 50); |
22 | 22 | |
23 | - if($_SESSION['siteusername'] != $video['author']) |
|
23 | + if ($_SESSION['siteusername'] != $video['author']) |
|
24 | 24 | header("Location: /"); |
25 | 25 | ?> |
26 | 26 | <!DOCTYPE html> |
@@ -8,8 +8,9 @@ discard block |
||
8 | 8 | <?php $__db_h = new db_helper(); ?> |
9 | 9 | <?php $__time_h = new time_helper(); ?> |
10 | 10 | <?php |
11 | - if(!$__video_h->video_exists($_GET['v'])) |
|
12 | - header("Location: /?error=Your video has not processed correctly. Try reuploading it with a shorter title, description, or tag."); |
|
11 | + if(!$__video_h->video_exists($_GET['v'])) { |
|
12 | + header("Location: /?error=Your video has not processed correctly. Try reuploading it with a shorter title, description, or tag."); |
|
13 | + } |
|
13 | 14 | |
14 | 15 | $video = $__video_h->fetch_video_rid($_GET['v']); |
15 | 16 | $video['video_responses'] = $__video_h->get_video_responses($video['rid']); |
@@ -20,9 +21,10 @@ discard block |
||
20 | 21 | $video['title'] = htmlspecialchars($video['title']); |
21 | 22 | $video['description'] = $__video_h->shorten_description($video['description'], 50); |
22 | 23 | |
23 | - if($_SESSION['siteusername'] != $video['author']) |
|
24 | - header("Location: /"); |
|
25 | -?> |
|
24 | + if($_SESSION['siteusername'] != $video['author']) { |
|
25 | + header("Location: /"); |
|
26 | + } |
|
27 | + ?> |
|
26 | 28 | <!DOCTYPE html> |
27 | 29 | <html> |
28 | 30 | <head> |
@@ -11,7 +11,7 @@ |
||
11 | 11 | <?php |
12 | 12 | $playlist = $__video_h->fetch_playlist_rid($_GET['playlist']); |
13 | 13 | |
14 | -if($playlist['author'] == $_SESSION['siteusername']) { |
|
14 | +if ($playlist['author'] == $_SESSION['siteusername']) { |
|
15 | 15 | $b = json_decode($playlist['videos']); |
16 | 16 | array_push($b, $_GET['id']); |
17 | 17 | $b = json_encode($b); |