Move accessible files to public folders and adjust paths.
This commit is contained in:
@@ -1,22 +1,24 @@
|
||||
<?php
|
||||
|
||||
$imgPath = __DIR__ . '/../../../public/img';
|
||||
|
||||
if ('will' == $_GET['t']) {
|
||||
$path = "../img/will/";
|
||||
$path = $imgPath . '/will/';
|
||||
echo "<h2>Fotos auf der Seite Willkommen</h2>\n";
|
||||
} elseif ('haus' == $_GET['t']) {
|
||||
$path = "../img/haus/";
|
||||
$path = $imgPath . '/haus/';
|
||||
echo "<h2>Fotos auf der Seite Unser Haus</h2>\n";
|
||||
} elseif ('lage' == $_GET['t']) {
|
||||
$path = "../img/haus/lage/";
|
||||
$path = $imgPath . '/haus/lage/';
|
||||
echo "<h2>Fotos auf der Seite Unser Haus - Lage</h2>\n";
|
||||
} elseif ('geschichte' == $_GET['t']) {
|
||||
$path = "../img/haus/geschichte/";
|
||||
$path = $imgPath . '/haus/geschichte/';
|
||||
echo "<h2>Fotos auf der Seite Unser Haus - Geschichte</h2>\n";
|
||||
} elseif ('gaby' == $_GET['t']) {
|
||||
$path = "../img/gaby/";
|
||||
$path = $imgPath . '/gaby/';
|
||||
echo "<h2>Fotos auf der Seite Wohnung Gaby</h2>\n";
|
||||
} elseif ('amelie' == $_GET['t']) {
|
||||
$path = "../img/amelie/";
|
||||
$path = $imgPath . '/amelie/';
|
||||
echo "<h2>Fotos auf der Seite Wohnung Amelie</h2>\n";
|
||||
} else {
|
||||
die();
|
||||
@@ -32,7 +34,7 @@ if (!isset($_GET['action'])) {
|
||||
if (file_exists($pic)) {
|
||||
$link = $ref . "&action=del&pic=" . $i;
|
||||
echo "<a href=\"$link\">";
|
||||
echo "<img style=\"margin: 20px 20px 20px 20px; border: 2px solid red;\" src=\"$pic\" width=\"100px\" height=\"100px\"/>";
|
||||
echo "<img style=\"margin: 20px 20px 20px 20px; border: 2px solid red;\" src=\"" . str_replace(__DIR__ . '/../../../public', '', $pic) . "\" width=\"100px\" height=\"100px\"/>";
|
||||
} else {
|
||||
$link = $ref . "&action=add&pic=" . $i;
|
||||
echo "<a href=\"$link\">";
|
||||
|
||||
Reference in New Issue
Block a user