BurningFlipside /
Profiles
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | ini_set('display_errors', 1); |
||
| 3 | error_reporting(E_ALL); |
||
| 4 | //Redirect users to https |
||
| 5 | View Code Duplication | if($_SERVER["HTTPS"] != "on") |
|
| 6 | { |
||
| 7 | header("Location: https://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]); |
||
| 8 | exit(); |
||
| 9 | } |
||
| 10 | require_once("class.FlipSession.php"); |
||
| 11 | if(!FlipSession::isLoggedIn()) |
||
| 12 | { |
||
| 13 | header("Location: login.php"); |
||
| 14 | exit(); |
||
| 15 | } |
||
| 16 | require_once('class.ProfilesPage.php'); |
||
| 17 | $page = new ProfilesPage('Burning Flipside Profiles'); |
||
| 18 | |||
| 19 | $page->addWellKnownJS(JS_BOOTSTRAP_FH); |
||
| 20 | $page->addWellKnownCSS(CSS_BOOTSTRAP_FH); |
||
| 21 | $page->addWellKnownJS(JS_CRYPTO_MD5_JS); |
||
| 22 | $page->addWellKnownJS(JS_BOOTBOX); |
||
| 23 | $page->addWellKnownJS(JS_JCROP); |
||
| 24 | $page->addWellKnownCSS(CSS_JCROP); |
||
| 25 | $page->addJSByURI('js/profile.js', false); |
||
| 26 | |||
| 27 | $page->addNotification('All the information on this page is optional. However, it will make the process of signing up for Ticket Requests, Theme Camp Registrations, Art Project Registrations, and Volunteer Signup faster and easier. If you have any concerns with providing this information we suggest your read our <a href="http://www.burningflipside.com/about/privacy" class="alert-link" target="_new">Privacy Policy</a> or contact the <a href="http://www.burningflipside.com/contact/" class="alert-link" target="_new">Technology Team</a> or the <a href="http://www.burningflipside.com/contact/" class="alert-link" target="_new">AAR Board of Directors</a> with your concerns.', $page::NOTIFICATION_INFO); |
||
| 28 | |||
| 29 | $page->body .= ' |
||
| 30 | <div id="content"> |
||
| 31 | <fieldset> |
||
| 32 | <legend>Main Profile:</legend> |
||
| 33 | <form role="form" action="profile.php" method="post" name="profile" id="profile"> |
||
| 34 | <input type="hidden" name="uid" id="uid" /> |
||
| 35 | <div class="form-group"> |
||
| 36 | <label class="col-sm-2 control-label">Username:</label> |
||
| 37 | <div class="col-sm-10"> |
||
| 38 | <label class="form-control" id="uid_label" disabled></label> |
||
| 39 | </div> |
||
| 40 | </div> |
||
| 41 | <div class="form-group"> |
||
| 42 | <label for="mail" class="col-sm-2 control-label">Email:</label> |
||
| 43 | <div class="col-sm-10"> |
||
| 44 | <input class="form-control" id="mail" name="mail" type="text" readonly/> |
||
| 45 | </div> |
||
| 46 | </div> |
||
| 47 | <div class="form-group"> |
||
| 48 | <label for="givenName" class="col-sm-2 control-label">First Name:</label> |
||
| 49 | <div class="col-sm-10"> |
||
| 50 | <input class="form-control" id="givenName" name="givenName" type="text"/> |
||
| 51 | </div> |
||
| 52 | </div> |
||
| 53 | <div class="clearfix visible-sm visible-md visible-lg"></div> |
||
| 54 | <div class="form-group"> |
||
| 55 | <label for="sn" class="col-sm-2 control-label">Last Name:</label> |
||
| 56 | <div class="col-sm-10"> |
||
| 57 | <input class="form-control" id="sn" name="sn" type="text" required/> |
||
| 58 | </div> |
||
| 59 | </div> |
||
| 60 | <div class="clearfix visible-sm visible-md visible-lg"></div> |
||
| 61 | <div class="form-group"> |
||
| 62 | <label for="displayName" class="col-sm-2 control-label">Burner Name:</label> |
||
| 63 | <div class="col-sm-10"> |
||
| 64 | <input class="form-control" id="displayName" name="displayName" type="text" /> |
||
| 65 | </div> |
||
| 66 | </div> |
||
| 67 | <div class="clearfix visible-sm visible-md visible-lg"></div> |
||
| 68 | <div class="form-group"> |
||
| 69 | <label for="c" class="col-sm-2 control-label">Country:</label> |
||
| 70 | <div class="col-sm-10"> |
||
| 71 | <select class="form-control bfh-countries" id="c" name="c" data-country="US"></select> |
||
| 72 | </div> |
||
| 73 | </div> |
||
| 74 | <div class="form-group"> |
||
| 75 | <label for="mobile" class="col-sm-2 control-label">Cell Number:</label> |
||
| 76 | <div class="col-sm-10"> |
||
| 77 | <input class="form-control bfh-phone" data-country="c" id="mobile" name="mobile" type="text"/> |
||
| 78 | </div> |
||
| 79 | </div> |
||
| 80 | <div class="clearfix visible-md visible-lg"></div> |
||
| 81 | <div class="form-group"> |
||
| 82 | <label for="postalAddress" class="col-sm-2 control-label">Street Address:</label> |
||
| 83 | <div class="col-sm-10"> |
||
| 84 | <textarea class="form-control" id="postalAddress" rows="2" name="postalAddress" type="text"></textarea> |
||
| 85 | </div> |
||
| 86 | </div> |
||
| 87 | <div class="clearfix visible-sm visible-md visible-lg"></div> |
||
| 88 | <div class="form-group"> |
||
| 89 | <label for="postalCode" class="col-sm-2 control-label">Postal/Zip Code:</label> |
||
| 90 | <div class="col-sm-10"> |
||
| 91 | <input class="form-control" id="postalCode" name="postalCode" type="text"/> |
||
| 92 | </div> |
||
| 93 | </div> |
||
| 94 | <div class="clearfix visible-sm visible-md visible-lg"></div> |
||
| 95 | <div class="form-group"> |
||
| 96 | <label for="l" class="col-sm-2 control-label">City:</label> |
||
| 97 | <div class="col-sm-10"> |
||
| 98 | <input class="form-control" id="l" name="l" type="text"/> |
||
| 99 | </div> |
||
| 100 | </div> |
||
| 101 | <div class="form-group"> |
||
| 102 | <label for="st" class="col-sm-2 control-label">State:</label> |
||
| 103 | <div class="col-sm-10"> |
||
| 104 | <select class="form-control bfh-states" data-country="c" id="st" name="st" type="text"></select> |
||
| 105 | </div> |
||
| 106 | </div> |
||
| 107 | <div class="clearfix visible-sm visible-md visible-lg"></div> |
||
| 108 | <div class="form-group"> |
||
| 109 | <label for="jpegPhotoBtn" class="col-sm-2 control-label">Profile Photo:</label> |
||
| 110 | <div class="col-sm-4"> |
||
| 111 | <input class="form-control" id="jpegPhotoBtn" name="jpegPhotoBtn" type="file" accept="image/*"/> |
||
| 112 | </div> |
||
| 113 | <div class="col-sm-4"> |
||
| 114 | <div id="gravatar"></div> |
||
| 115 | </div> |
||
| 116 | </div> |
||
| 117 | <div class="clearfix visible-md visible-lg"></div> |
||
| 118 | <div class="col-sm-2"> |
||
| 119 | <button class="btn btn-default" type="button" id="submit" onclick="update_profile()">Save Changes</button> |
||
| 120 | </div> |
||
| 121 | </form> |
||
| 122 | </fieldset> |
||
| 123 | <fieldset> |
||
| 124 | <legend>Other Options:</legend> |
||
| 125 | <button class="btn btn-default" onclick="delete_user()">Delete My Account…</button> |
||
| 126 | <button class="btn btn-default" onclick="reset_password()">Reset My Password…</button> |
||
| 127 | </fieldset> |
||
| 128 | </div>'; |
||
| 129 | |||
| 130 | $page->printPage(); |
||
| 131 | /* vim: set tabstop=4 shiftwidth=4 expandtab:*/ |
||
| 132 | ?> |
||
|
0 ignored issues
–
show
|
|||
| 133 |
Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.
A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.