@@ -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> |
@@ -203,16 +203,16 @@ discard block |
||
| 203 | 203 | </p> |
| 204 | 204 | <ul> |
| 205 | 205 | <?php |
| 206 | - $stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 4"); |
|
| 207 | - $stmt->execute(); |
|
| 208 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 209 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 210 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 211 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 212 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 213 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 214 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 215 | - ?> |
|
| 206 | + $stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 4"); |
|
| 207 | + $stmt->execute(); |
|
| 208 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 209 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 210 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 211 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 212 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 213 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 214 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 215 | + ?> |
|
| 216 | 216 | <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> |
| 217 | 217 | <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"> |
| 218 | 218 | </span><img class="yt-uix-button-arrow" src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt=""></button> |
@@ -226,16 +226,16 @@ discard block |
||
| 226 | 226 | </h3> |
| 227 | 227 | <ul> |
| 228 | 228 | <?php |
| 229 | - $stmt = $__db->prepare("SELECT * FROM videos WHERE featured = 'v' ORDER BY id DESC LIMIT 4"); |
|
| 230 | - $stmt->execute(); |
|
| 231 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 232 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 233 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 234 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 235 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 236 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 237 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 238 | - ?> |
|
| 229 | + $stmt = $__db->prepare("SELECT * FROM videos WHERE featured = 'v' ORDER BY id DESC LIMIT 4"); |
|
| 230 | + $stmt->execute(); |
|
| 231 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 232 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 233 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 234 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 235 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 236 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 237 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 238 | + ?> |
|
| 239 | 239 | <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> |
| 240 | 240 | <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"> |
| 241 | 241 | </span><img class="yt-uix-button-arrow" src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt=""></button> |
@@ -259,16 +259,16 @@ discard block |
||
| 259 | 259 | <div class="feed-page"> |
| 260 | 260 | <ul> |
| 261 | 261 | <?php |
| 262 | - $stmt = $__db->prepare("SELECT * FROM videos ORDER BY id DESC LIMIT 20"); |
|
| 263 | - $stmt->execute(); |
|
| 264 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 265 | - $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 266 | - $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 267 | - $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 268 | - $video['author'] = htmlspecialchars($video['author']); |
|
| 269 | - $video['title'] = htmlspecialchars($video['title']); |
|
| 270 | - $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 271 | - ?> |
|
| 262 | + $stmt = $__db->prepare("SELECT * FROM videos ORDER BY id DESC LIMIT 20"); |
|
| 263 | + $stmt->execute(); |
|
| 264 | + while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 265 | + $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
|
| 266 | + $video['duration'] = $__time_h->timestamp($video['duration']); |
|
| 267 | + $video['views'] = $__video_h->fetch_video_views($video['rid']); |
|
| 268 | + $video['author'] = htmlspecialchars($video['author']); |
|
| 269 | + $video['title'] = htmlspecialchars($video['title']); |
|
| 270 | + $video['description'] = $__video_h->shorten_description($video['description'], 50); |
|
| 271 | + ?> |
|
| 272 | 272 | <li> |
| 273 | 273 | <div class="feed-item-container first " data-channel-key="UCR2A9ZNliJfgC66IvIpe-Zw"> |
| 274 | 274 | <div class="feed-author-bubble-container"> |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | <div id="content"> |
| 38 | 38 | <div class="guide-layout-container enable-fancy-subscribe-button"> |
| 39 | 39 | <div class="guide-container"> |
| 40 | - <?php if(!isset($_SESSION['siteusername'])) { ?> |
|
| 40 | + <?php if (!isset($_SESSION['siteusername'])) { ?> |
|
| 41 | 41 | <div id="guide-builder-promo"> |
| 42 | 42 | <h2> |
| 43 | 43 | Sign in to add channels to your homepage |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | </div> |
| 57 | 57 | <div class="guide"> |
| 58 | 58 | <?php |
| 59 | - if(isset($_SESSION['siteusername'])) { |
|
| 59 | + if (isset($_SESSION['siteusername'])) { |
|
| 60 | 60 | ?> |
| 61 | 61 | <div style="/*! margin-top: 0px; *//*! margin-left: 10px; *//*! margin-bottom: 13px; */height: 99px;" class="guide-section feed-header channel first"><img alt="" src="/dynamic/pfp/<?php echo $__user_h->fetch_pfp($_SESSION['siteusername']); ?>" style="height: 88px;position: relative;top: 4px;left: 4px;" class="feed-header-thumb channel-thumb" width="88px"><div id="links" style="/*! margin-left: 5px; */position: relative;left: 13px;top: 7px;"><div style="font-size: 11px;margin-bottom: 6px;" class="metadata"> |
| 62 | 62 | <a href="/user/<?php echo htmlspecialchars($_SESSION['siteusername']); ?>" style="color: inherit;">My channel |
@@ -167,8 +167,8 @@ discard block |
||
| 167 | 167 | </span> |
| 168 | 168 | </a> |
| 169 | 169 | </li> |
| 170 | - <?php if(!isset($_SESSION['siteusername'])) { ?> |
|
| 171 | - <?php foreach($__server->featured_channels as $channel) { ?> |
|
| 170 | + <?php if (!isset($_SESSION['siteusername'])) { ?> |
|
| 171 | + <?php foreach ($__server->featured_channels as $channel) { ?> |
|
| 172 | 172 | <li class="guide-item-container "> |
| 173 | 173 | <a class="guide-item" data-external-id="<?php echo htmlspecialchars($channel); ?>" data-feed-name="<?php echo htmlspecialchars($channel); ?>" data-feed-type="user"> |
| 174 | 174 | <span class="thumb"> <span class="video-thumb ux-thumb yt-thumb-square-28 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/pfp/<?php echo $__user_h->fetch_pfp($channel); ?>" width="28"><span class="vertical-align"></span></span></span></span> |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | $stmt = $__db->prepare("SELECT * FROM subscribers WHERE sender = :username ORDER BY id DESC LIMIT 20"); |
| 184 | 184 | $stmt->bindParam(":username", $_SESSION['siteusername']); |
| 185 | 185 | $stmt->execute(); |
| 186 | - while($channel = $stmt->fetch(PDO::FETCH_ASSOC)) { $channel = $channel['reciever']; ?> |
|
| 186 | + while ($channel = $stmt->fetch(PDO::FETCH_ASSOC)) { $channel = $channel['reciever']; ?> |
|
| 187 | 187 | <li class="guide-item-container "> |
| 188 | 188 | <a class="guide-item" data-external-id="<?php echo htmlspecialchars($channel); ?>" data-feed-name="<?php echo htmlspecialchars($channel); ?>" data-feed-type="user"> |
| 189 | 189 | <span class="thumb"> <span class="video-thumb ux-thumb yt-thumb-square-28 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" onerror="this.onerror=null;this.src='/dynamic/thumbs/default.jpg';" data-thumb="/dynamic/pfp/<?php echo $__user_h->fetch_pfp($channel); ?>" width="28"><span class="vertical-align"></span></span></span></span> |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | <?php |
| 223 | 223 | $stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 4"); |
| 224 | 224 | $stmt->execute(); |
| 225 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 225 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 226 | 226 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 227 | 227 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 228 | 228 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | <?php |
| 246 | 246 | $stmt = $__db->prepare("SELECT * FROM videos WHERE featured = 'v' ORDER BY id DESC LIMIT 4"); |
| 247 | 247 | $stmt->execute(); |
| 248 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 248 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 249 | 249 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 250 | 250 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 251 | 251 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | <?php |
| 279 | 279 | $stmt = $__db->prepare("SELECT * FROM videos ORDER BY id DESC LIMIT 20"); |
| 280 | 280 | $stmt->execute(); |
| 281 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 281 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 282 | 282 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 283 | 283 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 284 | 284 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |