mirror of
https://github.com/Anvilcraft/jensmemes
synced 2024-11-13 21:41:27 +01:00
121 lines
3.7 KiB
PHP
121 lines
3.7 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<title>HOME | JensMemes v2</title>
|
|
<meta charset="utf-8" />
|
|
|
|
<link rel="shortcut icon" type="image/x-icon" href="/img/favicon.ico">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link id="theme" rel="stylesheet" href="/themes/llama.css" />
|
|
<script defer src="/script/modal.js"></script>
|
|
<script defer src="/script/button.js"></script>
|
|
<script defer src="/script/switcher.js"></script>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body class="">
|
|
|
|
<div class="modal" id="modal">
|
|
<div class="modal-header">
|
|
<div class="title">Home</div>
|
|
<button data-close-button class="close-button">×</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
|
|
Im Home-Bereich kannst du deine Memes verwalten.
|
|
|
|
<br><b>Made by</b>
|
|
<ul>
|
|
<li><a href="https://itbyhf.eu">ITbyHF</a> - Website/ Llama Theme</li>
|
|
<li><a href="http://tilera.xyz/">tilera</a> - Hosting/ Old Theme</li>
|
|
<li><a href="https://twitter.com/LordMZTE">LordMZTE</a> - Theme 2 und Theme Switch</li>
|
|
<li><a href="https://jonasled.de/">jonasled</a> - Discord Bot / Dark Theme</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div id="overlay"></div>
|
|
<div>
|
|
<form action="#" method="post" enctype="multipart/form-data">
|
|
<input type='submit' name='logout' class="btn-logout" value=''>
|
|
</form>
|
|
<?php
|
|
if (isset($_POST['logout'])) {
|
|
setcookie("token", "", time() - 3600);
|
|
header('Location: ./');
|
|
}
|
|
?>
|
|
<?php
|
|
echo ' <form action="#" method="post" enctype="multipart/form-data">
|
|
<input type=\'submit\' name=\'home\' class="btn-home" value=\'\'>
|
|
</form>
|
|
';
|
|
if (isset($_POST['home'])) {
|
|
setcookie("token", "", time() - 3600);
|
|
header('Location: /');
|
|
|
|
}
|
|
?>
|
|
<div>
|
|
<h2>
|
|
<center></center>
|
|
</h2>
|
|
<div class="bar-main">
|
|
<button data-modal-target="#modal" class="btn-modal"></button>
|
|
<div id="themediv">
|
|
<p>Theme:</p>
|
|
<select name="Themes" id="themeswitcher">
|
|
<option value="llama">Llama</option>
|
|
<option value="light">LordMZTE</option>
|
|
<option value="old">Old</option>
|
|
<option value="retro">Retro</option>
|
|
<option value="dark">Dark</option>
|
|
</select>
|
|
</div>
|
|
<h2>Home</h2><br><br>
|
|
</div>
|
|
<br>
|
|
<br>
|
|
<?php
|
|
include "../dbcon.php";
|
|
$sqlJens = "SELECT * FROM images";
|
|
$db_ergJens = mysqli_query( $con, $sqlJens);
|
|
if ( ! $db_ergJens )
|
|
{
|
|
die('Invalid Request ' . mysqli_error());
|
|
}
|
|
while ($zeile = mysqli_fetch_array( $db_ergJens, MYSQLI_ASSOC))
|
|
{
|
|
if(true){
|
|
$ext = strtolower(pathinfo($zeile['path'], PATHINFO_EXTENSION));
|
|
|
|
if($ext=="mp4"){
|
|
echo '
|
|
|
|
<div class="kasten">
|
|
<a href="/'.$zeile[path].'"><video src="/'.$zeile[path].'" controls class="Videos_"></video> </a>
|
|
</div>
|
|
|
|
';
|
|
} else if($ext=="png" || $ext=="jpg" ||$ext=="jpeg"||$ext=="gif" ){
|
|
echo '
|
|
<div class="kasten">
|
|
<a href="/'.$zeile[path].'"><img class="Bilder_" src="/'.$zeile[path].'"></a>
|
|
<a href="delete.php?m='.$zeile[path].'">Löschen</a>
|
|
</div>
|
|
|
|
';
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
mysqli_free_result( $db_ergJens );
|
|
?>
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|