@@ -138,16 +138,16 @@ discard block |
||
| 138 | 138 | </div> |
| 139 | 139 | <div class="browse-item-row ytg-box"> |
| 140 | 140 | <?php |
| 141 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Science & Technology' ORDER BY rand() LIMIT 4"); |
|
| 142 | - $stmt->execute(); |
|
| 143 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 144 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 145 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 146 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 147 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 148 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 149 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 150 | - ?> |
|
| 141 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Science & Technology' ORDER BY rand() LIMIT 4"); |
|
| 142 | + $stmt->execute(); |
|
| 143 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 144 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 145 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 146 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 147 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 148 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 149 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 150 | + ?> |
|
| 151 | 151 | <div class="browse-item yt-tile-default "> |
| 152 | 152 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
| 153 | 153 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -173,16 +173,16 @@ discard block |
||
| 173 | 173 | </div> |
| 174 | 174 | <div class="browse-item-row ytg-box"> |
| 175 | 175 | <?php |
| 176 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Science & Technology' ORDER BY rand() LIMIT 4"); |
|
| 177 | - $stmt->execute(); |
|
| 178 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 179 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 180 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 181 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 182 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 183 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 184 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 185 | - ?> |
|
| 176 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Science & Technology' ORDER BY rand() LIMIT 4"); |
|
| 177 | + $stmt->execute(); |
|
| 178 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 179 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 180 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 181 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 182 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 183 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 184 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 185 | + ?> |
|
| 186 | 186 | <div class="browse-item yt-tile-default "> |
| 187 | 187 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
| 188 | 188 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -208,16 +208,16 @@ discard block |
||
| 208 | 208 | </div> |
| 209 | 209 | <div class="browse-item-row ytg-box"> |
| 210 | 210 | <?php |
| 211 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Science & Technology' ORDER BY rand() LIMIT 4"); |
|
| 212 | - $stmt->execute(); |
|
| 213 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 214 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 215 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 216 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 217 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 218 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 219 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 220 | - ?> |
|
| 211 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Science & Technology' ORDER BY rand() LIMIT 4"); |
|
| 212 | + $stmt->execute(); |
|
| 213 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 214 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 215 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 216 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 217 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 218 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 219 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 220 | + ?> |
|
| 221 | 221 | <div class="browse-item yt-tile-default "> |
| 222 | 222 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
| 223 | 223 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -243,16 +243,16 @@ discard block |
||
| 243 | 243 | </div> |
| 244 | 244 | <div class="browse-item-row ytg-box"> |
| 245 | 245 | <?php |
| 246 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Science & Technology' ORDER BY rand() LIMIT 4"); |
|
| 247 | - $stmt->execute(); |
|
| 248 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 249 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 250 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 251 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 252 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 253 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 254 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 255 | - ?> |
|
| 246 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Science & Technology' ORDER BY rand() LIMIT 4"); |
|
| 247 | + $stmt->execute(); |
|
| 248 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 249 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 250 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 251 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 252 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 253 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 254 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 255 | + ?> |
|
| 256 | 256 | <div class="browse-item yt-tile-default "> |
| 257 | 257 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
| 258 | 258 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -278,16 +278,16 @@ discard block |
||
| 278 | 278 | </div> |
| 279 | 279 | <div class="browse-item-row ytg-box"> |
| 280 | 280 | <?php |
| 281 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Science & Technology' ORDER BY rand() LIMIT 4"); |
|
| 282 | - $stmt->execute(); |
|
| 283 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 284 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 285 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 286 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 287 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 288 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 289 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 290 | - ?> |
|
| 281 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Science & Technology' ORDER BY rand() LIMIT 4"); |
|
| 282 | + $stmt->execute(); |
|
| 283 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 284 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 285 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 286 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 287 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 288 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 289 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 290 | + ?> |
|
| 291 | 291 | <div class="browse-item yt-tile-default "> |
| 292 | 292 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
| 293 | 293 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -138,16 +138,16 @@ discard block |
||
| 138 | 138 | </div> |
| 139 | 139 | <div class="browse-item-row ytg-box"> |
| 140 | 140 | <?php |
| 141 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Film & Animation' ORDER BY rand() LIMIT 4"); |
|
| 142 | - $stmt->execute(); |
|
| 143 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 144 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 145 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 146 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 147 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 148 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 149 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 150 | - ?> |
|
| 141 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Film & Animation' ORDER BY rand() LIMIT 4"); |
|
| 142 | + $stmt->execute(); |
|
| 143 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 144 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 145 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 146 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 147 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 148 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 149 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 150 | + ?> |
|
| 151 | 151 | <div class="browse-item yt-tile-default "> |
| 152 | 152 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
| 153 | 153 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -173,16 +173,16 @@ discard block |
||
| 173 | 173 | </div> |
| 174 | 174 | <div class="browse-item-row ytg-box"> |
| 175 | 175 | <?php |
| 176 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Film & Animation' ORDER BY rand() LIMIT 4"); |
|
| 177 | - $stmt->execute(); |
|
| 178 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 179 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 180 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 181 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 182 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 183 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 184 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 185 | - ?> |
|
| 176 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Film & Animation' ORDER BY rand() LIMIT 4"); |
|
| 177 | + $stmt->execute(); |
|
| 178 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 179 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 180 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 181 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 182 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 183 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 184 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 185 | + ?> |
|
| 186 | 186 | <div class="browse-item yt-tile-default "> |
| 187 | 187 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
| 188 | 188 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -208,16 +208,16 @@ discard block |
||
| 208 | 208 | </div> |
| 209 | 209 | <div class="browse-item-row ytg-box"> |
| 210 | 210 | <?php |
| 211 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Film & Animation' ORDER BY rand() LIMIT 4"); |
|
| 212 | - $stmt->execute(); |
|
| 213 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 214 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 215 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 216 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 217 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 218 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 219 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 220 | - ?> |
|
| 211 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Film & Animation' ORDER BY rand() LIMIT 4"); |
|
| 212 | + $stmt->execute(); |
|
| 213 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 214 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 215 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 216 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 217 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 218 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 219 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 220 | + ?> |
|
| 221 | 221 | <div class="browse-item yt-tile-default "> |
| 222 | 222 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
| 223 | 223 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -243,16 +243,16 @@ discard block |
||
| 243 | 243 | </div> |
| 244 | 244 | <div class="browse-item-row ytg-box"> |
| 245 | 245 | <?php |
| 246 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Film & Animation' ORDER BY rand() LIMIT 4"); |
|
| 247 | - $stmt->execute(); |
|
| 248 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 249 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 250 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 251 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 252 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 253 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 254 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 255 | - ?> |
|
| 246 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Film & Animation' ORDER BY rand() LIMIT 4"); |
|
| 247 | + $stmt->execute(); |
|
| 248 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 249 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 250 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 251 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 252 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 253 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 254 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 255 | + ?> |
|
| 256 | 256 | <div class="browse-item yt-tile-default "> |
| 257 | 257 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
| 258 | 258 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -278,16 +278,16 @@ discard block |
||
| 278 | 278 | </div> |
| 279 | 279 | <div class="browse-item-row ytg-box"> |
| 280 | 280 | <?php |
| 281 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Film & Animation' ORDER BY rand() LIMIT 4"); |
|
| 282 | - $stmt->execute(); |
|
| 283 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 284 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 285 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 286 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 287 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 288 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 289 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 290 | - ?> |
|
| 281 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Film & Animation' ORDER BY rand() LIMIT 4"); |
|
| 282 | + $stmt->execute(); |
|
| 283 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 284 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 285 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 286 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 287 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 288 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 289 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 290 | + ?> |
|
| 291 | 291 | <div class="browse-item yt-tile-default "> |
| 292 | 292 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
| 293 | 293 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -138,16 +138,16 @@ discard block |
||
| 138 | 138 | </div> |
| 139 | 139 | <div class="browse-item-row ytg-box"> |
| 140 | 140 | <?php |
| 141 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
|
| 142 | - $stmt->execute(); |
|
| 143 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 144 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 145 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 146 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 147 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 148 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 149 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 150 | - ?> |
|
| 141 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
|
| 142 | + $stmt->execute(); |
|
| 143 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 144 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 145 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 146 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 147 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 148 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 149 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 150 | + ?> |
|
| 151 | 151 | <div class="browse-item yt-tile-default "> |
| 152 | 152 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
| 153 | 153 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -173,16 +173,16 @@ discard block |
||
| 173 | 173 | </div> |
| 174 | 174 | <div class="browse-item-row ytg-box"> |
| 175 | 175 | <?php |
| 176 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
|
| 177 | - $stmt->execute(); |
|
| 178 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 179 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 180 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 181 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 182 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 183 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 184 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 185 | - ?> |
|
| 176 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
|
| 177 | + $stmt->execute(); |
|
| 178 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 179 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 180 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 181 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 182 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 183 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 184 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 185 | + ?> |
|
| 186 | 186 | <div class="browse-item yt-tile-default "> |
| 187 | 187 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
| 188 | 188 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -208,16 +208,16 @@ discard block |
||
| 208 | 208 | </div> |
| 209 | 209 | <div class="browse-item-row ytg-box"> |
| 210 | 210 | <?php |
| 211 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
|
| 212 | - $stmt->execute(); |
|
| 213 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 214 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 215 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 216 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 217 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 218 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 219 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 220 | - ?> |
|
| 211 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
|
| 212 | + $stmt->execute(); |
|
| 213 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 214 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 215 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 216 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 217 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 218 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 219 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 220 | + ?> |
|
| 221 | 221 | <div class="browse-item yt-tile-default "> |
| 222 | 222 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
| 223 | 223 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -243,16 +243,16 @@ discard block |
||
| 243 | 243 | </div> |
| 244 | 244 | <div class="browse-item-row ytg-box"> |
| 245 | 245 | <?php |
| 246 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
|
| 247 | - $stmt->execute(); |
|
| 248 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 249 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 250 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 251 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 252 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 253 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 254 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 255 | - ?> |
|
| 246 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
|
| 247 | + $stmt->execute(); |
|
| 248 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 249 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 250 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 251 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 252 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 253 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 254 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 255 | + ?> |
|
| 256 | 256 | <div class="browse-item yt-tile-default "> |
| 257 | 257 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
| 258 | 258 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -278,16 +278,16 @@ discard block |
||
| 278 | 278 | </div> |
| 279 | 279 | <div class="browse-item-row ytg-box"> |
| 280 | 280 | <?php |
| 281 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
|
| 282 | - $stmt->execute(); |
|
| 283 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 284 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 285 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 286 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 287 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 288 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 289 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 290 | - ?> |
|
| 281 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Pets & Animals' ORDER BY rand() LIMIT 4"); |
|
| 282 | + $stmt->execute(); |
|
| 283 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 284 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 285 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 286 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 287 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 288 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 289 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 290 | + ?> |
|
| 291 | 291 | <div class="browse-item yt-tile-default "> |
| 292 | 292 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
| 293 | 293 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -138,16 +138,16 @@ discard block |
||
| 138 | 138 | </div> |
| 139 | 139 | <div class="browse-item-row ytg-box"> |
| 140 | 140 | <?php |
| 141 | - $stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 4"); |
|
| 142 | - $stmt->execute(); |
|
| 143 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 144 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 145 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 146 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 147 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 148 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 149 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 150 | - ?> |
|
| 141 | + $stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 4"); |
|
| 142 | + $stmt->execute(); |
|
| 143 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 144 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 145 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 146 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 147 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 148 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 149 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 150 | + ?> |
|
| 151 | 151 | <div class="browse-item yt-tile-default "> |
| 152 | 152 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
| 153 | 153 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -173,16 +173,16 @@ discard block |
||
| 173 | 173 | </div> |
| 174 | 174 | <div class="browse-item-row ytg-box"> |
| 175 | 175 | <?php |
| 176 | - $stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 4"); |
|
| 177 | - $stmt->execute(); |
|
| 178 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 179 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 180 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 181 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 182 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 183 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 184 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 185 | - ?> |
|
| 176 | + $stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 4"); |
|
| 177 | + $stmt->execute(); |
|
| 178 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 179 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 180 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 181 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 182 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 183 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 184 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 185 | + ?> |
|
| 186 | 186 | <div class="browse-item yt-tile-default "> |
| 187 | 187 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
| 188 | 188 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -208,16 +208,16 @@ discard block |
||
| 208 | 208 | </div> |
| 209 | 209 | <div class="browse-item-row ytg-box"> |
| 210 | 210 | <?php |
| 211 | - $stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 4"); |
|
| 212 | - $stmt->execute(); |
|
| 213 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 214 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 215 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 216 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 217 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 218 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 219 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 220 | - ?> |
|
| 211 | + $stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 4"); |
|
| 212 | + $stmt->execute(); |
|
| 213 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 214 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 215 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 216 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 217 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 218 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 219 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 220 | + ?> |
|
| 221 | 221 | <div class="browse-item yt-tile-default "> |
| 222 | 222 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
| 223 | 223 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -243,16 +243,16 @@ discard block |
||
| 243 | 243 | </div> |
| 244 | 244 | <div class="browse-item-row ytg-box"> |
| 245 | 245 | <?php |
| 246 | - $stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 4"); |
|
| 247 | - $stmt->execute(); |
|
| 248 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 249 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 250 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 251 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 252 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 253 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 254 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 255 | - ?> |
|
| 246 | + $stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 4"); |
|
| 247 | + $stmt->execute(); |
|
| 248 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 249 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 250 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 251 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 252 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 253 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 254 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 255 | + ?> |
|
| 256 | 256 | <div class="browse-item yt-tile-default "> |
| 257 | 257 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
| 258 | 258 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -278,16 +278,16 @@ discard block |
||
| 278 | 278 | </div> |
| 279 | 279 | <div class="browse-item-row ytg-box"> |
| 280 | 280 | <?php |
| 281 | - $stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 4"); |
|
| 282 | - $stmt->execute(); |
|
| 283 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 284 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 285 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 286 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 287 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 288 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 289 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 290 | - ?> |
|
| 281 | + $stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 4"); |
|
| 282 | + $stmt->execute(); |
|
| 283 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 284 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 285 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 286 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 287 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 288 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 289 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 290 | + ?> |
|
| 291 | 291 | <div class="browse-item yt-tile-default "> |
| 292 | 292 | <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ei=CPjwu5ji3bICFS4RIQod9j-M-A%3D%3D&feature=b-mv"><span class="video-thumb ux-thumb yt-thumb-default-194 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="194"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
| 293 | 293 | <button onclick=";return false;" title="Watch Later" type="button" class="addto-button video-actions addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="rLHU-_OhT8g" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | $stmt->bindParam(":username", $username); |
| 94 | 94 | $stmt->execute(); |
| 95 | 95 | } |
| 96 | - ?> |
|
| 96 | + ?> |
|
| 97 | 97 | {'paging': null, 'feed_html': ` |
| 98 | 98 | <div class=\'feed-header no-metadata\'> |
| 99 | 99 | <div class=\'feed-header-thumb\'> |
@@ -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="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" class="see-more-arrow" alt=""></a> |
@@ -210,16 +210,16 @@ 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 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 216 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 217 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 218 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 219 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 220 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 221 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 222 | - ?> |
|
| 213 | + $stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 4"); |
|
| 214 | + $stmt->execute(); |
|
| 215 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 216 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 217 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 218 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 219 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 220 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 221 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 222 | + ?> |
|
| 223 | 223 | <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> |
| 224 | 224 | <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"> |
| 225 | 225 | </span><img class="yt-uix-button-arrow" src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt=""></button> |
@@ -233,16 +233,16 @@ discard block |
||
| 233 | 233 | </h3> |
| 234 | 234 | <ul> |
| 235 | 235 | <?php |
| 236 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE featured = 'v' ORDER BY id DESC LIMIT 4"); |
|
| 237 | - $stmt->execute(); |
|
| 238 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 239 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 240 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 241 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 242 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 243 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 244 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 245 | - ?> |
|
| 236 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE featured = 'v' ORDER BY id DESC LIMIT 4"); |
|
| 237 | + $stmt->execute(); |
|
| 238 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 239 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 240 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 241 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 242 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 243 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 244 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 245 | + ?> |
|
| 246 | 246 | <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> |
| 247 | 247 | <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"> |
| 248 | 248 | </span><img class="yt-uix-button-arrow" src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt=""></button> |
@@ -266,16 +266,16 @@ discard block |
||
| 266 | 266 | <div class="feed-page"> |
| 267 | 267 | <ul> |
| 268 | 268 | <?php |
| 269 | - $stmt = $__db->prepare("SELECT * FROM videos ORDER BY id DESC LIMIT 20"); |
|
| 270 | - $stmt->execute(); |
|
| 271 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 272 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 273 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 274 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 275 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 276 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 277 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 278 | - ?> |
|
| 269 | + $stmt = $__db->prepare("SELECT * FROM videos ORDER BY id DESC LIMIT 20"); |
|
| 270 | + $stmt->execute(); |
|
| 271 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 272 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 273 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 274 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 275 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 276 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 277 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 278 | + ?> |
|
| 279 | 279 | <li> |
| 280 | 280 | <div class="feed-item-container first " data-channel-key="UCR2A9ZNliJfgC66IvIpe-Zw"> |
| 281 | 281 | <div class="feed-author-bubble-container"> |
@@ -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 = :user AND channel = :vidid"); |
@@ -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 = :username"); |
@@ -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 | // fuck this, this can be compressed into 2 functions |
| 18 | 18 | |