120 lines
No EOL
4.9 KiB
PHP
120 lines
No EOL
4.9 KiB
PHP
<?php
|
|
include "./internal/mysql.php";
|
|
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Jonas Leder</title>
|
|
|
|
<link href="/css/style.css" rel="stylesheet">
|
|
<link href="/css/normalize.css" rel="stylesheet">
|
|
<link href="/css/sourcesanspro.css" rel="stylesheet">
|
|
<link href="/css/menue.css" rel="stylesheet">
|
|
<script src="/js/cookie.js"></script>
|
|
<script src="https://kit.fontawesome.com/038c6c1f0e.js" crossorigin="anonymous"></script>
|
|
<!-- Matomo -->
|
|
<script type="text/javascript">
|
|
var _paq = window._paq = window._paq || [];
|
|
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
|
_paq.push(["setCookieDomain", "*.jonasled.de"]);
|
|
_paq.push(['trackPageView']);
|
|
_paq.push(['enableLinkTracking']);
|
|
(function() {
|
|
var u="//matomo.jonasled.de/";
|
|
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
|
_paq.push(['setSiteId', '1']);
|
|
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
|
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
|
})();
|
|
</script>
|
|
<noscript><p><img src="//matomo.jonasled.de/matomo.php?idsite=1&rec=1" style="border:0;" alt="" /></p></noscript>
|
|
<!-- End Matomo Code -->
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<div class="header-wrapper">
|
|
<div class="header-homepage color-overlay" data-parallax-depth="20">
|
|
<div class="header-description gridContainer content-on-center">
|
|
<div class="row header-description-row">
|
|
<div class="header-content header-content-centered">
|
|
<div class="align-holder">
|
|
<h1 class="heading8"> Jonas Leder</h1>
|
|
<p class="header-subtitle"> </p>
|
|
<div class="header-buttons-wrapper"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="header-separator header-separator-bottom ">
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none">
|
|
<path class="svg-white-bg" d="M737.9,94.7L0,0v100h1000V0L737.9,94.7z"></path>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
<div id="mainMenu" includeHTML="/include/menue.php?page=home"></div>
|
|
</header>
|
|
<div class="center" id="content">
|
|
<img id="homeImage" src="img/bildHome.webp">
|
|
<h2>Über mich</h2>
|
|
<p>Hallo, mein Name ist Jons Leder. Ich bin aktuell Student an der Dualen Hochschule Baden-Württemberg in Mannheim Fachrichtung Angewandte Informatik.</p>
|
|
<p><a href="about.html"><button>Mehr</button></a></p>
|
|
<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>
|
|
<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>
|
|
</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>
|
|
<footer includeHTML="include/footer.php">
|
|
</footer>
|
|
<script>
|
|
checkHide();
|
|
</script>
|
|
|
|
<script src="js/includeHTML.js"></script>
|
|
</body>
|
|
</html>
|