コード例 #1
0
ファイル: index_backup.php プロジェクト: sarahbx/moers
function displaySystemOfflineYear()
{
    echoMainHeader();
    echo "<h2>System offline for updates.</h2>\n";
    echo "<h3>Will be online again by April 5, 2010 12:00am EST</h3>\n";
    echo "<h4>Thank you for your continued patience.<br />Working on making it better for you. :)<br />-Sarah</h4>\n";
    echoMainFooter();
    die;
}
コード例 #2
0
ファイル: forgot.php プロジェクト: sarahbx/moers
function displayForgotForm()
{
    echoMainHeader();
    echo "You forgot your password?!<br>\n";
    echo "<br>\n";
    echo "<form action=\"forgot.php\" method=\"post\">\n";
    echo "<table border=\"0\">\n";
    echo "<tr><td>Email:</td><td>\n";
    echo "<input type=\"text\" name=\"email\" maxlength=\"60\">\n";
    echo "</td></tr>\n";
    echo "<tr><th colspan=\"2\"><input type=\"submit\" name=\"submit\" value=\"Submit\"></th></tr> </table>\n";
    echo "</form>\n";
    echo "<font size=\"5\"><b><u>The email address you registered with must be entered. Your username and a temporary password will be emailed to you</u></b></font><br>\n";
    echoMainFooter();
}
コード例 #3
0
ファイル: main.php プロジェクト: sarahbx/moers
function displayMainPage()
{
    $query = "SELECT username, admin FROM users WHERE sha256_user = '******'ID') . "'";
    $check = mysql_query($query) or die(mysql_error());
    $info = mysql_fetch_array($check);
    echoMainHeader();
    echo "<div>\n";
    echo "Welcome <b>'" . $info['username'] . "'</b> ";
    if ($info['admin'] == 1) {
        echo " | <a href=\"#\" onClick=\"main_setBodyFrame('body.php')\">Home Page</a>\n";
        echo " | <a href=\"#\" onClick=\"main_setBodyFrame('admin.php')\">Admin Page</a>\n";
    }
    echo "</div>\n";
    echo "<div class=\"class_body\" id=\"div_body\">\n";
    echo "<script language=\"javascript\" type=\"text/javascript\">main_showLoader();</script>\n";
    echo "<iframe class=\"class_iframe_body\" id=\"iframe_body\" src=\"body.php\"></iframe>\n";
    echo "</div>\n";
    echoMainFooter();
}
コード例 #4
0
ファイル: register.php プロジェクト: sarahbx/moers
    $message .= "--{$mime_boundary}--\n\n";
    if (sendEmail($to, $from, $subject, $message) != false) {
        echo "<h1>Registered</h1>\n";
        echo "Thank you, you have registered. An email has been sent to " . $to . " \n";
        echo "with your username and temporary password. Depending on internal server traffic, this may take some time.<br><br>\n";
        echo "When you receive your temporary password you may <a href=\"index.php\">login</a> to continue.\n";
    } else {
        echo "<h1>Internal Email Error. Please contact administrator at " . $email_Administrator . "</h1>\n";
    }
}
function displayRegisterForm()
{
    echo file_get_contents("html/register.html");
}
//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
////////////BEGIN SCRIPT EXECUTION BELOW//////////////////////
//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
if (!isSSL()) {
    header("Location: logout.php");
} else {
    echoMainHeader();
    if (isset($_POST['submit'])) {
        registerFormSubmitted();
    } else {
        displayRegisterForm();
    }
    echoMainFooter();
    die;
}