Files
sls/admin.php
2024-12-14 11:54:27 +01:00

88 lines
3.4 KiB
PHP

<?php require ("3-protect.php");
include 'i18n_setup.php';
/*include 'localize.php';
$domain = 'sentier';
localize($domain);
*/
include 'functions.php';
?>
<!DOCTYPE html>
<html lang="en">
<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">
<meta name="description" content="Sur le sentier: pages administration">
<title><?php echo gettext('Logged in'); ?></title>
<meta name="msapplication-TileColor" content="#2b5797">
<meta name="msapplication-config" content="/icons/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<link rel="apple-touch-icon" sizes="180x180" href="/icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/icons/favicon-16x16.png">
<link rel="manifest" href="/icons/site.webmanifest">
<link rel="shortcut icon" href="/icons/favicon.ico">
<link rel="stylesheet" href="css/sls.css">
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
</head>
<body>
<h1><?php echo gettext('Status: ') . $_SESSION["user"] . gettext(' logged in'); ?></h1>
<!--div class="center-flex"-->
<div class="center-flex">
<?php
$base = 'db_photo.sqlite3';
if (file_exists($base)) {
echo '<h3>Base SQLite: ' . __DIR__ . '/' . $base . ' !</h3>';
}
?>
<nav>
<a class="kaki" href="../edit_bdd.php"><?php echo gettext("Edit"); ?></a>
<a class="kaki" href="../insert_bdd.php"><?php echo gettext("Insert"); ?></a>
<a class="kaki" href="../modify_bdd.php"><?php echo gettext("Modify"); ?></a>
<a class="kaki" href="../view_bdd.php"><?php echo gettext("View (Ajax)"); ?></a>
<a class="kaki" href="../view_bdd2.php"><?php echo gettext("View"); ?></a>
<a class="kaki" href="../clean_bdd.php"><?php echo gettext("Clean"); ?></a>
</nav>
<!-- (B1) LOGOUT FORM -->
<p></p>
<nav><a class="red" href="4-logout.php" role="button"><?php echo gettext("Log out"); ?></a></nav>
</div>
<!--form method="post">
<input type="hidden" name="logout" value="1">
<input type="submit" value="Log Out">
</form-->
<div class="indexForm">
<form name="langSelect" action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>" method="post" >
<select name="lang" id="lang" class="mySelect">
<option value="">Language</option>
<option value="de_DE">German</option>
<option value="en_US">English</option>
<option value="es_ES">Spanish</option>
<option value="fr_FR">French</option>
</select>
<button type="submit" class="myButton">Ok</button>
</form>
</div>
<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>