Added footer everywhere
This commit is contained in:
parent
966e511140
commit
0b613eb8cf
10
index.php
10
index.php
@ -98,22 +98,22 @@ $albums = [];
|
|||||||
try {
|
try {
|
||||||
$api->login();
|
$api->login();
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
die('Fehler: ' . $e->getMessage().'</body></html>');
|
die('Fehler: ' . $e->getMessage().$footer.'</body></html>');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($_POST['submit'])) {
|
if (!isset($_POST['submit'])) {
|
||||||
if (!isset($_GET['token'])) {
|
if (!isset($_GET['token'])) {
|
||||||
die('Sorry, kein Zugriff</body></html>');
|
die('Sorry, kein Zugriff' . $footer . '</body></html>');
|
||||||
}
|
}
|
||||||
$token = $_GET['token'];
|
$token = $_GET['token'];
|
||||||
$tokens = explode(',', $token);
|
$tokens = explode(',', $token);
|
||||||
try {
|
try {
|
||||||
$albums = $api->getAlbumsByTokens($tokens);
|
$albums = $api->getAlbumsByTokens($tokens);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
die('Fehler: ' . $e->getMessage().'</body></html>');
|
die('Fehler: ' . $footer . $e->getMessage() . '</body></html>');
|
||||||
}
|
}
|
||||||
if (empty($albums) && (empty($config['noAlbumToken']) || !in_array($config['noAlbumToken'], $tokens))) {
|
if (empty($albums) && (empty($config['noAlbumToken']) || !in_array($config['noAlbumToken'], $tokens))) {
|
||||||
die('Falscher Token</body></html>');
|
die('Falscher Token' . $footer . '</body></html>');
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div class="form-wrapper">
|
<div class="form-wrapper">
|
||||||
@ -249,7 +249,7 @@ if (!isset($_POST['submit'])) {
|
|||||||
try {
|
try {
|
||||||
$api->uploadPhotos($_POST['album']);
|
$api->uploadPhotos($_POST['album']);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
die('Fehler: ' . $e->getMessage().'</body></html>');
|
die('Fehler: ' . $footer . $e->getMessage() .'</body></html>');
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
Erfolg! <a href=".">Zurück</a>
|
Erfolg! <a href=".">Zurück</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user