From 8c98b90766ba2f34416561397ad5cd005c3c124d Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Tue, 6 Sep 2022 16:14:43 +0000 Subject: [PATCH] Unified header --- about.php | 31 +++---------------- account/account.php | 24 +-------------- account/login.php | 25 ++------------- account/password-reset.php | 25 ++------------- account/signup.php | 25 ++------------- default.json | 36 ++++++++++++++++++++++ image.php | 31 +++---------------- index.php | 63 ++++++-------------------------------- search.php | 29 ++---------------- setup.json | 6 ---- ui/header.php | 35 +++++++++++++++++++++ ui/required.php | 3 ++ upload.php | 30 +++--------------- 13 files changed, 108 insertions(+), 255 deletions(-) create mode 100644 default.json delete mode 100644 setup.json create mode 100644 ui/header.php diff --git a/about.php b/about.php index 8628cb0..3f7ce90 100644 --- a/about.php +++ b/about.php @@ -2,35 +2,14 @@ - - - Lynx Gallery - - - - - - - - - - - - - - - - - - - + +
@@ -60,7 +39,7 @@

To mrHDash...

- + \ No newline at end of file diff --git a/account/account.php b/account/account.php index 0da3f06..198a76c 100644 --- a/account/account.php +++ b/account/account.php @@ -2,29 +2,7 @@ - - - Lynx Gallery - - - - - - - - - - - - - - - - - - - + diff --git a/account/login.php b/account/login.php index 2a24a2a..6745d9c 100644 --- a/account/login.php +++ b/account/login.php @@ -2,31 +2,10 @@ - - - Lynx Gallery - - - - - - - - - - - - - - - - - - - + + - - - Lynx Gallery - - - - - - - - - - - - - - - - - - - + + - - - Lynx Gallery - - - - - - - - - - - - - - - - - - - + + Just like Minecraft!", + "If I were you, I'd run now", + "This is the part where I kill you", + "SILICA GEL \"DO NOT EAT\".", + "This was supposed to be a simple project", + "AAAAAAAAAAAAAAAAAAAA", + "Let me out", + "nice", + "I'm glad you're here", + "The weather is dry", + "Need me a man 👀", + "Gods die too.", + "Eat hotchip and lie" + ], + "database": { + "ip": "192.168.0.79", + "port": "3306", + "username": "uwu", + "password": "fennec621", + "database": "gallery" + }, + "testing": true, + "version": "15.08.22", + "license":"GPL 3.0" +} \ No newline at end of file diff --git a/image.php b/image.php index 4a447cd..b657db2 100644 --- a/image.php +++ b/image.php @@ -2,31 +2,10 @@ - - - Lynx Gallery - - - - - - - - - - - - - - - - - - - + + - + \ No newline at end of file diff --git a/index.php b/index.php index a12aea2..e97bc1c 100644 --- a/index.php +++ b/index.php @@ -1,38 +1,14 @@ + - - - Lynx Gallery - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - + + + + + +<?php echo $setup_json['website']['name']; ?> + + + + + + + + + + + + + + + + + + + + diff --git a/ui/required.php b/ui/required.php index 49ea994..1cf6fd5 100644 --- a/ui/required.php +++ b/ui/required.php @@ -27,6 +27,9 @@ if (is_file("index.php")) { } +$import_json = file_get_contents($root_dir."default.json"); +$setup_json = json_decode($import_json, true); + /* Connect to the server */ diff --git a/upload.php b/upload.php index f3f01a7..636ce56 100644 --- a/upload.php +++ b/upload.php @@ -2,29 +2,7 @@ - - - Lynx Gallery - - - - - - - - - - - - - - - - - - - +