From d548f967c58521908114e0304ca6a4eca6e02766 Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Tue, 13 Sep 2022 13:24:48 +0000 Subject: [PATCH] Setting time to viwers local Fixing image sizes Dont allow HTML in Description --- css/main.css | 3 ++- css/scss/_body.scss | 3 ++- image.php | 25 ++++++++++++++++++++----- ui/required.php | 2 +- 4 files changed, 25 insertions(+), 8 deletions(-) diff --git a/css/main.css b/css/main.css index 19b915f..d638a89 100644 --- a/css/main.css +++ b/css/main.css @@ -300,6 +300,7 @@ nav .btn { width: 100%; max-height: 50vh; height: auto; + min-height: 30vh; display: flex; background-color: rgba(21, 21, 21, 0.7333333333); -webkit-backdrop-filter: blur(8px); @@ -314,7 +315,7 @@ nav .btn { } } .image { - margin: 0 auto; + margin: auto; max-width: 100%; width: auto; max-height: inherit; diff --git a/css/scss/_body.scss b/css/scss/_body.scss index 5fd8f76..40cf3e8 100644 --- a/css/scss/_body.scss +++ b/css/scss/_body.scss @@ -175,6 +175,7 @@ width: 100%; max-height: 50vh; height: auto; + min-height: 30vh; display: flex; @@ -193,7 +194,7 @@ } .image { - margin: 0 auto; + margin: auto; max-width: 100%; width: auto; diff --git a/image.php b/image.php index 8d0c91f..491e938 100644 --- a/image.php +++ b/image.php @@ -163,7 +163,7 @@

Description

-

+

@@ -178,9 +178,24 @@ // Image ID echo "

ID: ".$image['id']."

"; - // Image Upload date - echo "

Last updated: +0 ".$image['upload']."

"; + // Last time image was updated + $update_time = new DateTime($image['upload']); + echo "

Last updated: ".$update_time->format('d/m/Y H:i:s T')."

"; ?> +
"; flyoutShow(header, description, actionBox); - $('#descriptionInput').val(""); - + $('#descriptionInput').val(""); + $("#descriptionConfirm").submit(function(event) { event.preventDefault(); var descriptionInput = $("#descriptionInput").val(); diff --git a/ui/required.php b/ui/required.php index a33c97f..abe437a 100644 --- a/ui/required.php +++ b/ui/required.php @@ -42,7 +42,7 @@ include "app/server/secrete.php"; /* Classes */ -include 'app/app.php'; +require_once 'app/app.php'; ?>