@@ -59,28 +59,28 @@ |
||
59 | 59 | require_once($_SERVER['DOCUMENT_ROOT'] . "/" . $requestedPage[1] . "/" . $requestedPage[2] . ".php"); |
60 | 60 | die(); |
61 | 61 | break; |
62 | - case 'd': |
|
63 | - if ($requestedPage[2] == "") { |
|
64 | - $requestedPage[2] = "index"; |
|
65 | - } |
|
66 | - require_once($_SERVER['DOCUMENT_ROOT'] . "/" . $requestedPage[1] . "/" . $requestedPage[2] . ".php"); |
|
67 | - die(); |
|
68 | - break; |
|
62 | + case 'd': |
|
63 | + if ($requestedPage[2] == "") { |
|
64 | + $requestedPage[2] = "index"; |
|
65 | + } |
|
66 | + require_once($_SERVER['DOCUMENT_ROOT'] . "/" . $requestedPage[1] . "/" . $requestedPage[2] . ".php"); |
|
67 | + die(); |
|
68 | + break; |
|
69 | 69 | case 'user': |
70 | 70 | $_GET['n'] = $requestedPage[2]; |
71 | 71 | require_once($_SERVER['DOCUMENT_ROOT'] . "/channel.php"); |
72 | 72 | die(); |
73 | 73 | break; |
74 | 74 | default: |
75 | - require_once($_SERVER['DOCUMENT_ROOT'] . "/s/classes/config.inc.php"); |
|
76 | - require_once($_SERVER['DOCUMENT_ROOT'] . "/s/classes/db_helper.php"); |
|
77 | - require_once($_SERVER['DOCUMENT_ROOT'] . "/s/classes/time_manip.php"); |
|
78 | - require_once($_SERVER['DOCUMENT_ROOT'] . "/s/classes/user_helper.php"); |
|
79 | - require_once($_SERVER['DOCUMENT_ROOT'] . "/s/classes/video_helper.php"); |
|
80 | - $__video_h = new video_helper($__db); |
|
81 | - $__user_h = new user_helper($__db); |
|
82 | - $__db_h = new db_helper(); |
|
83 | - $__time_h = new time_helper(); |
|
75 | + require_once($_SERVER['DOCUMENT_ROOT'] . "/s/classes/config.inc.php"); |
|
76 | + require_once($_SERVER['DOCUMENT_ROOT'] . "/s/classes/db_helper.php"); |
|
77 | + require_once($_SERVER['DOCUMENT_ROOT'] . "/s/classes/time_manip.php"); |
|
78 | + require_once($_SERVER['DOCUMENT_ROOT'] . "/s/classes/user_helper.php"); |
|
79 | + require_once($_SERVER['DOCUMENT_ROOT'] . "/s/classes/video_helper.php"); |
|
80 | + $__video_h = new video_helper($__db); |
|
81 | + $__user_h = new user_helper($__db); |
|
82 | + $__db_h = new db_helper(); |
|
83 | + $__time_h = new time_helper(); |
|
84 | 84 | |
85 | 85 | if(empty($requestedPage[1])) |
86 | 86 | require_once($_SERVER['DOCUMENT_ROOT'] . "/homepage.php"); |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | |
4 | 4 | switch ($requestedPage[1]) { |
5 | 5 | case '2009player': |
6 | - if($requestedPage[1] == "2009player" && $requestedPage[2] == "assets") { |
|
6 | + if ($requestedPage[1] == "2009player" && $requestedPage[2] == "assets") { |
|
7 | 7 | $a = implode("/", $requestedPage); |
8 | 8 | $i = implode(".", $requestedPage); |
9 | 9 | $file = file_get_contents($_SERVER['DOCUMENT_ROOT'] . $a); |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | $file_info = new finfo(FILEINFO_MIME_TYPE); |
43 | 43 | $mime_type = $file_info->buffer($file); |
44 | - if($mime_type == "text/plain") |
|
44 | + if ($mime_type == "text/plain") |
|
45 | 45 | header('Content-Type: text/css'); |
46 | 46 | else |
47 | 47 | header('Content-Type: ' . $mime_type); |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $__db_h = new db_helper(); |
83 | 83 | $__time_h = new time_helper(); |
84 | 84 | |
85 | - if(empty($requestedPage[1])) |
|
85 | + if (empty($requestedPage[1])) |
|
86 | 86 | require_once($_SERVER['DOCUMENT_ROOT'] . "/homepage.php"); |
87 | 87 | else |
88 | 88 | require_once($_SERVER['DOCUMENT_ROOT'] . "/" . $requestedPage[1] . ".php"); |
@@ -41,10 +41,11 @@ discard block |
||
41 | 41 | |
42 | 42 | $file_info = new finfo(FILEINFO_MIME_TYPE); |
43 | 43 | $mime_type = $file_info->buffer($file); |
44 | - if($mime_type == "text/plain") |
|
45 | - header('Content-Type: text/css'); |
|
46 | - else |
|
47 | - header('Content-Type: ' . $mime_type); |
|
44 | + if($mime_type == "text/plain") { |
|
45 | + header('Content-Type: text/css'); |
|
46 | + } else { |
|
47 | + header('Content-Type: ' . $mime_type); |
|
48 | + } |
|
48 | 49 | echo $file; |
49 | 50 | break; |
50 | 51 | case 'inbox': |
@@ -82,10 +83,11 @@ discard block |
||
82 | 83 | $__db_h = new db_helper(); |
83 | 84 | $__time_h = new time_helper(); |
84 | 85 | |
85 | - if(empty($requestedPage[1])) |
|
86 | - require_once($_SERVER['DOCUMENT_ROOT'] . "/homepage.php"); |
|
87 | - else |
|
88 | - require_once($_SERVER['DOCUMENT_ROOT'] . "/" . $requestedPage[1] . ".php"); |
|
86 | + if(empty($requestedPage[1])) { |
|
87 | + require_once($_SERVER['DOCUMENT_ROOT'] . "/homepage.php"); |
|
88 | + } else { |
|
89 | + require_once($_SERVER['DOCUMENT_ROOT'] . "/" . $requestedPage[1] . ".php"); |
|
90 | + } |
|
89 | 91 | die(); |
90 | 92 | break; |
91 | 93 | } |
92 | 94 | \ No newline at end of file |
@@ -138,16 +138,16 @@ discard block |
||
138 | 138 | </div> |
139 | 139 | <div class="browse-item-row ytg-box"> |
140 | 140 | <?php |
141 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
|
142 | - $stmt->execute(); |
|
143 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
144 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
145 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
146 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
147 | - $video['author'] = htmlspecialchars($video['author']); |
|
148 | - $video['title'] = htmlspecialchars($video['title']); |
|
149 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
150 | - ?> |
|
141 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
|
142 | + $stmt->execute(); |
|
143 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
144 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
145 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
146 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
147 | + $video['author'] = htmlspecialchars($video['author']); |
|
148 | + $video['title'] = htmlspecialchars($video['title']); |
|
149 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
150 | + ?> |
|
151 | 151 | <div class="browse-item yt-tile-default "> |
152 | 152 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><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/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
153 | 153 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -173,16 +173,16 @@ discard block |
||
173 | 173 | </div> |
174 | 174 | <div class="browse-item-row ytg-box"> |
175 | 175 | <?php |
176 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
|
177 | - $stmt->execute(); |
|
178 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
179 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
180 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
181 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
182 | - $video['author'] = htmlspecialchars($video['author']); |
|
183 | - $video['title'] = htmlspecialchars($video['title']); |
|
184 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
185 | - ?> |
|
176 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
|
177 | + $stmt->execute(); |
|
178 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
179 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
180 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
181 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
182 | + $video['author'] = htmlspecialchars($video['author']); |
|
183 | + $video['title'] = htmlspecialchars($video['title']); |
|
184 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
185 | + ?> |
|
186 | 186 | <div class="browse-item yt-tile-default "> |
187 | 187 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><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/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
188 | 188 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -208,16 +208,16 @@ discard block |
||
208 | 208 | </div> |
209 | 209 | <div class="browse-item-row ytg-box"> |
210 | 210 | <?php |
211 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
|
212 | - $stmt->execute(); |
|
213 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
214 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
215 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
216 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
217 | - $video['author'] = htmlspecialchars($video['author']); |
|
218 | - $video['title'] = htmlspecialchars($video['title']); |
|
219 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
220 | - ?> |
|
211 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
|
212 | + $stmt->execute(); |
|
213 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
214 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
215 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
216 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
217 | + $video['author'] = htmlspecialchars($video['author']); |
|
218 | + $video['title'] = htmlspecialchars($video['title']); |
|
219 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
220 | + ?> |
|
221 | 221 | <div class="browse-item yt-tile-default "> |
222 | 222 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><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/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
223 | 223 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -243,16 +243,16 @@ discard block |
||
243 | 243 | </div> |
244 | 244 | <div class="browse-item-row ytg-box"> |
245 | 245 | <?php |
246 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
|
247 | - $stmt->execute(); |
|
248 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
249 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
250 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
251 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
252 | - $video['author'] = htmlspecialchars($video['author']); |
|
253 | - $video['title'] = htmlspecialchars($video['title']); |
|
254 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
255 | - ?> |
|
246 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
|
247 | + $stmt->execute(); |
|
248 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
249 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
250 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
251 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
252 | + $video['author'] = htmlspecialchars($video['author']); |
|
253 | + $video['title'] = htmlspecialchars($video['title']); |
|
254 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
255 | + ?> |
|
256 | 256 | <div class="browse-item yt-tile-default "> |
257 | 257 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><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/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
258 | 258 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -278,16 +278,16 @@ discard block |
||
278 | 278 | </div> |
279 | 279 | <div class="browse-item-row ytg-box"> |
280 | 280 | <?php |
281 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
|
282 | - $stmt->execute(); |
|
283 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
284 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
285 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
286 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
287 | - $video['author'] = htmlspecialchars($video['author']); |
|
288 | - $video['title'] = htmlspecialchars($video['title']); |
|
289 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
290 | - ?> |
|
281 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
|
282 | + $stmt->execute(); |
|
283 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
284 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
285 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
286 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
287 | + $video['author'] = htmlspecialchars($video['author']); |
|
288 | + $video['title'] = htmlspecialchars($video['title']); |
|
289 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
290 | + ?> |
|
291 | 291 | <div class="browse-item yt-tile-default "> |
292 | 292 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><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/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
293 | 293 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | <?php |
141 | 141 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
142 | 142 | $stmt->execute(); |
143 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
143 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
144 | 144 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
145 | 145 | $video['duration'] = $__time_h->timestamp($video['duration']); |
146 | 146 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | <?php |
176 | 176 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
177 | 177 | $stmt->execute(); |
178 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
178 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
179 | 179 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
180 | 180 | $video['duration'] = $__time_h->timestamp($video['duration']); |
181 | 181 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | <?php |
211 | 211 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
212 | 212 | $stmt->execute(); |
213 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
213 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
214 | 214 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
215 | 215 | $video['duration'] = $__time_h->timestamp($video['duration']); |
216 | 216 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | <?php |
246 | 246 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
247 | 247 | $stmt->execute(); |
248 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
248 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
249 | 249 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
250 | 250 | $video['duration'] = $__time_h->timestamp($video['duration']); |
251 | 251 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | <?php |
281 | 281 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
282 | 282 | $stmt->execute(); |
283 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
283 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
284 | 284 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
285 | 285 | $video['duration'] = $__time_h->timestamp($video['duration']); |
286 | 286 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -138,16 +138,16 @@ discard block |
||
138 | 138 | </div> |
139 | 139 | <div class="browse-item-row ytg-box"> |
140 | 140 | <?php |
141 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4"); |
|
142 | - $stmt->execute(); |
|
143 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
144 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
145 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
146 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
147 | - $video['author'] = htmlspecialchars($video['author']); |
|
148 | - $video['title'] = htmlspecialchars($video['title']); |
|
149 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
150 | - ?> |
|
141 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4"); |
|
142 | + $stmt->execute(); |
|
143 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
144 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
145 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
146 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
147 | + $video['author'] = htmlspecialchars($video['author']); |
|
148 | + $video['title'] = htmlspecialchars($video['title']); |
|
149 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
150 | + ?> |
|
151 | 151 | <div class="browse-item yt-tile-default "> |
152 | 152 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><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/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
153 | 153 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -173,16 +173,16 @@ discard block |
||
173 | 173 | </div> |
174 | 174 | <div class="browse-item-row ytg-box"> |
175 | 175 | <?php |
176 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4"); |
|
177 | - $stmt->execute(); |
|
178 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
179 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
180 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
181 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
182 | - $video['author'] = htmlspecialchars($video['author']); |
|
183 | - $video['title'] = htmlspecialchars($video['title']); |
|
184 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
185 | - ?> |
|
176 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4"); |
|
177 | + $stmt->execute(); |
|
178 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
179 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
180 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
181 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
182 | + $video['author'] = htmlspecialchars($video['author']); |
|
183 | + $video['title'] = htmlspecialchars($video['title']); |
|
184 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
185 | + ?> |
|
186 | 186 | <div class="browse-item yt-tile-default "> |
187 | 187 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><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/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
188 | 188 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -208,16 +208,16 @@ discard block |
||
208 | 208 | </div> |
209 | 209 | <div class="browse-item-row ytg-box"> |
210 | 210 | <?php |
211 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4"); |
|
212 | - $stmt->execute(); |
|
213 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
214 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
215 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
216 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
217 | - $video['author'] = htmlspecialchars($video['author']); |
|
218 | - $video['title'] = htmlspecialchars($video['title']); |
|
219 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
220 | - ?> |
|
211 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4"); |
|
212 | + $stmt->execute(); |
|
213 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
214 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
215 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
216 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
217 | + $video['author'] = htmlspecialchars($video['author']); |
|
218 | + $video['title'] = htmlspecialchars($video['title']); |
|
219 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
220 | + ?> |
|
221 | 221 | <div class="browse-item yt-tile-default "> |
222 | 222 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><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/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
223 | 223 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -243,16 +243,16 @@ discard block |
||
243 | 243 | </div> |
244 | 244 | <div class="browse-item-row ytg-box"> |
245 | 245 | <?php |
246 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4"); |
|
247 | - $stmt->execute(); |
|
248 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
249 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
250 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
251 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
252 | - $video['author'] = htmlspecialchars($video['author']); |
|
253 | - $video['title'] = htmlspecialchars($video['title']); |
|
254 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
255 | - ?> |
|
246 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4"); |
|
247 | + $stmt->execute(); |
|
248 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
249 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
250 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
251 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
252 | + $video['author'] = htmlspecialchars($video['author']); |
|
253 | + $video['title'] = htmlspecialchars($video['title']); |
|
254 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
255 | + ?> |
|
256 | 256 | <div class="browse-item yt-tile-default "> |
257 | 257 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><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/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
258 | 258 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -278,16 +278,16 @@ discard block |
||
278 | 278 | </div> |
279 | 279 | <div class="browse-item-row ytg-box"> |
280 | 280 | <?php |
281 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4"); |
|
282 | - $stmt->execute(); |
|
283 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
284 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
285 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
286 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
287 | - $video['author'] = htmlspecialchars($video['author']); |
|
288 | - $video['title'] = htmlspecialchars($video['title']); |
|
289 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
290 | - ?> |
|
281 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4"); |
|
282 | + $stmt->execute(); |
|
283 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
284 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
285 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
286 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
287 | + $video['author'] = htmlspecialchars($video['author']); |
|
288 | + $video['title'] = htmlspecialchars($video['title']); |
|
289 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
290 | + ?> |
|
291 | 291 | <div class="browse-item yt-tile-default "> |
292 | 292 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><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/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
293 | 293 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | <?php |
141 | 141 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4"); |
142 | 142 | $stmt->execute(); |
143 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
143 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
144 | 144 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
145 | 145 | $video['duration'] = $__time_h->timestamp($video['duration']); |
146 | 146 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | <?php |
176 | 176 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4"); |
177 | 177 | $stmt->execute(); |
178 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
178 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
179 | 179 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
180 | 180 | $video['duration'] = $__time_h->timestamp($video['duration']); |
181 | 181 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | <?php |
211 | 211 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4"); |
212 | 212 | $stmt->execute(); |
213 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
213 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
214 | 214 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
215 | 215 | $video['duration'] = $__time_h->timestamp($video['duration']); |
216 | 216 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | <?php |
246 | 246 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4"); |
247 | 247 | $stmt->execute(); |
248 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
248 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
249 | 249 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
250 | 250 | $video['duration'] = $__time_h->timestamp($video['duration']); |
251 | 251 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | <?php |
281 | 281 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4"); |
282 | 282 | $stmt->execute(); |
283 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
283 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
284 | 284 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
285 | 285 | $video['duration'] = $__time_h->timestamp($video['duration']); |
286 | 286 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -138,16 +138,16 @@ discard block |
||
138 | 138 | </div> |
139 | 139 | <div class="browse-item-row ytg-box"> |
140 | 140 | <?php |
141 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
|
142 | - $stmt->execute(); |
|
143 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
144 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
145 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
146 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
147 | - $video['author'] = htmlspecialchars($video['author']); |
|
148 | - $video['title'] = htmlspecialchars($video['title']); |
|
149 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
150 | - ?> |
|
141 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
|
142 | + $stmt->execute(); |
|
143 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
144 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
145 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
146 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
147 | + $video['author'] = htmlspecialchars($video['author']); |
|
148 | + $video['title'] = htmlspecialchars($video['title']); |
|
149 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
150 | + ?> |
|
151 | 151 | <div class="browse-item yt-tile-default "> |
152 | 152 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><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/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
153 | 153 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -173,16 +173,16 @@ discard block |
||
173 | 173 | </div> |
174 | 174 | <div class="browse-item-row ytg-box"> |
175 | 175 | <?php |
176 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
|
177 | - $stmt->execute(); |
|
178 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
179 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
180 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
181 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
182 | - $video['author'] = htmlspecialchars($video['author']); |
|
183 | - $video['title'] = htmlspecialchars($video['title']); |
|
184 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
185 | - ?> |
|
176 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
|
177 | + $stmt->execute(); |
|
178 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
179 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
180 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
181 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
182 | + $video['author'] = htmlspecialchars($video['author']); |
|
183 | + $video['title'] = htmlspecialchars($video['title']); |
|
184 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
185 | + ?> |
|
186 | 186 | <div class="browse-item yt-tile-default "> |
187 | 187 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><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/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
188 | 188 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -208,16 +208,16 @@ discard block |
||
208 | 208 | </div> |
209 | 209 | <div class="browse-item-row ytg-box"> |
210 | 210 | <?php |
211 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
|
212 | - $stmt->execute(); |
|
213 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
214 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
215 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
216 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
217 | - $video['author'] = htmlspecialchars($video['author']); |
|
218 | - $video['title'] = htmlspecialchars($video['title']); |
|
219 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
220 | - ?> |
|
211 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
|
212 | + $stmt->execute(); |
|
213 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
214 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
215 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
216 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
217 | + $video['author'] = htmlspecialchars($video['author']); |
|
218 | + $video['title'] = htmlspecialchars($video['title']); |
|
219 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
220 | + ?> |
|
221 | 221 | <div class="browse-item yt-tile-default "> |
222 | 222 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><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/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
223 | 223 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -243,16 +243,16 @@ discard block |
||
243 | 243 | </div> |
244 | 244 | <div class="browse-item-row ytg-box"> |
245 | 245 | <?php |
246 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
|
247 | - $stmt->execute(); |
|
248 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
249 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
250 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
251 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
252 | - $video['author'] = htmlspecialchars($video['author']); |
|
253 | - $video['title'] = htmlspecialchars($video['title']); |
|
254 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
255 | - ?> |
|
246 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
|
247 | + $stmt->execute(); |
|
248 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
249 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
250 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
251 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
252 | + $video['author'] = htmlspecialchars($video['author']); |
|
253 | + $video['title'] = htmlspecialchars($video['title']); |
|
254 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
255 | + ?> |
|
256 | 256 | <div class="browse-item yt-tile-default "> |
257 | 257 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><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/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
258 | 258 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -278,16 +278,16 @@ discard block |
||
278 | 278 | </div> |
279 | 279 | <div class="browse-item-row ytg-box"> |
280 | 280 | <?php |
281 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
|
282 | - $stmt->execute(); |
|
283 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
284 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
285 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
286 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
287 | - $video['author'] = htmlspecialchars($video['author']); |
|
288 | - $video['title'] = htmlspecialchars($video['title']); |
|
289 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
290 | - ?> |
|
281 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
|
282 | + $stmt->execute(); |
|
283 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
284 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
285 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
286 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
287 | + $video['author'] = htmlspecialchars($video['author']); |
|
288 | + $video['title'] = htmlspecialchars($video['title']); |
|
289 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
290 | + ?> |
|
291 | 291 | <div class="browse-item yt-tile-default "> |
292 | 292 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><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/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
293 | 293 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | <?php |
141 | 141 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
142 | 142 | $stmt->execute(); |
143 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
143 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
144 | 144 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
145 | 145 | $video['duration'] = $__time_h->timestamp($video['duration']); |
146 | 146 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | <?php |
176 | 176 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
177 | 177 | $stmt->execute(); |
178 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
178 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
179 | 179 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
180 | 180 | $video['duration'] = $__time_h->timestamp($video['duration']); |
181 | 181 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | <?php |
211 | 211 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
212 | 212 | $stmt->execute(); |
213 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
213 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
214 | 214 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
215 | 215 | $video['duration'] = $__time_h->timestamp($video['duration']); |
216 | 216 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | <?php |
246 | 246 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
247 | 247 | $stmt->execute(); |
248 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
248 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
249 | 249 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
250 | 250 | $video['duration'] = $__time_h->timestamp($video['duration']); |
251 | 251 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | <?php |
281 | 281 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
282 | 282 | $stmt->execute(); |
283 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
283 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
284 | 284 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
285 | 285 | $video['duration'] = $__time_h->timestamp($video['duration']); |
286 | 286 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -138,16 +138,16 @@ discard block |
||
138 | 138 | </div> |
139 | 139 | <div class="browse-item-row ytg-box"> |
140 | 140 | <?php |
141 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
|
142 | - $stmt->execute(); |
|
143 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
144 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
145 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
146 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
147 | - $video['author'] = htmlspecialchars($video['author']); |
|
148 | - $video['title'] = htmlspecialchars($video['title']); |
|
149 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
150 | - ?> |
|
141 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
|
142 | + $stmt->execute(); |
|
143 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
144 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
145 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
146 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
147 | + $video['author'] = htmlspecialchars($video['author']); |
|
148 | + $video['title'] = htmlspecialchars($video['title']); |
|
149 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
150 | + ?> |
|
151 | 151 | <div class="browse-item yt-tile-default "> |
152 | 152 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><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/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
153 | 153 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -173,16 +173,16 @@ discard block |
||
173 | 173 | </div> |
174 | 174 | <div class="browse-item-row ytg-box"> |
175 | 175 | <?php |
176 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
|
177 | - $stmt->execute(); |
|
178 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
179 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
180 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
181 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
182 | - $video['author'] = htmlspecialchars($video['author']); |
|
183 | - $video['title'] = htmlspecialchars($video['title']); |
|
184 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
185 | - ?> |
|
176 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
|
177 | + $stmt->execute(); |
|
178 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
179 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
180 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
181 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
182 | + $video['author'] = htmlspecialchars($video['author']); |
|
183 | + $video['title'] = htmlspecialchars($video['title']); |
|
184 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
185 | + ?> |
|
186 | 186 | <div class="browse-item yt-tile-default "> |
187 | 187 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><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/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
188 | 188 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -208,16 +208,16 @@ discard block |
||
208 | 208 | </div> |
209 | 209 | <div class="browse-item-row ytg-box"> |
210 | 210 | <?php |
211 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
|
212 | - $stmt->execute(); |
|
213 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
214 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
215 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
216 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
217 | - $video['author'] = htmlspecialchars($video['author']); |
|
218 | - $video['title'] = htmlspecialchars($video['title']); |
|
219 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
220 | - ?> |
|
211 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
|
212 | + $stmt->execute(); |
|
213 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
214 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
215 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
216 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
217 | + $video['author'] = htmlspecialchars($video['author']); |
|
218 | + $video['title'] = htmlspecialchars($video['title']); |
|
219 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
220 | + ?> |
|
221 | 221 | <div class="browse-item yt-tile-default "> |
222 | 222 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><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/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
223 | 223 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -243,16 +243,16 @@ discard block |
||
243 | 243 | </div> |
244 | 244 | <div class="browse-item-row ytg-box"> |
245 | 245 | <?php |
246 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
|
247 | - $stmt->execute(); |
|
248 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
249 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
250 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
251 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
252 | - $video['author'] = htmlspecialchars($video['author']); |
|
253 | - $video['title'] = htmlspecialchars($video['title']); |
|
254 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
255 | - ?> |
|
246 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
|
247 | + $stmt->execute(); |
|
248 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
249 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
250 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
251 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
252 | + $video['author'] = htmlspecialchars($video['author']); |
|
253 | + $video['title'] = htmlspecialchars($video['title']); |
|
254 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
255 | + ?> |
|
256 | 256 | <div class="browse-item yt-tile-default "> |
257 | 257 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><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/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
258 | 258 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -278,16 +278,16 @@ discard block |
||
278 | 278 | </div> |
279 | 279 | <div class="browse-item-row ytg-box"> |
280 | 280 | <?php |
281 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
|
282 | - $stmt->execute(); |
|
283 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
284 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
285 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
286 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
287 | - $video['author'] = htmlspecialchars($video['author']); |
|
288 | - $video['title'] = htmlspecialchars($video['title']); |
|
289 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
290 | - ?> |
|
281 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
|
282 | + $stmt->execute(); |
|
283 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
284 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
285 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
286 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
287 | + $video['author'] = htmlspecialchars($video['author']); |
|
288 | + $video['title'] = htmlspecialchars($video['title']); |
|
289 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
290 | + ?> |
|
291 | 291 | <div class="browse-item yt-tile-default "> |
292 | 292 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><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/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
293 | 293 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | <?php |
141 | 141 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
142 | 142 | $stmt->execute(); |
143 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
143 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
144 | 144 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
145 | 145 | $video['duration'] = $__time_h->timestamp($video['duration']); |
146 | 146 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | <?php |
176 | 176 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
177 | 177 | $stmt->execute(); |
178 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
178 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
179 | 179 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
180 | 180 | $video['duration'] = $__time_h->timestamp($video['duration']); |
181 | 181 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | <?php |
211 | 211 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
212 | 212 | $stmt->execute(); |
213 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
213 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
214 | 214 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
215 | 215 | $video['duration'] = $__time_h->timestamp($video['duration']); |
216 | 216 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | <?php |
246 | 246 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
247 | 247 | $stmt->execute(); |
248 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
248 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
249 | 249 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
250 | 250 | $video['duration'] = $__time_h->timestamp($video['duration']); |
251 | 251 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | <?php |
281 | 281 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
282 | 282 | $stmt->execute(); |
283 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
283 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
284 | 284 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
285 | 285 | $video['duration'] = $__time_h->timestamp($video['duration']); |
286 | 286 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -19,7 +19,7 @@ |
||
19 | 19 | |
20 | 20 | $name = $friend['reciever']; |
21 | 21 | |
22 | -if($name != $_SESSION['siteusername'] || !isset($_GET['id'])) { |
|
22 | +if ($name != $_SESSION['siteusername'] || !isset($_GET['id'])) { |
|
23 | 23 | die("You are not logged in or you did not put in an argument"); |
24 | 24 | } |
25 | 25 |