2020-10-13 17:11:32 +02:00
|
|
|
<?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>Website Cloner - 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="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">Website Cloner</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=projekte"></div>
|
|
|
|
</header>
|
|
|
|
<div id="content">
|
|
|
|
<p>
|
|
|
|
Da ich in letzter Zeit regelmäßig bei Projekten zur Dokumentation Screenshots der Websites gebraucht habe, habe ich mir dieses kleine Tool entwickelt, welches automatische Screenshots von einer Seite erstellt. Das Script ist in Python geschrieben und greift über Selenium auf den Firefox zurück. Zu finden ist der Quellcode unter
|
|
|
|
<a href="//gitlab.jonasled.de/jonasled/WebsiteCloner">gitlab.jonasled.de/jonasled/WebsiteCloner</a>
|
|
|
|
</p>
|
|
|
|
|
2020-10-27 14:33:05 +01:00
|
|
|
<h2>Kommentare:</h2>
|
|
|
|
<?php
|
2020-10-13 17:11:32 +02:00
|
|
|
|
2020-10-27 14:33:05 +01:00
|
|
|
$article = basename($_SERVER["SCRIPT_FILENAME"], '.php');
|
|
|
|
$result = $conn->query("SELECT * FROM comments WHERE article='$article'");
|
|
|
|
if ($result->num_rows > 0) {
|
|
|
|
while($row = $result->fetch_assoc()) {
|
|
|
|
$name = $row["name"] . "<br>";
|
|
|
|
$gravatar = get_gravatar($row["email"]);
|
|
|
|
$content = $row["comment"];
|
|
|
|
|
|
|
|
echo(<<<EOF
|
|
|
|
<h3 class="commentTitle">$name</h3>
|
|
|
|
<div class="comment">
|
|
|
|
<img src="$gravatar">
|
|
|
|
<article class="commentArticle">
|
|
|
|
<p class="commentText">$content</p>
|
|
|
|
</article>
|
|
|
|
</div>
|
|
|
|
EOF);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
<div id="newComment">
|
|
|
|
<form action="/newComment.php" method="post">
|
|
|
|
<label for="name">Name:</label><br>
|
|
|
|
<input type="text" id="name" name="name"><br><br>
|
|
|
|
|
|
|
|
<label for="email">E-Mail: (wird nicht veröffentlicht)</label><br>
|
|
|
|
<input type="text" id="email" name="email"><br><br>
|
|
|
|
|
|
|
|
<label for="comment">Kommentar:</label><br>
|
|
|
|
<textarea name="comment" id="comment"></textarea><br><br>
|
|
|
|
|
|
|
|
<input type="submit" value="Kommentar veröffentlichen"><br>
|
|
|
|
<p>Mit dem klick auf den obigen Button erklären sie sich mit der <a href="/datenschutzerklaerung.html">Datenschutzerklärung</a> einverstanden.</p>
|
|
|
|
</form>
|
|
|
|
</div>
|
2020-10-13 17:11:32 +02:00
|
|
|
</div>
|
|
|
|
<footer includeHTML="/include/footer.php">
|
|
|
|
</footer>
|
|
|
|
<script src="/js/includeHTML.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|