@@ -138,17 +138,17 @@ 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 = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
|
142 | - $stmt->execute(); |
|
143 | - $result = $stmt->get_result(); |
|
144 | - while($video = $result->fetch_assoc()) { |
|
145 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
146 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
147 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
148 | - $video['author'] = htmlspecialchars($video['author']); |
|
149 | - $video['title'] = htmlspecialchars($video['title']); |
|
150 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
151 | - ?> |
|
141 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
|
142 | + $stmt->execute(); |
|
143 | + $result = $stmt->get_result(); |
|
144 | + while($video = $result->fetch_assoc()) { |
|
145 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
146 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
147 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
148 | + $video['author'] = htmlspecialchars($video['author']); |
|
149 | + $video['title'] = htmlspecialchars($video['title']); |
|
150 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
151 | + ?> |
|
152 | 152 | <div class="browse-item yt-tile-default "> |
153 | 153 | <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> |
154 | 154 | <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"> |
@@ -174,17 +174,17 @@ discard block |
||
174 | 174 | </div> |
175 | 175 | <div class="browse-item-row ytg-box"> |
176 | 176 | <?php |
177 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
|
178 | - $stmt->execute(); |
|
179 | - $result = $stmt->get_result(); |
|
180 | - while($video = $result->fetch_assoc()) { |
|
181 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
182 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
183 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
184 | - $video['author'] = htmlspecialchars($video['author']); |
|
185 | - $video['title'] = htmlspecialchars($video['title']); |
|
186 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
187 | - ?> |
|
177 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
|
178 | + $stmt->execute(); |
|
179 | + $result = $stmt->get_result(); |
|
180 | + while($video = $result->fetch_assoc()) { |
|
181 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
182 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
183 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
184 | + $video['author'] = htmlspecialchars($video['author']); |
|
185 | + $video['title'] = htmlspecialchars($video['title']); |
|
186 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
187 | + ?> |
|
188 | 188 | <div class="browse-item yt-tile-default "> |
189 | 189 | <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> |
190 | 190 | <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"> |
@@ -210,17 +210,17 @@ discard block |
||
210 | 210 | </div> |
211 | 211 | <div class="browse-item-row ytg-box"> |
212 | 212 | <?php |
213 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
|
214 | - $stmt->execute(); |
|
215 | - $result = $stmt->get_result(); |
|
216 | - while($video = $result->fetch_assoc()) { |
|
217 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
218 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
219 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
220 | - $video['author'] = htmlspecialchars($video['author']); |
|
221 | - $video['title'] = htmlspecialchars($video['title']); |
|
222 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
223 | - ?> |
|
213 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
|
214 | + $stmt->execute(); |
|
215 | + $result = $stmt->get_result(); |
|
216 | + while($video = $result->fetch_assoc()) { |
|
217 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
218 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
219 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
220 | + $video['author'] = htmlspecialchars($video['author']); |
|
221 | + $video['title'] = htmlspecialchars($video['title']); |
|
222 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
223 | + ?> |
|
224 | 224 | <div class="browse-item yt-tile-default "> |
225 | 225 | <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> |
226 | 226 | <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"> |
@@ -246,17 +246,17 @@ discard block |
||
246 | 246 | </div> |
247 | 247 | <div class="browse-item-row ytg-box"> |
248 | 248 | <?php |
249 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
|
250 | - $stmt->execute(); |
|
251 | - $result = $stmt->get_result(); |
|
252 | - while($video = $result->fetch_assoc()) { |
|
253 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
254 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
255 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
256 | - $video['author'] = htmlspecialchars($video['author']); |
|
257 | - $video['title'] = htmlspecialchars($video['title']); |
|
258 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
259 | - ?> |
|
249 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
|
250 | + $stmt->execute(); |
|
251 | + $result = $stmt->get_result(); |
|
252 | + while($video = $result->fetch_assoc()) { |
|
253 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
254 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
255 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
256 | + $video['author'] = htmlspecialchars($video['author']); |
|
257 | + $video['title'] = htmlspecialchars($video['title']); |
|
258 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
259 | + ?> |
|
260 | 260 | <div class="browse-item yt-tile-default "> |
261 | 261 | <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> |
262 | 262 | <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"> |
@@ -282,17 +282,17 @@ discard block |
||
282 | 282 | </div> |
283 | 283 | <div class="browse-item-row ytg-box"> |
284 | 284 | <?php |
285 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
|
286 | - $stmt->execute(); |
|
287 | - $result = $stmt->get_result(); |
|
288 | - while($video = $result->fetch_assoc()) { |
|
289 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
290 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
291 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
292 | - $video['author'] = htmlspecialchars($video['author']); |
|
293 | - $video['title'] = htmlspecialchars($video['title']); |
|
294 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
295 | - ?> |
|
285 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
|
286 | + $stmt->execute(); |
|
287 | + $result = $stmt->get_result(); |
|
288 | + while($video = $result->fetch_assoc()) { |
|
289 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
290 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
291 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
292 | + $video['author'] = htmlspecialchars($video['author']); |
|
293 | + $video['title'] = htmlspecialchars($video['title']); |
|
294 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
295 | + ?> |
|
296 | 296 | <div class="browse-item yt-tile-default "> |
297 | 297 | <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> |
298 | 298 | <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"> |
@@ -138,17 +138,17 @@ 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 | - $result = $stmt->get_result(); |
|
144 | - while($video = $result->fetch_assoc()) { |
|
145 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
146 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
147 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
148 | - $video['author'] = htmlspecialchars($video['author']); |
|
149 | - $video['title'] = htmlspecialchars($video['title']); |
|
150 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
151 | - ?> |
|
141 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
|
142 | + $stmt->execute(); |
|
143 | + $result = $stmt->get_result(); |
|
144 | + while($video = $result->fetch_assoc()) { |
|
145 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
146 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
147 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
148 | + $video['author'] = htmlspecialchars($video['author']); |
|
149 | + $video['title'] = htmlspecialchars($video['title']); |
|
150 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
151 | + ?> |
|
152 | 152 | <div class="browse-item yt-tile-default "> |
153 | 153 | <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> |
154 | 154 | <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"> |
@@ -174,17 +174,17 @@ discard block |
||
174 | 174 | </div> |
175 | 175 | <div class="browse-item-row ytg-box"> |
176 | 176 | <?php |
177 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
|
178 | - $stmt->execute(); |
|
179 | - $result = $stmt->get_result(); |
|
180 | - while($video = $result->fetch_assoc()) { |
|
181 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
182 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
183 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
184 | - $video['author'] = htmlspecialchars($video['author']); |
|
185 | - $video['title'] = htmlspecialchars($video['title']); |
|
186 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
187 | - ?> |
|
177 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
|
178 | + $stmt->execute(); |
|
179 | + $result = $stmt->get_result(); |
|
180 | + while($video = $result->fetch_assoc()) { |
|
181 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
182 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
183 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
184 | + $video['author'] = htmlspecialchars($video['author']); |
|
185 | + $video['title'] = htmlspecialchars($video['title']); |
|
186 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
187 | + ?> |
|
188 | 188 | <div class="browse-item yt-tile-default "> |
189 | 189 | <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> |
190 | 190 | <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"> |
@@ -210,17 +210,17 @@ discard block |
||
210 | 210 | </div> |
211 | 211 | <div class="browse-item-row ytg-box"> |
212 | 212 | <?php |
213 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
|
214 | - $stmt->execute(); |
|
215 | - $result = $stmt->get_result(); |
|
216 | - while($video = $result->fetch_assoc()) { |
|
217 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
218 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
219 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
220 | - $video['author'] = htmlspecialchars($video['author']); |
|
221 | - $video['title'] = htmlspecialchars($video['title']); |
|
222 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
223 | - ?> |
|
213 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
|
214 | + $stmt->execute(); |
|
215 | + $result = $stmt->get_result(); |
|
216 | + while($video = $result->fetch_assoc()) { |
|
217 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
218 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
219 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
220 | + $video['author'] = htmlspecialchars($video['author']); |
|
221 | + $video['title'] = htmlspecialchars($video['title']); |
|
222 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
223 | + ?> |
|
224 | 224 | <div class="browse-item yt-tile-default "> |
225 | 225 | <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> |
226 | 226 | <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"> |
@@ -246,17 +246,17 @@ discard block |
||
246 | 246 | </div> |
247 | 247 | <div class="browse-item-row ytg-box"> |
248 | 248 | <?php |
249 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
|
250 | - $stmt->execute(); |
|
251 | - $result = $stmt->get_result(); |
|
252 | - while($video = $result->fetch_assoc()) { |
|
253 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
254 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
255 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
256 | - $video['author'] = htmlspecialchars($video['author']); |
|
257 | - $video['title'] = htmlspecialchars($video['title']); |
|
258 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
259 | - ?> |
|
249 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
|
250 | + $stmt->execute(); |
|
251 | + $result = $stmt->get_result(); |
|
252 | + while($video = $result->fetch_assoc()) { |
|
253 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
254 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
255 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
256 | + $video['author'] = htmlspecialchars($video['author']); |
|
257 | + $video['title'] = htmlspecialchars($video['title']); |
|
258 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
259 | + ?> |
|
260 | 260 | <div class="browse-item yt-tile-default "> |
261 | 261 | <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> |
262 | 262 | <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"> |
@@ -282,17 +282,17 @@ discard block |
||
282 | 282 | </div> |
283 | 283 | <div class="browse-item-row ytg-box"> |
284 | 284 | <?php |
285 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
|
286 | - $stmt->execute(); |
|
287 | - $result = $stmt->get_result(); |
|
288 | - while($video = $result->fetch_assoc()) { |
|
289 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
290 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
291 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
292 | - $video['author'] = htmlspecialchars($video['author']); |
|
293 | - $video['title'] = htmlspecialchars($video['title']); |
|
294 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
295 | - ?> |
|
285 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
|
286 | + $stmt->execute(); |
|
287 | + $result = $stmt->get_result(); |
|
288 | + while($video = $result->fetch_assoc()) { |
|
289 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
290 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
291 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
292 | + $video['author'] = htmlspecialchars($video['author']); |
|
293 | + $video['title'] = htmlspecialchars($video['title']); |
|
294 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
295 | + ?> |
|
296 | 296 | <div class="browse-item yt-tile-default "> |
297 | 297 | <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> |
298 | 298 | <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"> |
@@ -15,8 +15,8 @@ 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'])) |
|
19 | - $_user_hp = $__user_h->fetch_user_username($_SESSION['siteusername']); |
|
18 | + if(isset($_SESSION['siteusername'])) |
|
19 | + $_user_hp = $__user_h->fetch_user_username($_SESSION['siteusername']); |
|
20 | 20 | |
21 | 21 | if(!$__user_h->user_exists($_GET['n'])) |
22 | 22 | header("Location: /?userdoesntexist"); |
@@ -29,21 +29,21 @@ discard block |
||
29 | 29 | return preg_replace('/[^A-Za-z0-9\-]/', '', $string); // Removes special chars. |
30 | 30 | } |
31 | 31 | |
32 | - function addhttp($url) { |
|
33 | - if (!preg_match("~^(?:f|ht)tps?://~i", $url)) { |
|
34 | - $url = "http://" . $url; |
|
35 | - } |
|
36 | - return $url; |
|
37 | - } |
|
32 | + function addhttp($url) { |
|
33 | + if (!preg_match("~^(?:f|ht)tps?://~i", $url)) { |
|
34 | + $url = "http://" . $url; |
|
35 | + } |
|
36 | + return $url; |
|
37 | + } |
|
38 | 38 | |
39 | 39 | function check_valid_colorhex($colorCode) { |
40 | 40 | // If user accidentally passed along the # sign, strip it off |
41 | 41 | $colorCode = ltrim($colorCode, '#'); |
42 | 42 | |
43 | 43 | if ( |
44 | - ctype_xdigit($colorCode) && |
|
44 | + ctype_xdigit($colorCode) && |
|
45 | 45 | (strlen($colorCode) == 6 || strlen($colorCode) == 3)) |
46 | - return true; |
|
46 | + return true; |
|
47 | 47 | |
48 | 48 | else return false; |
49 | 49 | } |
@@ -77,8 +77,8 @@ discard block |
||
77 | 77 | if(!check_valid_colorhex($_user['primary_color_text']) && strlen($_user['primary_color_text']) != 6) { $_user['primary_color_text'] = ""; } |
78 | 78 | if(!check_valid_colorhex($_user['2009_bgcolor']) && strlen($_user['2009_bgcolor']) != 6) { $_user['2009_bgcolor'] = ""; } |
79 | 79 | |
80 | - if(isset($_SESSION['siteusername'])) |
|
81 | - $__user_i->check_view_channel($_user['username'], @$_SESSION['siteusername']); |
|
80 | + if(isset($_SESSION['siteusername'])) |
|
81 | + $__user_i->check_view_channel($_user['username'], @$_SESSION['siteusername']); |
|
82 | 82 | |
83 | 83 | if($_SERVER['REQUEST_METHOD'] == 'POST') { |
84 | 84 | $error = array(); |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | } |
106 | 106 | } |
107 | 107 | } |
108 | - ?> |
|
108 | + ?> |
|
109 | 109 | <!DOCTYPE html> |
110 | 110 | <html dir="ltr" xmlns:og="http://opengraphprotocol.org/schema/" lang="en"> |
111 | 111 | <!-- machid: sNW5tN3Z2SWdXaDRqNGxuNEF5MFBxM1BxWXd0VGo0Rkg3UXNTTTNCUGRDWjR0WGpHR3R1YzFR --> |
@@ -138,17 +138,17 @@ 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 = 'Travel & Events' ORDER BY rand() LIMIT 4"); |
|
142 | - $stmt->execute(); |
|
143 | - $result = $stmt->get_result(); |
|
144 | - while($video = $result->fetch_assoc()) { |
|
145 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
146 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
147 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
148 | - $video['author'] = htmlspecialchars($video['author']); |
|
149 | - $video['title'] = htmlspecialchars($video['title']); |
|
150 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
151 | - ?> |
|
141 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Travel & Events' ORDER BY rand() LIMIT 4"); |
|
142 | + $stmt->execute(); |
|
143 | + $result = $stmt->get_result(); |
|
144 | + while($video = $result->fetch_assoc()) { |
|
145 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
146 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
147 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
148 | + $video['author'] = htmlspecialchars($video['author']); |
|
149 | + $video['title'] = htmlspecialchars($video['title']); |
|
150 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
151 | + ?> |
|
152 | 152 | <div class="browse-item yt-tile-default "> |
153 | 153 | <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> |
154 | 154 | <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"> |
@@ -174,17 +174,17 @@ discard block |
||
174 | 174 | </div> |
175 | 175 | <div class="browse-item-row ytg-box"> |
176 | 176 | <?php |
177 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Travel & Events' ORDER BY rand() LIMIT 4"); |
|
178 | - $stmt->execute(); |
|
179 | - $result = $stmt->get_result(); |
|
180 | - while($video = $result->fetch_assoc()) { |
|
181 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
182 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
183 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
184 | - $video['author'] = htmlspecialchars($video['author']); |
|
185 | - $video['title'] = htmlspecialchars($video['title']); |
|
186 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
187 | - ?> |
|
177 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Travel & Events' ORDER BY rand() LIMIT 4"); |
|
178 | + $stmt->execute(); |
|
179 | + $result = $stmt->get_result(); |
|
180 | + while($video = $result->fetch_assoc()) { |
|
181 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
182 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
183 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
184 | + $video['author'] = htmlspecialchars($video['author']); |
|
185 | + $video['title'] = htmlspecialchars($video['title']); |
|
186 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
187 | + ?> |
|
188 | 188 | <div class="browse-item yt-tile-default "> |
189 | 189 | <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> |
190 | 190 | <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"> |
@@ -210,17 +210,17 @@ discard block |
||
210 | 210 | </div> |
211 | 211 | <div class="browse-item-row ytg-box"> |
212 | 212 | <?php |
213 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Travel & Events' ORDER BY rand() LIMIT 4"); |
|
214 | - $stmt->execute(); |
|
215 | - $result = $stmt->get_result(); |
|
216 | - while($video = $result->fetch_assoc()) { |
|
217 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
218 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
219 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
220 | - $video['author'] = htmlspecialchars($video['author']); |
|
221 | - $video['title'] = htmlspecialchars($video['title']); |
|
222 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
223 | - ?> |
|
213 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Travel & Events' ORDER BY rand() LIMIT 4"); |
|
214 | + $stmt->execute(); |
|
215 | + $result = $stmt->get_result(); |
|
216 | + while($video = $result->fetch_assoc()) { |
|
217 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
218 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
219 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
220 | + $video['author'] = htmlspecialchars($video['author']); |
|
221 | + $video['title'] = htmlspecialchars($video['title']); |
|
222 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
223 | + ?> |
|
224 | 224 | <div class="browse-item yt-tile-default "> |
225 | 225 | <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> |
226 | 226 | <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"> |
@@ -246,17 +246,17 @@ discard block |
||
246 | 246 | </div> |
247 | 247 | <div class="browse-item-row ytg-box"> |
248 | 248 | <?php |
249 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Travel & Events' ORDER BY rand() LIMIT 4"); |
|
250 | - $stmt->execute(); |
|
251 | - $result = $stmt->get_result(); |
|
252 | - while($video = $result->fetch_assoc()) { |
|
253 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
254 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
255 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
256 | - $video['author'] = htmlspecialchars($video['author']); |
|
257 | - $video['title'] = htmlspecialchars($video['title']); |
|
258 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
259 | - ?> |
|
249 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Travel & Events' ORDER BY rand() LIMIT 4"); |
|
250 | + $stmt->execute(); |
|
251 | + $result = $stmt->get_result(); |
|
252 | + while($video = $result->fetch_assoc()) { |
|
253 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
254 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
255 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
256 | + $video['author'] = htmlspecialchars($video['author']); |
|
257 | + $video['title'] = htmlspecialchars($video['title']); |
|
258 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
259 | + ?> |
|
260 | 260 | <div class="browse-item yt-tile-default "> |
261 | 261 | <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> |
262 | 262 | <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"> |
@@ -282,17 +282,17 @@ discard block |
||
282 | 282 | </div> |
283 | 283 | <div class="browse-item-row ytg-box"> |
284 | 284 | <?php |
285 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Travel & Events' ORDER BY rand() LIMIT 4"); |
|
286 | - $stmt->execute(); |
|
287 | - $result = $stmt->get_result(); |
|
288 | - while($video = $result->fetch_assoc()) { |
|
289 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
290 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
291 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
292 | - $video['author'] = htmlspecialchars($video['author']); |
|
293 | - $video['title'] = htmlspecialchars($video['title']); |
|
294 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
295 | - ?> |
|
285 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Travel & Events' ORDER BY rand() LIMIT 4"); |
|
286 | + $stmt->execute(); |
|
287 | + $result = $stmt->get_result(); |
|
288 | + while($video = $result->fetch_assoc()) { |
|
289 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
290 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
291 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
292 | + $video['author'] = htmlspecialchars($video['author']); |
|
293 | + $video['title'] = htmlspecialchars($video['title']); |
|
294 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
295 | + ?> |
|
296 | 296 | <div class="browse-item yt-tile-default "> |
297 | 297 | <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> |
298 | 298 | <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"> |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | |
33 | 33 | $__user_u->update_comment_cooldown_time($_SESSION['siteusername']); |
34 | 34 | |
35 | - /* |
|
35 | + /* |
|
36 | 36 | if(@$_SESSION['siteusername'] != $_video['author']) { |
37 | 37 | $_user_insert_utils->send_message($_video['author'], "New comment", 'I commented "' . $_POST['comment'] . '" on your video "' . $_video['title'] . '"', $_SESSION['siteusername']); |
38 | 38 | } |
@@ -57,22 +57,22 @@ 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); |
|
61 | - $_video['dislikes'] += $__video_h->get_video_stars_level($_video['rid'], 2); |
|
60 | + $_video['dislikes'] = $__video_h->get_video_stars_level($_video['rid'], 1); |
|
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) { |
|
67 | - $_video['likeswidth'] = 50; |
|
68 | - $_video['dislikeswidth'] = 50; |
|
69 | - } else { |
|
70 | - $_video['likeswidth'] = $_video['likes'] / ($_video['likes'] + $_video['dislikes']) * 100; |
|
71 | - $_video['dislikeswidth'] = 100 - $_video['likeswidth']; |
|
72 | - } |
|
66 | + if($_video['likes'] == 0 && $_video['dislikes'] == 0) { |
|
67 | + $_video['likeswidth'] = 50; |
|
68 | + $_video['dislikeswidth'] = 50; |
|
69 | + } else { |
|
70 | + $_video['likeswidth'] = $_video['likes'] / ($_video['likes'] + $_video['dislikes']) * 100; |
|
71 | + $_video['dislikeswidth'] = 100 - $_video['likeswidth']; |
|
72 | + } |
|
73 | 73 | |
74 | - $_video['author_videos'] = $__video_h->fetch_user_videos($_video['author']); |
|
75 | - ?> |
|
74 | + $_video['author_videos'] = $__video_h->fetch_user_videos($_video['author']); |
|
75 | + ?> |
|
76 | 76 | </head> |
77 | 77 | <body id="" class="date-20120927 en_US ltr ytg-old-clearfix guide-feed-v2 gecko gecko-15" dir="ltr"> |
78 | 78 | <form name="logoutForm" method="POST" action="/logout"> |
@@ -295,11 +295,11 @@ discard block |
||
295 | 295 | </div> |
296 | 296 | </div> |
297 | 297 | <?php |
298 | - $stmt = $__db->prepare("SELECT * FROM video_response WHERE toid = ? ORDER BY id DESC LIMIT 4"); |
|
299 | - $stmt->bind_param("s", $_GET['v']); |
|
300 | - $stmt->execute(); |
|
301 | - $result = $stmt->get_result(); |
|
302 | - ?> |
|
298 | + $stmt = $__db->prepare("SELECT * FROM video_response WHERE toid = ? ORDER BY id DESC LIMIT 4"); |
|
299 | + $stmt->bind_param("s", $_GET['v']); |
|
300 | + $stmt->execute(); |
|
301 | + $result = $stmt->get_result(); |
|
302 | + ?> |
|
303 | 303 | |
304 | 304 | <?php if($result->num_rows != 0) { ?> |
305 | 305 | <div class="comments-section"> |
@@ -309,16 +309,16 @@ 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'])) { |
|
314 | - $video = $__video_h->fetch_video_rid($video['video']); |
|
315 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
316 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
317 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
318 | - $video['author'] = htmlspecialchars($video['author']); |
|
319 | - $video['title'] = htmlspecialchars($video['title']); |
|
320 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
321 | - ?> |
|
312 | + while($video = $result->fetch_assoc()) { |
|
313 | + if($__video_h->video_exists($video['video'])) { |
|
314 | + $video = $__video_h->fetch_video_rid($video['video']); |
|
315 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
316 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
317 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
318 | + $video['author'] = htmlspecialchars($video['author']); |
|
319 | + $video['title'] = htmlspecialchars($video['title']); |
|
320 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
321 | + ?> |
|
322 | 322 | <li class="video-list-item yt-tile-default"> |
323 | 323 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="related-video yt-uix-contextlink yt-uix-sessionlink" data-sessionlink="<?php echo htmlspecialchars($_video['author']); ?>&feature=watch_response"><span class="ux-thumb-wrap contains-addto "><span class="video-thumb ux-thumb yt-thumb-default-120 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="<?php echo $video['title']; ?>" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="120"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
324 | 324 | <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="cjls0QsHOBE" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -400,40 +400,40 @@ discard block |
||
400 | 400 | </div> |
401 | 401 | <ul class="comment-list" id="live_comments"> |
402 | 402 | <?php |
403 | - $stmt56 = $__db->prepare("SELECT * FROM comments WHERE toid = ? ORDER BY id DESC"); |
|
404 | - $stmt56->bind_param("s", $_video['rid']); |
|
405 | - $stmt56->execute(); |
|
406 | - $result854 = $stmt56->get_result(); |
|
407 | - $result56 = $result854->num_rows; |
|
403 | + $stmt56 = $__db->prepare("SELECT * FROM comments WHERE toid = ? ORDER BY id DESC"); |
|
404 | + $stmt56->bind_param("s", $_video['rid']); |
|
405 | + $stmt56->execute(); |
|
406 | + $result854 = $stmt56->get_result(); |
|
407 | + $result56 = $result854->num_rows; |
|
408 | 408 | |
409 | - $results_per_page = 20; |
|
409 | + $results_per_page = 20; |
|
410 | 410 | |
411 | - $stmt = $__db->prepare("SELECT * FROM comments WHERE toid = ? ORDER BY id DESC"); |
|
412 | - $stmt->bind_param("s", $_video['rid']); |
|
413 | - $stmt->execute(); |
|
414 | - $result = $stmt->get_result(); |
|
415 | - $results = $result->num_rows; |
|
411 | + $stmt = $__db->prepare("SELECT * FROM comments WHERE toid = ? ORDER BY id DESC"); |
|
412 | + $stmt->bind_param("s", $_video['rid']); |
|
413 | + $stmt->execute(); |
|
414 | + $result = $stmt->get_result(); |
|
415 | + $results = $result->num_rows; |
|
416 | 416 | |
417 | - $number_of_result = $result->num_rows; |
|
418 | - $number_of_page = ceil ($number_of_result / $results_per_page); |
|
417 | + $number_of_result = $result->num_rows; |
|
418 | + $number_of_page = ceil ($number_of_result / $results_per_page); |
|
419 | 419 | |
420 | - if (!isset ($_GET['page']) ) { |
|
421 | - $page = 1; |
|
422 | - } else { |
|
423 | - $page = (int)$_GET['page']; |
|
424 | - } |
|
420 | + if (!isset ($_GET['page']) ) { |
|
421 | + $page = 1; |
|
422 | + } else { |
|
423 | + $page = (int)$_GET['page']; |
|
424 | + } |
|
425 | 425 | |
426 | - $page_first_result = ($page - 1) * $results_per_page; |
|
426 | + $page_first_result = ($page - 1) * $results_per_page; |
|
427 | 427 | |
428 | - $stmt->close(); |
|
428 | + $stmt->close(); |
|
429 | 429 | |
430 | - $stmt = $__db->prepare("SELECT * FROM comments WHERE toid = ? ORDER BY id DESC LIMIT ?, ?"); |
|
431 | - $stmt->bind_param("sss", $_video['rid'], $page_first_result, $results_per_page); |
|
432 | - $stmt->execute(); |
|
433 | - $result = $stmt->get_result(); |
|
430 | + $stmt = $__db->prepare("SELECT * FROM comments WHERE toid = ? ORDER BY id DESC LIMIT ?, ?"); |
|
431 | + $stmt->bind_param("sss", $_video['rid'], $page_first_result, $results_per_page); |
|
432 | + $stmt->execute(); |
|
433 | + $result = $stmt->get_result(); |
|
434 | 434 | |
435 | - while($comment = $result->fetch_assoc()) { |
|
436 | - ?> |
|
435 | + while($comment = $result->fetch_assoc()) { |
|
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"> |
439 | 439 | <div class="comment-body"> |
@@ -510,17 +510,17 @@ discard block |
||
510 | 510 | <ul id="watch-related" class="video-list"> |
511 | 511 | <div id="ppv-container" class="hid"></div> |
512 | 512 | <?php |
513 | - $stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 20"); |
|
514 | - $stmt->execute(); |
|
515 | - $result = $stmt->get_result(); |
|
516 | - while($video = $result->fetch_assoc()) { |
|
517 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
518 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
519 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
520 | - $video['author'] = htmlspecialchars($video['author']); |
|
521 | - $video['title'] = htmlspecialchars($video['title']); |
|
522 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
523 | - ?> |
|
513 | + $stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 20"); |
|
514 | + $stmt->execute(); |
|
515 | + $result = $stmt->get_result(); |
|
516 | + while($video = $result->fetch_assoc()) { |
|
517 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
518 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
519 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
520 | + $video['author'] = htmlspecialchars($video['author']); |
|
521 | + $video['title'] = htmlspecialchars($video['title']); |
|
522 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
523 | + ?> |
|
524 | 524 | <li class="video-list-item"><a href="/watch?v=<?php echo $video['rid']; ?>" class="related-video yt-uix-contextlink yt-uix-sessionlink" data-sessionlink="ved=CAIQzRooAA%3D%3D&<?php echo htmlspecialchars($_video['author']); ?>&feature=relmfu"><span class="ux-thumb-wrap contains-addto "><span class="video-thumb ux-thumb yt-thumb-default-120 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="<?php echo $video['title']; ?>" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="120"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
525 | 525 | <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="gyAaIKF6tSQ" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
526 | 526 | </span><img class="yt-uix-button-arrow" src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt=""></button> |
@@ -56,8 +56,8 @@ discard block |
||
56 | 56 | </div> |
57 | 57 | <div class="guide"> |
58 | 58 | <?php |
59 | - if(isset($_SESSION['siteusername'])) { |
|
60 | - ?> |
|
59 | + if(isset($_SESSION['siteusername'])) { |
|
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 |
63 | 63 | <img src="/static/pixel-vfl3z5WfW.gif" class="see-more-arrow" alt=""></a> |
@@ -210,17 +210,17 @@ discard block |
||
210 | 210 | </p> |
211 | 211 | <ul> |
212 | 212 | <?php |
213 | - $stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 4"); |
|
214 | - $stmt->execute(); |
|
215 | - $result = $stmt->get_result(); |
|
216 | - while($video = $result->fetch_assoc()) { |
|
217 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
218 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
219 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
220 | - $video['author'] = htmlspecialchars($video['author']); |
|
221 | - $video['title'] = htmlspecialchars($video['title']); |
|
222 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
223 | - ?> |
|
213 | + $stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 4"); |
|
214 | + $stmt->execute(); |
|
215 | + $result = $stmt->get_result(); |
|
216 | + while($video = $result->fetch_assoc()) { |
|
217 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
218 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
219 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
220 | + $video['author'] = htmlspecialchars($video['author']); |
|
221 | + $video['title'] = htmlspecialchars($video['title']); |
|
222 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
223 | + ?> |
|
224 | 224 | <li class="video-list-item "><a href="/watch?v=<?php echo $video['rid']; ?>" class="video-list-item-link yt-uix-sessionlink" data-sessionlink="ei=CNLr3rbS3rICFSwSIQodSW397Q%3D%3D&feature=g-sptl%26cid%3Dinp-hs-ytg"><span class="ux-thumb-wrap contains-addto "><span class="video-thumb ux-thumb yt-thumb-default-120 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="<?php echo $video['title']; ?>" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="120"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
225 | 225 | <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="yuTBQ86r8o0" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
226 | 226 | </span><img class="yt-uix-button-arrow" src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt=""></button> |
@@ -234,17 +234,17 @@ discard block |
||
234 | 234 | </h3> |
235 | 235 | <ul> |
236 | 236 | <?php |
237 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE featured = 'v' ORDER BY id DESC LIMIT 4"); |
|
238 | - $stmt->execute(); |
|
239 | - $result = $stmt->get_result(); |
|
240 | - while($video = $result->fetch_assoc()) { |
|
241 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
242 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
243 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
244 | - $video['author'] = htmlspecialchars($video['author']); |
|
245 | - $video['title'] = htmlspecialchars($video['title']); |
|
246 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
247 | - ?> |
|
237 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE featured = 'v' ORDER BY id DESC LIMIT 4"); |
|
238 | + $stmt->execute(); |
|
239 | + $result = $stmt->get_result(); |
|
240 | + while($video = $result->fetch_assoc()) { |
|
241 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
242 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
243 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
244 | + $video['author'] = htmlspecialchars($video['author']); |
|
245 | + $video['title'] = htmlspecialchars($video['title']); |
|
246 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
247 | + ?> |
|
248 | 248 | <li class="video-list-item "><a href="/watch?v=<?php echo $video['rid']; ?>" class="video-list-item-link yt-uix-sessionlink" data-sessionlink="ei=CNLr3rbS3rICFSwSIQodSW397Q%3D%3D&feature=g-sptl%26cid%3Dinp-hs-ytg"><span class="ux-thumb-wrap contains-addto "><span class="video-thumb ux-thumb yt-thumb-default-120 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="<?php echo $video['title']; ?>" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="120"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
249 | 249 | <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="yuTBQ86r8o0" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
250 | 250 | </span><img class="yt-uix-button-arrow" src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt=""></button> |
@@ -268,17 +268,17 @@ discard block |
||
268 | 268 | <div class="feed-page"> |
269 | 269 | <ul> |
270 | 270 | <?php |
271 | - $stmt = $__db->prepare("SELECT * FROM videos ORDER BY id DESC LIMIT 20"); |
|
272 | - $stmt->execute(); |
|
273 | - $result = $stmt->get_result(); |
|
274 | - while($video = $result->fetch_assoc()) { |
|
275 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
276 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
277 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
278 | - $video['author'] = htmlspecialchars($video['author']); |
|
279 | - $video['title'] = htmlspecialchars($video['title']); |
|
280 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
281 | - ?> |
|
271 | + $stmt = $__db->prepare("SELECT * FROM videos ORDER BY id DESC LIMIT 20"); |
|
272 | + $stmt->execute(); |
|
273 | + $result = $stmt->get_result(); |
|
274 | + while($video = $result->fetch_assoc()) { |
|
275 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
276 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
277 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
278 | + $video['author'] = htmlspecialchars($video['author']); |
|
279 | + $video['title'] = htmlspecialchars($video['title']); |
|
280 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
281 | + ?> |
|
282 | 282 | <li> |
283 | 283 | <div class="feed-item-container first " data-channel-key="UCR2A9ZNliJfgC66IvIpe-Zw"> |
284 | 284 | <div class="feed-author-bubble-container"> |
@@ -138,17 +138,17 @@ 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 | - $result = $stmt->get_result(); |
|
144 | - while($video = $result->fetch_assoc()) { |
|
145 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
146 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
147 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
148 | - $video['author'] = htmlspecialchars($video['author']); |
|
149 | - $video['title'] = htmlspecialchars($video['title']); |
|
150 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
151 | - ?> |
|
141 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
|
142 | + $stmt->execute(); |
|
143 | + $result = $stmt->get_result(); |
|
144 | + while($video = $result->fetch_assoc()) { |
|
145 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
146 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
147 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
148 | + $video['author'] = htmlspecialchars($video['author']); |
|
149 | + $video['title'] = htmlspecialchars($video['title']); |
|
150 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
151 | + ?> |
|
152 | 152 | <div class="browse-item yt-tile-default "> |
153 | 153 | <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> |
154 | 154 | <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"> |
@@ -174,17 +174,17 @@ discard block |
||
174 | 174 | </div> |
175 | 175 | <div class="browse-item-row ytg-box"> |
176 | 176 | <?php |
177 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
|
178 | - $stmt->execute(); |
|
179 | - $result = $stmt->get_result(); |
|
180 | - while($video = $result->fetch_assoc()) { |
|
181 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
182 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
183 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
184 | - $video['author'] = htmlspecialchars($video['author']); |
|
185 | - $video['title'] = htmlspecialchars($video['title']); |
|
186 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
187 | - ?> |
|
177 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
|
178 | + $stmt->execute(); |
|
179 | + $result = $stmt->get_result(); |
|
180 | + while($video = $result->fetch_assoc()) { |
|
181 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
182 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
183 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
184 | + $video['author'] = htmlspecialchars($video['author']); |
|
185 | + $video['title'] = htmlspecialchars($video['title']); |
|
186 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
187 | + ?> |
|
188 | 188 | <div class="browse-item yt-tile-default "> |
189 | 189 | <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> |
190 | 190 | <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"> |
@@ -210,17 +210,17 @@ discard block |
||
210 | 210 | </div> |
211 | 211 | <div class="browse-item-row ytg-box"> |
212 | 212 | <?php |
213 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
|
214 | - $stmt->execute(); |
|
215 | - $result = $stmt->get_result(); |
|
216 | - while($video = $result->fetch_assoc()) { |
|
217 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
218 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
219 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
220 | - $video['author'] = htmlspecialchars($video['author']); |
|
221 | - $video['title'] = htmlspecialchars($video['title']); |
|
222 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
223 | - ?> |
|
213 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
|
214 | + $stmt->execute(); |
|
215 | + $result = $stmt->get_result(); |
|
216 | + while($video = $result->fetch_assoc()) { |
|
217 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
218 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
219 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
220 | + $video['author'] = htmlspecialchars($video['author']); |
|
221 | + $video['title'] = htmlspecialchars($video['title']); |
|
222 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
223 | + ?> |
|
224 | 224 | <div class="browse-item yt-tile-default "> |
225 | 225 | <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> |
226 | 226 | <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"> |
@@ -246,17 +246,17 @@ discard block |
||
246 | 246 | </div> |
247 | 247 | <div class="browse-item-row ytg-box"> |
248 | 248 | <?php |
249 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
|
250 | - $stmt->execute(); |
|
251 | - $result = $stmt->get_result(); |
|
252 | - while($video = $result->fetch_assoc()) { |
|
253 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
254 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
255 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
256 | - $video['author'] = htmlspecialchars($video['author']); |
|
257 | - $video['title'] = htmlspecialchars($video['title']); |
|
258 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
259 | - ?> |
|
249 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
|
250 | + $stmt->execute(); |
|
251 | + $result = $stmt->get_result(); |
|
252 | + while($video = $result->fetch_assoc()) { |
|
253 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
254 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
255 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
256 | + $video['author'] = htmlspecialchars($video['author']); |
|
257 | + $video['title'] = htmlspecialchars($video['title']); |
|
258 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
259 | + ?> |
|
260 | 260 | <div class="browse-item yt-tile-default "> |
261 | 261 | <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> |
262 | 262 | <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"> |
@@ -282,17 +282,17 @@ discard block |
||
282 | 282 | </div> |
283 | 283 | <div class="browse-item-row ytg-box"> |
284 | 284 | <?php |
285 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
|
286 | - $stmt->execute(); |
|
287 | - $result = $stmt->get_result(); |
|
288 | - while($video = $result->fetch_assoc()) { |
|
289 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
290 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
291 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
292 | - $video['author'] = htmlspecialchars($video['author']); |
|
293 | - $video['title'] = htmlspecialchars($video['title']); |
|
294 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
295 | - ?> |
|
285 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'People & Blogs' ORDER BY rand() LIMIT 4"); |
|
286 | + $stmt->execute(); |
|
287 | + $result = $stmt->get_result(); |
|
288 | + while($video = $result->fetch_assoc()) { |
|
289 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
290 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
291 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
292 | + $video['author'] = htmlspecialchars($video['author']); |
|
293 | + $video['title'] = htmlspecialchars($video['title']); |
|
294 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
295 | + ?> |
|
296 | 296 | <div class="browse-item yt-tile-default "> |
297 | 297 | <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> |
298 | 298 | <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"> |
@@ -138,17 +138,17 @@ 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 | - $result = $stmt->get_result(); |
|
144 | - while($video = $result->fetch_assoc()) { |
|
145 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
146 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
147 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
148 | - $video['author'] = htmlspecialchars($video['author']); |
|
149 | - $video['title'] = htmlspecialchars($video['title']); |
|
150 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
151 | - ?> |
|
141 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
|
142 | + $stmt->execute(); |
|
143 | + $result = $stmt->get_result(); |
|
144 | + while($video = $result->fetch_assoc()) { |
|
145 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
146 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
147 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
148 | + $video['author'] = htmlspecialchars($video['author']); |
|
149 | + $video['title'] = htmlspecialchars($video['title']); |
|
150 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
151 | + ?> |
|
152 | 152 | <div class="browse-item yt-tile-default "> |
153 | 153 | <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> |
154 | 154 | <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"> |
@@ -174,17 +174,17 @@ discard block |
||
174 | 174 | </div> |
175 | 175 | <div class="browse-item-row ytg-box"> |
176 | 176 | <?php |
177 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
|
178 | - $stmt->execute(); |
|
179 | - $result = $stmt->get_result(); |
|
180 | - while($video = $result->fetch_assoc()) { |
|
181 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
182 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
183 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
184 | - $video['author'] = htmlspecialchars($video['author']); |
|
185 | - $video['title'] = htmlspecialchars($video['title']); |
|
186 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
187 | - ?> |
|
177 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
|
178 | + $stmt->execute(); |
|
179 | + $result = $stmt->get_result(); |
|
180 | + while($video = $result->fetch_assoc()) { |
|
181 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
182 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
183 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
184 | + $video['author'] = htmlspecialchars($video['author']); |
|
185 | + $video['title'] = htmlspecialchars($video['title']); |
|
186 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
187 | + ?> |
|
188 | 188 | <div class="browse-item yt-tile-default "> |
189 | 189 | <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> |
190 | 190 | <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"> |
@@ -210,17 +210,17 @@ discard block |
||
210 | 210 | </div> |
211 | 211 | <div class="browse-item-row ytg-box"> |
212 | 212 | <?php |
213 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
|
214 | - $stmt->execute(); |
|
215 | - $result = $stmt->get_result(); |
|
216 | - while($video = $result->fetch_assoc()) { |
|
217 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
218 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
219 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
220 | - $video['author'] = htmlspecialchars($video['author']); |
|
221 | - $video['title'] = htmlspecialchars($video['title']); |
|
222 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
223 | - ?> |
|
213 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
|
214 | + $stmt->execute(); |
|
215 | + $result = $stmt->get_result(); |
|
216 | + while($video = $result->fetch_assoc()) { |
|
217 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
218 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
219 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
220 | + $video['author'] = htmlspecialchars($video['author']); |
|
221 | + $video['title'] = htmlspecialchars($video['title']); |
|
222 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
223 | + ?> |
|
224 | 224 | <div class="browse-item yt-tile-default "> |
225 | 225 | <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> |
226 | 226 | <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"> |
@@ -246,17 +246,17 @@ discard block |
||
246 | 246 | </div> |
247 | 247 | <div class="browse-item-row ytg-box"> |
248 | 248 | <?php |
249 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
|
250 | - $stmt->execute(); |
|
251 | - $result = $stmt->get_result(); |
|
252 | - while($video = $result->fetch_assoc()) { |
|
253 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
254 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
255 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
256 | - $video['author'] = htmlspecialchars($video['author']); |
|
257 | - $video['title'] = htmlspecialchars($video['title']); |
|
258 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
259 | - ?> |
|
249 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
|
250 | + $stmt->execute(); |
|
251 | + $result = $stmt->get_result(); |
|
252 | + while($video = $result->fetch_assoc()) { |
|
253 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
254 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
255 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
256 | + $video['author'] = htmlspecialchars($video['author']); |
|
257 | + $video['title'] = htmlspecialchars($video['title']); |
|
258 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
259 | + ?> |
|
260 | 260 | <div class="browse-item yt-tile-default "> |
261 | 261 | <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> |
262 | 262 | <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"> |
@@ -282,17 +282,17 @@ discard block |
||
282 | 282 | </div> |
283 | 283 | <div class="browse-item-row ytg-box"> |
284 | 284 | <?php |
285 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
|
286 | - $stmt->execute(); |
|
287 | - $result = $stmt->get_result(); |
|
288 | - while($video = $result->fetch_assoc()) { |
|
289 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
290 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
291 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
292 | - $video['author'] = htmlspecialchars($video['author']); |
|
293 | - $video['title'] = htmlspecialchars($video['title']); |
|
294 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
295 | - ?> |
|
285 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
|
286 | + $stmt->execute(); |
|
287 | + $result = $stmt->get_result(); |
|
288 | + while($video = $result->fetch_assoc()) { |
|
289 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
290 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
291 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
292 | + $video['author'] = htmlspecialchars($video['author']); |
|
293 | + $video['title'] = htmlspecialchars($video['title']); |
|
294 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
295 | + ?> |
|
296 | 296 | <div class="browse-item yt-tile-default "> |
297 | 297 | <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> |
298 | 298 | <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"> |
@@ -138,17 +138,17 @@ 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 | - $result = $stmt->get_result(); |
|
144 | - while($video = $result->fetch_assoc()) { |
|
145 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
146 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
147 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
148 | - $video['author'] = htmlspecialchars($video['author']); |
|
149 | - $video['title'] = htmlspecialchars($video['title']); |
|
150 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
151 | - ?> |
|
141 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4"); |
|
142 | + $stmt->execute(); |
|
143 | + $result = $stmt->get_result(); |
|
144 | + while($video = $result->fetch_assoc()) { |
|
145 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
146 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
147 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
148 | + $video['author'] = htmlspecialchars($video['author']); |
|
149 | + $video['title'] = htmlspecialchars($video['title']); |
|
150 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
151 | + ?> |
|
152 | 152 | <div class="browse-item yt-tile-default "> |
153 | 153 | <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> |
154 | 154 | <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"> |
@@ -174,17 +174,17 @@ discard block |
||
174 | 174 | </div> |
175 | 175 | <div class="browse-item-row ytg-box"> |
176 | 176 | <?php |
177 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4"); |
|
178 | - $stmt->execute(); |
|
179 | - $result = $stmt->get_result(); |
|
180 | - while($video = $result->fetch_assoc()) { |
|
181 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
182 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
183 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
184 | - $video['author'] = htmlspecialchars($video['author']); |
|
185 | - $video['title'] = htmlspecialchars($video['title']); |
|
186 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
187 | - ?> |
|
177 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4"); |
|
178 | + $stmt->execute(); |
|
179 | + $result = $stmt->get_result(); |
|
180 | + while($video = $result->fetch_assoc()) { |
|
181 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
182 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
183 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
184 | + $video['author'] = htmlspecialchars($video['author']); |
|
185 | + $video['title'] = htmlspecialchars($video['title']); |
|
186 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
187 | + ?> |
|
188 | 188 | <div class="browse-item yt-tile-default "> |
189 | 189 | <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> |
190 | 190 | <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"> |
@@ -210,17 +210,17 @@ discard block |
||
210 | 210 | </div> |
211 | 211 | <div class="browse-item-row ytg-box"> |
212 | 212 | <?php |
213 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4"); |
|
214 | - $stmt->execute(); |
|
215 | - $result = $stmt->get_result(); |
|
216 | - while($video = $result->fetch_assoc()) { |
|
217 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
218 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
219 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
220 | - $video['author'] = htmlspecialchars($video['author']); |
|
221 | - $video['title'] = htmlspecialchars($video['title']); |
|
222 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
223 | - ?> |
|
213 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4"); |
|
214 | + $stmt->execute(); |
|
215 | + $result = $stmt->get_result(); |
|
216 | + while($video = $result->fetch_assoc()) { |
|
217 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
218 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
219 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
220 | + $video['author'] = htmlspecialchars($video['author']); |
|
221 | + $video['title'] = htmlspecialchars($video['title']); |
|
222 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
223 | + ?> |
|
224 | 224 | <div class="browse-item yt-tile-default "> |
225 | 225 | <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> |
226 | 226 | <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"> |
@@ -246,17 +246,17 @@ discard block |
||
246 | 246 | </div> |
247 | 247 | <div class="browse-item-row ytg-box"> |
248 | 248 | <?php |
249 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4"); |
|
250 | - $stmt->execute(); |
|
251 | - $result = $stmt->get_result(); |
|
252 | - while($video = $result->fetch_assoc()) { |
|
253 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
254 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
255 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
256 | - $video['author'] = htmlspecialchars($video['author']); |
|
257 | - $video['title'] = htmlspecialchars($video['title']); |
|
258 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
259 | - ?> |
|
249 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4"); |
|
250 | + $stmt->execute(); |
|
251 | + $result = $stmt->get_result(); |
|
252 | + while($video = $result->fetch_assoc()) { |
|
253 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
254 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
255 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
256 | + $video['author'] = htmlspecialchars($video['author']); |
|
257 | + $video['title'] = htmlspecialchars($video['title']); |
|
258 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
259 | + ?> |
|
260 | 260 | <div class="browse-item yt-tile-default "> |
261 | 261 | <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> |
262 | 262 | <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"> |
@@ -282,17 +282,17 @@ discard block |
||
282 | 282 | </div> |
283 | 283 | <div class="browse-item-row ytg-box"> |
284 | 284 | <?php |
285 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4"); |
|
286 | - $stmt->execute(); |
|
287 | - $result = $stmt->get_result(); |
|
288 | - while($video = $result->fetch_assoc()) { |
|
289 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
290 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
291 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
292 | - $video['author'] = htmlspecialchars($video['author']); |
|
293 | - $video['title'] = htmlspecialchars($video['title']); |
|
294 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
295 | - ?> |
|
285 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Howto & Style' ORDER BY rand() LIMIT 4"); |
|
286 | + $stmt->execute(); |
|
287 | + $result = $stmt->get_result(); |
|
288 | + while($video = $result->fetch_assoc()) { |
|
289 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
290 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
291 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
292 | + $video['author'] = htmlspecialchars($video['author']); |
|
293 | + $video['title'] = htmlspecialchars($video['title']); |
|
294 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
295 | + ?> |
|
296 | 296 | <div class="browse-item yt-tile-default "> |
297 | 297 | <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> |
298 | 298 | <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"> |