2020-07-22 15:21:26 +02:00
|
|
|
<div id="all">
|
2020-07-21 23:07:16 +02:00
|
|
|
<?php
|
|
|
|
include ('../dbcon.php');
|
|
|
|
?>
|
2020-07-22 15:21:26 +02:00
|
|
|
<div id="jens">
|
|
|
|
<h2>Jens Memes</h2>
|
|
|
|
<?php
|
|
|
|
$sqlJens = "SELECT * FROM images";
|
|
|
|
$db_ergJens = mysqli_query( $con, $sqlJens);
|
|
|
|
if ( ! $db_ergJens )
|
|
|
|
{
|
|
|
|
die('Ungültige Abfrage: ' . mysqli_error());
|
|
|
|
}
|
|
|
|
while ($zeile = mysqli_fetch_array( $db_ergJens, MYSQLI_ASSOC))
|
|
|
|
{
|
|
|
|
if($zeile[cat]=="jens"){
|
|
|
|
$ext = strtolower(pathinfo($zeile['path'], PATHINFO_EXTENSION));
|
2020-07-21 23:07:16 +02:00
|
|
|
|
2020-07-22 15:21:26 +02:00
|
|
|
if($ext=="mp4"){
|
|
|
|
echo '
|
2020-07-21 23:07:16 +02:00
|
|
|
|
2020-07-22 15:21:26 +02:00
|
|
|
<div class="kasten">
|
|
|
|
<a href="'.$zeile[path].'"><video src="'.$zeile[path].'" controls class="Videos_"></video> </a>
|
|
|
|
</div>
|
2020-07-21 23:07:16 +02:00
|
|
|
|
2020-07-22 15:21:26 +02:00
|
|
|
';
|
|
|
|
} else if($ext=="png" || $ext=="jpg" ||$ext=="jpeg"||$ext=="gif" ){
|
|
|
|
echo '
|
|
|
|
<div class="kasten">
|
|
|
|
<a href="'.$zeile[path].'"><img class="Bilder_" src="'.$zeile[path].'" loading="lazy"></a>
|
|
|
|
</div>
|
|
|
|
';
|
|
|
|
}
|
2020-07-21 23:07:16 +02:00
|
|
|
|
2020-07-22 15:21:26 +02:00
|
|
|
}
|
2020-07-21 23:07:16 +02:00
|
|
|
|
2020-07-22 15:21:26 +02:00
|
|
|
}
|
|
|
|
mysqli_free_result( $db_ergJens );
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
<div id="random">
|
|
|
|
<h2>$hit Memes</h2>
|
|
|
|
<?php
|
|
|
|
$sqlrandom = "SELECT * FROM images";
|
|
|
|
$db_ergrandom = mysqli_query( $con, $sqlrandom);
|
|
|
|
if ( ! $db_ergrandom )
|
|
|
|
{
|
|
|
|
die('Ungültige Abfrage: ' . mysqli_error());
|
|
|
|
}
|
|
|
|
while ($zeile = mysqli_fetch_array( $db_ergrandom, MYSQLI_ASSOC))
|
|
|
|
{
|
|
|
|
if($zeile[cat]=="random"){
|
|
|
|
$ext = strtolower(pathinfo($zeile['path'], PATHINFO_EXTENSION));
|
2020-07-21 23:07:16 +02:00
|
|
|
|
2020-07-22 15:21:26 +02:00
|
|
|
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].'" loading="lazy"></a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
';
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2020-07-21 23:07:16 +02:00
|
|
|
|
2020-07-22 15:21:26 +02:00
|
|
|
}
|
|
|
|
mysqli_free_result( $db_ergrandom );
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
<div id="realtox">
|
|
|
|
<h2>Realtox Memes</h2>
|
|
|
|
<?php
|
|
|
|
$sqlrealtox = "SELECT * FROM images";
|
|
|
|
$db_ergrealtox = mysqli_query( $con, $sqlrealtox);
|
|
|
|
if ( ! $db_ergrealtox )
|
|
|
|
{
|
|
|
|
die('Ungültige Abfrage: ' . mysqli_error());
|
|
|
|
}
|
|
|
|
while ($zeile = mysqli_fetch_array( $db_ergrealtox, MYSQLI_ASSOC))
|
|
|
|
{
|
|
|
|
if($zeile[cat]=="realtox"){
|
|
|
|
$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>
|
2020-07-21 23:07:16 +02:00
|
|
|
|
2020-07-22 15:21:26 +02:00
|
|
|
';
|
|
|
|
} else if($ext=="png" || $ext=="jpg" ||$ext=="jpeg"||$ext=="gif" ){
|
|
|
|
echo '
|
|
|
|
<div class="kasten">
|
|
|
|
<a href="'.$zeile[path].'"><img class="Bilder_" src="'.$zeile[path].'" loading="lazy"></a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
';
|
|
|
|
}
|
2020-07-21 23:07:16 +02:00
|
|
|
|
2020-07-22 15:21:26 +02:00
|
|
|
}
|
2020-07-21 23:07:16 +02:00
|
|
|
|
2020-07-22 15:21:26 +02:00
|
|
|
}
|
|
|
|
mysqli_free_result( $db_ergrealtox );
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
<div id="hendrik">
|
|
|
|
<h2>Hendrik Memes</h2>
|
|
|
|
<?php
|
|
|
|
$sqlhendrik = "SELECT * FROM images";
|
|
|
|
$db_erghendrik = mysqli_query( $con, $sqlhendrik);
|
|
|
|
if ( ! $db_erghendrik )
|
|
|
|
{
|
|
|
|
die('Ungültige Abfrage: ' . mysqli_error());
|
|
|
|
}
|
|
|
|
while ($zeile = mysqli_fetch_array( $db_erghendrik, MYSQLI_ASSOC))
|
|
|
|
{
|
|
|
|
if($zeile[cat]=="hendrik"){
|
|
|
|
$ext = strtolower(pathinfo($zeile['path'], PATHINFO_EXTENSION));
|
2020-07-21 23:07:16 +02:00
|
|
|
|
2020-07-22 15:21:26 +02:00
|
|
|
if($ext=="mp4"){
|
|
|
|
echo '
|
|
|
|
|
|
|
|
<div class="kasten">
|
|
|
|
<a href="'.$zeile[path].'"><video src="'.$zeile[path].'" controls class="Videos_"></video> </a>
|
|
|
|
</div>
|
2020-07-21 23:07:16 +02:00
|
|
|
|
2020-07-22 15:21:26 +02:00
|
|
|
';
|
|
|
|
} else if($ext=="png" || $ext=="jpg" ||$ext=="jpeg"||$ext=="gif" ){
|
|
|
|
echo '
|
|
|
|
<div class="kasten">
|
|
|
|
<a href="'.$zeile[path].'"><img class="Bilder_" src="'.$zeile[path].'" loading="lazy"></a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
';
|
|
|
|
}
|
2020-07-21 23:07:16 +02:00
|
|
|
|
2020-07-22 15:21:26 +02:00
|
|
|
}
|
2020-07-21 23:07:16 +02:00
|
|
|
|
2020-07-22 15:21:26 +02:00
|
|
|
}
|
|
|
|
mysqli_free_result( $db_erghendrik );
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
</div>
|