-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
34 lines (31 loc) · 1.45 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
require_once('class.ProfilesPage.php');
$page = new ProfilesPage('Burning Flipside Profiles');
$page->addWellKnownJS(JS_CHEET, false);
$page->addJS('js/index.js');
$page->body .= '
<h1>Welcome to the Burning Flipside Profile System</h1>
<p>This system allows you to login to the new and improved Burning Flipside website systems.</p>
<p>This system will contain all your private data seperately so as to help prevent unwanted display of your data on '.$page->wwwUrl.'.
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>';
if($page->user !== null)
{
if(!$page->user->isProfileComplete())
{
$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);
}
$page->body .= '<h1>Need to reset your password?</h1>
<p>You can <a href="'.$page->resetUrl.'">reset your password</a>.</p>';
}
else
{
$page->body .= '
<h1>Need to register for the first time?</h1>
<p>You can <a href="'.$page->registerUrl.'">sign up for an account</a>.
<h1>Forgot your username or password?</h1>
<p>You can <a href="'.$page->resetUrl.'">lookup a forgotten username or reset your password</a>.</p>';
}
$page->printPage();
/* vim: set tabstop=4 shiftwidth=4 expandtab: */