2020-10-13 17:11:32 +02:00
|
|
|
<?php
|
2020-12-20 00:33:23 +01:00
|
|
|
include "internal/header.php";
|
|
|
|
include "internal/footer.php";
|
|
|
|
include "internal/mysql.php";
|
2020-10-13 17:11:32 +02:00
|
|
|
|
2020-12-20 01:34:10 +01:00
|
|
|
getHeader("Jonas Leder", "home");
|
2020-10-13 17:11:32 +02:00
|
|
|
?>
|
2020-12-20 00:33:23 +01:00
|
|
|
<div class="center">
|
2020-10-13 17:11:32 +02:00
|
|
|
<img id="homeImage" src="img/bildHome.webp">
|
|
|
|
<h2>Über mich</h2>
|
2020-11-18 11:37:18 +01:00
|
|
|
<p>Hallo, mein Name ist Jonas Leder. Ich bin aktuell Student an der Dualen Hochschule Baden-Württemberg in Mannheim Fachrichtung Angewandte Informatik.</p>
|
2020-12-27 23:44:33 +01:00
|
|
|
<p><a href="about.php"><button>Mehr</button></a></p>
|
2020-10-13 17:11:32 +02:00
|
|
|
<div class="spacer"></div>
|
|
|
|
|
|
|
|
<h2>Blog</h2>
|
|
|
|
<div id="blog">
|
|
|
|
<?php
|
|
|
|
$result = $conn->query("SELECT * FROM posts order by id desc limit $homeMaxPost");
|
|
|
|
if ($result->num_rows > 0) {
|
|
|
|
while($row = $result->fetch_assoc()) {
|
|
|
|
$title = $row["title"];
|
|
|
|
$id = $row["id"];
|
|
|
|
$content = explode(" ", $row["content"]);
|
|
|
|
$contentNew = "";
|
|
|
|
if(count($content) > 800){
|
|
|
|
$temp = str_split($content, 800);
|
|
|
|
$contentNew = $temp[0];
|
|
|
|
$contentNew = $content . explode(" ", $temp[1])[0] . " ...";
|
|
|
|
} else {
|
|
|
|
$contentNew = $row["content"];
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo(<<<EOF
|
|
|
|
<article>
|
|
|
|
<h2>$title</h2>
|
|
|
|
<p>$contentNew</p>
|
|
|
|
<p class="center"><a href="/post.php?id=$id"><button>Mehr lesen</button></a></p>
|
|
|
|
</article>
|
|
|
|
EOF);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|
2020-11-17 20:36:57 +01:00
|
|
|
<div id="banner">
|
2020-10-13 17:11:32 +02:00
|
|
|
<h2>Banner</h2>
|
|
|
|
<a href="https://ipv6.he.net"><img src="https://ipv6.he.net/certification/create_badge.php?pass_name=jonasled&badge=3"></a>
|
|
|
|
<a href="https://www.abuseipdb.com/user/45130"><img style="background-color: white" src="https://www.abuseipdb.com/contributor/45130.svg" style="width: 401px;"></a>
|
2020-11-17 20:36:57 +01:00
|
|
|
</div>
|
2020-10-13 17:11:32 +02:00
|
|
|
</div>
|
|
|
|
<div class="cookieinfo">
|
|
|
|
<div class="cookieinfo-close" onclick="acceptCookie()">
|
|
|
|
✖
|
|
|
|
</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>
|
|
|
|
</span>
|
|
|
|
</div>
|
2020-12-20 00:33:23 +01:00
|
|
|
<script src="js/cookie.js"
|
2020-10-13 17:11:32 +02:00
|
|
|
<script>
|
|
|
|
checkHide();
|
|
|
|
</script>
|
2020-12-20 00:33:23 +01:00
|
|
|
<?php
|
|
|
|
getFooter();
|