diff --git a/assets/ui/header.php b/assets/ui/header.php
index e2a3f2c..b12ed54 100644
--- a/assets/ui/header.php
+++ b/assets/ui/header.php
@@ -1,10 +1,32 @@
+get_image_info($conn, $_GET['id']);
+ }
+?>
+
+
+
+
+
+
+
+
+"/>
+
+
+
+
+/
+
+
+
-
diff --git a/css/main.css b/css/main.css
index 13857bf..87b0b58 100644
--- a/css/main.css
+++ b/css/main.css
@@ -709,7 +709,7 @@ nav .btn {
.upload-root > img {
margin: 0 auto;
max-width: 100%;
- max-height: 20rem;
+ max-height: 15rem;
border-radius: -0.3rem;
display: flex;
flex-direction: column;
diff --git a/css/scss/_body.scss b/css/scss/_body.scss
index 769cd88..369bb17 100644
--- a/css/scss/_body.scss
+++ b/css/scss/_body.scss
@@ -487,7 +487,7 @@
margin: 0 auto;
max-width: 100%;
- max-height: 20rem;
+ max-height: 15rem;
border-radius: calc($rad - 0.7rem);
diff --git a/image.php b/image.php
index 70a7184..280cee1 100644
--- a/image.php
+++ b/image.php
@@ -1,4 +1,14 @@
-
+
@@ -11,14 +21,6 @@
get_image_info($conn, $_GET['id']);
// Check if image is avalible
- if (isset($image['imagename'])) {
+ if (!empty($image['imagename']) && isset($image['imagename'])) {
$image_present = True;
} else {
?>
diff --git a/upload.php b/upload.php
index 6b6b192..29c4b2c 100644
--- a/upload.php
+++ b/upload.php
@@ -84,6 +84,7 @@
});
// Empty values
+ imagePreview.src = "";
$("#image").val("");
$("#alt").val("");
$("#tags").val("");