Album example
-Something short and leading about the collection below—its contents, the creator, etc. Make it short and sweet, but not too short so folks don’t simply skip over it entirely.
-diff --git a/add_item.php b/add_item.php index bb1d0c3..eb9952f 100644 --- a/add_item.php +++ b/add_item.php @@ -13,9 +13,9 @@ $ItemImage = $_POST['ItemImage']; #--- check if the provided Image-Link is a real image: -$headers = get_headers($ItemImage, 1); +$headers = array_change_key_case(get_headers($ItemImage, 1), CASE_LOWER); // make all keys LowerCase -if (strpos($headers['Content-Type'], 'image/') !== false) { +if (strpos($headers['content-type'], 'image/') !== false) { $strippedimagepath = strtok($ItemImage, '?'); $imageLocalLink = 'data/images/' . uniqid() . '.' . pathinfo($strippedimagepath, PATHINFO_EXTENSION); echo "ImageLink: " . $imageLocalLink; diff --git a/include/listgenerator.php b/include/listgenerator.php index 08744d1..3107fc3 100644 --- a/include/listgenerator.php +++ b/include/listgenerator.php @@ -1,5 +1,7 @@
' . $row['description'] . '
+ '); + } + } else { + echo (' +Diese Liste gibt es nicht mehr
+ '); + } + + echo (' +Something short and leading about the collection below—its contents, the creator, etc. Make it short and sweet, but not too short so folks don’t simply skip over it entirely.
-