예제 #1
0
파일: index.php 프로젝트: hughnguy/php
                 die;
             }
         }
     } else {
         $loggers['audit']->notice("Attempted to create student account with invalid email/student number");
         if (ctype_digit($_POST['student_num'])) {
             header('location:index.php?page=first-time-user&mode=bad_email_student_num&email=' . $_POST['email'] . '&student_num=' . $_POST['student_num']);
         } else {
             header('location:index.php');
         }
         die;
     }
 } else {
     if ($_GET['page'] === "activate-first-time-user") {
         //Double check the users registration confirmation link
         $activation_status = $model->validateNewUserConfirmationLink($_GET);
         $loggers['audit']->info("Student account activation attempt: {$activation_status}");
         $l10n->addResource(__DIR__ . '/l10n/first-time-user-activation-result.json');
         require_once FS_PHP . '/header-external.php';
         require_once 'views/first-time-user-activation-result.php';
         require_once FS_PHP . '/footer-external.php';
     } else {
         if ($_GET['page'] === "forgot-password") {
             //The user has chosen to reset their password- show them the form
             $l10n->addResource(__DIR__ . '/l10n/forgot-password.json');
             require_once FS_PHP . '/header-external.php';
             require_once 'views/forgot-password.php';
             require_once FS_PHP . '/footer-external.php';
         } else {
             if ($_GET['page'] === "faq") {
                 //The user has clicked on the faq link