From dcf61354050bfe81d6983f1aec34d7d3d6733a0d Mon Sep 17 00:00:00 2001 From: Alex Vitkov Date: Fri, 29 Jan 2021 13:43:53 +0200 Subject: index.html + login.html => index.php those files had the entire HTML tree duplicated, which would make it difficult to make any changes to the front end. this commit combines the two files in one, with some front-end JS to switch between the login and register forms. --- index.php | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 index.php (limited to 'index.php') diff --git a/index.php b/index.php new file mode 100644 index 0000000..3e92167 --- /dev/null +++ b/index.php @@ -0,0 +1,77 @@ + + + + + shady file upload + + +
+
+ + +
+
+
+ +
+ +
+

file upload service

+

that just about works

+

most of the time

+
+
+ +
+
+

Get started

+
+

Username

+ + + +

Email address

+ + + +

Password

+ + + +

Repeat Password

+ + + +

Already have an account? Log in +

+
+
+ +
+
+

Login

+
+

Username

+ + +

Password

+ + +

Don't have an account? Sign up +

+
+
+ + +
+
+ + +
+ + + + + -- cgit v1.2.3 From fdea65e03218d175bcc5d5f2bbb426688a6cf42e Mon Sep 17 00:00:00 2001 From: Alex Vitkov Date: Fri, 29 Jan 2021 13:48:48 +0200 Subject: hero_form => login_form or register_form as they are now in the same file and conflicted --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 3e92167..90b3f56 100644 --- a/index.php +++ b/index.php @@ -25,7 +25,7 @@
-
+

Get started

Username

@@ -50,7 +50,7 @@
- +

Login

Username

-- cgit v1.2.3 From f4d5d71da4f94bf9bc87505e745eed913c9858b9 Mon Sep 17 00:00:00 2001 From: Alex Vitkov Date: Fri, 29 Jan 2021 14:01:41 +0200 Subject: Login is now remembered in $_SESSION['username'] If it is set, user is logged in, if it is unset user is not logged in --- index.php | 68 ++++++++++++++------------------------------------------------- 1 file changed, 15 insertions(+), 53 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 90b3f56..b42c5f2 100644 --- a/index.php +++ b/index.php @@ -2,7 +2,8 @@ - shady file upload + shady file upload +
@@ -12,66 +13,27 @@
-
-
- -
-
-

file upload service

-

that just about works

-

most of the time

-
-
-
- -

Get started

-
-

Username

- - + -

Email address

- - - -

Password

- - - -

Repeat Password

- - - -

Already have an account? Log in -

- -
- -
-
-

Login

-
-

Username

- - -

Password

- - -

Don't have an account? Sign up -

-
-
+Log out +
-
- - - + -- cgit v1.2.3 From 8ba2c35a306719932307ec5f99701101637e1fd2 Mon Sep 17 00:00:00 2001 From: Alex Vitkov Date: Fri, 29 Jan 2021 14:45:52 +0200 Subject: Menu bar, different .php pages for logged in/not logged in --- index.php | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index b42c5f2..21d56f0 100644 --- a/index.php +++ b/index.php @@ -1,3 +1,6 @@ + @@ -10,23 +13,32 @@
-
+
+
    + + +
  • +
  • Sign out
  • - + + +
  • Sign up
  • +
  • Log in
  • + + +
+ +
-Log out +
@@ -34,6 +46,5 @@
- -- cgit v1.2.3 From 4417f8f23f949d549b93fe7c7227e134b6df5e9d Mon Sep 17 00:00:00 2001 From: Alex Vitkov Date: Fri, 29 Jan 2021 15:11:39 +0200 Subject: Sign out button now signs out --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.php') diff --git a/index.php b/index.php index 21d56f0..645e31f 100644 --- a/index.php +++ b/index.php @@ -20,7 +20,7 @@
  • -
  • Sign out
  • +
  • Sign out
  • -- cgit v1.2.3