@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | - if(isset($_SESSION['siteusername'])) { |
|
2 | + if (isset($_SESSION['siteusername'])) { |
|
3 | 3 | $stmt = $__db->prepare("UPDATE users SET ip = :ip WHERE username = :username"); |
4 | 4 | $stmt->bindParam(":username", $_SESSION['siteusername']); |
5 | - $stmt->bindParam(":ip", $_SERVER["HTTP_CF_CONNECTING_IP"]); |
|
5 | + $stmt->bindParam(":ip", $_SERVER["HTTP_CF_CONNECTING_IP"]); |
|
6 | 6 | $stmt->execute(); |
7 | 7 | } |
8 | 8 | ?> |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | <a id="logo-container" href="/" title="SubRocks home"> |
12 | 12 | <img id="logo" src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="SubRocks home"> |
13 | 13 | </a> |
14 | - <?php if(!isset($_SESSION['siteusername'])) { ?> |
|
14 | + <?php if (!isset($_SESSION['siteusername'])) { ?> |
|
15 | 15 | <div id="yt-masthead-signin"> |
16 | 16 | <div id="masthead-user-display"><span id="masthead-user-wrapper"><button href="/sign_in" type="button" id="masthead-user-button" onclick=";window.location.href=this.getAttribute('href');return false;" class=" yt-uix-button yt-uix-button-text" role="button"><span class="yt-uix-button-content"> <span id="masthead-user-image"> |
17 | 17 | <span class="clip"> |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | <span id="yt-masthead-user-displayname" dir="ltr" class="yt-valign-container" onclick="yt.www.masthead.toggleExpandedMasthead();"> |
30 | 30 | <?php echo htmlspecialchars($_SESSION['siteusername']); ?> |
31 | 31 | </span> |
32 | - <?php if($__user_h->fetch_unread_pms($_SESSION['siteusername']) != 0) { ?> |
|
32 | + <?php if ($__user_h->fetch_unread_pms($_SESSION['siteusername']) != 0) { ?> |
|
33 | 33 | <a style="border-radius:2px;font-weight:bold;border:1px solid #CE4D34;position:relative;top:1px;color: white;text-decoration: none;background-color: #E26148;padding: 7px;padding-left: 10px;margin-right: 12px;display: inline;" href="/inbox/"> |
34 | 34 | <?php echo $__user_h->fetch_unread_pms($_SESSION['siteusername']); ?> |
35 | 35 | </a> |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | </form> |
52 | 52 | </div> |
53 | 53 | </div></div> |
54 | -<?php if(isset($_SESSION['siteusername'])) { ?> |
|
54 | +<?php if (isset($_SESSION['siteusername'])) { ?> |
|
55 | 55 | <div id="masthead-expanded" class="hid" style="display: none;"> |
56 | 56 | <div id="masthead-expanded-container" class="with-sandbar"> |
57 | 57 | <div class="yt-uix-slider yt-rounded" id="watch-channel-discoverbox" data-slider-slide-selected="3" data-slider-slides="4" |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $stmt = $__db->prepare("SELECT * FROM videos WHERE author = :username ORDER BY id DESC LIMIT 20"); |
73 | 73 | $stmt->bindParam(":username", $_SESSION['siteusername']); |
74 | 74 | $stmt->execute(); |
75 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
75 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
76 | 76 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
77 | 77 | $video['duration'] = $__time_h->timestamp($video['duration']); |
78 | 78 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | </div> |
216 | 216 | <?php } ?> |
217 | 217 | <div id="alerts"> |
218 | - <?php if(isset($error['status'])) { ?> |
|
218 | + <?php if (isset($error['status'])) { ?> |
|
219 | 219 | <div id="masthead_child_div"><div class="yt-alert yt-alert-default yt-alert-error yt-alert-player"> <div class="yt-alert-icon"> |
220 | 220 | <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" class="icon master-sprite" alt="Alert icon"> |
221 | 221 | </div> |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | </div> |
226 | 226 | </div></div></div> |
227 | 227 | <?php } ?> |
228 | - <?php if(isset($_GET['error'])) { ?> |
|
228 | + <?php if (isset($_GET['error'])) { ?> |
|
229 | 229 | <div id="masthead_child_div"><div class="yt-alert yt-alert-default yt-alert-error "> <div class="yt-alert-icon"> |
230 | 230 | <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" class="icon master-sprite" alt="Alert icon"> |
231 | 231 | </div> |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | </div> |
236 | 236 | </div></div></div> |
237 | 237 | <?php } ?> |
238 | - <?php if(isset($_GET['success'])) { ?> |
|
238 | + <?php if (isset($_GET['success'])) { ?> |
|
239 | 239 | <div id="masthead_child_div"><div class="yt-alert yt-alert-default yt-alert-success "> <div class="yt-alert-icon"> |
240 | 240 | <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" class="icon master-sprite" alt="Alert icon"> |
241 | 241 | </div> |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | </div> |
246 | 246 | </div></div></div> |
247 | 247 | <?php } ?> |
248 | - <?php if(isset($_SESSION['error'])) { ?> |
|
248 | + <?php if (isset($_SESSION['error'])) { ?> |
|
249 | 249 | <div id="masthead_child_div"><div class="yt-alert yt-alert-default yt-alert-error"> <div class="yt-alert-icon"> |
250 | 250 | <img src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" class="icon master-sprite" alt="Alert icon"> |
251 | 251 | </div> |