@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | |
| 4 | 4 | switch ($requestedPage[1]) { |
| 5 | 5 | case 'player': |
| 6 | - if($requestedPage[1] == "2009player" && $requestedPage[2] == "assets") { |
|
| 6 | + if ($requestedPage[1] == "2009player" && $requestedPage[2] == "assets") { |
|
| 7 | 7 | $a = implode("/", $requestedPage); |
| 8 | 8 | $i = implode(".", $requestedPage); |
| 9 | 9 | $file = file_get_contents($_SERVER['DOCUMENT_ROOT'] . $a); |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | $a = implode("/", $requestedPage); |
| 32 | 32 | $i = implode(".", $requestedPage); |
| 33 | 33 | // shitty fix plz dont use in production and stop using the shitty router bitch |
| 34 | - ini_set ('memory_limit', 400000000); |
|
| 34 | + ini_set('memory_limit', 400000000); |
|
| 35 | 35 | |
| 36 | 36 | // normal |
| 37 | 37 | $file = file_get_contents($_SERVER['DOCUMENT_ROOT'] . $a); |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | $file_info = new finfo(FILEINFO_MIME_TYPE); |
| 46 | 46 | $mime_type = $file_info->buffer($file); |
| 47 | - if($mime_type == "text/plain") |
|
| 47 | + if ($mime_type == "text/plain") |
|
| 48 | 48 | header('Content-Type: text/css'); |
| 49 | 49 | else |
| 50 | 50 | header('Content-Type: ' . $mime_type); |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | $__db_h = new db_helper(); |
| 86 | 86 | $__time_h = new time_helper(); |
| 87 | 87 | |
| 88 | - if(empty($requestedPage[1])) |
|
| 88 | + if (empty($requestedPage[1])) |
|
| 89 | 89 | require_once($_SERVER['DOCUMENT_ROOT'] . "/homepage.php"); |
| 90 | 90 | else |
| 91 | 91 | require_once($_SERVER['DOCUMENT_ROOT'] . "/" . $requestedPage[1] . ".php"); |
@@ -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,7 +167,7 @@ discard block |
||
| 167 | 167 | </span> |
| 168 | 168 | </a> |
| 169 | 169 | </li> |
| 170 | - <?php foreach($__server->featured_channels as $channel) { ?> |
|
| 170 | + <?php foreach ($__server->featured_channels as $channel) { ?> |
|
| 171 | 171 | <li class="guide-item-container "> |
| 172 | 172 | <a class="guide-item" data-external-id="<?php echo htmlspecialchars($channel); ?>" data-feed-name="<?php echo htmlspecialchars($channel); ?>" data-feed-type="user"> |
| 173 | 173 | <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> |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | <?php |
| 206 | 206 | $stmt = $__db->prepare("SELECT * FROM videos ORDER BY rand() LIMIT 4"); |
| 207 | 207 | $stmt->execute(); |
| 208 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 208 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 209 | 209 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 210 | 210 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 211 | 211 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | <?php |
| 229 | 229 | $stmt = $__db->prepare("SELECT * FROM videos WHERE featured = 'v' ORDER BY id DESC LIMIT 4"); |
| 230 | 230 | $stmt->execute(); |
| 231 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 231 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 232 | 232 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 233 | 233 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 234 | 234 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | <?php |
| 262 | 262 | $stmt = $__db->prepare("SELECT * FROM videos ORDER BY id DESC LIMIT 20"); |
| 263 | 263 | $stmt->execute(); |
| 264 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 264 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 265 | 265 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 266 | 266 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 267 | 267 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |