first commit
This commit is contained in:
commit
d975e212f9
35 changed files with 813 additions and 0 deletions
42
login/foto.php
Normal file
42
login/foto.php
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
include('includes/security.php');
|
||||
global $users;
|
||||
|
||||
if (!isset($_SESSION["loggedIn"])) {
|
||||
$_SESSION["error"] = true;
|
||||
header("Location: index.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
$cartella_foto = "./uploads";
|
||||
$files = array_slice(scandir($cartella_foto), 2);
|
||||
?>
|
||||
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
|
||||
<head>
|
||||
<title>Login</title>
|
||||
<?php require "includes/head.php" ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<?php require "includes/navbar.php" ?>
|
||||
|
||||
<div class="container">
|
||||
<h1>Foto dell'amministratore</h1>
|
||||
<div>
|
||||
<?php
|
||||
foreach ($files as $file) {
|
||||
echo '<a href="' . $cartella_foto . '/' . $file . '" data-fancybox="gallery" data-caption="Caption #1">';
|
||||
echo '<img src="' . $cartella_foto . '/' . $file . '" alt="' . $file . '" style="width:200px;height:200px;">';
|
||||
echo '</a>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php require "includes/footer.php" ?>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue