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 | |||
| 5 | //Redirect users to https |
||
| 6 | if($_SERVER["HTTPS"] != "on") |
||
| 7 | { |
||
| 8 | header("Location: https://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]); |
||
| 9 | exit(); |
||
| 10 | } |
||
| 11 | View Code Duplication | if(strpos($_SERVER['REQUEST_URI'], '//') !== false) |
|
| 12 | { |
||
| 13 | $uri = str_replace('//', '/', $_SERVER['REQUEST_URI']); |
||
| 14 | header("Location: https://".$_SERVER["HTTP_HOST"].$uri); |
||
| 15 | exit(); |
||
| 16 | } |
||
| 17 | |||
| 18 | require_once('class.FlipsideCAPTCHA.php'); |
||
| 19 | require_once('class.ProfilesPage.php'); |
||
| 20 | $page = new ProfilesPage('Burning Flipside Profiles Registration'); |
||
| 21 | $page->addJS('/js/zxcvbn-async.js'); |
||
| 22 | |||
| 23 | $captcha = new FlipsideCAPTCHA(); |
||
| 24 | FlipSession::setVar('captcha', $captcha); |
||
| 25 | |||
| 26 | View Code Duplication | if(isset($_GET['return'])) |
|
| 27 | { |
||
| 28 | $return = '<input type="hidden" name="return" value="'.$_GET['return'].'"/>'; |
||
| 29 | } |
||
| 30 | else |
||
| 31 | { |
||
| 32 | $return = ''; |
||
| 33 | } |
||
| 34 | |||
| 35 | if(FlipSession::isLoggedIn()) |
||
| 36 | { |
||
| 37 | $page->addNotification('You are currently logged in to the system. Are you sure you want to register another account?'); |
||
|
0 ignored issues
–
show
|
|||
| 38 | } |
||
| 39 | |||
| 40 | $page->body .= ' |
||
| 41 | <div id="content"> |
||
| 42 | <form name="form" id="form" role="form"> |
||
| 43 | <fieldset> |
||
| 44 | <legend>Burning Flipside Profile Registration</legend> |
||
| 45 | </fieldset> |
||
| 46 | <div class="form-group"> |
||
| 47 | <label for="email" class="col-sm-2 control-label">Email:</label> |
||
| 48 | <div class="col-sm-10"> |
||
| 49 | <input class="form-control" type="email" name="mail" id="email" data-toggle="tooltip" data-placement="top" title="The email to use for this account. NOTE: You must be able to verify you own this email address by responding to an email." required/> |
||
| 50 | </div> |
||
| 51 | </div> |
||
| 52 | <div class="clearfix visible-sm visible-md visible-lg"></div> |
||
| 53 | <div class="row" style="min-height: 15px;"></div> |
||
| 54 | <div class="form-group"> |
||
| 55 | <label for="uid" class="col-sm-2 control-label">Username:</label> |
||
| 56 | <div class="col-sm-10"> |
||
| 57 | <input class="form-control" type="text" name="uid" id="uid" required/> |
||
| 58 | </div> |
||
| 59 | </div> |
||
| 60 | <div class="clearfix visible-sm visible-md visible-lg"></div> |
||
| 61 | <div class="row" style="min-height: 15px;"></div> |
||
| 62 | <div class="form-group"> |
||
| 63 | <label for="password" class="col-sm-2 control-label">Password:</label> |
||
| 64 | <div class="col-sm-10"> |
||
| 65 | <input type="password" name="password" id="password" class="pass form-control" data-toggle="tooltip" data-placement="top" title="Your password must be at least 4 characters long, contain a lower case letter, uppercase letter, and a number." required/> |
||
| 66 | </div> |
||
| 67 | </div> |
||
| 68 | <div class="clearfix visible-sm visible-md visible-lg"></div> |
||
| 69 | <div class="row" style="min-height: 15px;"></div> |
||
| 70 | <div class="form-group"> |
||
| 71 | <label for="password2" class="col-sm-2 control-label">Confirm Password:</label> |
||
| 72 | <div class="col-sm-10"> |
||
| 73 | <input class="form-control" type="password" name="password2" id="password2" required/> |
||
| 74 | </div> |
||
| 75 | </div> |
||
| 76 | <div class="clearfix visible-sm visible-md visible-lg"></div> |
||
| 77 | <div class="row" style="min-height: 15px;"></div> |
||
| 78 | <div class="form-group"> |
||
| 79 | '.$captcha->draw_captcha(true, true).' |
||
| 80 | </div> |
||
| 81 | <div class="clearfix visible-sm visible-md visible-lg"></div> |
||
| 82 | '.$return.' |
||
| 83 | <div class="form-group"> |
||
| 84 | <div class="col-sm-2"> |
||
| 85 | <button id="submit" type="submit" name="submit" class="btn btn-default">Register</button> |
||
| 86 | </div> |
||
| 87 | </div> |
||
| 88 | </form> |
||
| 89 | </div>'; |
||
| 90 | |||
| 91 | $page->printPage(); |
||
| 92 | // vim: set tabstop=4 shiftwidth=4 expandtab: |
||
| 93 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.