From f6233a0cbfd5c2143c431372be034cb9a1577550 Mon Sep 17 00:00:00 2001 From: AkisYTB3 Date: Sat, 20 Jan 2024 16:04:27 +0100 Subject: [PATCH] Basically init iguess? --- .gitignore | 9 +++++++++ config.php | 3 +++ login.php | 24 ++++++++++++++++++++++++ logout.php | 6 ++++++ main.php | 18 ++++++++++++++++++ pages/index.html | 0 pages/login.html | 0 pages/register.html | 0 register.php | 24 ++++++++++++++++++++++++ styles/index.css | 0 styles/login.css | 0 styles/register.css | 0 styles/style.css | 21 +++++++++++++++++++++ 13 files changed, 105 insertions(+) create mode 100644 config.php create mode 100644 login.php create mode 100644 logout.php create mode 100644 main.php create mode 100644 pages/index.html create mode 100644 pages/login.html create mode 100644 pages/register.html create mode 100644 register.php create mode 100644 styles/index.css create mode 100644 styles/login.css create mode 100644 styles/register.css create mode 100644 styles/style.css diff --git a/.gitignore b/.gitignore index b074d79..47b4925 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,12 @@ *.sass.map *.scss.map +secrets +secrets/ +secrets/mysql.php +/secrets +/secrets/ +/secrets/mysql.php + +LICENSE.md +LICENSE diff --git a/config.php b/config.php new file mode 100644 index 0000000..0b410c0 --- /dev/null +++ b/config.php @@ -0,0 +1,3 @@ + diff --git a/login.php b/login.php new file mode 100644 index 0000000..ff94f57 --- /dev/null +++ b/login.php @@ -0,0 +1,24 @@ + diff --git a/logout.php b/logout.php new file mode 100644 index 0000000..1bcfd44 --- /dev/null +++ b/logout.php @@ -0,0 +1,6 @@ + diff --git a/main.php b/main.php new file mode 100644 index 0000000..677c382 --- /dev/null +++ b/main.php @@ -0,0 +1,18 @@ + diff --git a/pages/index.html b/pages/index.html new file mode 100644 index 0000000..e69de29 diff --git a/pages/login.html b/pages/login.html new file mode 100644 index 0000000..e69de29 diff --git a/pages/register.html b/pages/register.html new file mode 100644 index 0000000..e69de29 diff --git a/register.php b/register.php new file mode 100644 index 0000000..8d40bb1 --- /dev/null +++ b/register.php @@ -0,0 +1,24 @@ +Login here."; + } else { + echo "Error: " . mysqli_error($mysqli); + } +} +?> diff --git a/styles/index.css b/styles/index.css new file mode 100644 index 0000000..e69de29 diff --git a/styles/login.css b/styles/login.css new file mode 100644 index 0000000..e69de29 diff --git a/styles/register.css b/styles/register.css new file mode 100644 index 0000000..e69de29 diff --git a/styles/style.css b/styles/style.css new file mode 100644 index 0000000..1f42f1e --- /dev/null +++ b/styles/style.css @@ -0,0 +1,21 @@ +/* Common styles for all pages */ +body { + font-family: Arial, sans-serif; + margin: 0; + padding: 0; +} + +h2 { + text-align: center; +} + +form { + max-width: 300px; + margin: 0 auto; +} + +a { + display: block; + margin-top: 10px; + text-align: center; +}