@@ -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."; |