Files
sls/1-login.php
2024-12-10 11:09:39 +01:00

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>&copy; 2013-<?php echo date('Y'); ?> sur-le-sentier.fr</small></em></p>
</body>
</html>