Adjust links and resolve issues with german umlauts.
This commit is contained in:
@@ -25,7 +25,7 @@ if ('will' == $_GET['t']) {
|
||||
$ref = "index.php?section=fotos&t=" . $_GET['t'];
|
||||
|
||||
if (!isset($_GET['action'])) {
|
||||
echo "<p>Auf ein vorhandenes Bild klicken um es zu l<EFBFBD>schen<br />";
|
||||
echo "<p>Auf ein vorhandenes Bild klicken um es zu löschen<br />";
|
||||
echo "Auf einen Platzhalter klicken um ein neues Bild hochzuladen</p>";
|
||||
for ($i = 0; $i < 10; $i++) {
|
||||
$pic = $path . $i . ".jpg";
|
||||
@@ -44,16 +44,16 @@ if (!isset($_GET['action'])) {
|
||||
if ('del' == $_GET['action']) {
|
||||
$delfile = $path . $_GET['pic'] . ".jpg";
|
||||
if (unlink($delfile)) {
|
||||
echo "<p>Bild gel<EFBFBD>scht</p>";
|
||||
echo "<p>Bild gelöscht</p>";
|
||||
} else {
|
||||
echo "<p>Fehler beim L<EFBFBD>schen</p>";
|
||||
echo "<p>Fehler beim Löschen</p>";
|
||||
}
|
||||
echo "<a href=\"index.php?section=fotos&t=$_GET[t]\">Zur<EFBFBD>ck zur <EFBFBD>bersicht</a>\n";
|
||||
echo "<a href=\"index.php?section=fotos&t=$_GET[t]\">Zurück zur Übersicht</a>\n";
|
||||
} elseif ('add' == $_GET['action']) {
|
||||
$ref .= "&action=speichern&pic=" . $_GET['pic']
|
||||
?>
|
||||
<form action="<?php echo $ref; ?>" method="post" enctype="multipart/form-data">
|
||||
<label>Foto auswählen</label>
|
||||
<label>Foto auswählen</label>
|
||||
<input type="file" name="Foto"/>
|
||||
<br/>
|
||||
<input type="submit" name="Speichern" value="Speichern"/>
|
||||
@@ -80,6 +80,6 @@ if (!isset($_GET['action'])) {
|
||||
imagedestroy($tmp);
|
||||
unlink($path . $_FILES['Foto']['name']);
|
||||
echo "<p>Bild hochgeladen</p>";
|
||||
echo "<a href=\"index.php?section=fotos&t=" . $_GET['t'] . "\">Zur<EFBFBD>ck zur <EFBFBD>bersicht</a>\n";
|
||||
echo "<a href=\"index.php?section=fotos&t=" . $_GET['t'] . "\">Zurück zur Übersicht</a>\n";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user