Completed
Pull Request — develop (#51)
by Patrick
02:44
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');
6
$page->addWellKnownJS(JS_CHEET, false);
7
$page->addJSByURI('js/index.js');
8
9
$page->body .= '
10
<div id="content">
11
    <h1>Welcome to the Burning Flipside Profile System</h1>
12
    <p>This system allows you to login to the new and improved Burning Flipside website systems.</p>
13
    <p>This system will contain all your private data seperately so as to help prevent unwanted display of your data on www.burningflipside.com.
14
       Additionally, completing your profile on this site will enable you to complete ticket requests and sign up for volunteer shifts even faster than before.</p>';
15
16
if($page->user !== null)
17
{
18
    if(!$page->user->isProfileComplete())
19
    {
20
        $page->addNotification('Your profile is not yet complete. Click <a href="profile.php" class="alert-link">here</a> to complete your profile.', $page::NOTIFICATION_WARNING);
21
    }
22
    $page->body .= '<h1>Need to reset your password?</h1>
23
    <p>You can reset your password <a href="'.$page->resetUrl.'">here.</a></p>
24
</div>';
25
}
26
else
27
{
28
    $page->body .= '
29
    <h1>Need to register for the first time?</h1>
30
    <p>You can sign up for an account <a href="'.$page->registerUrl.'">here</a>.
31
    <h1>Forgot your username or password?</h1>
32
    <p>You can lookup a forgotten username or reset your password <a href="'.$page->resetUrl.'">here.</a></p>
33
</div>';
34
}
35
36
$page->printPage();
37
?>
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...
38