Move accessible files to public folders and adjust paths.

This commit is contained in:
2023-12-29 13:34:49 +01:00
parent e090fdc63d
commit 73073186c0
65 changed files with 202 additions and 450 deletions

View File

@@ -33,9 +33,9 @@ if (!isset($_POST['Speichern'])) {
$last = $result2->fetch_assoc();
$id = $last['last_insert_id()'];
$uploaddir = '../img/umgebung/bilder/';
$uploaddir = __DIR__ . '/../../../../public/img/umgebung/bilder/';
$uploadfile = $uploaddir . $_FILES['Foto']['name'];
move_uploaded_file($_FILES['Foto']['tmp_name'], $uploadfile);
$test = move_uploaded_file($_FILES['Foto']['tmp_name'], $uploadfile);
$src = imagecreatefromjpeg($uploadfile);
list($width, $height) = getimagesize($uploadfile);
if ($height > $width) {
@@ -55,4 +55,3 @@ if (!isset($_POST['Speichern'])) {
}
echo '<a href="index.php?section=fotos&t=bilder">Zurück zur Übersicht</a>';
}
?>

View File

@@ -32,6 +32,4 @@ if (!isset($_POST['Speichern'])) {
echo "Fehler beim L<>schen";
}
echo '<a href="index.php?section=fotos&t=bilder">Zurück zur Übersicht</a>';
}
?>
}

View File

@@ -33,5 +33,4 @@ if (!isset($_POST['Speichern'])) {
}
echo "Die Überschrift wurde gespeichert<br />";
echo '<a href="index.php?section=fotos&t=bilder">Zurück zur Übersicht</a>';
}
?>
}