diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..085e8ba --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +Thumbs.db diff --git a/index.php b/index.php index 56a8889..6b865f5 100644 --- a/index.php +++ b/index.php @@ -5,7 +5,10 @@ Ahoj světe! - + + "; -$random_index = random_int(0, 2); + $images = [ "earth1.webp", @@ -23,6 +26,8 @@ $images = [ "earth3.jpg", ]; +$random_index = random_int(0, count($images) - 1); + // var_dump($images); $random_image = $images[$random_index]; @@ -31,6 +36,37 @@ $random_image = $images[$random_index]; Earth image + "Olívie, Olivia, Oliver", + 20241003 => "Bohumil", + // ... + 20241016 => "Havel", + // ... +]; + +echo "

Dnes má svátek: " . $name_days[date("Ymd")] . "

"; + +?> + +

Výpis obsahu adresáře

+ +"; +foreach ($files1 as $item) { + echo "
  • $item
  • "; +} +echo ""; + +?> +