Completed
Push — master ( d0bd11...fbf230 )
by
unknown
10s
created
Severity

Upgrade to new PHP Analysis Engine

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
require_once('class.ProfilesPage.php');
5
$page = new ProfilesPage('Burning Flipside Profiles Reset');
6
$page->addWellKnownJS(JS_BOOTBOX);
7
$page->addJSByURI('js/reset.js');
8
9
if($page->user !== false && $page->user !== null)
10
{
11
    //User is logged in. They can reset their password...
12
    $page->body = '
13
        <div id="content">
14
            <h3>Burning Flipside Password Reset</h3>
15
            <div class="form-group">
16
                <label for="oldpass" class="col-sm-2 control-label">Current Password:</label>
17
                <div class="col-sm-10">
18
                    <input class="form-control" type="password" name="oldpass" id="oldpass" required/>
19
                </div>
20
            </div>
21
            <div class="clearfix visible-sm visible-md visible-lg"></div>
22
            <div class="form-group">
23
                <label for="newpass" class="col-sm-2 control-label">New Password:</label>
24
                <div class="col-sm-10">
25
                    <input class="form-control" type="password" name="newpass" id="newpass" required/>
26
                </div>
27
            </div>
28
            <div class="clearfix visible-sm visible-md visible-lg"></div>
29
            <div class="form-group">
30
                <label for="confirm" class="col-sm-2 control-label">Confirm Password:</label>
31
                <div class="col-sm-10">
32
                    <input class="form-control" type="password" name="confirm" id="confirm" required/>
33
                </div>
34
            </div>
35
            <div class="clearfix visible-sm visible-md visible-lg"></div>
36
            <button name="submit" class="btn btn-primary" onclick="change_password();">Change Password</button>
37
        </div>
38
    ';
39
}
40
else
41
{
42
    $page->body = '
43
        <div id="content">
44
            <h3>Burning Flipside Login Reset/Recover</h3>
45
            <div class="radio">
46
                <label>
47
                    <input type="radio" name="forgot" value="user"/>
48
                    Forgot Username
49
                </label>
50
            </div>
51
            <div class="radio">
52
                <label>
53
                    <input type="radio" name="forgot" value="pass"/>
54
                    Forgot Password
55
                </label>
56
            </div>
57
            <div class="clearfix visible-sm visible-md visible-lg"></div>
58
            <button name="submit" class="btn btn-primary" onclick="what_did_they_forget();">Next</button>
59
        </div>';
60
}
61
62
$page->printPage();
63
// vim: set tabstop=4 shiftwidth=4 expandtab:
64
?>
0 ignored issues
show
It is not recommended to use PHP's closing tag ?> in files other than templates.

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.

Loading history...
65
66
67