@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
142 | 142 | $stmt->execute(); |
143 | 143 | $result = $stmt->get_result(); |
144 | - while($video = $result->fetch_assoc()) { |
|
144 | + while ($video = $result->fetch_assoc()) { |
|
145 | 145 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
146 | 146 | $video['duration'] = $__time_h->timestamp($video['duration']); |
147 | 147 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
178 | 178 | $stmt->execute(); |
179 | 179 | $result = $stmt->get_result(); |
180 | - while($video = $result->fetch_assoc()) { |
|
180 | + while ($video = $result->fetch_assoc()) { |
|
181 | 181 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
182 | 182 | $video['duration'] = $__time_h->timestamp($video['duration']); |
183 | 183 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
214 | 214 | $stmt->execute(); |
215 | 215 | $result = $stmt->get_result(); |
216 | - while($video = $result->fetch_assoc()) { |
|
216 | + while ($video = $result->fetch_assoc()) { |
|
217 | 217 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
218 | 218 | $video['duration'] = $__time_h->timestamp($video['duration']); |
219 | 219 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
250 | 250 | $stmt->execute(); |
251 | 251 | $result = $stmt->get_result(); |
252 | - while($video = $result->fetch_assoc()) { |
|
252 | + while ($video = $result->fetch_assoc()) { |
|
253 | 253 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
254 | 254 | $video['duration'] = $__time_h->timestamp($video['duration']); |
255 | 255 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
286 | 286 | $stmt->execute(); |
287 | 287 | $result = $stmt->get_result(); |
288 | - while($video = $result->fetch_assoc()) { |
|
288 | + while ($video = $result->fetch_assoc()) { |
|
289 | 289 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
290 | 290 | $video['duration'] = $__time_h->timestamp($video['duration']); |
291 | 291 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
142 | 142 | $stmt->execute(); |
143 | 143 | $result = $stmt->get_result(); |
144 | - while($video = $result->fetch_assoc()) { |
|
144 | + while ($video = $result->fetch_assoc()) { |
|
145 | 145 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
146 | 146 | $video['duration'] = $__time_h->timestamp($video['duration']); |
147 | 147 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
178 | 178 | $stmt->execute(); |
179 | 179 | $result = $stmt->get_result(); |
180 | - while($video = $result->fetch_assoc()) { |
|
180 | + while ($video = $result->fetch_assoc()) { |
|
181 | 181 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
182 | 182 | $video['duration'] = $__time_h->timestamp($video['duration']); |
183 | 183 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
214 | 214 | $stmt->execute(); |
215 | 215 | $result = $stmt->get_result(); |
216 | - while($video = $result->fetch_assoc()) { |
|
216 | + while ($video = $result->fetch_assoc()) { |
|
217 | 217 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
218 | 218 | $video['duration'] = $__time_h->timestamp($video['duration']); |
219 | 219 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
250 | 250 | $stmt->execute(); |
251 | 251 | $result = $stmt->get_result(); |
252 | - while($video = $result->fetch_assoc()) { |
|
252 | + while ($video = $result->fetch_assoc()) { |
|
253 | 253 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
254 | 254 | $video['duration'] = $__time_h->timestamp($video['duration']); |
255 | 255 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
286 | 286 | $stmt->execute(); |
287 | 287 | $result = $stmt->get_result(); |
288 | - while($video = $result->fetch_assoc()) { |
|
288 | + while ($video = $result->fetch_assoc()) { |
|
289 | 289 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
290 | 290 | $video['duration'] = $__time_h->timestamp($video['duration']); |
291 | 291 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -15,10 +15,10 @@ discard block |
||
15 | 15 | <?php $__db_h = new db_helper(); ?> |
16 | 16 | <?php $__time_h = new time_helper(); ?> |
17 | 17 | <?php |
18 | - if(isset($_SESSION['siteusername'])) |
|
18 | + if (isset($_SESSION['siteusername'])) |
|
19 | 19 | $_user_hp = $__user_h->fetch_user_username($_SESSION['siteusername']); |
20 | 20 | |
21 | - if(!$__user_h->user_exists($_GET['n'])) |
|
21 | + if (!$__user_h->user_exists($_GET['n'])) |
|
22 | 22 | header("Location: /?userdoesntexist"); |
23 | 23 | |
24 | 24 | $_user = $__user_h->fetch_user_username($_GET['n']); |
@@ -70,28 +70,28 @@ discard block |
||
70 | 70 | |
71 | 71 | $_user['genre'] = strtolower($_user['genre']); |
72 | 72 | |
73 | - if(!check_valid_colorhex($_user['primary_color']) && strlen($_user['primary_color']) != 6) { $_user['primary_color'] = ""; } |
|
74 | - if(!check_valid_colorhex($_user['secondary_color']) && strlen($_user['secondary_color']) != 6) { $_user['secondary_color'] = ""; } |
|
75 | - if(!check_valid_colorhex($_user['third_color']) && strlen($_user['third_color']) != 6) { $_user['third_color'] = ""; } |
|
76 | - if(!check_valid_colorhex($_user['text_color']) && strlen($_user['text_color']) != 6) { $_user['text_color'] = ""; } |
|
77 | - if(!check_valid_colorhex($_user['primary_color_text']) && strlen($_user['primary_color_text']) != 6) { $_user['primary_color_text'] = ""; } |
|
78 | - if(!check_valid_colorhex($_user['2009_bgcolor']) && strlen($_user['2009_bgcolor']) != 6) { $_user['2009_bgcolor'] = ""; } |
|
73 | + if (!check_valid_colorhex($_user['primary_color']) && strlen($_user['primary_color']) != 6) { $_user['primary_color'] = ""; } |
|
74 | + if (!check_valid_colorhex($_user['secondary_color']) && strlen($_user['secondary_color']) != 6) { $_user['secondary_color'] = ""; } |
|
75 | + if (!check_valid_colorhex($_user['third_color']) && strlen($_user['third_color']) != 6) { $_user['third_color'] = ""; } |
|
76 | + if (!check_valid_colorhex($_user['text_color']) && strlen($_user['text_color']) != 6) { $_user['text_color'] = ""; } |
|
77 | + if (!check_valid_colorhex($_user['primary_color_text']) && strlen($_user['primary_color_text']) != 6) { $_user['primary_color_text'] = ""; } |
|
78 | + if (!check_valid_colorhex($_user['2009_bgcolor']) && strlen($_user['2009_bgcolor']) != 6) { $_user['2009_bgcolor'] = ""; } |
|
79 | 79 | |
80 | - if(isset($_SESSION['siteusername'])) |
|
80 | + if (isset($_SESSION['siteusername'])) |
|
81 | 81 | $__user_i->check_view_channel($_user['username'], @$_SESSION['siteusername']); |
82 | 82 | |
83 | - if($_SERVER['REQUEST_METHOD'] == 'POST') { |
|
83 | + if ($_SERVER['REQUEST_METHOD'] == 'POST') { |
|
84 | 84 | $error = array(); |
85 | 85 | |
86 | - if(!isset($_SESSION['siteusername'])){ $error['message'] = "you are not logged in"; $error['status'] = true; } |
|
87 | - if(!$_POST['comment']){ $error['message'] = "your comment cannot be blank"; $error['status'] = true; } |
|
88 | - if(strlen($_POST['comment']) > 1000){ $error['message'] = "your comment must be shorter than 1000 characters"; $error['status'] = true; } |
|
86 | + if (!isset($_SESSION['siteusername'])) { $error['message'] = "you are not logged in"; $error['status'] = true; } |
|
87 | + if (!$_POST['comment']) { $error['message'] = "your comment cannot be blank"; $error['status'] = true; } |
|
88 | + if (strlen($_POST['comment']) > 1000) { $error['message'] = "your comment must be shorter than 1000 characters"; $error['status'] = true; } |
|
89 | 89 | //if(!isset($_POST['g-recaptcha-response'])){ $error['message'] = "captcha validation failed"; $error['status'] = true; } |
90 | 90 | //if(!$_user_insert_utils->validateCaptcha($config['recaptcha_secret'], $_POST['g-recaptcha-response'])) { $error['message'] = "captcha validation failed"; $error['status'] = true; } |
91 | - 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; } |
|
91 | + 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; } |
|
92 | 92 | //if(ifBlocked(@$_SESSION['siteusername'], $user['username'], $__db)) { $error = "This user has blocked you!"; $error['status'] = true; } |
93 | 93 | |
94 | - if(!isset($error['message'])) { |
|
94 | + if (!isset($error['message'])) { |
|
95 | 95 | $stmt = $__db->prepare("INSERT INTO `profile_comments` (toid, author, comment) VALUES (?, ?, ?)"); |
96 | 96 | $stmt->bind_param("sss", $_user['username'], $_SESSION['siteusername'], $text); |
97 | 97 | $text = ($_POST['comment']); |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | |
101 | 101 | $_user_update_utils->update_comment_cooldown_time($_SESSION['siteusername']); |
102 | 102 | |
103 | - if(@$_SESSION['siteusername'] != $_user['username']) { |
|
103 | + if (@$_SESSION['siteusername'] != $_user['username']) { |
|
104 | 104 | $_user_insert_utils->send_message($_user['username'], "New comment", 'I commented "' . $_POST['comment'] . '" on your profile!', $_SESSION['siteusername']); |
105 | 105 | } |
106 | 106 | } |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | <link rel="stylesheet" href="/yt/cssbin/www-extra.css"> |
127 | 127 | <style> |
128 | 128 | #content-container { |
129 | - background-color: <?php echo $_user['primary_color']; ?>; |
|
129 | + background-color: <?php echo $_user['primary_color']; ?>; |
|
130 | 130 | background-image: url(/d/banners/<?php echo $_user['2009_bg']; ?>); |
131 | 131 | background-repeat: repeat; |
132 | 132 | background-position: center top; |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | <div id="content-container"> |
144 | 144 | <!-- begin content --> |
145 | 145 | <div id="content"> |
146 | - <?php if(isset($_SESSION['siteusername']) && $_user['username'] == $_SESSION['siteusername']) { ?> |
|
146 | + <?php if (isset($_SESSION['siteusername']) && $_user['username'] == $_SESSION['siteusername']) { ?> |
|
147 | 147 | <div class="channel_customization"><?php echo require($_SERVER['DOCUMENT_ROOT'] . "/s/mod/channel_customization.php"); ?></div> |
148 | 148 | <?php } ?> |
149 | 149 | |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | <h1><?php echo htmlspecialchars($_user['username']); ?></h1> |
199 | 199 | </div> |
200 | 200 | <div class="upper-left-section enable-fancy-subscribe-button"> |
201 | - <?php if($_user['username'] != @$_SESSION['siteusername']) { ?> |
|
201 | + <?php if ($_user['username'] != @$_SESSION['siteusername']) { ?> |
|
202 | 202 | <div class="yt-subscription-button-hovercard yt-uix-hovercard"> |
203 | 203 | <button href="https://accounts.google.com/ServiceLogin?uilel=3&service=youtube&passive=true&continue=http%3A%2F%2Fwww.youtube.com%2Fsignin%3Faction_handle_signin%3Dtrue%26feature%3Dsubscribe%26nomobiletemp%3D1%26hl%3Den_US%26next%3D%252Fuser%252F<?php echo htmlspecialchars($_user['username']); ?>%253Ffeature%253Dg-logo-xit&hl=en_US&ltmpl=sso" onclick=";window.location.href=this.getAttribute('href');return false;" title="" type="button" class="yt-subscription-button subscription-button-with-recommended-channels yt-uix-button yt-uix-button-subscription yt-uix-tooltip" data-enable-hovercard="true" data-subscription-value="UCIwFjwMjI0y7PDBVEO9-bkQ" data-force-position="" data-position="" data-subscription-feature="channels3" data-subscription-type="channel" role="button"><span class="yt-uix-button-icon-wrapper"><img class="yt-uix-button-icon yt-uix-button-icon-subscribe" src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt=""></span><span class="yt-uix-button-content"> <span class="subscribe-label">Subscribe</span> |
204 | 204 | <span class="subscribed-label">Subscribed</span> |
@@ -274,12 +274,12 @@ discard block |
||
274 | 274 | </div> |
275 | 275 | </div> |
276 | 276 | </div> |
277 | - <?php if($_user['featured'] != "None") { $video = $__video_h->fetch_video_rid($_user['featured']); } else { $_user['featured'] = false; } ?> |
|
277 | + <?php if ($_user['featured'] != "None") { $video = $__video_h->fetch_video_rid($_user['featured']); } else { $_user['featured'] = false; } ?> |
|
278 | 278 | <div id="branded-page-body"> |
279 | 279 | <div class="channel-tab-content channel-layout-two-column selected blogger-template"> |
280 | 280 | <div class="tab-content-body"> |
281 | 281 | <div class="primary-pane"> |
282 | - <?php if($_user['featured'] != false && $__video_h->video_exists($_user['featured'])) { ?> |
|
282 | + <?php if ($_user['featured'] != false && $__video_h->video_exists($_user['featured'])) { ?> |
|
283 | 283 | <div class="channels-featured-video channel-module yt-uix-c3-module-container has-visible-edge"> |
284 | 284 | <div class="module-view featured-video-view-module"> |
285 | 285 | <div class="channels-video-player " data-swf-config="{"assets": {"html": "\/html5_player_template", "css": "http:\/\/s.ytimg.com\/yt\/cssbin\/www-player-vfllhw7HB.css", "js": "http:\/\/s.ytimg.com\/yt\/jsbin\/html5player-vflzTrRqK.js"}, "url": "http:\/\/s.ytimg.com\/yt\/swfbin\/watch_as3-vflbPspVE.swf", "min_version": "8.0.0", "args": {"ttsurl": "http:\/\/www.youtube.com\/api\/timedtext?sparams=asr_langs%2Ccaps%2Cv%2Cexpire\u0026asr_langs=en%2Cko%2Cja%2Ces\u0026v=/watch?v=<?php echo $video['rid']; ?>\u0026caps=asr\u0026expire=1339746882\u0026key=yttt1\u0026signature=A1B858FF427B45672676C7403417ED1F4091A806.C347A6021C0F843E46F2056AEBA38FC93A0A47B8\u0026hl=en_US", "el": "profilepage", "fexp": "904001,907342,904824,910206,908620,907217,907335,921602,919306,922600,919316,920704,912804,913542,919324,912706", "url_encoded_fmt_stream_map": "url=http%3A%2F%2Fo-o.preferred.nuq04s10.v1.lscache4.c.youtube.com%2Fvideoplayback%3Fupn%3D_7WL7XeDtjs%26sparams%3Dcp%252Cid%252Cip%252Cipbits%252Citag%252Cratebypass%252Csource%252Cupn%252Cexpire%26fexp%3D904001%252C907342%252C904824%252C910206%252C908620%252C907217%252C907335%252C921602%252C919306%252C922600%252C919316%252C920704%252C912804%252C913542%252C919324%252C912706%26ms%3Dau%26itag%3D44%26ip%3D207.0.0.0%26signature%3D9B9B5ECF02F2F66BDCCB0ACED26D3406F9F83241.1B2CC833461E3D2C4D081B7DFBC65B0948C61FB9%26sver%3D3%26mt%3D1339721111%26ratebypass%3Dyes%26source%3Dyoutube%26expire%3D1339743583%26key%3Dyt1%26ipbits%3D8%26cp%3DU0hSTldPUV9NTUNOMl9PSVVGOmdTcVlPRFNNTEdM%26id%3D56ffd0bfee85d71f\u0026quality=large\u0026fallback_host=tc.v1.cache4.c.youtube.com\u0026type=video%2Fwebm%3B+codecs%3D%22vp8.0%2C+vorbis%22\u0026itag=44,url=http%3A%2F%2Fo-o.preferred.nuq04s10.v14.lscache1.c.youtube.com%2Fvideoplayback%3Fupn%3D_7WL7XeDtjs%26sparams%3Dalgorithm%252Cburst%252Ccp%252Cfactor%252Cid%252Cip%252Cipbits%252Citag%252Csource%252Cupn%252Cexpire%26fexp%3D904001%252C907342%252C904824%252C910206%252C908620%252C907217%252C907335%252C921602%252C919306%252C922600%252C919316%252C920704%252C912804%252C913542%252C919324%252C912706%26mt%3D1339721111%26ms%3Dau%26algorithm%3Dthrottle-factor%26itag%3D35%26ip%3D207.0.0.0%26burst%3D40%26sver%3D3%26signature%3DB702D7CA72653169BDC2C945B5A35F4A23A3FEBF.ACC660CDAB11901FF8D3DA8D384D61F0AB0F0125%26source%3Dyoutube%26expire%3D1339743583%26key%3Dyt1%26ipbits%3D8%26factor%3D1.25%26cp%3DU0hSTldPUV9NTUNOMl9PSVVGOmdTcVlPRFNNTEdM%26id%3D56ffd0bfee85d71f\u0026quality=large\u0026fallback_host=tc.v14.cache1.c.youtube.com\u0026type=video%2Fx-flv\u0026itag=35,url=http%3A%2F%2Fo-o.preferred.nuq04s10.v24.lscache3.c.youtube.com%2Fvideoplayback%3Fupn%3D_7WL7XeDtjs%26sparams%3Dcp%252Cid%252Cip%252Cipbits%252Citag%252Cratebypass%252Csource%252Cupn%252Cexpire%26fexp%3D904001%252C907342%252C904824%252C910206%252C908620%252C907217%252C907335%252C921602%252C919306%252C922600%252C919316%252C920704%252C912804%252C913542%252C919324%252C912706%26ms%3Dau%26itag%3D43%26ip%3D207.0.0.0%26signature%3D9FABDD8C013AA137B87DF2D154D1B90E6827A2A3.880FECDEC066236D85FCF223CF472B62B8F9B3A4%26sver%3D3%26mt%3D1339721111%26ratebypass%3Dyes%26source%3Dyoutube%26expire%3D1339743583%26key%3Dyt1%26ipbits%3D8%26cp%3DU0hSTldPUV9NTUNOMl9PSVVGOmdTcVlPRFNNTEdM%26id%3D56ffd0bfee85d71f\u0026quality=medium\u0026fallback_host=tc.v24.cache3.c.youtube.com\u0026type=video%2Fwebm%3B+codecs%3D%22vp8.0%2C+vorbis%22\u0026itag=43,url=http%3A%2F%2Fo-o.preferred.nuq04s10.v3.lscache7.c.youtube.com%2Fvideoplayback%3Fupn%3D_7WL7XeDtjs%26sparams%3Dalgorithm%252Cburst%252Ccp%252Cfactor%252Cid%252Cip%252Cipbits%252Citag%252Csource%252Cupn%252Cexpire%26fexp%3D904001%252C907342%252C904824%252C910206%252C908620%252C907217%252C907335%252C921602%252C919306%252C922600%252C919316%252C920704%252C912804%252C913542%252C919324%252C912706%26mt%3D1339721111%26ms%3Dau%26algorithm%3Dthrottle-factor%26itag%3D34%26ip%3D207.0.0.0%26burst%3D40%26sver%3D3%26signature%3D1BA326B784DAA9F62FD789CBB5C2FABFCD5D351C.C4618E3AB2AB08C61C6A982A36F405DA886B5D5A%26source%3Dyoutube%26expire%3D1339743583%26key%3Dyt1%26ipbits%3D8%26factor%3D1.25%26cp%3DU0hSTldPUV9NTUNOMl9PSVVGOmdTcVlPRFNNTEdM%26id%3D56ffd0bfee85d71f\u0026quality=medium\u0026fallback_host=tc.v3.cache7.c.youtube.com\u0026type=video%2Fx-flv\u0026itag=34,url=http%3A%2F%2Fo-o.preferred.nuq04s10.v14.lscache1.c.youtube.com%2Fvideoplayback%3Fupn%3D_7WL7XeDtjs%26sparams%3Dcp%252Cid%252Cip%252Cipbits%252Citag%252Cratebypass%252Csource%252Cupn%252Cexpire%26fexp%3D904001%252C907342%252C904824%252C910206%252C908620%252C907217%252C907335%252C921602%252C919306%252C922600%252C919316%252C920704%252C912804%252C913542%252C919324%252C912706%26ms%3Dau%26itag%3D18%26ip%3D207.0.0.0%26signature%3D8806EA8FAE16557A2F9732068442133EA0A0760F.D91694A47E6B0BF627965CDA46010F36105A28FE%26sver%3D3%26mt%3D1339721111%26ratebypass%3Dyes%26source%3Dyoutube%26expire%3D1339743583%26key%3Dyt1%26ipbits%3D8%26cp%3DU0hSTldPUV9NTUNOMl9PSVVGOmdTcVlPRFNNTEdM%26id%3D56ffd0bfee85d71f\u0026quality=medium\u0026fallback_host=tc.v14.cache1.c.youtube.com\u0026type=video%2Fmp4%3B+codecs%3D%22avc1.42001E%2C+mp4a.40.2%22\u0026itag=18,url=http%3A%2F%2Fo-o.preferred.nuq04s10.v4.lscache1.c.youtube.com%2Fvideoplayback%3Fupn%3D_7WL7XeDtjs%26sparams%3Dalgorithm%252Cburst%252Ccp%252Cfactor%252Cid%252Cip%252Cipbits%252Citag%252Csource%252Cupn%252Cexpire%26fexp%3D904001%252C907342%252C904824%252C910206%252C908620%252C907217%252C907335%252C921602%252C919306%252C922600%252C919316%252C920704%252C912804%252C913542%252C919324%252C912706%26mt%3D1339721111%26ms%3Dau%26algorithm%3Dthrottle-factor%26itag%3D5%26ip%3D207.0.0.0%26burst%3D40%26sver%3D3%26signature%3D011CB6739AB60ED79D032DE2F62EB016D8A8E462.C2C0ABE42F26DBA18F2BC6E0D074EB99A95C0DF0%26source%3Dyoutube%26expire%3D1339743583%26key%3Dyt1%26ipbits%3D8%26factor%3D1.25%26cp%3DU0hSTldPUV9NTUNOMl9PSVVGOmdTcVlPRFNNTEdM%26id%3D56ffd0bfee85d71f\u0026quality=small\u0026fallback_host=tc.v4.cache1.c.youtube.com\u0026type=video%2Fx-flv\u0026itag=5,url=http%3A%2F%2Fo-o.preferred.nuq04s10.v12.lscache3.c.youtube.com%2Fvideoplayback%3Fupn%3D_7WL7XeDtjs%26sparams%3Dalgorithm%252Cburst%252Ccp%252Cfactor%252Cid%252Cip%252Cipbits%252Citag%252Csource%252Cupn%252Cexpire%26fexp%3D904001%252C907342%252C904824%252C910206%252C908620%252C907217%252C907335%252C921602%252C919306%252C922600%252C919316%252C920704%252C912804%252C913542%252C919324%252C912706%26mt%3D1339721111%26ms%3Dau%26algorithm%3Dthrottle-factor%26itag%3D36%26ip%3D207.0.0.0%26burst%3D40%26sver%3D3%26signature%3D988FDD37CBA8DB74C1148EE17921D8549434297C.A2C1796F2BA0427C9FE370BFB6B3B09BA1D81B07%26source%3Dyoutube%26expire%3D1339743583%26key%3Dyt1%26ipbits%3D8%26factor%3D1.25%26cp%3DU0hSTldPUV9NTUNOMl9PSVVGOmdTcVlPRFNNTEdM%26id%3D56ffd0bfee85d71f\u0026quality=small\u0026fallback_host=tc.v12.cache3.c.youtube.com\u0026type=video%2F3gpp\u0026itag=36", "allow_embed": 1, "vq": "auto", "account_playback_token": "", "allow_ratings": 1, "keywords": "Rehearsal,Dance,justin,bieber,believe,as,long,you,love,me,rodney,jerkins,pattie,mallette,jeremy,dad,mom,scooter,braun,island,def,jam,usher,rbmg,making,of,the,album,webisode,june,19th,19,new,amazing,song,big,sean,hit,record,<?php echo htmlspecialchars($_user['username']); ?>,always,still,studio,singing,kuk,harrell,producer,sing,boy,guy,man,smash,single,nick,demoura,dancers,sweat,beliebers,hard,work,tour,band", "cc3_module": "http:\/\/s.ytimg.com\/yt\/swfbin\/subtitles3_module-vflu_Qeod.swf", "track_embed": 0, "is_purchased": false, "ps": "default", "fmt_list": "44\/854x480\/99\/0\/0,35\/854x480\/9\/0\/115,43\/640x360\/99\/0\/0,34\/640x360\/9\/0\/115,18\/640x360\/9\/0\/115,5\/320x240\/7\/0\/0,36\/320x240\/99\/0\/0", "author": "<?php echo htmlspecialchars($_user['username']); ?>", "muted": "0", "cc_module": "http:\/\/s.ytimg.com\/yt\/swfbin\/subtitle_module-vflq8KnSi.swf", "length_seconds": 82, "feature": "g-logo-xit", "enablejsapi": 1, "rel": 0, "plid": "AATCeEL9eg3Ls9t-", "cc_font": "Arial Unicode MS, arial, verdana, _sans", "ftoken": "", "sdetail": "f:g-logo-xit,p:\/", "status": "ok", "cc_asr": 1, "watermark": ",http:\/\/s.ytimg.com\/yt\/img\/watermark\/youtube_watermark-vflHX6b6E.png,http:\/\/s.ytimg.com\/yt\/img\/watermark\/youtube_hd_watermark-vflAzLcD6.png", "sourceid": "y", "timestamp": 1339721682, "has_cc": true, "view_count": 2600, "quality_cap": "highres", "hl": "en_US", "tmi": "1", "no_get_video_log": "1", "eurl": "http:\/\/www.youtube.com\/user\/<?php echo htmlspecialchars($_user['username']); ?>", "iurl": "http:\/\/i3.ytimg.com\/vi\//watch?v=<?php echo $video['rid']; ?>\/hqdefault.jpg", "endscreen_module": "http:\/\/s.ytimg.com\/yt\/swfbin\/endscreen-vflJBKwqC.swf", "referrer": "http:\/\/www.youtube.com\/", "avg_rating": 4.97805486284, "video_id": "/watch?v=<?php echo $video['rid']; ?>", "sendtmp": "1", "sk": "bwv_lGOGF4u1g0p7puy7ERICN8NZ5cVFC", "is_video_preview": false, "token": "vjVQa1PpcFMSYb-unvOiIgSL8pW9tObJUMfrEc1mxfE=", "thumbnail_url": "http:\/\/i3.ytimg.com\/vi\//watch?v=<?php echo $video['rid']; ?>\/default.jpg", "iurlsd": "http:\/\/i3.ytimg.com\/vi\//watch?v=<?php echo $video['rid']; ?>\/sddefault.jpg", "autoplay": "1"}, "url_v9as2": "http:\/\/s.ytimg.com\/yt\/swfbin\/cps-vflhvG6F4.swf", "params": {"allowscriptaccess": "always", "allowfullscreen": "true", "bgcolor": "#000000"}, "attrs": {"width": "640", "id": "movie_player", "height": "390"}, "url_v8": "http:\/\/s.ytimg.com\/yt\/swfbin\/cps-vflhvG6F4.swf", "html5": false}" data-video-id="/watch?v=<?php echo $video['rid']; ?>"> |
@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | $stmt->bind_param("s", $_user['username']); |
327 | 327 | $stmt->execute(); |
328 | 328 | $result = $stmt->get_result(); |
329 | - while($video = $result->fetch_assoc()) { |
|
329 | + while ($video = $result->fetch_assoc()) { |
|
330 | 330 | ?> |
331 | 331 | <li class="blogger-video"> |
332 | 332 | <div class="video yt-tile-visible"> |
@@ -408,7 +408,7 @@ discard block |
||
408 | 408 | </div> |
409 | 409 | <hr class="yt-horizontal-rule "> |
410 | 410 | </div> |
411 | - <?php if(!empty($_user['website'])) { ?> |
|
411 | + <?php if (!empty($_user['website'])) { ?> |
|
412 | 412 | <div class="user-profile-item"> |
413 | 413 | <div class="yt-c3-profile-custom-url field-container "> |
414 | 414 | <a href="<?php echo addhttp(htmlspecialchars($_user['website'])); ?>" rel="me nofollow" target="_blank" title="<?php echo htmlspecialchars($_user['website']); ?>" class="yt-uix-redirect-link"> |
@@ -457,7 +457,7 @@ discard block |
||
457 | 457 | <h5>Country</h5> |
458 | 458 | <span class="value"><?php echo htmlspecialchars($_user['country']); ?></span> |
459 | 459 | </div> |
460 | - <?php if($_user['genre'] != "none") { ?> |
|
460 | + <?php if ($_user['genre'] != "none") { ?> |
|
461 | 461 | <div class="user-profile-item "> |
462 | 462 | <h5>Channel Genre</h5> |
463 | 463 | <span class="value"><?php echo htmlspecialchars($_user['genre']); ?></span> |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | require($_SERVER['DOCUMENT_ROOT'] . "/s/classes/config.inc.php"); |
3 | 3 | |
4 | -if(isset($_SESSION['siteusername'])) { |
|
4 | +if (isset($_SESSION['siteusername'])) { |
|
5 | 5 | $_SESSION = []; |
6 | 6 | session_destroy(); |
7 | 7 | } |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Travel & Events' ORDER BY rand() LIMIT 4"); |
142 | 142 | $stmt->execute(); |
143 | 143 | $result = $stmt->get_result(); |
144 | - while($video = $result->fetch_assoc()) { |
|
144 | + while ($video = $result->fetch_assoc()) { |
|
145 | 145 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
146 | 146 | $video['duration'] = $__time_h->timestamp($video['duration']); |
147 | 147 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Travel & Events' ORDER BY rand() LIMIT 4"); |
178 | 178 | $stmt->execute(); |
179 | 179 | $result = $stmt->get_result(); |
180 | - while($video = $result->fetch_assoc()) { |
|
180 | + while ($video = $result->fetch_assoc()) { |
|
181 | 181 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
182 | 182 | $video['duration'] = $__time_h->timestamp($video['duration']); |
183 | 183 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Travel & Events' ORDER BY rand() LIMIT 4"); |
214 | 214 | $stmt->execute(); |
215 | 215 | $result = $stmt->get_result(); |
216 | - while($video = $result->fetch_assoc()) { |
|
216 | + while ($video = $result->fetch_assoc()) { |
|
217 | 217 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
218 | 218 | $video['duration'] = $__time_h->timestamp($video['duration']); |
219 | 219 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Travel & Events' ORDER BY rand() LIMIT 4"); |
250 | 250 | $stmt->execute(); |
251 | 251 | $result = $stmt->get_result(); |
252 | - while($video = $result->fetch_assoc()) { |
|
252 | + while ($video = $result->fetch_assoc()) { |
|
253 | 253 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
254 | 254 | $video['duration'] = $__time_h->timestamp($video['duration']); |
255 | 255 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Travel & Events' ORDER BY rand() LIMIT 4"); |
286 | 286 | $stmt->execute(); |
287 | 287 | $result = $stmt->get_result(); |
288 | - while($video = $result->fetch_assoc()) { |
|
288 | + while ($video = $result->fetch_assoc()) { |
|
289 | 289 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
290 | 290 | $video['duration'] = $__time_h->timestamp($video['duration']); |
291 | 291 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -15,15 +15,15 @@ discard block |
||
15 | 15 | <?php $_video = $__video_h->fetch_video_rid($_GET['v']); ?> |
16 | 16 | <?php $_video['comments'] = $__video_h->get_comments_from_video($_video['rid']); ?> |
17 | 17 | <?php |
18 | - if($_SERVER['REQUEST_METHOD'] == 'POST') { |
|
18 | + if ($_SERVER['REQUEST_METHOD'] == 'POST') { |
|
19 | 19 | $error = array(); |
20 | 20 | |
21 | - if(!isset($_SESSION['siteusername'])){ $error['message'] = "you are not logged in"; $error['status'] = true; } |
|
22 | - if(!$_POST['comment']){ $error['message'] = "your comment cannot be blank"; $error['status'] = true; } |
|
23 | - if(strlen($_POST['comment']) > 1000){ $error['message'] = "your comment must be shorter than 1000 characters"; $error['status'] = true; } |
|
24 | - 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; } |
|
21 | + if (!isset($_SESSION['siteusername'])) { $error['message'] = "you are not logged in"; $error['status'] = true; } |
|
22 | + if (!$_POST['comment']) { $error['message'] = "your comment cannot be blank"; $error['status'] = true; } |
|
23 | + if (strlen($_POST['comment']) > 1000) { $error['message'] = "your comment must be shorter than 1000 characters"; $error['status'] = true; } |
|
24 | + 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; } |
|
25 | 25 | |
26 | - if(!isset($error['message'])) { |
|
26 | + if (!isset($error['message'])) { |
|
27 | 27 | $stmt = $__db->prepare("INSERT INTO `comments` (toid, author, comment) VALUES (?, ?, ?)"); |
28 | 28 | $stmt->bind_param("sss", $_GET['v'], $_SESSION['siteusername'], $text); |
29 | 29 | $text = $_POST['comment']; |
@@ -57,17 +57,17 @@ discard block |
||
57 | 57 | if (window.yt.timing) {yt.timing.tick("ct");} |
58 | 58 | </script> |
59 | 59 | <?php |
60 | - $_video['dislikes'] = $__video_h->get_video_stars_level($_video['rid'], 1); |
|
60 | + $_video['dislikes'] = $__video_h->get_video_stars_level($_video['rid'], 1); |
|
61 | 61 | $_video['dislikes'] += $__video_h->get_video_stars_level($_video['rid'], 2); |
62 | 62 | |
63 | - $_video['likes'] = $__video_h->get_video_stars_level($_video['rid'], 4); |
|
64 | - $_video['likes'] += $__video_h->get_video_stars_level($_video['rid'], 5); |
|
63 | + $_video['likes'] = $__video_h->get_video_stars_level($_video['rid'], 4); |
|
64 | + $_video['likes'] += $__video_h->get_video_stars_level($_video['rid'], 5); |
|
65 | 65 | |
66 | - if($_video['likes'] == 0 && $_video['dislikes'] == 0) { |
|
66 | + if ($_video['likes'] == 0 && $_video['dislikes'] == 0) { |
|
67 | 67 | $_video['likeswidth'] = 50; |
68 | 68 | $_video['dislikeswidth'] = 50; |
69 | 69 | } else { |
70 | - $_video['likeswidth'] = $_video['likes'] / ($_video['likes'] + $_video['dislikes']) * 100; |
|
70 | + $_video['likeswidth'] = $_video['likes']/($_video['likes'] + $_video['dislikes'])*100; |
|
71 | 71 | $_video['dislikeswidth'] = 100 - $_video['likeswidth']; |
72 | 72 | } |
73 | 73 | |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | $result = $stmt->get_result(); |
302 | 302 | ?> |
303 | 303 | |
304 | - <?php if($result->num_rows != 0) { ?> |
|
304 | + <?php if ($result->num_rows != 0) { ?> |
|
305 | 305 | <div class="comments-section"> |
306 | 306 | <a class="comments-section-see-all" href="/video_response_view_all?v=rLHU-_OhT8g"> |
307 | 307 | see all |
@@ -309,8 +309,8 @@ discard block |
||
309 | 309 | <h4>Video Responses</h4> |
310 | 310 | <ul class="video-list"> |
311 | 311 | <?php |
312 | - while($video = $result->fetch_assoc()) { |
|
313 | - if($__video_h->video_exists($video['video'])) { |
|
312 | + while ($video = $result->fetch_assoc()) { |
|
313 | + if ($__video_h->video_exists($video['video'])) { |
|
314 | 314 | $video = $__video_h->fetch_video_rid($video['video']); |
315 | 315 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
316 | 316 | $video['duration'] = $__time_h->timestamp($video['duration']); |
@@ -341,19 +341,19 @@ discard block |
||
341 | 341 | </h4> |
342 | 342 | </div> |
343 | 343 | </div> |
344 | - <?php if(!isset($_SESSION['siteusername'])) { ?> |
|
344 | + <?php if (!isset($_SESSION['siteusername'])) { ?> |
|
345 | 345 | <div class="comments-post-container clearfix"> |
346 | 346 | <div class="comments-post-alert"> |
347 | 347 | <a href="/sign_in">Sign In</a> or <a href="/sign_up">Sign Up</a><span class="comments-post-form-rollover-text"> now to post a comment!</span> |
348 | 348 | </div> |
349 | 349 | </div> |
350 | - <?php } else if($_video['commenting'] == "d") { ?> |
|
350 | + <?php } else if ($_video['commenting'] == "d") { ?> |
|
351 | 351 | <div class="comments-post-container clearfix"> |
352 | 352 | <div class="comments-post-alert"> |
353 | 353 | This video has comemnting disabled! |
354 | 354 | </div> |
355 | 355 | </div> |
356 | - <?php } else if($__user_h->if_blocked($_video['author'], $_SESSION['siteusername'])) { ?> |
|
356 | + <?php } else if ($__user_h->if_blocked($_video['author'], $_SESSION['siteusername'])) { ?> |
|
357 | 357 | <div class="comments-post-container clearfix"> |
358 | 358 | <div class="comments-post-alert"> |
359 | 359 | This user has blocked you! |
@@ -415,15 +415,15 @@ discard block |
||
415 | 415 | $results = $result->num_rows; |
416 | 416 | |
417 | 417 | $number_of_result = $result->num_rows; |
418 | - $number_of_page = ceil ($number_of_result / $results_per_page); |
|
418 | + $number_of_page = ceil($number_of_result/$results_per_page); |
|
419 | 419 | |
420 | - if (!isset ($_GET['page']) ) { |
|
420 | + if (!isset ($_GET['page'])) { |
|
421 | 421 | $page = 1; |
422 | 422 | } else { |
423 | - $page = (int)$_GET['page']; |
|
423 | + $page = (int) $_GET['page']; |
|
424 | 424 | } |
425 | 425 | |
426 | - $page_first_result = ($page - 1) * $results_per_page; |
|
426 | + $page_first_result = ($page - 1)*$results_per_page; |
|
427 | 427 | |
428 | 428 | $stmt->close(); |
429 | 429 | |
@@ -432,7 +432,7 @@ discard block |
||
432 | 432 | $stmt->execute(); |
433 | 433 | $result = $stmt->get_result(); |
434 | 434 | |
435 | - while($comment = $result->fetch_assoc()) { |
|
435 | + while ($comment = $result->fetch_assoc()) { |
|
436 | 436 | ?> |
437 | 437 | |
438 | 438 | <li class="comment yt-tile-default " data-author-viewing="" data-author-id="-uD01K8FQTeOSS5sniRFzQ" data-id="HdQrMeklJ_5hd_uPDRcvtdaMk2pMVS8d9sufcfiGx0U" data-score="0"> |
@@ -513,7 +513,7 @@ discard block |
||
513 | 513 | $stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 20"); |
514 | 514 | $stmt->execute(); |
515 | 515 | $result = $stmt->get_result(); |
516 | - while($video = $result->fetch_assoc()) { |
|
516 | + while ($video = $result->fetch_assoc()) { |
|
517 | 517 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
518 | 518 | $video['duration'] = $__time_h->timestamp($video['duration']); |
519 | 519 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | <div id="content"> |
38 | 38 | <div class="guide-layout-container enable-fancy-subscribe-button"> |
39 | 39 | <div class="guide-container"> |
40 | - <?php if(!isset($_SESSION['siteusername'])) { ?> |
|
40 | + <?php if (!isset($_SESSION['siteusername'])) { ?> |
|
41 | 41 | <div id="guide-builder-promo"> |
42 | 42 | <h2> |
43 | 43 | Sign in to add channels to your homepage |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | </div> |
57 | 57 | <div class="guide"> |
58 | 58 | <?php |
59 | - if(isset($_SESSION['siteusername'])) { |
|
59 | + if (isset($_SESSION['siteusername'])) { |
|
60 | 60 | ?> |
61 | 61 | <div style="/*! margin-top: 0px; *//*! margin-left: 10px; *//*! margin-bottom: 13px; */height: 99px;" class="guide-section feed-header channel first"><img alt="" src="/dynamic/pfp/<?php echo $__user_h->fetch_pfp($_SESSION['siteusername']); ?>" style="height: 88px;position: relative;top: 4px;left: 4px;" class="feed-header-thumb channel-thumb" width="88px"><div id="links" style="/*! margin-left: 5px; */position: relative;left: 13px;top: 7px;"><div style="font-size: 11px;margin-bottom: 6px;" class="metadata"> |
62 | 62 | <a href="/user/<?php echo htmlspecialchars($_SESSION['siteusername']); ?>" style="color: inherit;">My channel |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | </span> |
175 | 175 | </a> |
176 | 176 | </li> |
177 | - <?php foreach($__server->featured_channels as $channel) { ?> |
|
177 | + <?php foreach ($__server->featured_channels as $channel) { ?> |
|
178 | 178 | <li class="guide-item-container "> |
179 | 179 | <a class="guide-item" data-external-id="<?php echo htmlspecialchars($channel); ?>" data-feed-name="<?php echo htmlspecialchars($channel); ?>" data-feed-type="user"> |
180 | 180 | <span class="thumb"> <span class="video-thumb ux-thumb yt-thumb-square-28 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/pfp/<?php echo $__user_h->fetch_pfp($channel); ?>" width="28"><span class="vertical-align"></span></span></span></span> |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | $stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 4"); |
214 | 214 | $stmt->execute(); |
215 | 215 | $result = $stmt->get_result(); |
216 | - while($video = $result->fetch_assoc()) { |
|
216 | + while ($video = $result->fetch_assoc()) { |
|
217 | 217 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
218 | 218 | $video['duration'] = $__time_h->timestamp($video['duration']); |
219 | 219 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | $stmt = $__db->prepare("SELECT * FROM videos WHERE featured = 'v' ORDER BY id DESC LIMIT 4"); |
238 | 238 | $stmt->execute(); |
239 | 239 | $result = $stmt->get_result(); |
240 | - while($video = $result->fetch_assoc()) { |
|
240 | + while ($video = $result->fetch_assoc()) { |
|
241 | 241 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
242 | 242 | $video['duration'] = $__time_h->timestamp($video['duration']); |
243 | 243 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | $stmt = $__db->prepare("SELECT * FROM videos ORDER BY id DESC LIMIT 20"); |
272 | 272 | $stmt->execute(); |
273 | 273 | $result = $stmt->get_result(); |
274 | - while($video = $result->fetch_assoc()) { |
|
274 | + while ($video = $result->fetch_assoc()) { |
|
275 | 275 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
276 | 276 | $video['duration'] = $__time_h->timestamp($video['duration']); |
277 | 277 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
142 | 142 | $stmt->execute(); |
143 | 143 | $result = $stmt->get_result(); |
144 | - while($video = $result->fetch_assoc()) { |
|
144 | + while ($video = $result->fetch_assoc()) { |
|
145 | 145 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
146 | 146 | $video['duration'] = $__time_h->timestamp($video['duration']); |
147 | 147 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
178 | 178 | $stmt->execute(); |
179 | 179 | $result = $stmt->get_result(); |
180 | - while($video = $result->fetch_assoc()) { |
|
180 | + while ($video = $result->fetch_assoc()) { |
|
181 | 181 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
182 | 182 | $video['duration'] = $__time_h->timestamp($video['duration']); |
183 | 183 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
214 | 214 | $stmt->execute(); |
215 | 215 | $result = $stmt->get_result(); |
216 | - while($video = $result->fetch_assoc()) { |
|
216 | + while ($video = $result->fetch_assoc()) { |
|
217 | 217 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
218 | 218 | $video['duration'] = $__time_h->timestamp($video['duration']); |
219 | 219 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
250 | 250 | $stmt->execute(); |
251 | 251 | $result = $stmt->get_result(); |
252 | - while($video = $result->fetch_assoc()) { |
|
252 | + while ($video = $result->fetch_assoc()) { |
|
253 | 253 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
254 | 254 | $video['duration'] = $__time_h->timestamp($video['duration']); |
255 | 255 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
286 | 286 | $stmt->execute(); |
287 | 287 | $result = $stmt->get_result(); |
288 | - while($video = $result->fetch_assoc()) { |
|
288 | + while ($video = $result->fetch_assoc()) { |
|
289 | 289 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
290 | 290 | $video['duration'] = $__time_h->timestamp($video['duration']); |
291 | 291 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
142 | 142 | $stmt->execute(); |
143 | 143 | $result = $stmt->get_result(); |
144 | - while($video = $result->fetch_assoc()) { |
|
144 | + while ($video = $result->fetch_assoc()) { |
|
145 | 145 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
146 | 146 | $video['duration'] = $__time_h->timestamp($video['duration']); |
147 | 147 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
178 | 178 | $stmt->execute(); |
179 | 179 | $result = $stmt->get_result(); |
180 | - while($video = $result->fetch_assoc()) { |
|
180 | + while ($video = $result->fetch_assoc()) { |
|
181 | 181 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
182 | 182 | $video['duration'] = $__time_h->timestamp($video['duration']); |
183 | 183 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
214 | 214 | $stmt->execute(); |
215 | 215 | $result = $stmt->get_result(); |
216 | - while($video = $result->fetch_assoc()) { |
|
216 | + while ($video = $result->fetch_assoc()) { |
|
217 | 217 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
218 | 218 | $video['duration'] = $__time_h->timestamp($video['duration']); |
219 | 219 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
250 | 250 | $stmt->execute(); |
251 | 251 | $result = $stmt->get_result(); |
252 | - while($video = $result->fetch_assoc()) { |
|
252 | + while ($video = $result->fetch_assoc()) { |
|
253 | 253 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
254 | 254 | $video['duration'] = $__time_h->timestamp($video['duration']); |
255 | 255 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
286 | 286 | $stmt->execute(); |
287 | 287 | $result = $stmt->get_result(); |
288 | - while($video = $result->fetch_assoc()) { |
|
288 | + while ($video = $result->fetch_assoc()) { |
|
289 | 289 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
290 | 290 | $video['duration'] = $__time_h->timestamp($video['duration']); |
291 | 291 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |