Added footer everywhere

This commit is contained in:
Max Nuding 2021-11-27 08:55:20 +01:00
parent 966e511140
commit 0b613eb8cf
Signed by: phlaym
GPG Key ID: A06651BAB6777237

View File

@ -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>