diff --git a/about.php b/about.php index 6ff456b..18e1d22 100644 --- a/about.php +++ b/about.php @@ -13,44 +13,29 @@ ?>
-

What is this?

-

This Gallery is a smol project I originally started to control the images on my main page, but quickly turned into something much bigger...

-

What Do I want this to become in the future? No clue, but I do want this to be usable by others, if its a file they download a docker image they setup on your own web server.

-

Will it become that any time soon? No, but. I am going to work on this untill it becomes what I want it to be!

+

+

+

Version

+ +
+ +

TOS

+

+

This project is protected under the license by

+ +
+ +

Credits to development

+

Carty: Kickstarting development and SQL/PHP development

+

Jeetix: Helping patch holes in some features

+

mrHDash, Verg, Fennec, Carty, Jeetix and everyone else for helping with early bug testing

+

Phosphor for providing nice SVG icons


-

Can you add "A" or "B"?

-

No.

- -
- -

How do I use this!

-

First you must obtain the invite code. If you don't have one and are interested in trying this, feel free to DM me on Telegram!

-

But once you're done doing that, you can start making your account at the signup page here.

-

From there you should be able to go and login at this fancy page here!

-

Now you should see "Welcome (your username)" at the homepage. From there navigate to the navbar and click on the upload button. Choose your file, enter the description and your image is up!

- -
- -

Where to find me

- - - My website! - - - - Telegram - - - - Twitter - - -

Credits!

-

To Carty for being super cool again and helping me get started with SQL and PHP!

-

To Phosphor for providing nice SVG icons.

-

To mrHDash...

+

Development

+ Project Github + Creators Twitter
diff --git a/app/settings/manifest.json b/app/settings/manifest.json new file mode 100644 index 0000000..1f3644f --- /dev/null +++ b/app/settings/manifest.json @@ -0,0 +1,33 @@ +{ + "website_name": "Only Legs", + "website_description": "A simple PHP gallery with multiple users in mind", + "tos": "When making an account and interacting with the login/signup page, you agree to have your IP logged for banning purposes.", + "welcome_msg": [ + "*internal screaming*", + "Don't forget to drink water!", + "Bruh", + "Fluffy made this!", + "maybe", + "I'm gay", + "I wish we were better strangers.", + "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", + "The world will not be destroyed by those who do evil, but by those who watch them and do nothing." + ], + "license":"GPL 3.0", + "version": "22.09.20", + "user_name": "Michal", + "is_testing": true, + "upload_max": "20" +} \ No newline at end of file diff --git a/app/settings/settings.php b/app/settings/settings.php index 9c90437..84cf2fa 100644 --- a/app/settings/settings.php +++ b/app/settings/settings.php @@ -8,22 +8,13 @@ | the default background and accent colour |------------------------------------------------------------- */ -$user_import = file_get_contents("app/settings/user_settings.json"); +$user_import = file_get_contents(__DIR__."/manifest.json"); $user_settings = json_decode($user_import, true); -foreach ($user_settings->data as $settings_list) { - foreach ($settings_list->website as $website) { - foreach ($website->database as $database) { +foreach ($user_settings->data as $website) { + foreach ($website->debug as $debug) { - } - foreach ($website->debug as $debug) { - - } - foreach ($website->plugins as $plugins) { - - } } } -$database = $user_settings["website"]["database"]; + $debug = $user_settings["website"]["debug"]; -$plugins = $user_settings["website"]["plugins"]; diff --git a/app/settings/user_settings.json b/app/settings/user_settings.json deleted file mode 100644 index 9c13fc2..0000000 --- a/app/settings/user_settings.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "website": { - "name": "Only Legs", - "description": "A simple gallery with multiple users in mind", - "welcome_msg": [ - "*internal screaming*", - "Don't forget to drink water!", - "Bruh", - "Fluffy made this!", - "maybe", - "I'm gay", - "I wish we were better strangers.", - "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", - "The world will not be destroyed by those who do evil, but by those who watch them and do nothing." - ], - "license":"GPL 3.0", - "database": { - "ip": "192.168.0.79:3306", - "username": "uwu", - "password": "fennec621", - "database": "gallery" - }, - "debug": { - "testing": true, - "version": "22.09.12" - } - }, - "plugins": { - "sniffle": { - "location": "Sniffle/sniffle.js", - "using": true - }, - "flyout": { - "location": "Flyout/flyout.js", - "using": true - } - } -} \ No newline at end of file diff --git a/css/main.css b/css/main.css index 2d0dec7..aec0d1d 100644 --- a/css/main.css +++ b/css/main.css @@ -940,12 +940,9 @@ nav .btn { |------------------------------------------------------------- */ footer { - display: flex; - flex-direction: row; - flex-wrap: wrap; - justify-content: space-around; margin: 0 auto; width: calc(100% - 1.4rem); + text-align: center; } footer p { margin: 0 0.5rem; diff --git a/css/scss/_footer.scss b/css/scss/_footer.scss index 0f8ff7e..c32c2a3 100644 --- a/css/scss/_footer.scss +++ b/css/scss/_footer.scss @@ -4,12 +4,11 @@ |------------------------------------------------------------- */ footer { - @include flexLeft(space-around); - margin: 0 auto; width: calc(100% - 1.4rem); + text-align: center; p { margin: 0 0.5rem; diff --git a/index.php b/index.php index 6e93774..2cbfd16 100644 --- a/index.php +++ b/index.php @@ -9,13 +9,15 @@ - + +?>
".$welcome_message[array_rand($welcome_message, 1)]."

"; ?>
diff --git a/ui/footer.php b/ui/footer.php index 38b7792..d111e5e 100644 --- a/ui/footer.php +++ b/ui/footer.php @@ -1,11 +1,5 @@ -