<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>menu_basivo_Reponsivo</title>
<link rel="stylesheet" href="StyleLerManga.css">
</head>
<body>
<div class="Menu">
Osananajimi(♂) wo Onnanoko ni<br>
Shiteshimatta Hanashi
<nav class="Sobre">
<ul>
<li><a href="Menu_Reponsivo.html">Inicio</a></li>
<li><a href="#">Sobre</a></li>
</ul>
</nav>
</div>
<div class="LerManga">
<?php
$dir = 'chapter1';
if (is_dir($dir)) {
$images = scandir($dir);
foreach ($images as $image) {
$extension = strtolower(pathinfo($image, PATHINFO_EXTENSION));
// Verifica se a extensão corresponde a um formato de imagem comum
if (in_array($extension, ['jpg', 'jpeg', 'png', 'gif', 'bmp'])) {
echo '<img src="' . $dir . '/' . $image . '" alt="' . $image . '" /><br>';
}
}
} else {
echo "O diretório não existe.";
}
?>
<?php
if (isset ($_POST['proximo'])) {
$dir=exit();
}
?>
<?php
if(isset($_POST['Proximo'])){
$chapter2 = 'chapter2';
if (is_dir($chapter2)) {
$images = scandir($chapter2);
foreach ($images as $image) {
$extension = strtolower(pathinfo($image, PATHINFO_EXTENSION));
// Verifica se a extensão corresponde a um formato de imagem comum
if (in_array($extension, ['jpg', 'jpeg', 'png', 'gif', 'bmp'])) {
echo '<img src="' . $chapter2 . '/' . $image . '" alt="' . $image . '" /><br>';
}
}
} else {
echo "O diretório não existe.";
}
}
?>
</div>
<div class="Anuncios">
Anuncios
</div>
<div class="Botoes">
<form method="post">
<input type="submit" name="Proximo" value="Clique Aqui">
</form>
</div>
</body>
</html>