From 56c249390eae3cf47fe40836d0bd34fb869c4446 Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Fri, 29 Jan 2021 17:25:59 +0800 Subject: [PATCH] index.php: make the code look cleaner. --- index.php | 174 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 90 insertions(+), 84 deletions(-) diff --git a/index.php b/index.php index 1f3fb3e..3b6ee50 100644 --- a/index.php +++ b/index.php @@ -1,133 +1,139 @@ +





-
+


Lab Report Repository



-
- - -
+
+ + +

- +

Sign in

+
-
+
-
- - Student ID / Email - - - Password - -
-
Reset my password + + + Student ID / Email + + + Password + +
+
Reset my password - '; - $_SESSION['info_login']=null; - } - - - // wrong pass - if(isset($_SESSION['wrong_pass'])) { - echo '
'; - $_SESSION['wrong_pass']=null; - } - - - if(isset($_SESSION['infoChangePassword'])) { - echo '
'; - $_SESSION['infoChangePassword']=null; - } - + + error_reporting(E_ALL); -
- -
-
-
+ if(isset($_SESSION['info_login'])) { + echo '
'; + $_SESSION['info_login'] = null; + } -
+ // wrong password + if(isset($_SESSION['wrong_pass'])) { + echo '
'; + $_SESSION['wrong_pass'] = null; + } + + + if(isset($_SESSION['infoChangePassword'])) { + echo '
'; + $_SESSION['infoChangePassword'] = null; + } + + + ?> + + + +
+ +
+ +
+ + +

Sign up

-
+
- - Student ID - - Your Passport / National ID - -
-
Click Next to set up password + Student ID + +
+ +
+
Click Next to set up password - '.$_SESSION['info_signup1'].'
'; - $_SESSION['info_signup1']=null; - } - - ?> - + '.$_SESSION['info_signup1'].'
'; + $_SESSION['info_signup1'] = null; + } + + ?> + +
+ +
- + +
- - -
- + LRRS was originally developed as a software engineering course project by Mohamed Nor and Elmahdi Houzi. + Please submit your suggestions or bug reports to lanhui _at_ zjnu.edu.cn. + Last updated on 18/04/2020 by Ashly. More information ... + - + +