diff --git a/20241114/241104/head.php b/20241114/241104/head.php new file mode 100644 index 0000000..35dc0d6 --- /dev/null +++ b/20241114/241104/head.php @@ -0,0 +1,69 @@ +$maxmeret) + { + $uploadOK = 0; + echo "Túl nagy állomány"; + } + + if ($kepkiterjesztes!="jpg" && $kepkiterjesztes!="png") + { + $uploadOK = 0; + echo "Nem megengedett képformátum"; + } + + if ($uploadOK==1) + { + + $vanmar = 0; + + if(file_exists($celfajl)){ + $vanmar = 1; + } + + if (move_uploaded_file($_FILES["kepfajl"]["tmp_name"],$celfajl)==true) + { + if ($vanmar == 0){ + $_SESSION["kepek"][] = $celfajl; + } + } + } +} + +$kepek = glob($celkonyvtar.'*'); + +foreach ($kepek as $value) +{ + echo ''; +} + +/* +if (isset($_SESSION["kepek"])) + { + foreach ($_SESSION["kepek"] as $value) + { + echo ''; + } + } +*/ +?> \ No newline at end of file diff --git a/20241114/241104/html.php b/20241114/241104/html.php new file mode 100644 index 0000000..91a2225 --- /dev/null +++ b/20241114/241104/html.php @@ -0,0 +1,24 @@ + + + + + + + + Képek kezelése + + + +

Képek feltöltése PHP-val

+
+ Név:
+
+ +
+ + + \ No newline at end of file diff --git a/20241114/241104/kepek/langos.jpg b/20241114/241104/kepek/langos.jpg new file mode 100644 index 0000000..106dd22 Binary files /dev/null and b/20241114/241104/kepek/langos.jpg differ diff --git a/20241114/241104/kepek/skull_1.jpg b/20241114/241104/kepek/skull_1.jpg new file mode 100644 index 0000000..95d4eb1 Binary files /dev/null and b/20241114/241104/kepek/skull_1.jpg differ