Completed
Push — master ( 047121...54c8bf )
by Patrick
02:58 queued 01:25
created

index.php (4 issues)

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);
0 ignored issues
show
The call to ProfilesPage::addWellKnownJS() has too many arguments starting with false.

This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.

If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.

In this case you can add the @ignore PhpDoc annotation to the duplicate definition and it will be ignored.

Loading history...
7
8
$page->body .= '
9
    <h1>Welcome to the Burning Flipside Profile System</h1>
10
    <p>This system allows you to login to the new and improved Burning Flipside website systems.</p>
11
    <p>This system will contain all your private data seperately so as to help prevent unwanted display of your data on '.$page->wwwUrl.'.
0 ignored issues
show
The property wwwUrl does not seem to exist in ProfilesPage.

An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.

If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.

Loading history...
12
       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>';
13
14
if($page->user !== null)
15
{
16
    if(!$page->user->isProfileComplete())
17
    {
18
        $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);
19
    }
20
    $page->body .= '<h1>Need to reset your password?</h1>
21
    <p>You can reset your password <a href="'.$page->resetUrl.'">here.</a></p>';
0 ignored issues
show
The property resetUrl does not seem to exist in ProfilesPage.

An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.

If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.

Loading history...
22
}
23
else
24
{
25
    $page->body .= '
26
    <h1>Need to register for the first time?</h1>
27
    <p>You can sign up for an account <a href="'.$page->registerUrl.'">here</a>.
0 ignored issues
show
The property registerUrl does not seem to exist in ProfilesPage.

An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.

If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.

Loading history...
28
    <h1>Forgot your username or password?</h1>
29
    <p>You can lookup a forgotten username or reset your password <a href="'.$page->resetUrl.'">here.</a></p>';
30
}
31
32
$page->printPage();
33
/* vim: set tabstop=4 shiftwidth=4 expandtab: */
34