From 248154f37ded6a188ca773aa456061ef5a8f4bc4 Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Wed, 14 Sep 2022 18:59:02 +0000 Subject: [PATCH] Show crown next to Admins' names --- assets/icons/crown-simple.svg | 1 + image.php | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 assets/icons/crown-simple.svg diff --git a/assets/icons/crown-simple.svg b/assets/icons/crown-simple.svg new file mode 100644 index 0000000..0ae343b --- /dev/null +++ b/assets/icons/crown-simple.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/image.php b/image.php index 24e66d8..6197873 100644 --- a/image.php +++ b/image.php @@ -173,7 +173,11 @@
Author: ".$image_author."

"; + if ($user_info->is_admin($image['author'])) { + echo "

Author: ".$image_author."

"; + } else { + echo "

Author: ".$image_author."

"; + } // Image ID echo "

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

";