@@ -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 = 'Science & Technology' 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 = 'Science & Technology' 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 = 'Science & Technology' 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 = 'Science & Technology' 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 = 'Science & Technology' 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 = 'Science & Technology' 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 = 'Science & Technology' 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 = 'Science & Technology' 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 = 'Science & Technology' 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 = 'Science & Technology' 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 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 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"> |
@@ -184,17 +184,17 @@ discard block |
||
| 184 | 184 | </div> |
| 185 | 185 | <div class="browse-item-row ytg-box"> |
| 186 | 186 | <?php |
| 187 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
|
| 188 | - $stmt->execute(); |
|
| 189 | - $result = $stmt->get_result(); |
|
| 190 | - while($video = $result->fetch_assoc()) { |
|
| 191 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 192 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 193 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 194 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 195 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 196 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 197 | - ?> |
|
| 187 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Comedy' ORDER BY rand() LIMIT 4"); |
|
| 188 | + $stmt->execute(); |
|
| 189 | + $result = $stmt->get_result(); |
|
| 190 | + while($video = $result->fetch_assoc()) { |
|
| 191 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 192 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 193 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 194 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 195 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 196 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 197 | + ?> |
|
| 198 | 198 | <div class="browse-item yt-tile-default "> |
| 199 | 199 | <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> |
| 200 | 200 | <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"> |
@@ -230,17 +230,17 @@ discard block |
||
| 230 | 230 | </div> |
| 231 | 231 | <div class="browse-item-row ytg-box"> |
| 232 | 232 | <?php |
| 233 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Film & Animation' ORDER BY rand() LIMIT 4"); |
|
| 234 | - $stmt->execute(); |
|
| 235 | - $result = $stmt->get_result(); |
|
| 236 | - while($video = $result->fetch_assoc()) { |
|
| 237 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 238 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 239 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 240 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 241 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 242 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 243 | - ?> |
|
| 233 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Film & Animation' ORDER BY rand() LIMIT 4"); |
|
| 234 | + $stmt->execute(); |
|
| 235 | + $result = $stmt->get_result(); |
|
| 236 | + while($video = $result->fetch_assoc()) { |
|
| 237 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 238 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 239 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 240 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 241 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 242 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 243 | + ?> |
|
| 244 | 244 | <div class="browse-item yt-tile-default "> |
| 245 | 245 | <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> |
| 246 | 246 | <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"> |
@@ -280,17 +280,17 @@ discard block |
||
| 280 | 280 | </div> |
| 281 | 281 | <div class="browse-item-row ytg-box"> |
| 282 | 282 | <?php |
| 283 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
|
| 284 | - $stmt->execute(); |
|
| 285 | - $result = $stmt->get_result(); |
|
| 286 | - while($video = $result->fetch_assoc()) { |
|
| 287 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 288 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 289 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 290 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 291 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 292 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 293 | - ?> |
|
| 283 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 4"); |
|
| 284 | + $stmt->execute(); |
|
| 285 | + $result = $stmt->get_result(); |
|
| 286 | + while($video = $result->fetch_assoc()) { |
|
| 287 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 288 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 289 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 290 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 291 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 292 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 293 | + ?> |
|
| 294 | 294 | <div class="browse-item yt-tile-default "> |
| 295 | 295 | <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> |
| 296 | 296 | <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"> |
@@ -330,17 +330,17 @@ discard block |
||
| 330 | 330 | </div> |
| 331 | 331 | <div class="browse-item-row ytg-box"> |
| 332 | 332 | <?php |
| 333 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Nonprofits & Activism' ORDER BY rand() LIMIT 4"); |
|
| 334 | - $stmt->execute(); |
|
| 335 | - $result = $stmt->get_result(); |
|
| 336 | - while($video = $result->fetch_assoc()) { |
|
| 337 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 338 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 339 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 340 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 341 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 342 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 343 | - ?> |
|
| 333 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Nonprofits & Activism' ORDER BY rand() LIMIT 4"); |
|
| 334 | + $stmt->execute(); |
|
| 335 | + $result = $stmt->get_result(); |
|
| 336 | + while($video = $result->fetch_assoc()) { |
|
| 337 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 338 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 339 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 340 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 341 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 342 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 343 | + ?> |
|
| 344 | 344 | <div class="browse-item yt-tile-default "> |
| 345 | 345 | <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> |
| 346 | 346 | <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"> |
@@ -380,17 +380,17 @@ discard block |
||
| 380 | 380 | </div> |
| 381 | 381 | <div class="browse-item-row ytg-box"> |
| 382 | 382 | <?php |
| 383 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
|
| 384 | - $stmt->execute(); |
|
| 385 | - $result = $stmt->get_result(); |
|
| 386 | - while($video = $result->fetch_assoc()) { |
|
| 387 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 388 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 389 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 390 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 391 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 392 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 393 | - ?> |
|
| 383 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
|
| 384 | + $stmt->execute(); |
|
| 385 | + $result = $stmt->get_result(); |
|
| 386 | + while($video = $result->fetch_assoc()) { |
|
| 387 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 388 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 389 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 390 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 391 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 392 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 393 | + ?> |
|
| 394 | 394 | <div class="browse-item yt-tile-default "> |
| 395 | 395 | <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> |
| 396 | 396 | <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"> |
@@ -430,17 +430,17 @@ discard block |
||
| 430 | 430 | </div> |
| 431 | 431 | <div class="browse-item-row ytg-box"> |
| 432 | 432 | <?php |
| 433 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Science & Technology' ORDER BY rand() LIMIT 4"); |
|
| 434 | - $stmt->execute(); |
|
| 435 | - $result = $stmt->get_result(); |
|
| 436 | - while($video = $result->fetch_assoc()) { |
|
| 437 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 438 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 439 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 440 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 441 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 442 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 443 | - ?> |
|
| 433 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Science & Technology' ORDER BY rand() LIMIT 4"); |
|
| 434 | + $stmt->execute(); |
|
| 435 | + $result = $stmt->get_result(); |
|
| 436 | + while($video = $result->fetch_assoc()) { |
|
| 437 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 438 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 439 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 440 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 441 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 442 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 443 | + ?> |
|
| 444 | 444 | <div class="browse-item yt-tile-default "> |
| 445 | 445 | <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> |
| 446 | 446 | <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"> |
@@ -480,17 +480,17 @@ discard block |
||
| 480 | 480 | </div> |
| 481 | 481 | <div class="browse-item-row ytg-box"> |
| 482 | 482 | <?php |
| 483 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Travel & Events' ORDER BY rand() LIMIT 4"); |
|
| 484 | - $stmt->execute(); |
|
| 485 | - $result = $stmt->get_result(); |
|
| 486 | - while($video = $result->fetch_assoc()) { |
|
| 487 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 488 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 489 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 490 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 491 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 492 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 493 | - ?> |
|
| 483 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Travel & Events' ORDER BY rand() LIMIT 4"); |
|
| 484 | + $stmt->execute(); |
|
| 485 | + $result = $stmt->get_result(); |
|
| 486 | + while($video = $result->fetch_assoc()) { |
|
| 487 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 488 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 489 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 490 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 491 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 492 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 493 | + ?> |
|
| 494 | 494 | <div class="browse-item yt-tile-default "> |
| 495 | 495 | <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> |
| 496 | 496 | <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 = 'Entertainment' 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 = 'Entertainment' 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 = 'Entertainment' 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 = 'Entertainment' 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 = 'Entertainment' 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 = 'Entertainment' 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 = 'Entertainment' 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 = 'Entertainment' 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 = 'Entertainment' 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 = 'Entertainment' 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 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 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 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 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 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 | <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 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 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 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 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 = 'Nonprofits & Activism' 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 = 'Nonprofits & Activism' 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 = 'Nonprofits & Activism' 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 = 'Nonprofits & Activism' 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 = 'Nonprofits & Activism' 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 = 'Nonprofits & Activism' 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 = 'Nonprofits & Activism' 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 = 'Nonprofits & Activism' 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 = 'Nonprofits & Activism' 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 = 'Nonprofits & Activism' 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"> |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | $_user_update_utils->initialize_db_var($conn); |
| 20 | 20 | |
| 21 | 21 | |
| 22 | - $_base_utils->initialize_page_compass("post/upload"); |
|
| 22 | + $_base_utils->initialize_page_compass("post/upload"); |
|
| 23 | 23 | ?> |
| 24 | 24 | <?php |
| 25 | 25 | $characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_'; |
@@ -10,9 +10,9 @@ |
||
| 10 | 10 | class user_insert { |
| 11 | 11 | public $__db; |
| 12 | 12 | |
| 13 | - public function __construct($conn){ |
|
| 13 | + public function __construct($conn){ |
|
| 14 | 14 | $this->__db = $conn; |
| 15 | - } |
|
| 15 | + } |
|
| 16 | 16 | |
| 17 | 17 | function check_view_channel($vidid, $user) { |
| 18 | 18 | $stmt = $this->__db->prepare("SELECT * FROM channel_views WHERE viewer = ? AND channel = ?"); |
@@ -10,9 +10,9 @@ |
||
| 10 | 10 | class user_update { |
| 11 | 11 | public $__db; |
| 12 | 12 | |
| 13 | - public function __construct($conn){ |
|
| 13 | + public function __construct($conn){ |
|
| 14 | 14 | $this->__db = $conn; |
| 15 | - } |
|
| 15 | + } |
|
| 16 | 16 | |
| 17 | 17 | function update_comment_cooldown_time($username) { |
| 18 | 18 | $stmt = $this->__db->prepare("UPDATE users SET cooldown_comment = now() WHERE username = ?"); |
@@ -11,9 +11,9 @@ |
||
| 11 | 11 | class user_helper { |
| 12 | 12 | public $__db; |
| 13 | 13 | |
| 14 | - public function __construct($conn){ |
|
| 14 | + public function __construct($conn){ |
|
| 15 | 15 | $this->__db = $conn; |
| 16 | - } |
|
| 16 | + } |
|
| 17 | 17 | |
| 18 | 18 | function fetch_pfp($username) { |
| 19 | 19 | $stmt = $this->__db->prepare("SELECT pfp FROM users WHERE username = ?"); |