2020-12-20 00:33:23 +01:00
|
|
|
<?php
|
2020-12-20 01:02:00 +01:00
|
|
|
include "mysql.php";
|
2020-12-20 00:46:09 +01:00
|
|
|
|
2020-12-20 00:33:23 +01:00
|
|
|
function getFooter(){
|
2020-12-20 00:46:09 +01:00
|
|
|
include "mysql.php";
|
|
|
|
include "config.php";
|
|
|
|
|
|
|
|
$newestPost = "";
|
|
|
|
|
|
|
|
$result = $conn->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 .= "<a href=\"/post.php?id=$id\">$title</a><br>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
echo (<<<EOF
|
|
|
|
</div>
|
|
|
|
<footer>
|
|
|
|
<div id="blueBar"></div>
|
|
|
|
<div id="footerContent">
|
|
|
|
<div>
|
|
|
|
<a href="/datenschutzerklaerung.php">Datenschutzerklärung</a><br>
|
|
|
|
<a href="/bildquellen.php">Bildquellen</a><br>
|
|
|
|
<a href="/impressum.php">Impressum</a><br>
|
|
|
|
</div>
|
|
|
|
<div id="newestPost">
|
|
|
|
<h3>Neueste Beiträge:</h3>
|
|
|
|
$newestPost
|
|
|
|
</div>
|
|
|
|
<div class="center">
|
|
|
|
<p class="center">
|
2021-04-02 17:53:36 +02:00
|
|
|
<a href="https://www.instagram.com/jonasled1/">
|
2021-04-12 18:29:11 +02:00
|
|
|
<jl-svg data-name="instagram"></jl-svg>
|
|
|
|
</a>
|
2021-04-02 17:53:36 +02:00
|
|
|
|
2021-04-12 18:29:11 +02:00
|
|
|
<a href="https://www.thingiverse.com/jonasled/designs/">
|
|
|
|
<jl-svg data-name="3d_model"></jl-svg>
|
|
|
|
</a>
|
2021-04-02 17:53:36 +02:00
|
|
|
|
|
|
|
<a href="https://paypal.me/jonasled/">
|
2021-04-12 18:29:11 +02:00
|
|
|
<jl-svg data-name="svg"></jl-svg>
|
|
|
|
</a>
|
2021-04-02 17:53:36 +02:00
|
|
|
|
2021-04-02 18:02:11 +02:00
|
|
|
<a href="https://matrix.to/#/@jonasled:jonasled.de">
|
2021-04-12 18:29:11 +02:00
|
|
|
<jl-svg data-name="matrix"></jl-svg>
|
2021-04-02 17:53:36 +02:00
|
|
|
</a>
|
2021-04-12 18:21:21 +02:00
|
|
|
|
|
|
|
<a href="https://twitter.com/jonasled1">
|
2021-04-12 18:29:11 +02:00
|
|
|
<jl-svg data-name="twitter"></jl-svg>
|
2021-04-12 18:21:21 +02:00
|
|
|
</a>
|
2020-12-20 00:46:09 +01:00
|
|
|
</p>
|
|
|
|
</div>
|
2020-12-20 00:33:23 +01:00
|
|
|
</div>
|
|
|
|
</footer>
|
2020-12-30 23:52:31 +01:00
|
|
|
<div class="cookieinfo">
|
2021-04-02 17:53:36 +02:00
|
|
|
<div class="cookieinfo-close"> ✖
|
2020-12-30 23:52:31 +01:00
|
|
|
</div>
|
|
|
|
<span class="cookieinfo-text">
|
|
|
|
We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies. <a class="cookieinfo-link" href="http://wikipedia.org/wiki/HTTP_cookie">More info</a>
|
2021-04-02 18:03:20 +02:00
|
|
|
</span>
|
2020-12-30 23:52:31 +01:00
|
|
|
</div>
|
2021-02-28 13:52:48 +01:00
|
|
|
<script src="/js/script.js"></script>
|
2020-12-20 00:33:23 +01:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
EOF);
|
|
|
|
}
|