@@ -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 - Sign Up"; |
|
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 - Sign Up"; |
|
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,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 - Sign In"; |
|
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 - Sign In"; |
|
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> |
@@ -10,10 +10,10 @@ |
||
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 - Upload Video"; |
|
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 - Upload Video"; |
|
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> |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | <?php $__user_h = new user_helper($__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 - Upload Video"; |
14 | 14 | $__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube."; |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | <b>Category</b> <br> |
97 | 97 | <select style="margin-top:5px;" name="category" class="yt-uix-button yt-uix-button-default"> |
98 | 98 | <?php $categories = ["None", "Film & Animation", "Autos & Vehicles", "Music", "Pets & Animals", "Sports", "Travel & Events", "Gaming", "People & Blogs", "Comedy", "Entertainment", "News & Politics", "Howto & Style", "Education", "Science & Technology", "Nonprofits & Activism"]; ?> |
99 | - <?php foreach($categories as $categoryTag) { ?> |
|
99 | + <?php foreach ($categories as $categoryTag) { ?> |
|
100 | 100 | <option value="<?php echo $categoryTag; ?>"><?php echo $categoryTag; ?></option> |
101 | 101 | <?php } ?> |
102 | 102 | </select><br><br> |
@@ -8,26 +8,26 @@ |
||
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: /"); |
25 | 25 | ?> |
26 | 26 | <?php |
27 | - $__server->page_embeds->page_title = "SubRocks - Uploaded Video"; |
|
28 | - $__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube."; |
|
29 | - $__server->page_embeds->page_image = "/yt/imgbin/full-size-logo.png"; |
|
30 | - $__server->page_embeds->page_url = "https://subrock.rocks/"; |
|
27 | + $__server->page_embeds->page_title = "SubRocks - Uploaded Video"; |
|
28 | + $__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube."; |
|
29 | + $__server->page_embeds->page_image = "/yt/imgbin/full-size-logo.png"; |
|
30 | + $__server->page_embeds->page_url = "https://subrock.rocks/"; |
|
31 | 31 | ?> |
32 | 32 | <!DOCTYPE html> |
33 | 33 | <html> |
@@ -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 | <?php |
@@ -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 | <?php |
27 | 29 | $__server->page_embeds->page_title = "SubRocks - Uploaded Video"; |
28 | 30 | $__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube."; |
@@ -9,10 +9,10 @@ |
||
9 | 9 | <?php $__time_h = new time_helper(); ?> |
10 | 10 | <?php if(!isset($_SESSION['siteusername'])) { header("Location: /sign_in"); } ?> |
11 | 11 | <?php |
12 | - $__server->page_embeds->page_title = "SubRocks - Subscriptions"; |
|
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 - Subscriptions"; |
|
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"> |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | <?php $__user_h = new user_helper($__db); ?> |
8 | 8 | <?php $__db_h = new db_helper(); ?> |
9 | 9 | <?php $__time_h = new time_helper(); ?> |
10 | -<?php if(!isset($_SESSION['siteusername'])) { header("Location: /sign_in"); } ?> |
|
10 | +<?php if (!isset($_SESSION['siteusername'])) { header("Location: /sign_in"); } ?> |
|
11 | 11 | <?php |
12 | 12 | $__server->page_embeds->page_title = "SubRocks - Subscriptions"; |
13 | 13 | $__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube."; |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | ?> |
164 | 164 | |
165 | 165 | <div class="my_videos_ajax"> |
166 | - <?php while($user = $stmt->fetch(PDO::FETCH_ASSOC)) { ?> |
|
166 | + <?php while ($user = $stmt->fetch(PDO::FETCH_ASSOC)) { ?> |
|
167 | 167 | <div style="width: 33%;display: inline-block;"> |
168 | 168 | <img style="width: 50px;height:50px;" src="/dynamic/pfp/<?php echo $__user_h->fetch_pfp($user['reciever']); ?>"> |
169 | 169 | <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 - Edit Video"; |
|
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 Video"; |
|
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 $_video = $__video_h->fetch_video_rid($_GET['id']); ?> |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | $__server->page_embeds->page_image = "/yt/imgbin/full-size-logo.png"; |
14 | 14 | $__server->page_embeds->page_url = "https://subrock.rocks/"; |
15 | 15 | ?> |
16 | -<?php if(!isset($_SESSION['siteusername'])) { header("Location: /sign_in"); } ?> |
|
16 | +<?php if (!isset($_SESSION['siteusername'])) { header("Location: /sign_in"); } ?> |
|
17 | 17 | <?php $_video = $__video_h->fetch_video_rid($_GET['id']); ?> |
18 | 18 | <!DOCTYPE html> |
19 | 19 | <html dir="ltr"> |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | <b>Category</b> <br> |
178 | 178 | <select style="margin-top:5px;" name="category" class="yt-uix-button yt-uix-button-default"> |
179 | 179 | <?php $categories = ["None", "Film & Animation", "Autos & Vehicles", "Music", "Pets & Animals", "Sports", "Travel & Events", "Gaming", "People & Blogs", "Comedy", "Entertainment", "News & Politics", "Howto & Style", "Education", "Science & Technology", "Nonprofits & Activism"]; ?> |
180 | - <?php foreach($categories as $categoryTag) { ?> |
|
180 | + <?php foreach ($categories as $categoryTag) { ?> |
|
181 | 181 | <option value="<?php echo $categoryTag; ?>"><?php echo $categoryTag; ?></option> |
182 | 182 | <?php } ?> |
183 | 183 | </select><br><br> |