diff --git a/include/footer.php b/include/footer.php deleted file mode 100644 index 062b9f4..0000000 --- a/include/footer.php +++ /dev/null @@ -1,34 +0,0 @@ - -
-
-
- Datenschutzerklärung
- Bildquellen
- Impressum
-
-
-

Neueste Beiträge:

- query("SELECT * FROM posts order by id desc limit $footerMaxPost"); - if ($result->num_rows > 0) { - while($row = $result->fetch_assoc()) { - $title = $row["title"]; - $id = $row["id"]; - echo("$title
"); - } - } - - - ?> -
-
-

- - - -

-
-
\ No newline at end of file diff --git a/include/menue.php b/include/menue.php deleted file mode 100644 index f2f8a6c..0000000 --- a/include/menue.php +++ /dev/null @@ -1,32 +0,0 @@ - - ->Startseite - -URL Kürzer - diff --git a/internal/footer.php b/internal/footer.php index a7b0356..1e69ef4 100644 --- a/internal/footer.php +++ b/internal/footer.php @@ -1,8 +1,43 @@ query("SELECT * FROM posts order by id desc limit $footerMaxPost"); + if ($result->num_rows > 0) { + while ($row = $result->fetch_assoc()) { + $title = $row["title"]; + $id = $row["id"]; + $newestPost .= "$title
"; + } + } + + + echo (<< +