-déplacement des fichiers d’admin dans un dossier admin -corrections dans la fonction data_for_lightbox($data). Celle-ci est maintenant toujours utilisé pour l’affichage des vignettes et des images dans la lightbox -les chemins sont nettoyés avec 2 variables: $chemin pour les images, $base pour la base Sqlite -corrections diverses
38 lines
1.6 KiB
PHP
38 lines
1.6 KiB
PHP
<?php
|
|
// https://code-boxx.com/simple-php-login-without-database/
|
|
// (A) LOGIN CHECKS
|
|
require "2-check.php";
|
|
|
|
include '../localize.php';
|
|
$domain = 'sentier';
|
|
localize($domain);
|
|
include '../functions.php';
|
|
|
|
// (B) LOGIN PAGE HTML ?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title><?php echo gettext("Login Page"); ?></title>
|
|
<link rel="stylesheet" href="1-login.css" />
|
|
<link rel="stylesheet" href="../css/sls.css" />
|
|
</head>
|
|
<body>
|
|
<?php if (isset($failed)) { ?>
|
|
<div id="login-bad"><?php echo gettext("Invalid email or password."); ?></div>
|
|
<?php } ?>
|
|
|
|
<form id="login-form" method="post" target="_self">
|
|
<h1><?php echo gettext("PLEASE SIGN IN"); ?></h1>
|
|
<label for="user"><?php echo gettext("User"); ?></label>
|
|
<input type="text" name="user" required>
|
|
<label for="password"><?php echo gettext("Password"); ?></label>
|
|
<input type="password" name="password" required>
|
|
<input type="submit" value="<?php echo gettext("Sign In"); ?>">
|
|
</form>
|
|
|
|
<p class="navPage"><a href="../index.php" title="<?php echo gettext("Home"); ?>"><?php echo gettext("Home"); ?></a> | <a href="../photo-du-mois.php" title="<?php echo gettext("Picture of the month"); ?>"><?php echo gettext("Picture of the month"); ?></a> | <a href="../maps.php" title="<?php echo gettext("Maps"); ?>"><?php echo gettext("Maps"); ?></a> | <a href="admin.php" title="<?php echo gettext("Admin page"); ?>"><?php echo gettext("Admin page"); ?></a></p>
|
|
|
|
<p><em><small>© 2013-<?php echo date('Y'); ?> sur-le-sentier.fr</small></em></p>
|
|
|
|
</body>
|
|
</html>
|