@@ -34,8 +34,8 @@ |
||
| 34 | 34 | |
| 35 | 35 | <div id="browse-side-column" class="ytg-2col ytg-last"> |
| 36 | 36 | <ol class="navigation-menu"> |
| 37 | - <?php foreach($__tabs as $_tab) { |
|
| 38 | - if($_SERVER['REQUEST_URI'] != $_tab->url) |
|
| 37 | + <?php foreach ($__tabs as $_tab) { |
|
| 38 | + if ($_SERVER['REQUEST_URI'] != $_tab->url) |
|
| 39 | 39 | $_tab->selected = true; |
| 40 | 40 | ?> |
| 41 | 41 | <li class="menu-item"> |
@@ -12,10 +12,10 @@ discard block |
||
| 12 | 12 | <?php $__db_h = new db_helper(); ?> |
| 13 | 13 | <?php $__time_h = new time_helper(); ?> |
| 14 | 14 | <?php |
| 15 | - if(isset($_SESSION['siteusername'])) |
|
| 15 | + if (isset($_SESSION['siteusername'])) |
|
| 16 | 16 | $_user_hp = $__user_h->fetch_user_username($_SESSION['siteusername']); |
| 17 | 17 | |
| 18 | - if(!$__user_h->user_exists($_GET['n'])) |
|
| 18 | + if (!$__user_h->user_exists($_GET['n'])) |
|
| 19 | 19 | header("Location: /?userdoesntexist"); |
| 20 | 20 | |
| 21 | 21 | $_user = $__user_h->fetch_user_username($_GET['n']); |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | $stmt->bindParam(":username", $_user['username']); |
| 25 | 25 | $stmt->execute(); |
| 26 | 26 | |
| 27 | - while($ban = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 27 | + while ($ban = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 28 | 28 | header("Location: /?error=This user has been terminated for violating SubRock's Community Guidelines."); |
| 29 | 29 | } |
| 30 | 30 | |
@@ -76,28 +76,28 @@ discard block |
||
| 76 | 76 | $_user['genre'] = strtolower($_user['genre']); |
| 77 | 77 | $_user['subscribed'] = $__user_h->if_subscribed(@$_SESSION['siteusername'], $_user['username']); |
| 78 | 78 | |
| 79 | - if(!check_valid_colorhex($_user['primary_color']) && strlen($_user['primary_color']) != 6) { $_user['primary_color'] = ""; } |
|
| 80 | - if(!check_valid_colorhex($_user['secondary_color']) && strlen($_user['secondary_color']) != 6) { $_user['secondary_color'] = ""; } |
|
| 81 | - if(!check_valid_colorhex($_user['third_color']) && strlen($_user['third_color']) != 6) { $_user['third_color'] = ""; } |
|
| 82 | - if(!check_valid_colorhex($_user['text_color']) && strlen($_user['text_color']) != 6) { $_user['text_color'] = ""; } |
|
| 83 | - if(!check_valid_colorhex($_user['primary_color_text']) && strlen($_user['primary_color_text']) != 6) { $_user['primary_color_text'] = ""; } |
|
| 84 | - if(!check_valid_colorhex($_user['2009_bgcolor']) && strlen($_user['2009_bgcolor']) != 6) { $_user['2009_bgcolor'] = ""; } |
|
| 79 | + if (!check_valid_colorhex($_user['primary_color']) && strlen($_user['primary_color']) != 6) { $_user['primary_color'] = ""; } |
|
| 80 | + if (!check_valid_colorhex($_user['secondary_color']) && strlen($_user['secondary_color']) != 6) { $_user['secondary_color'] = ""; } |
|
| 81 | + if (!check_valid_colorhex($_user['third_color']) && strlen($_user['third_color']) != 6) { $_user['third_color'] = ""; } |
|
| 82 | + if (!check_valid_colorhex($_user['text_color']) && strlen($_user['text_color']) != 6) { $_user['text_color'] = ""; } |
|
| 83 | + if (!check_valid_colorhex($_user['primary_color_text']) && strlen($_user['primary_color_text']) != 6) { $_user['primary_color_text'] = ""; } |
|
| 84 | + if (!check_valid_colorhex($_user['2009_bgcolor']) && strlen($_user['2009_bgcolor']) != 6) { $_user['2009_bgcolor'] = ""; } |
|
| 85 | 85 | |
| 86 | - if(isset($_SESSION['siteusername'])) |
|
| 86 | + if (isset($_SESSION['siteusername'])) |
|
| 87 | 87 | $__user_i->check_view_channel($_user['username'], @$_SESSION['siteusername']); |
| 88 | 88 | |
| 89 | - if($_SERVER['REQUEST_METHOD'] == 'POST') { |
|
| 89 | + if ($_SERVER['REQUEST_METHOD'] == 'POST') { |
|
| 90 | 90 | $error = array(); |
| 91 | 91 | |
| 92 | - if(!isset($_SESSION['siteusername'])){ $error['message'] = "you are not logged in"; $error['status'] = true; } |
|
| 93 | - if(!$_POST['comment']){ $error['message'] = "your comment cannot be blank"; $error['status'] = true; } |
|
| 94 | - if(strlen($_POST['comment']) > 1000){ $error['message'] = "your comment must be shorter than 1000 characters"; $error['status'] = true; } |
|
| 92 | + if (!isset($_SESSION['siteusername'])) { $error['message'] = "you are not logged in"; $error['status'] = true; } |
|
| 93 | + if (!$_POST['comment']) { $error['message'] = "your comment cannot be blank"; $error['status'] = true; } |
|
| 94 | + if (strlen($_POST['comment']) > 1000) { $error['message'] = "your comment must be shorter than 1000 characters"; $error['status'] = true; } |
|
| 95 | 95 | //if(!isset($_POST['g-recaptcha-response'])){ $error['message'] = "captcha validation failed"; $error['status'] = true; } |
| 96 | 96 | //if(!$_user_insert_utils->validateCaptcha($config['recaptcha_secret'], $_POST['g-recaptcha-response'])) { $error['message'] = "captcha validation failed"; $error['status'] = true; } |
| 97 | - if($__user_h->if_cooldown($_SESSION['siteusername'])) { $error['message'] = "You are on a cooldown! Wait for a minute before posting another comment."; $error['status'] = true; } |
|
| 97 | + if ($__user_h->if_cooldown($_SESSION['siteusername'])) { $error['message'] = "You are on a cooldown! Wait for a minute before posting another comment."; $error['status'] = true; } |
|
| 98 | 98 | //if(ifBlocked(@$_SESSION['siteusername'], $user['username'], $__db)) { $error = "This user has blocked you!"; $error['status'] = true; } |
| 99 | 99 | |
| 100 | - if(!isset($error['message'])) { |
|
| 100 | + if (!isset($error['message'])) { |
|
| 101 | 101 | $text = $_POST['comment']; |
| 102 | 102 | $stmt = $__db->prepare("INSERT INTO profile_comments (toid, author, comment) VALUES (:id, :username, :comment)"); |
| 103 | 103 | $stmt->bindParam(":id", $_user['username']); |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | |
| 108 | 108 | $_user_update_utils->update_comment_cooldown_time($_SESSION['siteusername']); |
| 109 | 109 | |
| 110 | - if(@$_SESSION['siteusername'] != $_user['username']) { |
|
| 110 | + if (@$_SESSION['siteusername'] != $_user['username']) { |
|
| 111 | 111 | $_user_insert_utils->send_message($_user['username'], "New comment", 'I commented "' . $_POST['comment'] . '" on your profile!', $_SESSION['siteusername']); |
| 112 | 112 | } |
| 113 | 113 | } |
@@ -141,11 +141,11 @@ discard block |
||
| 141 | 141 | <link rel="stylesheet" href="/yt/cssbin/www-extra.css"> |
| 142 | 142 | <style> |
| 143 | 143 | #content-container { |
| 144 | - background-color: <?php echo $_user['primary_color']; ?>; |
|
| 144 | + background-color: <?php echo $_user['primary_color']; ?>; |
|
| 145 | 145 | background-image: url(/dynamic/banners/<?php echo $_user['2012_bg']; ?>); |
| 146 | 146 | background-repeat: repeat; |
| 147 | 147 | <?php |
| 148 | - switch($_user['2012_bgoption']) { |
|
| 148 | + switch ($_user['2012_bgoption']) { |
|
| 149 | 149 | case "stretch": |
| 150 | 150 | echo "background-size: cover;"; |
| 151 | 151 | break; |
@@ -178,11 +178,11 @@ discard block |
||
| 178 | 178 | <div id="masthead-container"><?php require($_SERVER['DOCUMENT_ROOT'] . "/s/mod/header.php"); ?></div> |
| 179 | 179 | <div id="content-container"> |
| 180 | 180 | <!-- begin content --> |
| 181 | - <?php if(isset($_SESSION['siteusername']) && $_user['username'] == $_SESSION['siteusername']) { ?> |
|
| 181 | + <?php if (isset($_SESSION['siteusername']) && $_user['username'] == $_SESSION['siteusername']) { ?> |
|
| 182 | 182 | <div class="channel_customization"><?php require($_SERVER['DOCUMENT_ROOT'] . "/s/mod/channel_customization.php"); ?></div> |
| 183 | 183 | <?php } ?> |
| 184 | 184 | <?php |
| 185 | - if(empty(trim($_user['bio']))) |
|
| 185 | + if (empty(trim($_user['bio']))) |
|
| 186 | 186 | $_user['bio'] = "This user has no description."; |
| 187 | 187 | ?> |
| 188 | 188 | <div id="content"> |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | <h1><?php echo htmlspecialchars($_user['username']); ?></h1> |
| 238 | 238 | </div> |
| 239 | 239 | <div class="upper-left-section enable-fancy-subscribe-button"> |
| 240 | - <?php if($_user['username'] != @$_SESSION['siteusername']) { ?> |
|
| 240 | + <?php if ($_user['username'] != @$_SESSION['siteusername']) { ?> |
|
| 241 | 241 | <div class="yt-subscription-button-hovercard yt-uix-hovercard"> |
| 242 | 242 | <button |
| 243 | 243 | href="#" |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | title="" |
| 246 | 246 | id="subscribe-button" |
| 247 | 247 | type="button" |
| 248 | - class="yt-subscription-button <?php if($_user['subscribed']) { echo "subscribed "; } ?> yt-uix-button yt-uix-button-subscription yt-uix-tooltip" |
|
| 248 | + class="yt-subscription-button <?php if ($_user['subscribed']) { echo "subscribed "; } ?> yt-uix-button yt-uix-button-subscription yt-uix-tooltip" |
|
| 249 | 249 | role="button"><span class="yt-uix-button-icon-wrapper"><img class="yt-uix-button-icon yt-uix-button-icon-subscribe" |
| 250 | 250 | src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt=""></span><span class="yt-uix-button-content"> <span class="subscribe-label">Subscribe</span> |
| 251 | 251 | <span class="subscribed-label">Subscribed</span> |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | <?php } else { ?> |
| 262 | 262 | |
| 263 | 263 | <?php } ?> |
| 264 | - <?php if($__user_h->if_partner($_user['username'])) { ?> |
|
| 264 | + <?php if ($__user_h->if_partner($_user['username'])) { ?> |
|
| 265 | 265 | <img style="width: 29px;vertical-align: middle;margin-left: 10px;" title="This user is a SubRocks partner" src="/yt/imgbin/RenderedImage.png"> |
| 266 | 266 | <?php } ?> |
| 267 | 267 | </div> |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | </div> |
| 315 | 315 | </div> |
| 316 | 316 | </div> |
| 317 | - <?php if($_user['featured'] != "None") { $video = $__video_h->fetch_video_rid($_user['featured']); } else { $_user['featured'] = false; } ?> |
|
| 317 | + <?php if ($_user['featured'] != "None") { $video = $__video_h->fetch_video_rid($_user['featured']); } else { $_user['featured'] = false; } ?> |
|
| 318 | 318 | <div id="branded-page-body"> |
| 319 | 319 | <div class="channel-tab-content channel-layout-two-column selected blogger-template"><?php require($_SERVER['DOCUMENT_ROOT'] . "/s/mod/channel_feed.php"); ?></div> |
| 320 | 320 | </div> |
@@ -12,10 +12,10 @@ discard block |
||
| 12 | 12 | <?php $__db_h = new db_helper(); ?> |
| 13 | 13 | <?php $__time_h = new time_helper(); ?> |
| 14 | 14 | <?php |
| 15 | - if(isset($_SESSION['siteusername'])) |
|
| 15 | + if (isset($_SESSION['siteusername'])) |
|
| 16 | 16 | $_user_hp = $__user_h->fetch_user_username($_SESSION['siteusername']); |
| 17 | 17 | |
| 18 | - if(!$__user_h->user_exists($_GET['n'])) |
|
| 18 | + if (!$__user_h->user_exists($_GET['n'])) |
|
| 19 | 19 | header("Location: /?userdoesntexist"); |
| 20 | 20 | |
| 21 | 21 | $_user = $__user_h->fetch_user_username($_GET['n']); |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | $stmt->bindParam(":username", $_user['username']); |
| 25 | 25 | $stmt->execute(); |
| 26 | 26 | |
| 27 | - while($ban = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 27 | + while ($ban = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 28 | 28 | header("Location: /?error=This user has been terminated for violating SubRock's Community Guidelines."); |
| 29 | 29 | } |
| 30 | 30 | |
@@ -76,28 +76,28 @@ discard block |
||
| 76 | 76 | $_user['genre'] = strtolower($_user['genre']); |
| 77 | 77 | $_user['subscribed'] = $__user_h->if_subscribed(@$_SESSION['siteusername'], $_user['username']); |
| 78 | 78 | |
| 79 | - if(!check_valid_colorhex($_user['primary_color']) && strlen($_user['primary_color']) != 6) { $_user['primary_color'] = ""; } |
|
| 80 | - if(!check_valid_colorhex($_user['secondary_color']) && strlen($_user['secondary_color']) != 6) { $_user['secondary_color'] = ""; } |
|
| 81 | - if(!check_valid_colorhex($_user['third_color']) && strlen($_user['third_color']) != 6) { $_user['third_color'] = ""; } |
|
| 82 | - if(!check_valid_colorhex($_user['text_color']) && strlen($_user['text_color']) != 6) { $_user['text_color'] = ""; } |
|
| 83 | - if(!check_valid_colorhex($_user['primary_color_text']) && strlen($_user['primary_color_text']) != 6) { $_user['primary_color_text'] = ""; } |
|
| 84 | - if(!check_valid_colorhex($_user['2009_bgcolor']) && strlen($_user['2009_bgcolor']) != 6) { $_user['2009_bgcolor'] = ""; } |
|
| 79 | + if (!check_valid_colorhex($_user['primary_color']) && strlen($_user['primary_color']) != 6) { $_user['primary_color'] = ""; } |
|
| 80 | + if (!check_valid_colorhex($_user['secondary_color']) && strlen($_user['secondary_color']) != 6) { $_user['secondary_color'] = ""; } |
|
| 81 | + if (!check_valid_colorhex($_user['third_color']) && strlen($_user['third_color']) != 6) { $_user['third_color'] = ""; } |
|
| 82 | + if (!check_valid_colorhex($_user['text_color']) && strlen($_user['text_color']) != 6) { $_user['text_color'] = ""; } |
|
| 83 | + if (!check_valid_colorhex($_user['primary_color_text']) && strlen($_user['primary_color_text']) != 6) { $_user['primary_color_text'] = ""; } |
|
| 84 | + if (!check_valid_colorhex($_user['2009_bgcolor']) && strlen($_user['2009_bgcolor']) != 6) { $_user['2009_bgcolor'] = ""; } |
|
| 85 | 85 | |
| 86 | - if(isset($_SESSION['siteusername'])) |
|
| 86 | + if (isset($_SESSION['siteusername'])) |
|
| 87 | 87 | $__user_i->check_view_channel($_user['username'], @$_SESSION['siteusername']); |
| 88 | 88 | |
| 89 | - if($_SERVER['REQUEST_METHOD'] == 'POST') { |
|
| 89 | + if ($_SERVER['REQUEST_METHOD'] == 'POST') { |
|
| 90 | 90 | $error = array(); |
| 91 | 91 | |
| 92 | - if(!isset($_SESSION['siteusername'])){ $error['message'] = "you are not logged in"; $error['status'] = true; } |
|
| 93 | - if(!$_POST['comment']){ $error['message'] = "your comment cannot be blank"; $error['status'] = true; } |
|
| 94 | - if(strlen($_POST['comment']) > 1000){ $error['message'] = "your comment must be shorter than 1000 characters"; $error['status'] = true; } |
|
| 92 | + if (!isset($_SESSION['siteusername'])) { $error['message'] = "you are not logged in"; $error['status'] = true; } |
|
| 93 | + if (!$_POST['comment']) { $error['message'] = "your comment cannot be blank"; $error['status'] = true; } |
|
| 94 | + if (strlen($_POST['comment']) > 1000) { $error['message'] = "your comment must be shorter than 1000 characters"; $error['status'] = true; } |
|
| 95 | 95 | //if(!isset($_POST['g-recaptcha-response'])){ $error['message'] = "captcha validation failed"; $error['status'] = true; } |
| 96 | 96 | //if(!$_user_insert_utils->validateCaptcha($config['recaptcha_secret'], $_POST['g-recaptcha-response'])) { $error['message'] = "captcha validation failed"; $error['status'] = true; } |
| 97 | - if($__user_h->if_cooldown($_SESSION['siteusername'])) { $error['message'] = "You are on a cooldown! Wait for a minute before posting another comment."; $error['status'] = true; } |
|
| 97 | + if ($__user_h->if_cooldown($_SESSION['siteusername'])) { $error['message'] = "You are on a cooldown! Wait for a minute before posting another comment."; $error['status'] = true; } |
|
| 98 | 98 | //if(ifBlocked(@$_SESSION['siteusername'], $user['username'], $__db)) { $error = "This user has blocked you!"; $error['status'] = true; } |
| 99 | 99 | |
| 100 | - if(!isset($error['message'])) { |
|
| 100 | + if (!isset($error['message'])) { |
|
| 101 | 101 | $text = $_POST['comment']; |
| 102 | 102 | $stmt = $__db->prepare("INSERT INTO profile_comments (toid, author, comment) VALUES (:id, :username, :comment)"); |
| 103 | 103 | $stmt->bindParam(":id", $_user['username']); |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | |
| 108 | 108 | $_user_update_utils->update_comment_cooldown_time($_SESSION['siteusername']); |
| 109 | 109 | |
| 110 | - if(@$_SESSION['siteusername'] != $_user['username']) { |
|
| 110 | + if (@$_SESSION['siteusername'] != $_user['username']) { |
|
| 111 | 111 | $_user_insert_utils->send_message($_user['username'], "New comment", 'I commented "' . $_POST['comment'] . '" on your profile!', $_SESSION['siteusername']); |
| 112 | 112 | } |
| 113 | 113 | } |
@@ -141,11 +141,11 @@ discard block |
||
| 141 | 141 | <link rel="stylesheet" href="/yt/cssbin/www-extra.css"> |
| 142 | 142 | <style> |
| 143 | 143 | #content-container { |
| 144 | - background-color: <?php echo $_user['primary_color']; ?>; |
|
| 144 | + background-color: <?php echo $_user['primary_color']; ?>; |
|
| 145 | 145 | background-image: url(/dynamic/banners/<?php echo $_user['2012_bg']; ?>); |
| 146 | 146 | background-repeat: repeat; |
| 147 | 147 | <?php |
| 148 | - switch($_user['2012_bgoption']) { |
|
| 148 | + switch ($_user['2012_bgoption']) { |
|
| 149 | 149 | case "stretch": |
| 150 | 150 | echo "background-size: cover;"; |
| 151 | 151 | break; |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | <div id="masthead-container"><?php require($_SERVER['DOCUMENT_ROOT'] . "/s/mod/header.php"); ?></div> |
| 179 | 179 | <div id="content-container"> |
| 180 | 180 | <!-- begin content --> |
| 181 | - <?php if(isset($_SESSION['siteusername']) && $_user['username'] == $_SESSION['siteusername']) { ?> |
|
| 181 | + <?php if (isset($_SESSION['siteusername']) && $_user['username'] == $_SESSION['siteusername']) { ?> |
|
| 182 | 182 | <div class="channel_customization"><?php require($_SERVER['DOCUMENT_ROOT'] . "/s/mod/channel_customization.php"); ?></div> |
| 183 | 183 | <?php } ?> |
| 184 | 184 | <div id="content"> |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | <h1><?php echo htmlspecialchars($_user['username']); ?></h1> |
| 234 | 234 | </div> |
| 235 | 235 | <div class="upper-left-section enable-fancy-subscribe-button"> |
| 236 | - <?php if($_user['username'] != @$_SESSION['siteusername']) { ?> |
|
| 236 | + <?php if ($_user['username'] != @$_SESSION['siteusername']) { ?> |
|
| 237 | 237 | <div class="yt-subscription-button-hovercard yt-uix-hovercard"> |
| 238 | 238 | <button |
| 239 | 239 | href="#" |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | title="" |
| 242 | 242 | id="subscribe-button" |
| 243 | 243 | type="button" |
| 244 | - class="yt-subscription-button <?php if($_user['subscribed']) { echo "subscribed "; } ?> yt-uix-button yt-uix-button-subscription yt-uix-tooltip" |
|
| 244 | + class="yt-subscription-button <?php if ($_user['subscribed']) { echo "subscribed "; } ?> yt-uix-button yt-uix-button-subscription yt-uix-tooltip" |
|
| 245 | 245 | role="button"><span class="yt-uix-button-icon-wrapper"><img class="yt-uix-button-icon yt-uix-button-icon-subscribe" |
| 246 | 246 | src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt=""></span><span class="yt-uix-button-content"> <span class="subscribe-label">Subscribe</span> |
| 247 | 247 | <span class="subscribed-label">Subscribed</span> |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | <?php } else { ?> |
| 258 | 258 | |
| 259 | 259 | <?php } ?> |
| 260 | - <?php if($__user_h->if_partner($_user['username'])) { ?> |
|
| 260 | + <?php if ($__user_h->if_partner($_user['username'])) { ?> |
|
| 261 | 261 | <img style="width: 29px;vertical-align: middle;margin-left: 10px;" title="This user is a SubRocks partner" src="/yt/imgbin/RenderedImage.png"> |
| 262 | 262 | <?php } ?> |
| 263 | 263 | </div> |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | </div> |
| 311 | 311 | </div> |
| 312 | 312 | </div> |
| 313 | - <?php if($_user['featured'] != "None") { $video = $__video_h->fetch_video_rid($_user['featured']); } else { $_user['featured'] = false; } ?> |
|
| 313 | + <?php if ($_user['featured'] != "None") { $video = $__video_h->fetch_video_rid($_user['featured']); } else { $_user['featured'] = false; } ?> |
|
| 314 | 314 | <div id="branded-page-body"> |
| 315 | 315 | <div class="channel-tab-content channel-layout-full-width"> |
| 316 | 316 | <div class="tab-content-body"> |
@@ -344,7 +344,7 @@ discard block |
||
| 344 | 344 | $stmt = $__db->prepare("SELECT * FROM videos WHERE author = :username ORDER BY id DESC"); |
| 345 | 345 | $stmt->bindParam(":username", $_user['username']); |
| 346 | 346 | $stmt->execute(); |
| 347 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 347 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 348 | 348 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 349 | 349 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 350 | 350 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | <?php $__time_h = new time_helper(); ?> |
| 13 | 13 | <?php |
| 14 | 14 | $_video = $__video_h->fetch_video_rid($_GET['v']); |
| 15 | - if($_video['author'] != @$_SESSION['siteusername']) { |
|
| 15 | + if ($_video['author'] != @$_SESSION['siteusername']) { |
|
| 16 | 16 | die(); |
| 17 | 17 | } |
| 18 | 18 | |
@@ -44,8 +44,8 @@ discard block |
||
| 44 | 44 | // $__video_u->update_row($_GET['v'], "thumbnail", $request->thumbnail); |
| 45 | 45 | $__video_u->update_row($_GET['v'], "category", $request->category); |
| 46 | 46 | |
| 47 | - if($_SERVER['REQUEST_METHOD'] == 'POST' && @$_FILES['thumbnail']) { |
|
| 48 | - if(!empty($_FILES["thumbnail"]["name"])) { |
|
| 47 | + if ($_SERVER['REQUEST_METHOD'] == 'POST' && @$_FILES['thumbnail']) { |
|
| 48 | + if (!empty($_FILES["thumbnail"]["name"])) { |
|
| 49 | 49 | $target_dir = "../dynamic/thumbs/"; |
| 50 | 50 | $imageFileType = strtolower(pathinfo($_FILES["thumbnail"]["name"], PATHINFO_EXTENSION)); |
| 51 | 51 | $target_name = md5_file($_FILES["thumbnail"]["tmp_name"]) . "." . $imageFileType; |
@@ -55,8 +55,8 @@ discard block |
||
| 55 | 55 | $uploadOk = true; |
| 56 | 56 | $movedFile = false; |
| 57 | 57 | |
| 58 | - if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
| 59 | - && $imageFileType != "gif" ) { |
|
| 58 | + if ($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
| 59 | + && $imageFileType != "gif") { |
|
| 60 | 60 | $fileerror = 'unsupported file type. must be jpg, png, jpeg, or gif'; |
| 61 | 61 | $uploadOk = false; |
| 62 | 62 | goto skip; |
@@ -12,10 +12,10 @@ discard block |
||
| 12 | 12 | <?php $__db_h = new db_helper(); ?> |
| 13 | 13 | <?php $__time_h = new time_helper(); ?> |
| 14 | 14 | <?php |
| 15 | - if(isset($_SESSION['siteusername'])) |
|
| 15 | + if (isset($_SESSION['siteusername'])) |
|
| 16 | 16 | $_user_hp = $__user_h->fetch_user_username($_SESSION['siteusername']); |
| 17 | 17 | |
| 18 | - if(!$__user_h->user_exists($_GET['n'])) |
|
| 18 | + if (!$__user_h->user_exists($_GET['n'])) |
|
| 19 | 19 | header("Location: /?userdoesntexist"); |
| 20 | 20 | |
| 21 | 21 | $_user = $__user_h->fetch_user_username($_GET['n']); |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | $stmt->bindParam(":username", $_user['username']); |
| 25 | 25 | $stmt->execute(); |
| 26 | 26 | |
| 27 | - while($ban = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 27 | + while ($ban = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 28 | 28 | header("Location: /?error=This user has been terminated for violating SubRock's Community Guidelines."); |
| 29 | 29 | } |
| 30 | 30 | |
@@ -75,28 +75,28 @@ discard block |
||
| 75 | 75 | $_user['genre'] = strtolower($_user['genre']); |
| 76 | 76 | $_user['subscribed'] = $__user_h->if_subscribed(@$_SESSION['siteusername'], $_user['username']); |
| 77 | 77 | |
| 78 | - if(!check_valid_colorhex($_user['primary_color']) && strlen($_user['primary_color']) != 6) { $_user['primary_color'] = ""; } |
|
| 79 | - if(!check_valid_colorhex($_user['secondary_color']) && strlen($_user['secondary_color']) != 6) { $_user['secondary_color'] = ""; } |
|
| 80 | - if(!check_valid_colorhex($_user['third_color']) && strlen($_user['third_color']) != 6) { $_user['third_color'] = ""; } |
|
| 81 | - if(!check_valid_colorhex($_user['text_color']) && strlen($_user['text_color']) != 6) { $_user['text_color'] = ""; } |
|
| 82 | - if(!check_valid_colorhex($_user['primary_color_text']) && strlen($_user['primary_color_text']) != 6) { $_user['primary_color_text'] = ""; } |
|
| 83 | - if(!check_valid_colorhex($_user['2012_bgcolor']) && strlen($_user['2012_bgcolor']) != 6) { $_user['2012_bgcolor'] = ""; } |
|
| 78 | + if (!check_valid_colorhex($_user['primary_color']) && strlen($_user['primary_color']) != 6) { $_user['primary_color'] = ""; } |
|
| 79 | + if (!check_valid_colorhex($_user['secondary_color']) && strlen($_user['secondary_color']) != 6) { $_user['secondary_color'] = ""; } |
|
| 80 | + if (!check_valid_colorhex($_user['third_color']) && strlen($_user['third_color']) != 6) { $_user['third_color'] = ""; } |
|
| 81 | + if (!check_valid_colorhex($_user['text_color']) && strlen($_user['text_color']) != 6) { $_user['text_color'] = ""; } |
|
| 82 | + if (!check_valid_colorhex($_user['primary_color_text']) && strlen($_user['primary_color_text']) != 6) { $_user['primary_color_text'] = ""; } |
|
| 83 | + if (!check_valid_colorhex($_user['2012_bgcolor']) && strlen($_user['2012_bgcolor']) != 6) { $_user['2012_bgcolor'] = ""; } |
|
| 84 | 84 | |
| 85 | - if(isset($_SESSION['siteusername'])) |
|
| 85 | + if (isset($_SESSION['siteusername'])) |
|
| 86 | 86 | $__user_i->check_view_channel($_user['username'], @$_SESSION['siteusername']); |
| 87 | 87 | |
| 88 | - if($_SERVER['REQUEST_METHOD'] == 'POST') { |
|
| 88 | + if ($_SERVER['REQUEST_METHOD'] == 'POST') { |
|
| 89 | 89 | $error = array(); |
| 90 | 90 | |
| 91 | - if(!isset($_SESSION['siteusername'])){ $error['message'] = "you are not logged in"; $error['status'] = true; } |
|
| 92 | - if(!$_POST['comment']){ $error['message'] = "your comment cannot be blank"; $error['status'] = true; } |
|
| 93 | - if(strlen($_POST['comment']) > 1000){ $error['message'] = "your comment must be shorter than 1000 characters"; $error['status'] = true; } |
|
| 91 | + if (!isset($_SESSION['siteusername'])) { $error['message'] = "you are not logged in"; $error['status'] = true; } |
|
| 92 | + if (!$_POST['comment']) { $error['message'] = "your comment cannot be blank"; $error['status'] = true; } |
|
| 93 | + if (strlen($_POST['comment']) > 1000) { $error['message'] = "your comment must be shorter than 1000 characters"; $error['status'] = true; } |
|
| 94 | 94 | //if(!isset($_POST['g-recaptcha-response'])){ $error['message'] = "captcha validation failed"; $error['status'] = true; } |
| 95 | 95 | //if(!$_user_insert_utils->validateCaptcha($config['recaptcha_secret'], $_POST['g-recaptcha-response'])) { $error['message'] = "captcha validation failed"; $error['status'] = true; } |
| 96 | - if($__user_h->if_cooldown($_SESSION['siteusername'])) { $error['message'] = "You are on a cooldown! Wait for a minute before posting another comment."; $error['status'] = true; } |
|
| 96 | + if ($__user_h->if_cooldown($_SESSION['siteusername'])) { $error['message'] = "You are on a cooldown! Wait for a minute before posting another comment."; $error['status'] = true; } |
|
| 97 | 97 | //if(ifBlocked(@$_SESSION['siteusername'], $user['username'], $__db)) { $error = "This user has blocked you!"; $error['status'] = true; } |
| 98 | 98 | |
| 99 | - if(!isset($error['message'])) { |
|
| 99 | + if (!isset($error['message'])) { |
|
| 100 | 100 | $text = $_POST['comment']; |
| 101 | 101 | $stmt = $__db->prepare("INSERT INTO profile_comments (toid, author, comment) VALUES (:id, :username, :comment)"); |
| 102 | 102 | $stmt->bindParam(":id", $_user['username']); |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | |
| 107 | 107 | $_user_update_utils->update_comment_cooldown_time($_SESSION['siteusername']); |
| 108 | 108 | |
| 109 | - if(@$_SESSION['siteusername'] != $_user['username']) { |
|
| 109 | + if (@$_SESSION['siteusername'] != $_user['username']) { |
|
| 110 | 110 | $_user_insert_utils->send_message($_user['username'], "New comment", 'I commented "' . $_POST['comment'] . '" on your profile!', $_SESSION['siteusername']); |
| 111 | 111 | } |
| 112 | 112 | } |
@@ -144,11 +144,11 @@ discard block |
||
| 144 | 144 | <link rel="stylesheet" href="/yt/cssbin/www-extra.css"> |
| 145 | 145 | <style> |
| 146 | 146 | #content-container { |
| 147 | - background-color: <?php echo $_user['primary_color']; ?>; |
|
| 147 | + background-color: <?php echo $_user['primary_color']; ?>; |
|
| 148 | 148 | background-image: url(/dynamic/banners/<?php echo $_user['2012_bg']; ?>); |
| 149 | 149 | background-repeat: repeat; |
| 150 | 150 | <?php |
| 151 | - switch($_user['2012_bgoption']) { |
|
| 151 | + switch ($_user['2012_bgoption']) { |
|
| 152 | 152 | case "stretch": |
| 153 | 153 | echo "background-size: cover;"; |
| 154 | 154 | break; |
@@ -192,11 +192,11 @@ discard block |
||
| 192 | 192 | <div id="masthead-container"><?php require($_SERVER['DOCUMENT_ROOT'] . "/s/mod/header.php"); ?></div> |
| 193 | 193 | <div id="content-container"> |
| 194 | 194 | <!-- begin content --> |
| 195 | - <?php if(isset($_SESSION['siteusername']) && $_user['username'] == $_SESSION['siteusername']) { ?> |
|
| 195 | + <?php if (isset($_SESSION['siteusername']) && $_user['username'] == $_SESSION['siteusername']) { ?> |
|
| 196 | 196 | <div class="channel_customization"><?php require($_SERVER['DOCUMENT_ROOT'] . "/s/mod/channel_customization.php"); ?></div> |
| 197 | 197 | <?php } ?> |
| 198 | 198 | <?php |
| 199 | - if(empty(trim($_user['bio']))) |
|
| 199 | + if (empty(trim($_user['bio']))) |
|
| 200 | 200 | $_user['bio'] = "This user has no description."; |
| 201 | 201 | ?> |
| 202 | 202 | <div id="content"> |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | <h1><?php echo htmlspecialchars($_user['username']); ?></h1> |
| 252 | 252 | </div> |
| 253 | 253 | <div class="upper-left-section enable-fancy-subscribe-button"> |
| 254 | - <?php if($_user['username'] != @$_SESSION['siteusername']) { ?> |
|
| 254 | + <?php if ($_user['username'] != @$_SESSION['siteusername']) { ?> |
|
| 255 | 255 | <div class="yt-subscription-button-hovercard yt-uix-hovercard"> |
| 256 | 256 | <button |
| 257 | 257 | href="#" |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | title="" |
| 260 | 260 | id="subscribe-button" |
| 261 | 261 | type="button" |
| 262 | - class="yt-subscription-button <?php if($_user['subscribed']) { echo "subscribed "; } ?> yt-uix-button yt-uix-button-subscription yt-uix-tooltip" |
|
| 262 | + class="yt-subscription-button <?php if ($_user['subscribed']) { echo "subscribed "; } ?> yt-uix-button yt-uix-button-subscription yt-uix-tooltip" |
|
| 263 | 263 | role="button"><span class="yt-uix-button-icon-wrapper"><img class="yt-uix-button-icon yt-uix-button-icon-subscribe" |
| 264 | 264 | src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt=""></span><span class="yt-uix-button-content"> <span class="subscribe-label">Subscribe</span> |
| 265 | 265 | <span class="subscribed-label">Subscribed</span> |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | <?php } else { ?> |
| 276 | 276 | |
| 277 | 277 | <?php } ?> |
| 278 | - <?php if($__user_h->if_partner($_user['username'])) { ?> |
|
| 278 | + <?php if ($__user_h->if_partner($_user['username'])) { ?> |
|
| 279 | 279 | <img style="width: 29px;vertical-align: middle;margin-left: 10px;" title="This user is a SubRocks partner" src="/yt/imgbin/RenderedImage.png"> |
| 280 | 280 | <?php } ?> |
| 281 | 281 | </div> |
@@ -283,7 +283,7 @@ discard block |
||
| 283 | 283 | <div class="header-stats"> |
| 284 | 284 | <div class="stat-entry"> |
| 285 | 285 | <span class="stat-value"><?php echo $_user['subscribers']; ?></span> |
| 286 | - <span class="stat-name"><?php if($_user['subscribers'] == 1){ ?>subscriber<?php }else{ ?>subscribers<?php } ?></span> |
|
| 286 | + <span class="stat-name"><?php if ($_user['subscribers'] == 1) { ?>subscriber<?php } else { ?>subscribers<?php } ?></span> |
|
| 287 | 287 | </div> |
| 288 | 288 | <div class="stat-entry"> |
| 289 | 289 | <span class="stat-value"><?php echo $_user['views']; ?></span> |
@@ -328,7 +328,7 @@ discard block |
||
| 328 | 328 | </div> |
| 329 | 329 | </div> |
| 330 | 330 | </div> |
| 331 | - <?php if($_user['featured'] != "None") { $video = $__video_h->fetch_video_rid($_user['featured']); } else { $_user['featured'] = false; } ?> |
|
| 331 | + <?php if ($_user['featured'] != "None") { $video = $__video_h->fetch_video_rid($_user['featured']); } else { $_user['featured'] = false; } ?> |
|
| 332 | 332 | <div id="branded-page-body"> |
| 333 | 333 | <?php require($_SERVER['DOCUMENT_ROOT'] . "/s/mod/channel_" . $_user['layout'] . ".php"); ?> |
| 334 | 334 | </div> |
@@ -23,15 +23,15 @@ discard block |
||
| 23 | 23 | "db_connected" => false, |
| 24 | 24 | ], |
| 25 | 25 | |
| 26 | - "video_properties" => (object) [ "status" => "unloaded" ], |
|
| 27 | - "user_properties" => (object) [ "status" => "unloaded" ], |
|
| 28 | - "group_properties" => (object) [ "status" => "unloaded" ], |
|
| 29 | - "forum_properties" => (object) [ "status" => "unloaded" ], |
|
| 26 | + "video_properties" => (object) ["status" => "unloaded"], |
|
| 27 | + "user_properties" => (object) ["status" => "unloaded"], |
|
| 28 | + "group_properties" => (object) ["status" => "unloaded"], |
|
| 29 | + "forum_properties" => (object) ["status" => "unloaded"], |
|
| 30 | 30 | ]; |
| 31 | 31 | |
| 32 | 32 | try |
| 33 | 33 | { |
| 34 | - $__db = new PDO("mysql:host=".$__server->db_properties->db_host.";dbname=".$__server->db_properties->db_database.";charset=utf8mb4", |
|
| 34 | + $__db = new PDO("mysql:host=" . $__server->db_properties->db_host . ";dbname=" . $__server->db_properties->db_database . ";charset=utf8mb4", |
|
| 35 | 35 | $__server->db_properties->db_user, |
| 36 | 36 | $__server->db_properties->db_password, |
| 37 | 37 | [ |
@@ -41,9 +41,9 @@ discard block |
||
| 41 | 41 | ); |
| 42 | 42 | $__server->db_properties->db_connected = true; |
| 43 | 43 | } |
| 44 | - catch(PDOException $e) |
|
| 44 | + catch (PDOException $e) |
|
| 45 | 45 | { |
| 46 | - die("An error occured connecting to the database: ".$e->getMessage()); |
|
| 46 | + die("An error occured connecting to the database: " . $e->getMessage()); |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | session_start(); |
@@ -53,9 +53,9 @@ discard block |
||
| 53 | 53 | $stmt->bindParam(":username", $_SESSION['siteusername']); |
| 54 | 54 | $stmt->execute(); |
| 55 | 55 | |
| 56 | - while($ban = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 56 | + while ($ban = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 57 | 57 | $ban_info = $ban; |
| 58 | - if($_SERVER['REQUEST_URI'] != "/ban") |
|
| 58 | + if ($_SERVER['REQUEST_URI'] != "/ban") |
|
| 59 | 59 | header("Location: /ban"); |
| 60 | 60 | } |
| 61 | 61 | |
@@ -64,14 +64,14 @@ discard block |
||
| 64 | 64 | $stmt->bindParam(":username", $_SERVER["HTTP_CF_CONNECTING_IP"]); |
| 65 | 65 | $stmt->execute(); |
| 66 | 66 | |
| 67 | - while($ban = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 67 | + while ($ban = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 68 | 68 | $ban_info = $ban; |
| 69 | - if($_SERVER['REQUEST_URI'] != "/ip_ban") |
|
| 69 | + if ($_SERVER['REQUEST_URI'] != "/ip_ban") |
|
| 70 | 70 | header("Location: /ip_ban"); |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | /* NOT RUNNING UNDER CF CHECK */ |
| 74 | - if(!isset($_SERVER["HTTP_CF_CONNECTING_IP"])) { |
|
| 74 | + if (!isset($_SERVER["HTTP_CF_CONNECTING_IP"])) { |
|
| 75 | 75 | $_SERVER["HTTP_CF_CONNECTING_IP"] = $_SERVER['REMOTE_ADDR']; |
| 76 | 76 | } |
| 77 | 77 | ?> |
| 78 | 78 | \ No newline at end of file |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | class user_helper { |
| 12 | 12 | public $__db; |
| 13 | 13 | |
| 14 | - public function __construct($conn){ |
|
| 14 | + public function __construct($conn) { |
|
| 15 | 15 | $this->__db = $conn; |
| 16 | 16 | } |
| 17 | 17 | |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | $stmt = $this->__db->prepare("SELECT pfp FROM users WHERE username = :username"); |
| 20 | 20 | $stmt->bindParam(":username", $username); |
| 21 | 21 | $stmt->execute(); |
| 22 | - while($row = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 22 | + while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 23 | 23 | $pfp = $row['pfp']; |
| 24 | 24 | } // why the while statement? just remove it (i cant be bothered to) |
| 25 | 25 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | function if_admin($user) { |
| 48 | 48 | $stmt = $this->__db->prepare("SELECT status FROM users WHERE username = :user AND status = 'admin'"); |
| 49 | - $stmt->bindParam(":user", $user);; |
|
| 49 | + $stmt->bindParam(":user", $user); ; |
|
| 50 | 50 | $stmt->execute(); |
| 51 | 51 | |
| 52 | 52 | return $stmt->rowCount() === 1; |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | function if_partner($user) { |
| 56 | 56 | $stmt = $this->__db->prepare("SELECT partner FROM users WHERE username = :user AND partner = 'y'"); |
| 57 | - $stmt->bindParam(":user", $user);; |
|
| 57 | + $stmt->bindParam(":user", $user); ; |
|
| 58 | 58 | $stmt->execute(); |
| 59 | 59 | |
| 60 | 60 | return $stmt->rowCount() === 1; |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | <?php |
| 64 | 64 | $stmt = $__db->prepare("SELECT * FROM videos WHERE featured = 'v' ORDER BY id DESC LIMIT 1"); |
| 65 | 65 | $stmt->execute(); |
| 66 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 66 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 67 | 67 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 68 | 68 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 69 | 69 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -71,20 +71,20 @@ discard block |
||
| 71 | 71 | $video['title'] = htmlspecialchars($video['title']); |
| 72 | 72 | $video['description'] = $__video_h->shorten_description($video['description'], 50); |
| 73 | 73 | ?> |
| 74 | - <div class="context-data-item" data-context-item-id="<?php echo $video['rid']; ?>" data-context-item-type="video" data-context-item-title="<?php echo $video['title']; ?>" data-context-item-views="<?php echo $video['views']; ?> views" data-context-item-user="<?php echo $video['author']; ?>" data-context-item-time="6:58"> |
|
| 75 | - <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ved=CAMQ0x4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo"><span class="video-thumb ux-thumb yt-thumb-default-370 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" alt="Thumbnail" width="370"><span class="vertical-align"></span></span></span></span><span class="video-time">6:58</span> |
|
| 76 | - <button onclick=";return false;" type="button" class="addto-button video-actions spf-nolink addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" title="Watch Later" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="<?php echo $video['rid']; ?>" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
|
| 74 | + <div class="context-data-item" data-context-item-id="<?php echo $video['rid']; ?>" data-context-item-type="video" data-context-item-title="<?php echo $video['title']; ?>" data-context-item-views="<?php echo $video['views']; ?> views" data-context-item-user="<?php echo $video['author']; ?>" data-context-item-time="6:58"> |
|
| 75 | + <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ved=CAMQ0x4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo"><span class="video-thumb ux-thumb yt-thumb-default-370 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" alt="Thumbnail" width="370"><span class="vertical-align"></span></span></span></span><span class="video-time">6:58</span> |
|
| 76 | + <button onclick=";return false;" type="button" class="addto-button video-actions spf-nolink addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" title="Watch Later" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="<?php echo $video['rid']; ?>" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
|
| 77 | 77 | </span> <img class="yt-uix-button-arrow" src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="" title=""> |
| 78 | 78 | </button> |
| 79 | 79 | </a> |
| 80 | - <a class="lohp-video-link max-line-2 yt-uix-sessionlink" data-sessionlink="ved=CAMQ0x4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo" href="/watch?v=<?php echo $video['rid']; ?>" title="<?php echo $video['title']; ?>"><?php echo $video['title']; ?></a> |
|
| 80 | + <a class="lohp-video-link max-line-2 yt-uix-sessionlink" data-sessionlink="ved=CAMQ0x4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo" href="/watch?v=<?php echo $video['rid']; ?>" title="<?php echo $video['title']; ?>"><?php echo $video['title']; ?></a> |
|
| 81 | 81 | <div class="lohp-video-metadata attached"> |
| 82 | 82 | <span class="content-uploader"> |
| 83 | - <span class="username-prepend">by</span> <a href="/user/<?php echo $video['author']; ?>" class="yt-uix-sessionlink yt-user-name " data-sessionlink="ei=7pFAUZzAG52shAGGr4DACw" dir="ltr"><?php echo $video['author']; ?></a> |
|
| 83 | + <span class="username-prepend">by</span> <a href="/user/<?php echo $video['author']; ?>" class="yt-uix-sessionlink yt-user-name " data-sessionlink="ei=7pFAUZzAG52shAGGr4DACw" dir="ltr"><?php echo $video['author']; ?></a> |
|
| 84 | 84 | </span> |
| 85 | 85 | </div> |
| 86 | - <p title="<?php echo $video['description']; ?>" class="lohp-blog-headline"> |
|
| 87 | - <?php echo $video['description']; ?> |
|
| 86 | + <p title="<?php echo $video['description']; ?>" class="lohp-blog-headline"> |
|
| 87 | + <?php echo $video['description']; ?> |
|
| 88 | 88 | </p> |
| 89 | 89 | <a title="Trending" href="#" class="lohp-blog-attribution"> |
| 90 | 90 | <img src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="" class="lohp-blog-decoration">Trending & Featured: SubRocks |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | <?php |
| 97 | 97 | $stmt = $__db->prepare("SELECT * FROM videos WHERE featured = 'v' ORDER BY id DESC LIMIT 1, 3"); |
| 98 | 98 | $stmt->execute(); |
| 99 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 99 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 100 | 100 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 101 | 101 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 102 | 102 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -104,23 +104,23 @@ discard block |
||
| 104 | 104 | $video['title'] = htmlspecialchars($video['title']); |
| 105 | 105 | $video['description'] = $__video_h->shorten_description($video['description'], 50); |
| 106 | 106 | ?> |
| 107 | - <div class="lohp-medium-shelf context-data-item" data-context-item-id="<?php echo $video['rid']; ?>" data-context-item-type="video" data-context-item-title="<?php echo $video['title']; ?>" data-context-item-views="5,761,446 views" data-context-item-user="<?php echo $video['author']; ?>" data-context-item-time="<?php echo $video['duration']; ?>"> |
|
| 107 | + <div class="lohp-medium-shelf context-data-item" data-context-item-id="<?php echo $video['rid']; ?>" data-context-item-type="video" data-context-item-title="<?php echo $video['title']; ?>" data-context-item-views="5,761,446 views" data-context-item-user="<?php echo $video['author']; ?>" data-context-item-time="<?php echo $video['duration']; ?>"> |
|
| 108 | 108 | <div class="lohp-media-object"> |
| 109 | - <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ved=CAQQ0x4oAQ&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo"><span class="video-thumb ux-thumb yt-thumb-default-128 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" alt="Thumbnail" width="128"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
|
| 110 | - <button onclick=";return false;" type="button" class="addto-button video-actions spf-nolink addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" title="Watch Later" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="<?php echo $video['rid']; ?>" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
|
| 109 | + <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ved=CAQQ0x4oAQ&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo"><span class="video-thumb ux-thumb yt-thumb-default-128 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" alt="Thumbnail" width="128"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
|
| 110 | + <button onclick=";return false;" type="button" class="addto-button video-actions spf-nolink addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" title="Watch Later" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="<?php echo $video['rid']; ?>" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
|
| 111 | 111 | </span> <img class="yt-uix-button-arrow" src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="" title=""> |
| 112 | 112 | </button> |
| 113 | 113 | </a> |
| 114 | 114 | </div> |
| 115 | 115 | <div class="lohp-media-object-content lohp-medium-shelf-content"> |
| 116 | - <a class="lohp-video-link max-line-1 yt-uix-sessionlink" data-sessionlink="ved=CAQQ0x4oAQ&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo" href="/watch?v=<?php echo $video['rid']; ?>" title="<?php echo $video['title']; ?>"><?php echo $video['title']; ?></a> |
|
| 116 | + <a class="lohp-video-link max-line-1 yt-uix-sessionlink" data-sessionlink="ved=CAQQ0x4oAQ&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo" href="/watch?v=<?php echo $video['rid']; ?>" title="<?php echo $video['title']; ?>"><?php echo $video['title']; ?></a> |
|
| 117 | 117 | <div class="lohp-video-metadata attached"> |
| 118 | 118 | <span class="content-uploader"> |
| 119 | - <span class="username-prepend">by</span> <a href="/user/<?php echo $video['author']; ?>" class="yt-uix-sessionlink yt-user-name " data-sessionlink="ei=7pFAUZzAG52shAGGr4DACw" dir="ltr"><?php echo $video['author']; ?></a> |
|
| 119 | + <span class="username-prepend">by</span> <a href="/user/<?php echo $video['author']; ?>" class="yt-uix-sessionlink yt-user-name " data-sessionlink="ei=7pFAUZzAG52shAGGr4DACw" dir="ltr"><?php echo $video['author']; ?></a> |
|
| 120 | 120 | </span> |
| 121 | 121 | </div> |
| 122 | - <p title="<?php echo $video['title']; ?>" class="lohp-blog-headline"> |
|
| 123 | - <?php echo $video['title']; ?> |
|
| 122 | + <p title="<?php echo $video['title']; ?>" class="lohp-blog-headline"> |
|
| 123 | + <?php echo $video['title']; ?> |
|
| 124 | 124 | </p> |
| 125 | 125 | </div> |
| 126 | 126 | </div> |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | <?php |
| 140 | 140 | $stmt = $__db->prepare("SELECT * FROM videos ORDER BY id DESC LIMIT 6"); |
| 141 | 141 | $stmt->execute(); |
| 142 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 142 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 143 | 143 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 144 | 144 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 145 | 145 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | <?php |
| 179 | 179 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Entertainment' ORDER BY rand() LIMIT 3"); |
| 180 | 180 | $stmt->execute(); |
| 181 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 181 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 182 | 182 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 183 | 183 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 184 | 184 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | <?php |
| 218 | 218 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Sports' ORDER BY rand() LIMIT 3"); |
| 219 | 219 | $stmt->execute(); |
| 220 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 220 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 221 | 221 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 222 | 222 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 223 | 223 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | <?php |
| 257 | 257 | $stmt = $__db->prepare("SELECT * FROM videos WHERE author = 'bhief' ORDER BY rand() LIMIT 1"); |
| 258 | 258 | $stmt->execute(); |
| 259 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 259 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 260 | 260 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 261 | 261 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 262 | 262 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -293,7 +293,7 @@ discard block |
||
| 293 | 293 | <?php |
| 294 | 294 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Music' ORDER BY rand() LIMIT 2"); |
| 295 | 295 | $stmt->execute(); |
| 296 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 296 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 297 | 297 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 298 | 298 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 299 | 299 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -332,7 +332,7 @@ discard block |
||
| 332 | 332 | <?php |
| 333 | 333 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 3"); |
| 334 | 334 | $stmt->execute(); |
| 335 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 335 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 336 | 336 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 337 | 337 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 338 | 338 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -371,7 +371,7 @@ discard block |
||
| 371 | 371 | <?php |
| 372 | 372 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 2"); |
| 373 | 373 | $stmt->execute(); |
| 374 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 374 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 375 | 375 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 376 | 376 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 377 | 377 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -379,19 +379,19 @@ discard block |
||
| 379 | 379 | $video['title'] = htmlspecialchars($video['title']); |
| 380 | 380 | $video['description'] = $__video_h->shorten_description($video['description'], 50); |
| 381 | 381 | ?> |
| 382 | - <div class="lohp-vertical-shelf-item context-data-item" data-context-item-id="<?php echo $video['rid']; ?>" data-context-item-type="video" data-context-item-title="<?php echo $video['title']; ?>" data-context-item-views="303 views" data-context-item-user="<?php echo $video['author']; ?>" data-context-item-time="<?php echo $video['duration']; ?>"> |
|
| 382 | + <div class="lohp-vertical-shelf-item context-data-item" data-context-item-id="<?php echo $video['rid']; ?>" data-context-item-type="video" data-context-item-title="<?php echo $video['title']; ?>" data-context-item-views="303 views" data-context-item-user="<?php echo $video['author']; ?>" data-context-item-time="<?php echo $video['duration']; ?>"> |
|
| 383 | 383 | <div class="lohp-media-object"> |
| 384 | - <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ved=CCsQzx4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo"><span class="video-thumb ux-thumb yt-thumb-default-64 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="64"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
|
| 385 | - <button onclick=";return false;" type="button" class="addto-button video-actions spf-nolink addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" title="Watch Later" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="<?php echo $video['rid']; ?>" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
|
| 384 | + <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ved=CCsQzx4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo"><span class="video-thumb ux-thumb yt-thumb-default-64 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="64"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
|
| 385 | + <button onclick=";return false;" type="button" class="addto-button video-actions spf-nolink addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" title="Watch Later" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="<?php echo $video['rid']; ?>" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
|
| 386 | 386 | </span> <img class="yt-uix-button-arrow" src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="" title=""> |
| 387 | 387 | </button> |
| 388 | 388 | </a> |
| 389 | 389 | </div> |
| 390 | 390 | <div class="lohp-vertical-shelf-item-content lohp-media-object-content"> |
| 391 | - <a class="lohp-video-link max-line-3 yt-uix-sessionlink" data-sessionlink="ved=CCsQzx4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo" href="/watch?v=<?php echo $video['rid']; ?>" title="<?php echo $video['title']; ?>"><?php echo $video['title']; ?></a> |
|
| 391 | + <a class="lohp-video-link max-line-3 yt-uix-sessionlink" data-sessionlink="ved=CCsQzx4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo" href="/watch?v=<?php echo $video['rid']; ?>" title="<?php echo $video['title']; ?>"><?php echo $video['title']; ?></a> |
|
| 392 | 392 | <div class="lohp-video-metadata attached"> |
| 393 | 393 | <span class="content-uploader"> |
| 394 | - <span class="username-prepend">by</span> <a href="/user/<?php echo $video['author']; ?>" class="yt-uix-sessionlink yt-user-name " data-sessionlink="ei=7pFAUZzAG52shAGGr4DACw" dir="ltr"><?php echo $video['author']; ?></a> |
|
| 394 | + <span class="username-prepend">by</span> <a href="/user/<?php echo $video['author']; ?>" class="yt-uix-sessionlink yt-user-name " data-sessionlink="ei=7pFAUZzAG52shAGGr4DACw" dir="ltr"><?php echo $video['author']; ?></a> |
|
| 395 | 395 | </span> |
| 396 | 396 | </div> |
| 397 | 397 | </div> |
@@ -407,7 +407,7 @@ discard block |
||
| 407 | 407 | <?php |
| 408 | 408 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Music' ORDER BY rand() LIMIT 4"); |
| 409 | 409 | $stmt->execute(); |
| 410 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 410 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 411 | 411 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 412 | 412 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 413 | 413 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -415,19 +415,19 @@ discard block |
||
| 415 | 415 | $video['title'] = htmlspecialchars($video['title']); |
| 416 | 416 | $video['description'] = $__video_h->shorten_description($video['description'], 50); |
| 417 | 417 | ?> |
| 418 | - <div class="lohp-vertical-shelf-item context-data-item" data-context-item-id="<?php echo $video['rid']; ?>" data-context-item-type="video" data-context-item-title="<?php echo $video['title']; ?>" data-context-item-views="303 views" data-context-item-user="<?php echo $video['author']; ?>" data-context-item-time="<?php echo $video['duration']; ?>"> |
|
| 418 | + <div class="lohp-vertical-shelf-item context-data-item" data-context-item-id="<?php echo $video['rid']; ?>" data-context-item-type="video" data-context-item-title="<?php echo $video['title']; ?>" data-context-item-views="303 views" data-context-item-user="<?php echo $video['author']; ?>" data-context-item-time="<?php echo $video['duration']; ?>"> |
|
| 419 | 419 | <div class="lohp-media-object"> |
| 420 | - <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ved=CCsQzx4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo"><span class="video-thumb ux-thumb yt-thumb-default-64 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="64"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
|
| 421 | - <button onclick=";return false;" type="button" class="addto-button video-actions spf-nolink addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" title="Watch Later" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="<?php echo $video['rid']; ?>" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
|
| 420 | + <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ved=CCsQzx4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo"><span class="video-thumb ux-thumb yt-thumb-default-64 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="64"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
|
| 421 | + <button onclick=";return false;" type="button" class="addto-button video-actions spf-nolink addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" title="Watch Later" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="<?php echo $video['rid']; ?>" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
|
| 422 | 422 | </span> <img class="yt-uix-button-arrow" src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="" title=""> |
| 423 | 423 | </button> |
| 424 | 424 | </a> |
| 425 | 425 | </div> |
| 426 | 426 | <div class="lohp-vertical-shelf-item-content lohp-media-object-content"> |
| 427 | - <a class="lohp-video-link max-line-3 yt-uix-sessionlink" data-sessionlink="ved=CCsQzx4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo" href="/watch?v=<?php echo $video['rid']; ?>" title="<?php echo $video['title']; ?>"><?php echo $video['title']; ?></a> |
|
| 427 | + <a class="lohp-video-link max-line-3 yt-uix-sessionlink" data-sessionlink="ved=CCsQzx4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo" href="/watch?v=<?php echo $video['rid']; ?>" title="<?php echo $video['title']; ?>"><?php echo $video['title']; ?></a> |
|
| 428 | 428 | <div class="lohp-video-metadata attached"> |
| 429 | 429 | <span class="content-uploader"> |
| 430 | - <span class="username-prepend">by</span> <a href="/user/<?php echo $video['author']; ?>" class="yt-uix-sessionlink yt-user-name " data-sessionlink="ei=7pFAUZzAG52shAGGr4DACw" dir="ltr"><?php echo $video['author']; ?></a> |
|
| 430 | + <span class="username-prepend">by</span> <a href="/user/<?php echo $video['author']; ?>" class="yt-uix-sessionlink yt-user-name " data-sessionlink="ei=7pFAUZzAG52shAGGr4DACw" dir="ltr"><?php echo $video['author']; ?></a> |
|
| 431 | 431 | </span> |
| 432 | 432 | </div> |
| 433 | 433 | </div> |
@@ -443,7 +443,7 @@ discard block |
||
| 443 | 443 | <?php |
| 444 | 444 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Trending' ORDER BY rand() LIMIT 4"); |
| 445 | 445 | $stmt->execute(); |
| 446 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 446 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 447 | 447 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 448 | 448 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 449 | 449 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -451,19 +451,19 @@ discard block |
||
| 451 | 451 | $video['title'] = htmlspecialchars($video['title']); |
| 452 | 452 | $video['description'] = $__video_h->shorten_description($video['description'], 50); |
| 453 | 453 | ?> |
| 454 | - <div class="lohp-vertical-shelf-item context-data-item" data-context-item-id="<?php echo $video['rid']; ?>" data-context-item-type="video" data-context-item-title="<?php echo $video['title']; ?>" data-context-item-views="303 views" data-context-item-user="<?php echo $video['author']; ?>" data-context-item-time="<?php echo $video['duration']; ?>"> |
|
| 454 | + <div class="lohp-vertical-shelf-item context-data-item" data-context-item-id="<?php echo $video['rid']; ?>" data-context-item-type="video" data-context-item-title="<?php echo $video['title']; ?>" data-context-item-views="303 views" data-context-item-user="<?php echo $video['author']; ?>" data-context-item-time="<?php echo $video['duration']; ?>"> |
|
| 455 | 455 | <div class="lohp-media-object"> |
| 456 | - <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ved=CCsQzx4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo"><span class="video-thumb ux-thumb yt-thumb-default-64 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="64"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
|
| 457 | - <button onclick=";return false;" type="button" class="addto-button video-actions spf-nolink addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" title="Watch Later" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="<?php echo $video['rid']; ?>" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
|
| 456 | + <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ved=CCsQzx4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo"><span class="video-thumb ux-thumb yt-thumb-default-64 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="64"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
|
| 457 | + <button onclick=";return false;" type="button" class="addto-button video-actions spf-nolink addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" title="Watch Later" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="<?php echo $video['rid']; ?>" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
|
| 458 | 458 | </span> <img class="yt-uix-button-arrow" src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="" title=""> |
| 459 | 459 | </button> |
| 460 | 460 | </a> |
| 461 | 461 | </div> |
| 462 | 462 | <div class="lohp-vertical-shelf-item-content lohp-media-object-content"> |
| 463 | - <a class="lohp-video-link max-line-3 yt-uix-sessionlink" data-sessionlink="ved=CCsQzx4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo" href="/watch?v=<?php echo $video['rid']; ?>" title="<?php echo $video['title']; ?>"><?php echo $video['title']; ?></a> |
|
| 463 | + <a class="lohp-video-link max-line-3 yt-uix-sessionlink" data-sessionlink="ved=CCsQzx4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo" href="/watch?v=<?php echo $video['rid']; ?>" title="<?php echo $video['title']; ?>"><?php echo $video['title']; ?></a> |
|
| 464 | 464 | <div class="lohp-video-metadata attached"> |
| 465 | 465 | <span class="content-uploader"> |
| 466 | - <span class="username-prepend">by</span> <a href="/user/<?php echo $video['author']; ?>" class="yt-uix-sessionlink yt-user-name " data-sessionlink="ei=7pFAUZzAG52shAGGr4DACw" dir="ltr"><?php echo $video['author']; ?></a> |
|
| 466 | + <span class="username-prepend">by</span> <a href="/user/<?php echo $video['author']; ?>" class="yt-uix-sessionlink yt-user-name " data-sessionlink="ei=7pFAUZzAG52shAGGr4DACw" dir="ltr"><?php echo $video['author']; ?></a> |
|
| 467 | 467 | </span> |
| 468 | 468 | </div> |
| 469 | 469 | </div> |
@@ -103,8 +103,8 @@ discard block |
||
| 103 | 103 | <div class="guide-recommendations-list"> |
| 104 | 104 | <div class="guide-channels-content"> |
| 105 | 105 | <ul class="guide-channels-list guide-item-container yt-uix-scroller filter-has-matches"> |
| 106 | - <?php if(!isset($_SESSION['siteusername'])) { ?> |
|
| 107 | - <?php foreach($__server->featured_channels as $channel) { ?> |
|
| 106 | + <?php if (!isset($_SESSION['siteusername'])) { ?> |
|
| 107 | + <?php foreach ($__server->featured_channels as $channel) { ?> |
|
| 108 | 108 | <li class="guide-channel"> |
| 109 | 109 | <a class="guide-item yt-uix-sessionlink narrow-item" href="/feed/UCF1cWZk-kVBrN9AM_ey7qdQ" title="<?php echo htmlspecialchars($channel); ?>" data-channel-id="UCF1cWZk-kVBrN9AM_ey7qdQ" data-featured="1" data-sessionlink="ei=7pFAUZzAG52shAGGr4DACw&feature=g-featured"> |
| 110 | 110 | <span class="thumb"><span class="video-thumb ux-thumb yt-thumb-square-18 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb-manual="1" data-thumb="/dynamic/pfp/<?php echo $__user_h->fetch_pfp($channel); ?>" data-group-key="guide-channel-thumbs" width="18"><span class="vertical-align"></span></span></span></span></span> |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | $stmt = $__db->prepare("SELECT * FROM subscribers WHERE sender = :username ORDER BY id DESC LIMIT 20"); |
| 119 | 119 | $stmt->bindParam(":username", $_SESSION['siteusername']); |
| 120 | 120 | $stmt->execute(); |
| 121 | - while($channel = $stmt->fetch(PDO::FETCH_ASSOC)) { $channel = $channel['reciever']; ?> |
|
| 121 | + while ($channel = $stmt->fetch(PDO::FETCH_ASSOC)) { $channel = $channel['reciever']; ?> |
|
| 122 | 122 | <li class="guide-channel"> |
| 123 | 123 | <a class="guide-item yt-uix-sessionlink narrow-item" href="/feed/UCF1cWZk-kVBrN9AM_ey7qdQ" title="<?php echo htmlspecialchars($channel); ?>" data-channel-id="UCF1cWZk-kVBrN9AM_ey7qdQ" data-featured="1" data-sessionlink="ei=7pFAUZzAG52shAGGr4DACw&feature=g-featured"> |
| 124 | 124 | <span class="thumb"><span class="video-thumb ux-thumb yt-thumb-square-18 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb-manual="1" data-thumb="/dynamic/pfp/<?php echo $__user_h->fetch_pfp($channel); ?>" data-group-key="guide-channel-thumbs" width="18"><span class="vertical-align"></span></span></span></span></span> |