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