diff --git a/admin/.htpasswd b/admin/.htpasswd index c542b69..74bd6e3 100644 --- a/admin/.htpasswd +++ b/admin/.htpasswd @@ -1 +1 @@ -admin:hDY.k8Ux6MIdE \ No newline at end of file +admin:Og/D.6AwsHGMs diff --git a/bank/README.txt b/bank/README.txt deleted file mode 100644 index 72756dc..0000000 --- a/bank/README.txt +++ /dev/null @@ -1,2 +0,0 @@ -folder -> user -> data (original pictures) (organized by date?) - -> modified (processed pictures) diff --git a/login.php b/login.php index e9bb9e4..b400559 100644 --- a/login.php +++ b/login.php @@ -35,7 +35,8 @@ // If result matched $myemail and $mypassword, table row must be 1 row if($count==1){ // Register $myusername, $mypassword and $myemail and redirect to file "login_success.php" - session_register("myusername"); + //$_SESSION["myemail"] = $myemail; + session_register("myemail"); header("location:registeredarea.php"); exit; } @@ -47,7 +48,8 @@ } // if the session is not registered - if(session_is_registered("myusername") == false) { + //if(!isset($_SESSION['email']) AND !empty($_POST['email']){ + if(session_is_registered("myemail") == false) { echo "Session is not registered, please log in"; echo ""; } diff --git a/registeredarea.php b/registeredarea.php index ca42f37..dba770d 100644 --- a/registeredarea.php +++ b/registeredarea.php @@ -1,13 +1,6 @@ - -"; -} -?> @@ -18,14 +11,11 @@