@@ -12,10 +12,10 @@ discard block |
||
12 | 12 | <?php $__db_h = new db_helper(); ?> |
13 | 13 | <?php $__time_h = new time_helper(); ?> |
14 | 14 | <?php |
15 | - if(isset($_SESSION['siteusername'])) |
|
15 | + if (isset($_SESSION['siteusername'])) |
|
16 | 16 | $_user_hp = $__user_h->fetch_user_username($_SESSION['siteusername']); |
17 | 17 | |
18 | - if(!$__user_h->user_exists($_GET['n'])) |
|
18 | + if (!$__user_h->user_exists($_GET['n'])) |
|
19 | 19 | header("Location: /?userdoesntexist"); |
20 | 20 | |
21 | 21 | $_user = $__user_h->fetch_user_username($_GET['n']); |
@@ -67,28 +67,28 @@ discard block |
||
67 | 67 | $_user['genre'] = strtolower($_user['genre']); |
68 | 68 | $_user['subscribed'] = $__user_h->if_subscribed(@$_SESSION['siteusername'], $_user['username']); |
69 | 69 | |
70 | - if(!check_valid_colorhex($_user['primary_color']) && strlen($_user['primary_color']) != 6) { $_user['primary_color'] = ""; } |
|
71 | - if(!check_valid_colorhex($_user['secondary_color']) && strlen($_user['secondary_color']) != 6) { $_user['secondary_color'] = ""; } |
|
72 | - if(!check_valid_colorhex($_user['third_color']) && strlen($_user['third_color']) != 6) { $_user['third_color'] = ""; } |
|
73 | - if(!check_valid_colorhex($_user['text_color']) && strlen($_user['text_color']) != 6) { $_user['text_color'] = ""; } |
|
74 | - if(!check_valid_colorhex($_user['primary_color_text']) && strlen($_user['primary_color_text']) != 6) { $_user['primary_color_text'] = ""; } |
|
75 | - if(!check_valid_colorhex($_user['2009_bgcolor']) && strlen($_user['2009_bgcolor']) != 6) { $_user['2009_bgcolor'] = ""; } |
|
70 | + if (!check_valid_colorhex($_user['primary_color']) && strlen($_user['primary_color']) != 6) { $_user['primary_color'] = ""; } |
|
71 | + if (!check_valid_colorhex($_user['secondary_color']) && strlen($_user['secondary_color']) != 6) { $_user['secondary_color'] = ""; } |
|
72 | + if (!check_valid_colorhex($_user['third_color']) && strlen($_user['third_color']) != 6) { $_user['third_color'] = ""; } |
|
73 | + if (!check_valid_colorhex($_user['text_color']) && strlen($_user['text_color']) != 6) { $_user['text_color'] = ""; } |
|
74 | + if (!check_valid_colorhex($_user['primary_color_text']) && strlen($_user['primary_color_text']) != 6) { $_user['primary_color_text'] = ""; } |
|
75 | + if (!check_valid_colorhex($_user['2009_bgcolor']) && strlen($_user['2009_bgcolor']) != 6) { $_user['2009_bgcolor'] = ""; } |
|
76 | 76 | |
77 | - if(isset($_SESSION['siteusername'])) |
|
77 | + if (isset($_SESSION['siteusername'])) |
|
78 | 78 | $__user_i->check_view_channel($_user['username'], @$_SESSION['siteusername']); |
79 | 79 | |
80 | - if($_SERVER['REQUEST_METHOD'] == 'POST') { |
|
80 | + if ($_SERVER['REQUEST_METHOD'] == 'POST') { |
|
81 | 81 | $error = array(); |
82 | 82 | |
83 | - if(!isset($_SESSION['siteusername'])){ $error['message'] = "you are not logged in"; $error['status'] = true; } |
|
84 | - if(!$_POST['comment']){ $error['message'] = "your comment cannot be blank"; $error['status'] = true; } |
|
85 | - if(strlen($_POST['comment']) > 1000){ $error['message'] = "your comment must be shorter than 1000 characters"; $error['status'] = true; } |
|
83 | + if (!isset($_SESSION['siteusername'])) { $error['message'] = "you are not logged in"; $error['status'] = true; } |
|
84 | + if (!$_POST['comment']) { $error['message'] = "your comment cannot be blank"; $error['status'] = true; } |
|
85 | + if (strlen($_POST['comment']) > 1000) { $error['message'] = "your comment must be shorter than 1000 characters"; $error['status'] = true; } |
|
86 | 86 | //if(!isset($_POST['g-recaptcha-response'])){ $error['message'] = "captcha validation failed"; $error['status'] = true; } |
87 | 87 | //if(!$_user_insert_utils->validateCaptcha($config['recaptcha_secret'], $_POST['g-recaptcha-response'])) { $error['message'] = "captcha validation failed"; $error['status'] = true; } |
88 | - if($__user_h->if_cooldown($_SESSION['siteusername'])) { $error['message'] = "You are on a cooldown! Wait for a minute before posting another comment."; $error['status'] = true; } |
|
88 | + if ($__user_h->if_cooldown($_SESSION['siteusername'])) { $error['message'] = "You are on a cooldown! Wait for a minute before posting another comment."; $error['status'] = true; } |
|
89 | 89 | //if(ifBlocked(@$_SESSION['siteusername'], $user['username'], $__db)) { $error = "This user has blocked you!"; $error['status'] = true; } |
90 | 90 | |
91 | - if(!isset($error['message'])) { |
|
91 | + if (!isset($error['message'])) { |
|
92 | 92 | $text = $_POST['comment']; |
93 | 93 | $stmt = $__db->prepare("INSERT INTO profile_comments (toid, author, comment) VALUES (:id, :username, :comment)"); |
94 | 94 | $stmt->bindParam(":id", $_user['username']); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | |
99 | 99 | $_user_update_utils->update_comment_cooldown_time($_SESSION['siteusername']); |
100 | 100 | |
101 | - if(@$_SESSION['siteusername'] != $_user['username']) { |
|
101 | + if (@$_SESSION['siteusername'] != $_user['username']) { |
|
102 | 102 | $_user_insert_utils->send_message($_user['username'], "New comment", 'I commented "' . $_POST['comment'] . '" on your profile!', $_SESSION['siteusername']); |
103 | 103 | } |
104 | 104 | } |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | <link rel="stylesheet" href="/yt/cssbin/www-extra.css"> |
132 | 132 | <style> |
133 | 133 | #content-container { |
134 | - background-color: <?php echo $_user['primary_color']; ?>; |
|
134 | + background-color: <?php echo $_user['primary_color']; ?>; |
|
135 | 135 | background-image: url(/dynamic/banners/<?php echo $_user['2009_bg']; ?>); |
136 | 136 | background-repeat: repeat; |
137 | 137 | background-position: center top; |
@@ -147,11 +147,11 @@ discard block |
||
147 | 147 | <div id="masthead-container"><?php require($_SERVER['DOCUMENT_ROOT'] . "/s/mod/header.php"); ?></div> |
148 | 148 | <div id="content-container"> |
149 | 149 | <!-- begin content --> |
150 | - <?php if(isset($_SESSION['siteusername']) && $_user['username'] == $_SESSION['siteusername']) { ?> |
|
150 | + <?php if (isset($_SESSION['siteusername']) && $_user['username'] == $_SESSION['siteusername']) { ?> |
|
151 | 151 | <div class="channel_customization"><?php require($_SERVER['DOCUMENT_ROOT'] . "/s/mod/channel_customization.php"); ?></div> |
152 | 152 | <?php } ?> |
153 | 153 | <?php |
154 | - if(empty(trim($_user['bio']))) |
|
154 | + if (empty(trim($_user['bio']))) |
|
155 | 155 | $_user['bio'] = "This user has no description."; |
156 | 156 | ?> |
157 | 157 | <div id="content"> |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | <h1><?php echo htmlspecialchars($_user['username']); ?></h1> |
207 | 207 | </div> |
208 | 208 | <div class="upper-left-section enable-fancy-subscribe-button"> |
209 | - <?php if($_user['username'] != @$_SESSION['siteusername']) { ?> |
|
209 | + <?php if ($_user['username'] != @$_SESSION['siteusername']) { ?> |
|
210 | 210 | <div class="yt-subscription-button-hovercard yt-uix-hovercard"> |
211 | 211 | <button |
212 | 212 | href="#" |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | title="" |
215 | 215 | id="subscribe-button" |
216 | 216 | type="button" |
217 | - class="yt-subscription-button <?php if($_user['subscribed']) { echo "subscribed "; } ?> yt-uix-button yt-uix-button-subscription yt-uix-tooltip" |
|
217 | + class="yt-subscription-button <?php if ($_user['subscribed']) { echo "subscribed "; } ?> yt-uix-button yt-uix-button-subscription yt-uix-tooltip" |
|
218 | 218 | role="button"><span class="yt-uix-button-icon-wrapper"><img class="yt-uix-button-icon yt-uix-button-icon-subscribe" |
219 | 219 | src="//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt=""></span><span class="yt-uix-button-content"> <span class="subscribe-label">Subscribe</span> |
220 | 220 | <span class="subscribed-label">Subscribed</span> |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | <div class="header-stats"> |
236 | 236 | <div class="stat-entry"> |
237 | 237 | <span class="stat-value"><?php echo $_user['subscribers']; ?></span> |
238 | - <span class="stat-name"><?php if($_user['subscribers'] == 1){ ?>subscriber<?php }else{ ?>subscribers<?php } ?></span> |
|
238 | + <span class="stat-name"><?php if ($_user['subscribers'] == 1) { ?>subscriber<?php } else { ?>subscribers<?php } ?></span> |
|
239 | 239 | </div> |
240 | 240 | <div class="stat-entry"> |
241 | 241 | <span class="stat-value"><?php echo $_user['views']; ?></span> |
@@ -280,12 +280,12 @@ discard block |
||
280 | 280 | </div> |
281 | 281 | </div> |
282 | 282 | </div> |
283 | - <?php if($_user['featured'] != "None") { $video = $__video_h->fetch_video_rid($_user['featured']); } else { $_user['featured'] = false; } ?> |
|
283 | + <?php if ($_user['featured'] != "None") { $video = $__video_h->fetch_video_rid($_user['featured']); } else { $_user['featured'] = false; } ?> |
|
284 | 284 | <div id="branded-page-body"> |
285 | 285 | <div class="channel-tab-content channel-layout-two-column selected blogger-template"> |
286 | 286 | <div class="tab-content-body"> |
287 | 287 | <div class="primary-pane"> |
288 | - <?php if($_user['featured'] != false && $__video_h->video_exists($_user['featured'])) { ?> |
|
288 | + <?php if ($_user['featured'] != false && $__video_h->video_exists($_user['featured'])) { ?> |
|
289 | 289 | <div class="channels-featured-video channel-module yt-uix-c3-module-container has-visible-edge"> |
290 | 290 | <div class="module-view featured-video-view-module"> |
291 | 291 | <div class="channels-video-player " data-swf-config="{"assets": {"html": "\/html5_player_template", "css": "http:\/\/s.ytimg.com\/yt\/cssbin\/www-player-vfllhw7HB.css", "js": "http:\/\/s.ytimg.com\/yt\/jsbin\/html5player-vflzTrRqK.js"}, "url": "http:\/\/s.ytimg.com\/yt\/swfbin\/watch_as3-vflbPspVE.swf", "min_version": "8.0.0", "args": {"ttsurl": "http:\/\/www.youtube.com\/api\/timedtext?sparams=asr_langs%2Ccaps%2Cv%2Cexpire\u0026asr_langs=en%2Cko%2Cja%2Ces\u0026v=/watch?v=<?php echo $video['rid']; ?>\u0026caps=asr\u0026expire=1339746882\u0026key=yttt1\u0026signature=A1B858FF427B45672676C7403417ED1F4091A806.C347A6021C0F843E46F2056AEBA38FC93A0A47B8\u0026hl=en_US", "el": "profilepage", "fexp": "904001,907342,904824,910206,908620,907217,907335,921602,919306,922600,919316,920704,912804,913542,919324,912706", "url_encoded_fmt_stream_map": "url=http%3A%2F%2Fo-o.preferred.nuq04s10.v1.lscache4.c.youtube.com%2Fvideoplayback%3Fupn%3D_7WL7XeDtjs%26sparams%3Dcp%252Cid%252Cip%252Cipbits%252Citag%252Cratebypass%252Csource%252Cupn%252Cexpire%26fexp%3D904001%252C907342%252C904824%252C910206%252C908620%252C907217%252C907335%252C921602%252C919306%252C922600%252C919316%252C920704%252C912804%252C913542%252C919324%252C912706%26ms%3Dau%26itag%3D44%26ip%3D207.0.0.0%26signature%3D9B9B5ECF02F2F66BDCCB0ACED26D3406F9F83241.1B2CC833461E3D2C4D081B7DFBC65B0948C61FB9%26sver%3D3%26mt%3D1339721111%26ratebypass%3Dyes%26source%3Dyoutube%26expire%3D1339743583%26key%3Dyt1%26ipbits%3D8%26cp%3DU0hSTldPUV9NTUNOMl9PSVVGOmdTcVlPRFNNTEdM%26id%3D56ffd0bfee85d71f\u0026quality=large\u0026fallback_host=tc.v1.cache4.c.youtube.com\u0026type=video%2Fwebm%3B+codecs%3D%22vp8.0%2C+vorbis%22\u0026itag=44,url=http%3A%2F%2Fo-o.preferred.nuq04s10.v14.lscache1.c.youtube.com%2Fvideoplayback%3Fupn%3D_7WL7XeDtjs%26sparams%3Dalgorithm%252Cburst%252Ccp%252Cfactor%252Cid%252Cip%252Cipbits%252Citag%252Csource%252Cupn%252Cexpire%26fexp%3D904001%252C907342%252C904824%252C910206%252C908620%252C907217%252C907335%252C921602%252C919306%252C922600%252C919316%252C920704%252C912804%252C913542%252C919324%252C912706%26mt%3D1339721111%26ms%3Dau%26algorithm%3Dthrottle-factor%26itag%3D35%26ip%3D207.0.0.0%26burst%3D40%26sver%3D3%26signature%3DB702D7CA72653169BDC2C945B5A35F4A23A3FEBF.ACC660CDAB11901FF8D3DA8D384D61F0AB0F0125%26source%3Dyoutube%26expire%3D1339743583%26key%3Dyt1%26ipbits%3D8%26factor%3D1.25%26cp%3DU0hSTldPUV9NTUNOMl9PSVVGOmdTcVlPRFNNTEdM%26id%3D56ffd0bfee85d71f\u0026quality=large\u0026fallback_host=tc.v14.cache1.c.youtube.com\u0026type=video%2Fx-flv\u0026itag=35,url=http%3A%2F%2Fo-o.preferred.nuq04s10.v24.lscache3.c.youtube.com%2Fvideoplayback%3Fupn%3D_7WL7XeDtjs%26sparams%3Dcp%252Cid%252Cip%252Cipbits%252Citag%252Cratebypass%252Csource%252Cupn%252Cexpire%26fexp%3D904001%252C907342%252C904824%252C910206%252C908620%252C907217%252C907335%252C921602%252C919306%252C922600%252C919316%252C920704%252C912804%252C913542%252C919324%252C912706%26ms%3Dau%26itag%3D43%26ip%3D207.0.0.0%26signature%3D9FABDD8C013AA137B87DF2D154D1B90E6827A2A3.880FECDEC066236D85FCF223CF472B62B8F9B3A4%26sver%3D3%26mt%3D1339721111%26ratebypass%3Dyes%26source%3Dyoutube%26expire%3D1339743583%26key%3Dyt1%26ipbits%3D8%26cp%3DU0hSTldPUV9NTUNOMl9PSVVGOmdTcVlPRFNNTEdM%26id%3D56ffd0bfee85d71f\u0026quality=medium\u0026fallback_host=tc.v24.cache3.c.youtube.com\u0026type=video%2Fwebm%3B+codecs%3D%22vp8.0%2C+vorbis%22\u0026itag=43,url=http%3A%2F%2Fo-o.preferred.nuq04s10.v3.lscache7.c.youtube.com%2Fvideoplayback%3Fupn%3D_7WL7XeDtjs%26sparams%3Dalgorithm%252Cburst%252Ccp%252Cfactor%252Cid%252Cip%252Cipbits%252Citag%252Csource%252Cupn%252Cexpire%26fexp%3D904001%252C907342%252C904824%252C910206%252C908620%252C907217%252C907335%252C921602%252C919306%252C922600%252C919316%252C920704%252C912804%252C913542%252C919324%252C912706%26mt%3D1339721111%26ms%3Dau%26algorithm%3Dthrottle-factor%26itag%3D34%26ip%3D207.0.0.0%26burst%3D40%26sver%3D3%26signature%3D1BA326B784DAA9F62FD789CBB5C2FABFCD5D351C.C4618E3AB2AB08C61C6A982A36F405DA886B5D5A%26source%3Dyoutube%26expire%3D1339743583%26key%3Dyt1%26ipbits%3D8%26factor%3D1.25%26cp%3DU0hSTldPUV9NTUNOMl9PSVVGOmdTcVlPRFNNTEdM%26id%3D56ffd0bfee85d71f\u0026quality=medium\u0026fallback_host=tc.v3.cache7.c.youtube.com\u0026type=video%2Fx-flv\u0026itag=34,url=http%3A%2F%2Fo-o.preferred.nuq04s10.v14.lscache1.c.youtube.com%2Fvideoplayback%3Fupn%3D_7WL7XeDtjs%26sparams%3Dcp%252Cid%252Cip%252Cipbits%252Citag%252Cratebypass%252Csource%252Cupn%252Cexpire%26fexp%3D904001%252C907342%252C904824%252C910206%252C908620%252C907217%252C907335%252C921602%252C919306%252C922600%252C919316%252C920704%252C912804%252C913542%252C919324%252C912706%26ms%3Dau%26itag%3D18%26ip%3D207.0.0.0%26signature%3D8806EA8FAE16557A2F9732068442133EA0A0760F.D91694A47E6B0BF627965CDA46010F36105A28FE%26sver%3D3%26mt%3D1339721111%26ratebypass%3Dyes%26source%3Dyoutube%26expire%3D1339743583%26key%3Dyt1%26ipbits%3D8%26cp%3DU0hSTldPUV9NTUNOMl9PSVVGOmdTcVlPRFNNTEdM%26id%3D56ffd0bfee85d71f\u0026quality=medium\u0026fallback_host=tc.v14.cache1.c.youtube.com\u0026type=video%2Fmp4%3B+codecs%3D%22avc1.42001E%2C+mp4a.40.2%22\u0026itag=18,url=http%3A%2F%2Fo-o.preferred.nuq04s10.v4.lscache1.c.youtube.com%2Fvideoplayback%3Fupn%3D_7WL7XeDtjs%26sparams%3Dalgorithm%252Cburst%252Ccp%252Cfactor%252Cid%252Cip%252Cipbits%252Citag%252Csource%252Cupn%252Cexpire%26fexp%3D904001%252C907342%252C904824%252C910206%252C908620%252C907217%252C907335%252C921602%252C919306%252C922600%252C919316%252C920704%252C912804%252C913542%252C919324%252C912706%26mt%3D1339721111%26ms%3Dau%26algorithm%3Dthrottle-factor%26itag%3D5%26ip%3D207.0.0.0%26burst%3D40%26sver%3D3%26signature%3D011CB6739AB60ED79D032DE2F62EB016D8A8E462.C2C0ABE42F26DBA18F2BC6E0D074EB99A95C0DF0%26source%3Dyoutube%26expire%3D1339743583%26key%3Dyt1%26ipbits%3D8%26factor%3D1.25%26cp%3DU0hSTldPUV9NTUNOMl9PSVVGOmdTcVlPRFNNTEdM%26id%3D56ffd0bfee85d71f\u0026quality=small\u0026fallback_host=tc.v4.cache1.c.youtube.com\u0026type=video%2Fx-flv\u0026itag=5,url=http%3A%2F%2Fo-o.preferred.nuq04s10.v12.lscache3.c.youtube.com%2Fvideoplayback%3Fupn%3D_7WL7XeDtjs%26sparams%3Dalgorithm%252Cburst%252Ccp%252Cfactor%252Cid%252Cip%252Cipbits%252Citag%252Csource%252Cupn%252Cexpire%26fexp%3D904001%252C907342%252C904824%252C910206%252C908620%252C907217%252C907335%252C921602%252C919306%252C922600%252C919316%252C920704%252C912804%252C913542%252C919324%252C912706%26mt%3D1339721111%26ms%3Dau%26algorithm%3Dthrottle-factor%26itag%3D36%26ip%3D207.0.0.0%26burst%3D40%26sver%3D3%26signature%3D988FDD37CBA8DB74C1148EE17921D8549434297C.A2C1796F2BA0427C9FE370BFB6B3B09BA1D81B07%26source%3Dyoutube%26expire%3D1339743583%26key%3Dyt1%26ipbits%3D8%26factor%3D1.25%26cp%3DU0hSTldPUV9NTUNOMl9PSVVGOmdTcVlPRFNNTEdM%26id%3D56ffd0bfee85d71f\u0026quality=small\u0026fallback_host=tc.v12.cache3.c.youtube.com\u0026type=video%2F3gpp\u0026itag=36", "allow_embed": 1, "vq": "auto", "account_playback_token": "", "allow_ratings": 1, "keywords": "Rehearsal,Dance,justin,bieber,believe,as,long,you,love,me,rodney,jerkins,pattie,mallette,jeremy,dad,mom,scooter,braun,island,def,jam,usher,rbmg,making,of,the,album,webisode,june,19th,19,new,amazing,song,big,sean,hit,record,<?php echo htmlspecialchars($_user['username']); ?>,always,still,studio,singing,kuk,harrell,producer,sing,boy,guy,man,smash,single,nick,demoura,dancers,sweat,beliebers,hard,work,tour,band", "cc3_module": "http:\/\/s.ytimg.com\/yt\/swfbin\/subtitles3_module-vflu_Qeod.swf", "track_embed": 0, "is_purchased": false, "ps": "default", "fmt_list": "44\/854x480\/99\/0\/0,35\/854x480\/9\/0\/115,43\/640x360\/99\/0\/0,34\/640x360\/9\/0\/115,18\/640x360\/9\/0\/115,5\/320x240\/7\/0\/0,36\/320x240\/99\/0\/0", "author": "<?php echo htmlspecialchars($_user['username']); ?>", "muted": "0", "cc_module": "http:\/\/s.ytimg.com\/yt\/swfbin\/subtitle_module-vflq8KnSi.swf", "length_seconds": 82, "feature": "g-logo-xit", "enablejsapi": 1, "rel": 0, "plid": "AATCeEL9eg3Ls9t-", "cc_font": "Arial Unicode MS, arial, verdana, _sans", "ftoken": "", "sdetail": "f:g-logo-xit,p:\/", "status": "ok", "cc_asr": 1, "watermark": ",http:\/\/s.ytimg.com\/yt\/img\/watermark\/youtube_watermark-vflHX6b6E.png,http:\/\/s.ytimg.com\/yt\/img\/watermark\/youtube_hd_watermark-vflAzLcD6.png", "sourceid": "y", "timestamp": 1339721682, "has_cc": true, "view_count": 2600, "quality_cap": "highres", "hl": "en_US", "tmi": "1", "no_get_video_log": "1", "eurl": "http:\/\/www.youtube.com\/user\/<?php echo htmlspecialchars($_user['username']); ?>", "iurl": "http:\/\/i3.ytimg.com\/vi\//watch?v=<?php echo $video['rid']; ?>\/hqdefault.jpg", "endscreen_module": "http:\/\/s.ytimg.com\/yt\/swfbin\/endscreen-vflJBKwqC.swf", "referrer": "http:\/\/www.youtube.com\/", "avg_rating": 4.97805486284, "video_id": "/watch?v=<?php echo $video['rid']; ?>", "sendtmp": "1", "sk": "bwv_lGOGF4u1g0p7puy7ERICN8NZ5cVFC", "is_video_preview": false, "token": "vjVQa1PpcFMSYb-unvOiIgSL8pW9tObJUMfrEc1mxfE=", "thumbnail_url": "http:\/\/i3.ytimg.com\/vi\//watch?v=<?php echo $video['rid']; ?>\/default.jpg", "iurlsd": "http:\/\/i3.ytimg.com\/vi\//watch?v=<?php echo $video['rid']; ?>\/sddefault.jpg", "autoplay": "1"}, "url_v9as2": "http:\/\/s.ytimg.com\/yt\/swfbin\/cps-vflhvG6F4.swf", "params": {"allowscriptaccess": "always", "allowfullscreen": "true", "bgcolor": "#000000"}, "attrs": {"width": "640", "id": "movie_player", "height": "390"}, "url_v8": "http:\/\/s.ytimg.com\/yt\/swfbin\/cps-vflhvG6F4.swf", "html5": false}" data-video-id="/watch?v=<?php echo $video['rid']; ?>"> |
@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | <div class="playlist-info"> |
326 | 326 | <h2>Uploaded videos</h2> |
327 | 327 | <div class="yt-horizontal-rule "><span class="first"></span><span class="second"></span><span class="third"></span></div> |
328 | - <?php if($_user['videos'] == 0) { ?> |
|
328 | + <?php if ($_user['videos'] == 0) { ?> |
|
329 | 329 | <h4>This user has not uploaded a video yet.</h4> |
330 | 330 | <?php } ?> |
331 | 331 | </div> |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | $stmt = $__db->prepare("SELECT * FROM videos WHERE author = :username ORDER BY id DESC LIMIT 20"); |
335 | 335 | $stmt->bindParam(":username", $_user['username']); |
336 | 336 | $stmt->execute(); |
337 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
337 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
338 | 338 | ?> |
339 | 339 | <li class="blogger-video"> |
340 | 340 | <div class="video yt-tile-visible"> |
@@ -416,7 +416,7 @@ discard block |
||
416 | 416 | </div> |
417 | 417 | <hr class="yt-horizontal-rule "> |
418 | 418 | </div> |
419 | - <?php if(!empty($_user['website'])) { ?> |
|
419 | + <?php if (!empty($_user['website'])) { ?> |
|
420 | 420 | <div class="user-profile-item"> |
421 | 421 | <div class="yt-c3-profile-custom-url field-container "> |
422 | 422 | <a href="<?php echo addhttp(htmlspecialchars($_user['website'])); ?>" rel="me nofollow" target="_blank" title="<?php echo htmlspecialchars($_user['website']); ?>" class="yt-uix-redirect-link"> |
@@ -465,7 +465,7 @@ discard block |
||
465 | 465 | <h5>Country</h5> |
466 | 466 | <span class="value"><?php echo htmlspecialchars($_user['country']); ?></span> |
467 | 467 | </div> |
468 | - <?php if($_user['genre'] != "none") { ?> |
|
468 | + <?php if ($_user['genre'] != "none") { ?> |
|
469 | 469 | <div class="user-profile-item "> |
470 | 470 | <h5>Channel Genre</h5> |
471 | 471 | <span class="value"><?php echo htmlspecialchars($_user['genre']); ?></span> |
@@ -477,13 +477,13 @@ discard block |
||
477 | 477 | </div> |
478 | 478 | <div class="channel-module other-channels yt-uix-c3-module-container other-channels-compact"> |
479 | 479 | <?php $_user['featured_channels'] = explode(",", $_user['featured_channels']); ?> |
480 | - <?php if(count($_user['featured_channels']) != 0) { ?> |
|
480 | + <?php if (count($_user['featured_channels']) != 0) { ?> |
|
481 | 481 | <div class="module-view other-channels-view"> |
482 | 482 | <h2>Featured Channels</h2> |
483 | 483 | <ul class="channel-summary-list "> |
484 | 484 | <?php |
485 | - foreach($_user['featured_channels'] as $user) { |
|
486 | - if($__user_h->user_exists($user)) { |
|
485 | + foreach ($_user['featured_channels'] as $user) { |
|
486 | + if ($__user_h->user_exists($user)) { |
|
487 | 487 | ?> |
488 | 488 | <li class="yt-tile-visible yt-uix-tile"> |
489 | 489 | <div class="channel-summary clearfix channel-summary-compact"> |
@@ -512,13 +512,13 @@ discard block |
||
512 | 512 | $stmt->bindParam(":search", $_user['username']); |
513 | 513 | $stmt->execute(); |
514 | 514 | |
515 | - if($stmt->rowCount() != 0) { |
|
515 | + if ($stmt->rowCount() != 0) { |
|
516 | 516 | ?> |
517 | 517 | <div class="playlists-narrow channel-module yt-uix-c3-module-container"> |
518 | 518 | <div class="module-view gh-featured"> |
519 | 519 | <h2>Featured Playlists</h2> |
520 | 520 | <?php |
521 | - while($playlist = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
521 | + while ($playlist = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
522 | 522 | $playlist['videos'] = json_decode($playlist['videos']); |
523 | 523 | ?> |
524 | 524 | <div class="playlist yt-tile-visible yt-uix-tile"> |
@@ -12,11 +12,13 @@ discard block |
||
12 | 12 | <?php $__db_h = new db_helper(); ?> |
13 | 13 | <?php $__time_h = new time_helper(); ?> |
14 | 14 | <?php |
15 | - if(isset($_SESSION['siteusername'])) |
|
16 | - $_user_hp = $__user_h->fetch_user_username($_SESSION['siteusername']); |
|
15 | + if(isset($_SESSION['siteusername'])) { |
|
16 | + $_user_hp = $__user_h->fetch_user_username($_SESSION['siteusername']); |
|
17 | + } |
|
17 | 18 | |
18 | - if(!$__user_h->user_exists($_GET['n'])) |
|
19 | - header("Location: /?userdoesntexist"); |
|
19 | + if(!$__user_h->user_exists($_GET['n'])) { |
|
20 | + header("Location: /?userdoesntexist"); |
|
21 | + } |
|
20 | 22 | |
21 | 23 | $_user = $__user_h->fetch_user_username($_GET['n']); |
22 | 24 | |
@@ -39,10 +41,11 @@ discard block |
||
39 | 41 | |
40 | 42 | if ( |
41 | 43 | ctype_xdigit($colorCode) && |
42 | - (strlen($colorCode) == 6 || strlen($colorCode) == 3)) |
|
43 | - return true; |
|
44 | - |
|
45 | - else return false; |
|
44 | + (strlen($colorCode) == 6 || strlen($colorCode) == 3)) { |
|
45 | + return true; |
|
46 | + } else { |
|
47 | + return false; |
|
48 | + } |
|
46 | 49 | } |
47 | 50 | |
48 | 51 | $_user['subscribers'] = $__user_h->fetch_subs_count($_user['username']); |
@@ -74,8 +77,9 @@ discard block |
||
74 | 77 | if(!check_valid_colorhex($_user['primary_color_text']) && strlen($_user['primary_color_text']) != 6) { $_user['primary_color_text'] = ""; } |
75 | 78 | if(!check_valid_colorhex($_user['2009_bgcolor']) && strlen($_user['2009_bgcolor']) != 6) { $_user['2009_bgcolor'] = ""; } |
76 | 79 | |
77 | - if(isset($_SESSION['siteusername'])) |
|
78 | - $__user_i->check_view_channel($_user['username'], @$_SESSION['siteusername']); |
|
80 | + if(isset($_SESSION['siteusername'])) { |
|
81 | + $__user_i->check_view_channel($_user['username'], @$_SESSION['siteusername']); |
|
82 | + } |
|
79 | 83 | |
80 | 84 | if($_SERVER['REQUEST_METHOD'] == 'POST') { |
81 | 85 | $error = array(); |
@@ -151,8 +155,9 @@ discard block |
||
151 | 155 | <div class="channel_customization"><?php require($_SERVER['DOCUMENT_ROOT'] . "/s/mod/channel_customization.php"); ?></div> |
152 | 156 | <?php } ?> |
153 | 157 | <?php |
154 | - if(empty(trim($_user['bio']))) |
|
155 | - $_user['bio'] = "This user has no description."; |
|
158 | + if(empty(trim($_user['bio']))) { |
|
159 | + $_user['bio'] = "This user has no description."; |
|
160 | + } |
|
156 | 161 | ?> |
157 | 162 | <div id="content"> |
158 | 163 | <div class="subscription-menu-expandable subscription-menu-expandable-channels3 yt-rounded ytg-wide hid"> |
@@ -235,7 +240,7 @@ discard block |
||
235 | 240 | <div class="header-stats"> |
236 | 241 | <div class="stat-entry"> |
237 | 242 | <span class="stat-value"><?php echo $_user['subscribers']; ?></span> |
238 | - <span class="stat-name"><?php if($_user['subscribers'] == 1){ ?>subscriber<?php }else{ ?>subscribers<?php } ?></span> |
|
243 | + <span class="stat-name"><?php if($_user['subscribers'] == 1){ ?>subscriber<?php } else{ ?>subscribers<?php } ?></span> |
|
239 | 244 | </div> |
240 | 245 | <div class="stat-entry"> |
241 | 246 | <span class="stat-value"><?php echo $_user['views']; ?></span> |
@@ -313,14 +313,15 @@ |
||
313 | 313 | for($i = 0;$i <= $countryLength; $i++) |
314 | 314 | { |
315 | 315 | $c = $countries[$i]; |
316 | - if ($c == $_user['country']) |
|
317 | - //country is the same as in database |
|
316 | + if ($c == $_user['country']) { |
|
317 | + //country is the same as in database |
|
318 | 318 | { |
319 | 319 | ?> |
320 | - <option value="<?php echo $c; ?>" selected="selected"><?php echo $c; ?></option> |
|
321 | - <?php |
|
320 | + <option value="<?php echo $c; |
|
322 | 321 | } |
323 | - else |
|
322 | + ?>" selected="selected"><?php echo $c; ?></option> |
|
323 | + <?php |
|
324 | + } else |
|
324 | 325 | { |
325 | 326 | ?> |
326 | 327 | <option value="<?php echo $c;?>"><?php echo $c; ?></option> |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | <!--<button class="yt-uix-button yt-uix-button-default" id="av-uplod">Select File</button>--> |
221 | 221 | </div><br><br> |
222 | 222 | <img src="/dynamic/pfp/<?php echo $_user['pfp']; ?>" style="width:100px;height:100px;"><br> |
223 | - <?php if($_user['pfp'] != "default.png") { ?> |
|
223 | + <?php if ($_user['pfp'] != "default.png") { ?> |
|
224 | 224 | <a href="/get/remove_profile_pic">Remove Profile Picture</a><br> |
225 | 225 | <?php } ?> |
226 | 226 | <br><hr class="thin-line-darker" style="width:unset;"> |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | <input style="width: 169px;position: relative;top: 10px;" type="file" name="videopagebanner" id="avatar-upload"> |
230 | 230 | <!--<button class="yt-uix-button yt-uix-button-default" id="av-uplod">Select File</button>--> |
231 | 231 | </div><br> |
232 | - <?php if(!empty($_user['subbutton'])) { ?> |
|
232 | + <?php if (!empty($_user['subbutton'])) { ?> |
|
233 | 233 | <a href="/get/remove_watch_banner">Remove Watch Page Banner</a><br> |
234 | 234 | <?php } ?><br><hr class="thin-line-darker" style="width:unset;"> |
235 | 235 | |
@@ -249,17 +249,17 @@ discard block |
||
249 | 249 | |
250 | 250 | <b>Featured Video</b> |
251 | 251 | <div class="customization-module" id="featuredvid" action="/d/channel_update" enctype="multipart/form-data" style="display: inline-block;float:right;position: relative;bottom: 6px;"> |
252 | - <input class="yt-uix-form-input-text" style="width: 291px;" id="biomd" placeholder="Video ID" value="<?php echo htmlspecialchars($_user['featured']);?>" name="videoid"> |
|
252 | + <input class="yt-uix-form-input-text" style="width: 291px;" id="biomd" placeholder="Video ID" value="<?php echo htmlspecialchars($_user['featured']); ?>" name="videoid"> |
|
253 | 253 | </div><br><br><hr class="thin-line-darker" style="width:unset;"> |
254 | 254 | |
255 | 255 | <b>Featured Channels</b> |
256 | 256 | <div class="customization-module" id="featuredvid" action="/d/channel_update" enctype="multipart/form-data" style="display: inline-block;float:right;position: relative;bottom: 6px;"> |
257 | - <input class="yt-uix-form-input-text" style="width: 291px;" id="biomd" placeholder="Seperate by commas!" value="<?php echo htmlspecialchars($_user['featured_channels']);?>" name="featuredchannels"> |
|
257 | + <input class="yt-uix-form-input-text" style="width: 291px;" id="biomd" placeholder="Seperate by commas!" value="<?php echo htmlspecialchars($_user['featured_channels']); ?>" name="featuredchannels"> |
|
258 | 258 | </div><br><br><hr class="thin-line-darker" style="width:unset;"> |
259 | 259 | |
260 | 260 | <b>Website</b> |
261 | 261 | <div class="customization-module" id="featuredvid" action="/d/channel_update" enctype="multipart/form-data" style="float: right;position: relative;top: -7px;"> |
262 | - <input class="yt-uix-form-input-text" style="width: 291px;" id="biomd" placeholder="Website URL" value="<?php echo htmlspecialchars($_user['website']);?>" name="website"> |
|
262 | + <input class="yt-uix-form-input-text" style="width: 291px;" id="biomd" placeholder="Website URL" value="<?php echo htmlspecialchars($_user['website']); ?>" name="website"> |
|
263 | 263 | |
264 | 264 | </div><br><br><hr class="thin-line-darker" style="width:unset;"> |
265 | 265 | |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | <span style="font-size: 11px;" class="grey-text">This will show what type of channel you are to other users.</span> |
269 | 269 | <div class="customization-module" id="channellayout" action="/d/channel_update" enctype="multipart/form-data" style="float: right;position: relative;top: -19px;"> |
270 | 270 | <select class="yt-uix-button yt-uix-button-default" style="position:relative;top:6px;" name="genre"> |
271 | - <?php foreach($categories as $category) { ?> |
|
271 | + <?php foreach ($categories as $category) { ?> |
|
272 | 272 | <option value="<?php echo $category; ?>"><?php echo $category; ?></option> |
273 | 273 | <?php } ?> |
274 | 274 | </select> |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | <select class="yt-uix-button yt-uix-button-default" style="position:relative;top:6px;" name="transparency"> |
283 | 283 | <?php |
284 | 284 | $trans = array( |
285 | - "1.1","1.0","0.9","0.8","0.7","0.6","0.5","0.4","0.3","0.2","0.1", |
|
285 | + "1.1", "1.0", "0.9", "0.8", "0.7", "0.6", "0.5", "0.4", "0.3", "0.2", "0.1", |
|
286 | 286 | ); |
287 | 287 | ?> |
288 | 288 | <option value="1.0">100% (Visible)</option> |
@@ -305,12 +305,12 @@ discard block |
||
305 | 305 | <select class="yt-uix-button yt-uix-button-default" style="position:relative;top:6px;" id="country" name="country" value="<?php echo $_user['country']?>"> |
306 | 306 | <?php |
307 | 307 | $countries = array( |
308 | - "Select country","Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegowina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, the Democratic Republic of the", "Cook Islands", "Costa Rica", "Cote d'Ivoire", "Croatia (Hrvatska)", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Islands (Malvinas)", "Faroe Islands", "Fiji", "Finland", "France", "France Metropolitan", "French Guiana", "French Polynesia", "French Southern Territories", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Gibraltar", "Greece", "Greenland", "Grenada", "Guadeloupe", "Guam", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Heard and Mc Donald Islands", "Holy See (Vatican City State)", "Honduras", "Hong Kong", "Hungary", "Iceland", "India", "Indonesia", "Iran (Islamic Republic of)", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, Democratic People's Republic of", "Korea, Republic of", "Kuwait", "Kyrgyzstan", "Lao, People's Democratic Republic", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libyan Arab Jamahiriya", "Liechtenstein", "Lithuania", "Luxembourg", "Macau", "Macedonia, The Former Yugoslav Republic of", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Martinique", "Mauritania", "Mauritius", "Mayotte", "Mexico", "Micronesia, Federated States of", "Moldova, Republic of", "Monaco", "Mongolia", "Montserrat", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "Netherlands Antilles", "New Caledonia", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Niue", "Norfolk Island", "Northern Mariana Islands", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Pitcairn", "Poland", "Portugal", "Puerto Rico", "Qatar", "Reunion", "Romania", "Russian Federation", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Seychelles", "Sierra Leone", "Singapore", "Slovakia (Slovak Republic)", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Georgia and the South Sandwich Islands", "Spain", "Sri Lanka", "St. Helena", "St. Pierre and Miquelon", "Sudan", "Suriname", "Svalbard and Jan Mayen Islands", "Swaziland", "Sweden", "Switzerland", "Syrian Arab Republic", "Taiwan, Province of China", "Tajikistan", "Tanzania, United Republic of", "Thailand", "Togo", "Tokelau", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Turks and Caicos Islands", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "United States Minor Outlying Islands", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela", "Vietnam", "Virgin Islands (British)", "Virgin Islands (U.S.)", "Wallis and Futuna Islands", "Western Sahara", "Yemen", "Yugoslavia", "Zambia", "Zimbabwe" |
|
308 | + "Select country", "Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegowina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, the Democratic Republic of the", "Cook Islands", "Costa Rica", "Cote d'Ivoire", "Croatia (Hrvatska)", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Islands (Malvinas)", "Faroe Islands", "Fiji", "Finland", "France", "France Metropolitan", "French Guiana", "French Polynesia", "French Southern Territories", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Gibraltar", "Greece", "Greenland", "Grenada", "Guadeloupe", "Guam", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Heard and Mc Donald Islands", "Holy See (Vatican City State)", "Honduras", "Hong Kong", "Hungary", "Iceland", "India", "Indonesia", "Iran (Islamic Republic of)", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, Democratic People's Republic of", "Korea, Republic of", "Kuwait", "Kyrgyzstan", "Lao, People's Democratic Republic", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libyan Arab Jamahiriya", "Liechtenstein", "Lithuania", "Luxembourg", "Macau", "Macedonia, The Former Yugoslav Republic of", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Martinique", "Mauritania", "Mauritius", "Mayotte", "Mexico", "Micronesia, Federated States of", "Moldova, Republic of", "Monaco", "Mongolia", "Montserrat", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "Netherlands Antilles", "New Caledonia", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Niue", "Norfolk Island", "Northern Mariana Islands", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Pitcairn", "Poland", "Portugal", "Puerto Rico", "Qatar", "Reunion", "Romania", "Russian Federation", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Seychelles", "Sierra Leone", "Singapore", "Slovakia (Slovak Republic)", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Georgia and the South Sandwich Islands", "Spain", "Sri Lanka", "St. Helena", "St. Pierre and Miquelon", "Sudan", "Suriname", "Svalbard and Jan Mayen Islands", "Swaziland", "Sweden", "Switzerland", "Syrian Arab Republic", "Taiwan, Province of China", "Tajikistan", "Tanzania, United Republic of", "Thailand", "Togo", "Tokelau", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Turks and Caicos Islands", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "United States Minor Outlying Islands", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela", "Vietnam", "Virgin Islands (British)", "Virgin Islands (U.S.)", "Wallis and Futuna Islands", "Western Sahara", "Yemen", "Yugoslavia", "Zambia", "Zimbabwe" |
|
309 | 309 | ); |
310 | 310 | |
311 | 311 | $countryLength = sizeof($countries); |
312 | 312 | $i = 0; |
313 | - for($i = 0;$i <= $countryLength; $i++) |
|
313 | + for ($i = 0; $i <= $countryLength; $i++) |
|
314 | 314 | { |
315 | 315 | $c = $countries[$i]; |
316 | 316 | if ($c == $_user['country']) |
@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | else |
324 | 324 | { |
325 | 325 | ?> |
326 | - <option value="<?php echo $c;?>"><?php echo $c; ?></option> |
|
326 | + <option value="<?php echo $c; ?>"><?php echo $c; ?></option> |
|
327 | 327 | <?php |
328 | 328 | } |
329 | 329 | } |