Teumbleur/index.php

50 lines
1.6 KiB
PHP
Raw Normal View History

2022-09-16 17:14:51 +00:00
<head>
<meta charset="utf-8">
<title>Teumbleur</title>
<meta property="og:title" content="Teumbleur">
2022-09-16 19:51:20 +00:00
<meta property="og:image" content="https://concepts.esenjin.xyz/teumbleur/v3/logo.png">
<meta property="og:description" content="Albums d'illustrations des waifus d'Esenjin.">
2022-09-16 17:14:51 +00:00
<link rel="shortcut icon" id="favicon" href="favicon.ico">
<link href='style.css' rel='stylesheet' type='text/css'>
</head>
<body>
<div align="center"><img src="logo.png" /></div>
</br>
2022-09-16 19:51:20 +00:00
<center><p>Vous pouvez également aller faire un tour sur <a href="https://esenjin.xyz" target="_blank">mon blog</a>, j'y raconte de temps à autre des choses.</p></center>
2022-09-16 17:14:51 +00:00
</br></br>
<?php
$dir_nom = './img';
2022-09-16 22:41:44 +00:00
$dir = opendir($dir_nom) or die('Oups ! Le répertoire demandé semble ne pas exister.');
$fichier= array();
$dossier= array();
2022-09-16 17:14:51 +00:00
while($element = readdir($dir)) {
if($element != '.' && $element != '..') {
2022-09-16 22:41:44 +00:00
if (!is_dir($dir_nom.'/'.$element)) {
$fichier[] = $element;
}
} else {
$dossier[] = $element;
}
2022-09-16 17:14:51 +00:00
}
2022-09-16 22:41:44 +00:00
closedir($dir);
if(!empty($dossier));
rsort($dossier);
foreach($dossier as $lien=>$date)
sort($fichier);
2022-09-16 17:14:51 +00:00
foreach($fichier as $lien) {
2022-09-17 08:46:29 +00:00
echo "<div align=\"center\"><a href=\"$dir_nom/$lien\" target=\"_blank\"><img src=\"$dir_nom/$lien\" loading=\"lazy\"></img></a></div>\r
2022-09-16 22:41:44 +00:00
<div align=\"center\"><p>&#128269; <a href=\"http://saucenao.com/search.php?db=999&url=https://concepts.esenjin.xyz/teumbleur/v3/img/$lien\" target=\_blank>source</a></p></div>\r\r </br></br>";
2022-09-16 17:14:51 +00:00
}
2022-09-16 22:41:44 +00:00
2022-09-16 17:14:51 +00:00
?>
2022-09-17 08:52:28 +00:00
<center><a href="#">&#8632; retourer là-haut !</a></center>
</br>
2022-09-16 17:14:51 +00:00
</body>