@@ -14,8 +14,9 @@ discard block |
||
14 | 14 | <?php |
15 | 15 | $_playlist = $__video_h->fetch_playlist_rid($_GET['v']); |
16 | 16 | |
17 | - if(!$__user_h->user_exists($_playlist['author'])) |
|
18 | - header("Location: /?userdoesntexist"); |
|
17 | + if(!$__user_h->user_exists($_playlist['author'])) { |
|
18 | + header("Location: /?userdoesntexist"); |
|
19 | + } |
|
19 | 20 | |
20 | 21 | $_user = $__user_h->fetch_user_username($_playlist['author']); |
21 | 22 | |
@@ -38,10 +39,11 @@ discard block |
||
38 | 39 | |
39 | 40 | if ( |
40 | 41 | ctype_xdigit($colorCode) && |
41 | - (strlen($colorCode) == 6 || strlen($colorCode) == 3)) |
|
42 | - return true; |
|
43 | - |
|
44 | - else return false; |
|
42 | + (strlen($colorCode) == 6 || strlen($colorCode) == 3)) { |
|
43 | + return true; |
|
44 | + } else { |
|
45 | + return false; |
|
46 | + } |
|
45 | 47 | } |
46 | 48 | |
47 | 49 | $_user['subscribers'] = $__user_h->fetch_subs_count($_user['username']); |
@@ -73,8 +75,9 @@ discard block |
||
73 | 75 | if(!check_valid_colorhex($_user['primary_color_text']) && strlen($_user['primary_color_text']) != 6) { $_user['primary_color_text'] = ""; } |
74 | 76 | if(!check_valid_colorhex($_user['2009_bgcolor']) && strlen($_user['2009_bgcolor']) != 6) { $_user['2009_bgcolor'] = ""; } |
75 | 77 | |
76 | - if(isset($_SESSION['siteusername'])) |
|
77 | - $__user_i->check_view_channel($_user['username'], @$_SESSION['siteusername']); |
|
78 | + if(isset($_SESSION['siteusername'])) { |
|
79 | + $__user_i->check_view_channel($_user['username'], @$_SESSION['siteusername']); |
|
80 | + } |
|
78 | 81 | |
79 | 82 | if($_SERVER['REQUEST_METHOD'] == 'POST') { |
80 | 83 | $error = array(); |
@@ -145,8 +148,9 @@ discard block |
||
145 | 148 | <div class="channel_customization"><?php require($_SERVER['DOCUMENT_ROOT'] . "/s/mod/channel_customization.php"); ?></div> |
146 | 149 | <?php } ?> |
147 | 150 | <?php |
148 | - if(empty(trim($_user['bio']))) |
|
149 | - $_user['bio'] = "This user has no description."; |
|
151 | + if(empty(trim($_user['bio']))) { |
|
152 | + $_user['bio'] = "This user has no description."; |
|
153 | + } |
|
150 | 154 | ?> |
151 | 155 | <div id="content"> |
152 | 156 | <div class="subscription-menu-expandable subscription-menu-expandable-channels3 yt-rounded ytg-wide hid"> |
@@ -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> |