@@ -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']); |
@@ -16,8 +16,8 @@ discard block |
||
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | |
| 19 | - if($_SERVER['REQUEST_METHOD'] == 'POST' && @$_GET['n']) { |
|
| 20 | - if(!empty($_GET["n"]) && $_GET['n'] == "pfp") { |
|
| 19 | + if ($_SERVER['REQUEST_METHOD'] == 'POST' && @$_GET['n']) { |
|
| 20 | + if (!empty($_GET["n"]) && $_GET['n'] == "pfp") { |
|
| 21 | 21 | $target_dir = "../dynamic/pfp/"; |
| 22 | 22 | $imageFileType = strtolower(pathinfo($_FILES["file"]["name"], PATHINFO_EXTENSION)); |
| 23 | 23 | $target_name = md5_file($_FILES["file"]["tmp_name"]) . "." . $imageFileType; |
@@ -27,8 +27,8 @@ discard block |
||
| 27 | 27 | $uploadOk = true; |
| 28 | 28 | $movedFile = false; |
| 29 | 29 | |
| 30 | - if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
| 31 | - && $imageFileType != "gif" ) { |
|
| 30 | + if ($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
| 31 | + && $imageFileType != "gif") { |
|
| 32 | 32 | $fileerror = 'unsupported file type. must be jpg, png, jpeg, or gif'; |
| 33 | 33 | $uploadOk = false; |
| 34 | 34 | goto skip; |
@@ -51,8 +51,8 @@ discard block |
||
| 51 | 51 | } |
| 52 | 52 | } |
| 53 | 53 | } |
| 54 | - } else if($_SERVER['REQUEST_METHOD'] == 'POST' && @$_FILES['backgroundbgset']) { |
|
| 55 | - if(!empty($_FILES["backgroundbgset"]["name"])) { |
|
| 54 | + } else if ($_SERVER['REQUEST_METHOD'] == 'POST' && @$_FILES['backgroundbgset']) { |
|
| 55 | + if (!empty($_FILES["backgroundbgset"]["name"])) { |
|
| 56 | 56 | $target_dir = "../dynamic/banners/"; |
| 57 | 57 | $imageFileType = strtolower(pathinfo($_FILES["backgroundbgset"]["name"], PATHINFO_EXTENSION)); |
| 58 | 58 | $target_name = md5_file($_FILES["backgroundbgset"]["tmp_name"]) . "." . $imageFileType; |
@@ -62,14 +62,14 @@ discard block |
||
| 62 | 62 | $uploadOk = true; |
| 63 | 63 | $movedFile = false; |
| 64 | 64 | |
| 65 | - if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
| 66 | - && $imageFileType != "gif" ) { |
|
| 65 | + if ($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
| 66 | + && $imageFileType != "gif") { |
|
| 67 | 67 | $fileerror = 'unsupported file type. must be jpg, png, jpeg, or gif'; |
| 68 | 68 | $uploadOk = false; |
| 69 | 69 | goto skip; |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | - if($uploadOk) { |
|
| 72 | + if ($uploadOk) { |
|
| 73 | 73 | if (file_exists($target_file)) { |
| 74 | 74 | $movedFile = true; |
| 75 | 75 | } else { |
@@ -85,9 +85,9 @@ discard block |
||
| 85 | 85 | } |
| 86 | 86 | } |
| 87 | 87 | } |
| 88 | - } else if($_SERVER['REQUEST_METHOD'] == 'POST' && @$_FILES['watchsubset']) { |
|
| 88 | + } else if ($_SERVER['REQUEST_METHOD'] == 'POST' && @$_FILES['watchsubset']) { |
|
| 89 | 89 | echo "asdas"; |
| 90 | - if(!empty($_FILES["watchsubset"]["name"])) { |
|
| 90 | + if (!empty($_FILES["watchsubset"]["name"])) { |
|
| 91 | 91 | echo "asdas"; |
| 92 | 92 | |
| 93 | 93 | $target_dir = "../dynamic/banners/"; |
@@ -99,14 +99,14 @@ discard block |
||
| 99 | 99 | $uploadOk = true; |
| 100 | 100 | $movedFile = false; |
| 101 | 101 | |
| 102 | - if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
| 103 | - && $imageFileType != "gif" ) { |
|
| 102 | + if ($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
| 103 | + && $imageFileType != "gif") { |
|
| 104 | 104 | $fileerror = 'unsupported file type. must be jpg, png, jpeg, or gif'; |
| 105 | 105 | $uploadOk = false; |
| 106 | 106 | goto skip; |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | - if($uploadOk) { |
|
| 109 | + if ($uploadOk) { |
|
| 110 | 110 | if (file_exists($target_file)) { |
| 111 | 111 | $movedFile = true; |
| 112 | 112 | } else { |
@@ -122,8 +122,8 @@ discard block |
||
| 122 | 122 | } |
| 123 | 123 | } |
| 124 | 124 | } |
| 125 | - } else if($_SERVER['REQUEST_METHOD'] == 'POST' && @$_POST['bannerset']) { |
|
| 126 | - if(!empty($_FILES["file"]["name"])) { |
|
| 125 | + } else if ($_SERVER['REQUEST_METHOD'] == 'POST' && @$_POST['bannerset']) { |
|
| 126 | + if (!empty($_FILES["file"]["name"])) { |
|
| 127 | 127 | $target_dir = "../dynamic/banners/"; |
| 128 | 128 | $imageFileType = strtolower(pathinfo($_FILES["file"]["name"], PATHINFO_EXTENSION)); |
| 129 | 129 | $target_name = md5_file($_FILES["file"]["tmp_name"]) . "." . $imageFileType; |
@@ -133,14 +133,14 @@ discard block |
||
| 133 | 133 | $uploadOk = true; |
| 134 | 134 | $movedFile = false; |
| 135 | 135 | |
| 136 | - if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
| 137 | - && $imageFileType != "gif" ) { |
|
| 136 | + if ($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
| 137 | + && $imageFileType != "gif") { |
|
| 138 | 138 | $fileerror = 'unsupported file type. must be jpg, png, jpeg, or gif'; |
| 139 | 139 | $uploadOk = false; |
| 140 | 140 | goto skip; |
| 141 | 141 | } |
| 142 | 142 | |
| 143 | - if($uploadOk) { |
|
| 143 | + if ($uploadOk) { |
|
| 144 | 144 | if (file_exists($target_file)) { |
| 145 | 145 | $movedFile = true; |
| 146 | 146 | } else { |
@@ -156,8 +156,8 @@ discard block |
||
| 156 | 156 | } |
| 157 | 157 | } |
| 158 | 158 | } |
| 159 | - } else if($_SERVER['REQUEST_METHOD'] == 'POST' && @$_FILES['videopagebanner']) { |
|
| 160 | - if(!empty($_FILES["videopagebanner"]["name"])) { |
|
| 159 | + } else if ($_SERVER['REQUEST_METHOD'] == 'POST' && @$_FILES['videopagebanner']) { |
|
| 160 | + if (!empty($_FILES["videopagebanner"]["name"])) { |
|
| 161 | 161 | $target_dir = "/dynamic/subscribe/"; |
| 162 | 162 | $imageFileType = strtolower(pathinfo($_FILES["videopagebanner"]["name"], PATHINFO_EXTENSION)); |
| 163 | 163 | $target_name = md5_file($_FILES["videopagebanner"]["tmp_name"]) . "." . $imageFileType; |
@@ -167,14 +167,14 @@ discard block |
||
| 167 | 167 | $uploadOk = true; |
| 168 | 168 | $movedFile = false; |
| 169 | 169 | |
| 170 | - if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
| 171 | - && $imageFileType != "gif" ) { |
|
| 170 | + if ($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" |
|
| 171 | + && $imageFileType != "gif") { |
|
| 172 | 172 | $fileerror = 'unsupported file type. must be jpg, png, jpeg, or gif'; |
| 173 | 173 | $uploadOk = false; |
| 174 | 174 | goto skip; |
| 175 | 175 | } |
| 176 | 176 | |
| 177 | - if($uploadOk) { |
|
| 177 | + if ($uploadOk) { |
|
| 178 | 178 | if (file_exists($target_file)) { |
| 179 | 179 | $movedFile = true; |
| 180 | 180 | } else { |
@@ -192,81 +192,81 @@ discard block |
||
| 192 | 192 | } |
| 193 | 193 | } |
| 194 | 194 | |
| 195 | - if(!empty($_POST['bio'])) { |
|
| 195 | + if (!empty($_POST['bio'])) { |
|
| 196 | 196 | $__user_u->update_row($_SESSION['siteusername'], "bio", $_POST['bio']); |
| 197 | 197 | } |
| 198 | 198 | |
| 199 | - if(!empty($_POST['featuredchannels'])) { |
|
| 199 | + if (!empty($_POST['featuredchannels'])) { |
|
| 200 | 200 | $__user_u->update_row($_SESSION['siteusername'], "featured_channels", $_POST['featuredchannels']); |
| 201 | 201 | } |
| 202 | 202 | |
| 203 | - if(!empty($_POST['css'])) { |
|
| 203 | + if (!empty($_POST['css'])) { |
|
| 204 | 204 | $__user_u->update_row($_SESSION['siteusername'], "css", $_POST['css']); |
| 205 | 205 | } |
| 206 | 206 | |
| 207 | - if(!empty($_POST['videoid'])) { |
|
| 207 | + if (!empty($_POST['videoid'])) { |
|
| 208 | 208 | $__user_u->update_row($_SESSION['siteusername'], "featured", $_POST['videoid']); |
| 209 | 209 | } |
| 210 | 210 | |
| 211 | - if(!empty($_POST['solidcolor'])) { |
|
| 211 | + if (!empty($_POST['solidcolor'])) { |
|
| 212 | 212 | $__user_u->update_row($_SESSION['siteusername'], "2012_bgoption", $_POST['bgoption']); |
| 213 | 213 | |
| 214 | - if($_POST['bgoption'] == "solid") |
|
| 214 | + if ($_POST['bgoption'] == "solid") |
|
| 215 | 215 | $__user_u->update_row($_SESSION['siteusername'], "2012_bg", ""); |
| 216 | 216 | |
| 217 | 217 | $__user_u->update_row($_SESSION['siteusername'], "primary_color", $_POST['solidcolor']); |
| 218 | 218 | } |
| 219 | 219 | |
| 220 | - if(!empty($_POST['transparency'])) { |
|
| 220 | + if (!empty($_POST['transparency'])) { |
|
| 221 | 221 | $__user_u->update_row($_SESSION['siteusername'], "transparency", $_POST['transparency']); |
| 222 | 222 | } |
| 223 | 223 | |
| 224 | - if(!empty($_POST['genre'])) { |
|
| 224 | + if (!empty($_POST['genre'])) { |
|
| 225 | 225 | $__user_u->update_row($_SESSION['siteusername'], "genre", $_POST['genre']); |
| 226 | 226 | } |
| 227 | 227 | |
| 228 | - if(!empty($_POST['bordercolor'])) { |
|
| 228 | + if (!empty($_POST['bordercolor'])) { |
|
| 229 | 229 | $__user_u->update_row($_SESSION['siteusername'], "border_color", $_POST['bordercolor']); |
| 230 | 230 | } |
| 231 | 231 | |
| 232 | - if(!empty($_POST['country'])) { |
|
| 232 | + if (!empty($_POST['country'])) { |
|
| 233 | 233 | $__user_u->update_row($_SESSION['siteusername'], "country", $_POST['country']); |
| 234 | 234 | } // duplicate? |
| 235 | 235 | |
| 236 | - if(!empty($_POST['header'])) { |
|
| 236 | + if (!empty($_POST['header'])) { |
|
| 237 | 237 | $__user_u->update_row($_SESSION['siteusername'], "custom_header", $_POST['header']); |
| 238 | 238 | } |
| 239 | 239 | |
| 240 | - if(!empty($_POST['customtext'])) { |
|
| 240 | + if (!empty($_POST['customtext'])) { |
|
| 241 | 241 | $__user_u->update_row($_SESSION['siteusername'], "custom_text", $_POST['customtext']); |
| 242 | 242 | } |
| 243 | 243 | |
| 244 | - if(!empty($_POST['country'])) { |
|
| 244 | + if (!empty($_POST['country'])) { |
|
| 245 | 245 | $__user_u->update_row($_SESSION['siteusername'], "custom_text", $_POST['country']); |
| 246 | 246 | } // duplicate? |
| 247 | 247 | |
| 248 | - if(!empty($_POST['website'])) { |
|
| 248 | + if (!empty($_POST['website'])) { |
|
| 249 | 249 | $__user_u->update_row($_SESSION['siteusername'], "website", $_POST['website']); |
| 250 | 250 | } |
| 251 | 251 | |
| 252 | - if(!empty($_POST['channelboxcolor'])) { |
|
| 252 | + if (!empty($_POST['channelboxcolor'])) { |
|
| 253 | 253 | $__user_u->update_row($_SESSION['siteusername'], "secondary_color", $_POST['channelboxcolor']); |
| 254 | 254 | } |
| 255 | 255 | |
| 256 | - if(!empty($_POST['backgroundcolor'])) { |
|
| 256 | + if (!empty($_POST['backgroundcolor'])) { |
|
| 257 | 257 | $__user_u->update_row($_SESSION['siteusername'], "third_color", $_POST['backgroundcolor']); |
| 258 | 258 | } |
| 259 | 259 | |
| 260 | - if(!empty($_POST['textmaincolor'])) { |
|
| 260 | + if (!empty($_POST['textmaincolor'])) { |
|
| 261 | 261 | $__user_u->update_row($_SESSION['siteusername'], "primary_color_text", $_POST['textmaincolor']); |
| 262 | 262 | } |
| 263 | 263 | |
| 264 | - if(!empty($_POST['layout_channel'])) { |
|
| 265 | - if($_POST['layout_channel'] == "feed" || $_POST['layout_channel'] == "featured" || $_POST['layout_channel'] == "playlists") |
|
| 264 | + if (!empty($_POST['layout_channel'])) { |
|
| 265 | + if ($_POST['layout_channel'] == "feed" || $_POST['layout_channel'] == "featured" || $_POST['layout_channel'] == "playlists") |
|
| 266 | 266 | $__user_u->update_row($_SESSION['siteusername'], "layout", $_POST['layout_channel']); |
| 267 | 267 | } |
| 268 | 268 | |
| 269 | - if(!empty($_POST['bgoptionset'])) { |
|
| 269 | + if (!empty($_POST['bgoptionset'])) { |
|
| 270 | 270 | $bgoption = $_POST['bgoption']; |
| 271 | 271 | $bgcolor = $_POST['solidcolor']; |
| 272 | 272 | $default = "default.png"; |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | |
| 276 | 276 | $__user_u->update_row($_SESSION['siteusername'], "2012_bgcolor", $bgcolor); |
| 277 | 277 | |
| 278 | - if($bgoption == "solid") { |
|
| 278 | + if ($bgoption == "solid") { |
|
| 279 | 279 | $__user_u->update_row($_SESSION['siteusername'], "2012_bg ", $default); |
| 280 | 280 | } |
| 281 | 281 | } |
@@ -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; |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | Choose image. Non-square images wil be cropped.<br> |
| 248 | 248 | Suggested dimensions: 800x800 pixels. Max size: 1MB. |
| 249 | 249 | </p> |
| 250 | - <?php if($_user['pfp'] != "default.png") { ?> |
|
| 250 | + <?php if ($_user['pfp'] != "default.png") { ?> |
|
| 251 | 251 | <a style="font-size: 11px;" href="/get/remove_profile_pic">Remove Profile Picture</a><br> |
| 252 | 252 | <?php } ?> |
| 253 | 253 | <br> |
@@ -337,7 +337,7 @@ discard block |
||
| 337 | 337 | <input type="file" name="backgroundbgset" id="background-upload"> |
| 338 | 338 | <!--<button class="yt-uix-button yt-uix-button-default" id="av-uplod">Select File</button>--> |
| 339 | 339 | </div><br> |
| 340 | - <?php if($__user_h->if_partner($_user['username'])) { ?> |
|
| 340 | + <?php if ($__user_h->if_partner($_user['username'])) { ?> |
|
| 341 | 341 | <h2>Watch Page Subscribe Button</h2> |
| 342 | 342 | <span style="font-size: 11px;color:grey;" class="grey-text">Choose Image (Max file size: 10MB)</span><br> |
| 343 | 343 | <div id="watchsub" method="post" action="/d/channel_update?n=watchsub" enctype="multipart/form-data"> |
@@ -461,7 +461,7 @@ discard block |
||
| 461 | 461 | <td class="left-side-customization" style="width: 247px;"> |
| 462 | 462 | <h2>Channel information & Settings</h2> |
| 463 | 463 | <span style="font-size: 10px;color: grey;">Featured Video</span><br> |
| 464 | - <input class="yt-uix-form-input-text" style="width: 225px;" id="biomd" placeholder="Video ID" value="<?php echo htmlspecialchars($_user['featured']);?>" name="videoid"><br><br> |
|
| 464 | + <input class="yt-uix-form-input-text" style="width: 225px;" id="biomd" placeholder="Video ID" value="<?php echo htmlspecialchars($_user['featured']); ?>" name="videoid"><br><br> |
|
| 465 | 465 | <span style="font-size: 10px;color: grey;">Description</span><br> |
| 466 | 466 | <div id="bio" action="/d/channel_update" enctype="multipart/form-data"> |
| 467 | 467 | <textarea class="yt-uix-form-input-text" style="resize:none;height: 55px;width: 225px;background-color:white;border: 1px solid #d3d3d3;" id="biom" placeholder="Bio" name="bio"><?php echo htmlspecialchars($_user['bio']); ?></textarea><br> |
@@ -474,12 +474,12 @@ discard block |
||
| 474 | 474 | <h2>Advanced</h2> |
| 475 | 475 | <span style="font-size: 10px;color: grey;">Website URL</span><br> |
| 476 | 476 | <div id="featuredvid" action="/d/channel_update" enctype="multipart/form-data"> |
| 477 | - <input class="yt-uix-form-input-text" style="width: 225px;" id="biomd" placeholder="Website URL" value="<?php echo htmlspecialchars($_user['website']);?>" name="website"> |
|
| 477 | + <input class="yt-uix-form-input-text" style="width: 225px;" id="biomd" placeholder="Website URL" value="<?php echo htmlspecialchars($_user['website']); ?>" name="website"> |
|
| 478 | 478 | </div><br> |
| 479 | 479 | <div> |
| 480 | 480 | <span style="font-size: 10px;color: grey;">Featured Channels</span> |
| 481 | 481 | <div id="featuredvid" action="/d/channel_update" enctype="multipart/form-data"> |
| 482 | - <input class="yt-uix-form-input-text" style="width: 291px;" id="biomd" placeholder="Seperate by commas!" value="<?php echo htmlspecialchars($_user['featured_channels']);?>" name="featuredchannels"> |
|
| 482 | + <input class="yt-uix-form-input-text" style="width: 291px;" id="biomd" placeholder="Seperate by commas!" value="<?php echo htmlspecialchars($_user['featured_channels']); ?>" name="featuredchannels"> |
|
| 483 | 483 | </div> |
| 484 | 484 | </div><br> |
| 485 | 485 | |
@@ -487,11 +487,11 @@ discard block |
||
| 487 | 487 | <div id="countryselect" action="/d/channel_update" enctype="multipart/form-data"> |
| 488 | 488 | <select style="width: 246px;" class="yt-uix-button yt-uix-button-default" id="country" name="country" value="<?php echo $_user['country']?>"> |
| 489 | 489 | <?php |
| 490 | - $countries = ["Select country","Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegowina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, the Democratic Republic of the", "Cook Islands", "Costa Rica", "Cote d'Ivoire", "Croatia (Hrvatska)", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Islands (Malvinas)", "Faroe Islands", "Fiji", "Finland", "France", "France Metropolitan", "French Guiana", "French Polynesia", "French Southern Territories", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Gibraltar", "Greece", "Greenland", "Grenada", "Guadeloupe", "Guam", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Heard and Mc Donald Islands", "Holy See (Vatican City State)", "Honduras", "Hong Kong", "Hungary", "Iceland", "India", "Indonesia", "Iran (Islamic Republic of)", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, Democratic People's Republic of", "Korea, Republic of", "Kuwait", "Kyrgyzstan", "Lao, People's Democratic Republic", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libyan Arab Jamahiriya", "Liechtenstein", "Lithuania", "Luxembourg", "Macau", "Macedonia, The Former Yugoslav Republic of", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Martinique", "Mauritania", "Mauritius", "Mayotte", "Mexico", "Micronesia, Federated States of", "Moldova, Republic of", "Monaco", "Mongolia", "Montserrat", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "Netherlands Antilles", "New Caledonia", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Niue", "Norfolk Island", "Northern Mariana Islands", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Pitcairn", "Poland", "Portugal", "Puerto Rico", "Qatar", "Reunion", "Romania", "Russian Federation", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Seychelles", "Sierra Leone", "Singapore", "Slovakia (Slovak Republic)", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Georgia and the South Sandwich Islands", "Spain", "Sri Lanka", "St. Helena", "St. Pierre and Miquelon", "Sudan", "Suriname", "Svalbard and Jan Mayen Islands", "Swaziland", "Sweden", "Switzerland", "Syrian Arab Republic", "Taiwan, Province of China", "Tajikistan", "Tanzania, United Republic of", "Thailand", "Togo", "Tokelau", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Turks and Caicos Islands", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "United States Minor Outlying Islands", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela", "Vietnam", "Virgin Islands (British)", "Virgin Islands (U.S.)", "Wallis and Futuna Islands", "Western Sahara", "Yemen", "Yugoslavia", "Zambia", "Zimbabwe"]; |
|
| 490 | + $countries = ["Select country", "Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegowina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, the Democratic Republic of the", "Cook Islands", "Costa Rica", "Cote d'Ivoire", "Croatia (Hrvatska)", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Islands (Malvinas)", "Faroe Islands", "Fiji", "Finland", "France", "France Metropolitan", "French Guiana", "French Polynesia", "French Southern Territories", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Gibraltar", "Greece", "Greenland", "Grenada", "Guadeloupe", "Guam", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Heard and Mc Donald Islands", "Holy See (Vatican City State)", "Honduras", "Hong Kong", "Hungary", "Iceland", "India", "Indonesia", "Iran (Islamic Republic of)", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, Democratic People's Republic of", "Korea, Republic of", "Kuwait", "Kyrgyzstan", "Lao, People's Democratic Republic", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libyan Arab Jamahiriya", "Liechtenstein", "Lithuania", "Luxembourg", "Macau", "Macedonia, The Former Yugoslav Republic of", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Martinique", "Mauritania", "Mauritius", "Mayotte", "Mexico", "Micronesia, Federated States of", "Moldova, Republic of", "Monaco", "Mongolia", "Montserrat", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "Netherlands Antilles", "New Caledonia", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Niue", "Norfolk Island", "Northern Mariana Islands", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Pitcairn", "Poland", "Portugal", "Puerto Rico", "Qatar", "Reunion", "Romania", "Russian Federation", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Seychelles", "Sierra Leone", "Singapore", "Slovakia (Slovak Republic)", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Georgia and the South Sandwich Islands", "Spain", "Sri Lanka", "St. Helena", "St. Pierre and Miquelon", "Sudan", "Suriname", "Svalbard and Jan Mayen Islands", "Swaziland", "Sweden", "Switzerland", "Syrian Arab Republic", "Taiwan, Province of China", "Tajikistan", "Tanzania, United Republic of", "Thailand", "Togo", "Tokelau", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Turks and Caicos Islands", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "United States Minor Outlying Islands", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela", "Vietnam", "Virgin Islands (British)", "Virgin Islands (U.S.)", "Wallis and Futuna Islands", "Western Sahara", "Yemen", "Yugoslavia", "Zambia", "Zimbabwe"]; |
|
| 491 | 491 | |
| 492 | 492 | $countryLength = sizeof($countries); |
| 493 | 493 | $i = 0; |
| 494 | - for($i = 0;$i <= $countryLength; $i++) |
|
| 494 | + for ($i = 0; $i <= $countryLength; $i++) |
|
| 495 | 495 | { |
| 496 | 496 | $c = $countries[$i]; |
| 497 | 497 | if ($c == $_user['country']) |
@@ -504,7 +504,7 @@ discard block |
||
| 504 | 504 | else |
| 505 | 505 | { |
| 506 | 506 | ?> |
| 507 | - <option value="<?php echo $c;?>"><?php echo $c; ?></option> |
|
| 507 | + <option value="<?php echo $c; ?>"><?php echo $c; ?></option> |
|
| 508 | 508 | <?php |
| 509 | 509 | } |
| 510 | 510 | } |
@@ -517,7 +517,7 @@ discard block |
||
| 517 | 517 | <span style="font-size: 10px;color: grey;">Channel Genre</span><br> |
| 518 | 518 | <div id="channellayout" action="/d/channel_update" enctype="multipart/form-data"> |
| 519 | 519 | <select style="width: 246px;" class="yt-uix-button yt-uix-button-default" name="genre"> |
| 520 | - <?php foreach($categories as $category) { ?> |
|
| 520 | + <?php foreach ($categories as $category) { ?> |
|
| 521 | 521 | <option value="<?php echo $category; ?>"><?php echo $category; ?></option> |
| 522 | 522 | <?php } ?> |
| 523 | 523 | </select> |
@@ -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> |