Validation HTML
This commit is contained in:
56
admin.php
56
admin.php
@@ -1,7 +1,9 @@
|
|||||||
<?php require ("3-protect.php");
|
<?php require ("3-protect.php");
|
||||||
include 'localize.php';
|
include 'i18n_setup.php';
|
||||||
|
/*include 'localize.php';
|
||||||
$domain = 'sentier';
|
$domain = 'sentier';
|
||||||
localize($domain);
|
localize($domain);
|
||||||
|
*/
|
||||||
include 'functions.php';
|
include 'functions.php';
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
@@ -9,51 +11,53 @@
|
|||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<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="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
<meta name="description" content="Sur le sentier: pages administration">
|
||||||
<title><?php echo gettext('Logged in'); ?></title>
|
<title><?php echo gettext('Logged in'); ?></title>
|
||||||
|
|
||||||
<link rel="stylesheet" href="css/sls.css" />
|
<meta name="msapplication-TileColor" content="#2b5797">
|
||||||
<!--link rel='stylesheet' href='css/lc_lightbox.min.css' />
|
<meta name="msapplication-config" content="/icons/browserconfig.xml">
|
||||||
<link rel='stylesheet' href='css/open_close_fx.css' />
|
<meta name="theme-color" content="#ffffff">
|
||||||
<link rel='stylesheet' href='css/minimal.css' /-->
|
<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>
|
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
|
||||||
|
|
||||||
<!--link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script-->
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<h1><?php echo gettext('Status: ') . $_SESSION["user"] . gettext(' logged in'); ?></h1>
|
<h1><?php echo gettext('Status: ') . $_SESSION["user"] . gettext(' logged in'); ?></h1>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!--div class="center-flex"-->
|
<!--div class="center-flex"-->
|
||||||
<div class="center-flex">
|
<div class="center-flex">
|
||||||
<?php
|
<?php
|
||||||
$base = 'db_photo.sqlite3';
|
$base = 'db_photo.sqlite3';
|
||||||
|
|
||||||
if (file_exists($base)) {
|
if (file_exists($base)) {
|
||||||
//echo '<div class="base">Base SQLite: ' . $base . ' !</div>';
|
|
||||||
echo '<h3>Base SQLite: ' . __DIR__ . '/' . $base . ' !</h3>';
|
echo '<h3>Base SQLite: ' . __DIR__ . '/' . $base . ' !</h3>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<nav>
|
<nav>
|
||||||
<a class="kaki" href="../edit_bdd.php">Edit</a>
|
<a class="kaki" href="../edit_bdd.php"><?php echo gettext("Edit"); ?></a>
|
||||||
<a class="kaki" href="../insert_bdd.php">Insert</a>
|
<a class="kaki" href="../insert_bdd.php"><?php echo gettext("Insert"); ?></a>
|
||||||
<a class="kaki" href="../modify_bdd.php">Modify</a>
|
<a class="kaki" href="../modify_bdd.php"><?php echo gettext("Modify"); ?></a>
|
||||||
<a class="kaki" href="../view_bdd.php">View (Ajax)</a>
|
<a class="kaki" href="../view_bdd.php"><?php echo gettext("View (Ajax)"); ?></a>
|
||||||
<a class="kaki" href="../view_bdd2.php">View</a>
|
<a class="kaki" href="../view_bdd2.php"><?php echo gettext("View"); ?></a>
|
||||||
<a class="kaki" href="../clean_bdd.php">Clean</a>
|
<a class="kaki" href="../clean_bdd.php"><?php echo gettext("Clean"); ?></a>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<!-- (B1) LOGOUT FORM -->
|
<!-- (B1) LOGOUT FORM -->
|
||||||
|
|
||||||
<p></p>
|
<p></p>
|
||||||
<nav><a class="red" href="4-logout.php" role="button">Log out</a></nav>
|
<nav><a class="red" href="4-logout.php" role="button"><?php echo gettext("Log out"); ?></a></nav>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -62,9 +66,19 @@
|
|||||||
<input type="submit" value="Log Out">
|
<input type="submit" value="Log Out">
|
||||||
</form-->
|
</form-->
|
||||||
|
|
||||||
<?php
|
<div class="indexForm">
|
||||||
//$_SESSION["user"] != ""
|
<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 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>
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
<?php require ("3-protect.php");
|
<?php
|
||||||
include 'localize.php';
|
require ("3-protect.php");
|
||||||
$domain = 'sentier';
|
//session_start();
|
||||||
localize($domain);
|
include 'i18n_setup.php';
|
||||||
include 'functions.php';
|
/*include 'localize.php';
|
||||||
|
$domain = 'sentier';
|
||||||
|
localize($domain);
|
||||||
|
*/
|
||||||
|
include 'functions.php';
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
@@ -11,12 +15,18 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
|
<meta name="description" content="Sur le sentier: admin">
|
||||||
<title><?php echo gettext('Clean photos in Sqlite base'); ?></title>
|
<title><?php echo gettext('Clean photos in Sqlite base'); ?></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" />
|
<link rel="stylesheet" href="css/sls.css">
|
||||||
<link rel='stylesheet' href='lc-lightbox/css/lc_lightbox.min.css' />
|
|
||||||
<link rel='stylesheet' href='lc-lightbox/css/open_close_fx.css' />
|
|
||||||
<link rel='stylesheet' href='lc-lightbox/skins/minimal.css' />
|
|
||||||
|
|
||||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
|
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
|
||||||
|
|
||||||
@@ -24,7 +34,7 @@
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<h1><?php echo gettext('Clean / repare database'); ?></h1><br />
|
<h1><?php echo gettext('Clean / repare database'); ?></h1><br>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
@@ -712,19 +722,14 @@ if ($d > 0) {
|
|||||||
$conn = null;
|
$conn = null;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//echo '<h3>' . gettext('Find duplicate images in database: ') . '</h3>';
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<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>
|
<?php $logout = (isset($_SESSION["user"])) ? '<a class="" href="4-logout.php" role="button">' . gettext("Log out") . '</a>' : ''; ?>
|
||||||
|
|
||||||
|
<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> | <?php echo $logout; ?></p>
|
||||||
|
|
||||||
<p><em><small>© 2013-<?php echo date('Y'); ?> sur-le-sentier.fr</small></em></p>
|
<p><em><small>© 2013-<?php echo date('Y'); ?> sur-le-sentier.fr</small></em></p>
|
||||||
|
|
||||||
<script src='lc-lightbox/js/lc_lightbox.min.js' type='text/javascript'></script>
|
|
||||||
<script src='lc-lightbox/lib/AlloyFinger/alloy_finger.min.js' type='text/javascript'></script>
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
<?php require ("3-protect.php");
|
<?php
|
||||||
include 'localize.php';
|
require ("3-protect.php");
|
||||||
$domain = 'sentier';
|
//session_start();
|
||||||
localize($domain);
|
include 'i18n_setup.php';
|
||||||
include 'functions.php';
|
/*include 'localize.php';
|
||||||
|
$domain = 'sentier';
|
||||||
|
localize($domain);
|
||||||
|
*/
|
||||||
|
include 'functions.php';
|
||||||
|
|
||||||
$base = 'db_photo.sqlite3';
|
$base = 'db_photo.sqlite3';
|
||||||
$conn = new PDO("sqlite:$base");
|
$conn = new PDO("sqlite:$base");
|
||||||
@@ -114,13 +118,23 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
|
<meta name="description" content="Sur le sentier: admin">
|
||||||
<title><?php echo gettext('View photos in Sqlite base'); ?></title>
|
<title><?php echo gettext('View photos in Sqlite base'); ?></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" />
|
<link rel="stylesheet" href="css/sls.css">
|
||||||
<link rel='stylesheet' href='lc-lightbox/css/lc_lightbox.min.css' />
|
|
||||||
<link rel='stylesheet' href='lc-lightbox/css/open_close_fx.css' />
|
<link rel='stylesheet' href='lc-lightbox/css/lc_lightbox.min.css'>
|
||||||
<link rel='stylesheet' href='lc-lightbox/skins/minimal.css' />
|
<link rel='stylesheet' href='lc-lightbox/css/open_close_fx.css'>
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
<link rel='stylesheet' href='lc-lightbox/skins/minimal.css'>
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g==" crossorigin="anonymous" referrerpolicy="no-referrer">
|
||||||
|
|
||||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
|
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
|
||||||
|
|
||||||
@@ -211,12 +225,14 @@ if ($req_delete != "") {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<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>
|
<?php $logout = (isset($_SESSION["user"])) ? '<a class="" href="4-logout.php" role="button">' . gettext("Log out") . '</a>' : ''; ?>
|
||||||
|
|
||||||
|
<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> | <?php echo $logout; ?></p>
|
||||||
|
|
||||||
<p><em><small>© 2013-<?php echo date('Y'); ?> sur-le-sentier.fr</small></em></p>
|
<p><em><small>© 2013-<?php echo date('Y'); ?> sur-le-sentier.fr</small></em></p>
|
||||||
|
|
||||||
<script src='lc-lightbox/js/lc_lightbox.min.js' type='text/javascript'></script>
|
<script src='lc-lightbox/js/lc_lightbox.min.js'></script>
|
||||||
<script src='lc-lightbox/lib/AlloyFinger/alloy_finger.min.js' type='text/javascript'></script>
|
<script src='lc-lightbox/lib/AlloyFinger/alloy_finger.min.js'></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|||||||
18
edit_bdd.php
18
edit_bdd.php
@@ -1,8 +1,12 @@
|
|||||||
<?php require ("3-protect.php");
|
<?php
|
||||||
include 'localize.php';
|
require ("3-protect.php");
|
||||||
$domain = 'sentier';
|
//session_start();
|
||||||
localize($domain);
|
include 'i18n_setup.php';
|
||||||
include 'functions.php';
|
/*include 'localize.php';
|
||||||
|
$domain = 'sentier';
|
||||||
|
localize($domain);
|
||||||
|
*/
|
||||||
|
include 'functions.php';
|
||||||
|
|
||||||
$base = 'db_photo.sqlite3';
|
$base = 'db_photo.sqlite3';
|
||||||
$conn = new PDO("sqlite:$base");
|
$conn = new PDO("sqlite:$base");
|
||||||
@@ -132,7 +136,9 @@
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<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>
|
<?php $logout = (isset($_SESSION["user"])) ? '<a class="" href="4-logout.php" role="button">' . gettext("Log out") . '</a>' : ''; ?>
|
||||||
|
|
||||||
|
<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> | <?php echo $logout; ?></p>
|
||||||
|
|
||||||
<p><em><small>© 2013-<?php echo date('Y'); ?> sur-le-sentier.fr</small></em></p>
|
<p><em><small>© 2013-<?php echo date('Y'); ?> sur-le-sentier.fr</small></em></p>
|
||||||
|
|
||||||
|
|||||||
44
index.php
44
index.php
@@ -1,16 +1,25 @@
|
|||||||
<?php include 'localize.php';
|
<?php
|
||||||
|
session_start();
|
||||||
|
include 'i18n_setup.php';
|
||||||
|
/*include 'localize.php';
|
||||||
$domain = 'sentier';
|
$domain = 'sentier';
|
||||||
localize($domain);
|
localize($domain);
|
||||||
|
*/
|
||||||
include 'functions.php';
|
include 'functions.php';
|
||||||
|
/*
|
||||||
|
_pr($_REQUEST); // [lang] => es_ES
|
||||||
|
_pr($_SESSION); // [language] => es_ES
|
||||||
|
_pr($_POST);
|
||||||
|
_pr($_GET); // [lang] => es_ES
|
||||||
|
*/
|
||||||
?>
|
?>
|
||||||
<?php session_start(); ?>
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="description" content="Sur le sentier: photos prises au cours de mes ballades" />
|
<meta name="description" content="Sur le sentier: <?php echo gettext('photos taken during my walks'); ?>...">
|
||||||
<title>Sur le sentier...</title>
|
<title>Sur le sentier...</title>
|
||||||
|
|
||||||
<meta name="msapplication-TileColor" content="#2b5797">
|
<meta name="msapplication-TileColor" content="#2b5797">
|
||||||
@@ -22,34 +31,25 @@ include 'functions.php';
|
|||||||
<link rel="manifest" href="/icons/site.webmanifest">
|
<link rel="manifest" href="/icons/site.webmanifest">
|
||||||
<link rel="shortcut icon" href="/icons/favicon.ico">
|
<link rel="shortcut icon" href="/icons/favicon.ico">
|
||||||
|
|
||||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
|
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
|
||||||
<script src="vegas/js/vegas.min.js"></script>
|
<script src="vegas/js/vegas.min.js"></script>
|
||||||
<script src="js/matomo-sls.js"></script>
|
<script src="js/matomo-sls.js"></script>
|
||||||
<link href='https://fonts.googleapis.com/css?family=Coming+Soon' rel='stylesheet' type='text/css'>
|
<link href='https://fonts.googleapis.com/css?family=Coming+Soon' rel='stylesheet' type='text/css'>
|
||||||
<!-- Patrick+Hand|Josefin+Sans|Coming+Soon|Comfortaa|Pontano+Sans|Rock+Salt -->
|
<!-- Patrick+Hand|Josefin+Sans|Coming+Soon|Comfortaa|Pontano+Sans|Rock+Salt -->
|
||||||
<link rel="stylesheet" type="text/css" href="vegas/js/vegas.min.css" />
|
<link rel="stylesheet" type="text/css" href="vegas/js/vegas.min.css">
|
||||||
<link rel="stylesheet" type="text/css" href="vegas/js/vegas-style.css" />
|
<link rel="stylesheet" type="text/css" href="vegas/js/vegas-style.css">
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="css/sls.css" />
|
<link rel="stylesheet" type="text/css" href="css/sls.css">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
//Get a list of file paths using the glob function.
|
//Get a list of file paths using the glob function.
|
||||||
$fileList = glob('vegas/img/*.{jpg,jpeg,JPG,JPEG,heic,HEIC,webp,WEBP}', GLOB_BRACE);
|
$fileList = glob('vegas/img/*.{jpg,jpeg,JPG,JPEG,heic,HEIC,webp,WEBP}', GLOB_BRACE);
|
||||||
|
|
||||||
$pv_sslport=443;
|
|
||||||
$pv_serverport=80;
|
|
||||||
$pv_servername="sur-le-sentier.fr";
|
|
||||||
|
|
||||||
$pv_URIprotocol = isset($_SERVER["HTTPS"]) ? (($_SERVER["HTTPS"]==="on" || $_SERVER["HTTPS"]===1 || $_SERVER["SERVER_PORT"]===$pv_sslport) ? "https://" : "http://") : (($_SERVER["SERVER_PORT"]===$pv_sslport) ? "https://" : "http://");
|
|
||||||
$host = $pv_URIprotocol . $_SERVER['HTTP_HOST'];
|
|
||||||
|
|
||||||
$wp = (($_SERVER['SERVER_NAME'] == "sur-le-sentier.fr") ? "blog" : "wordpress");
|
$wp = (($_SERVER['SERVER_NAME'] == "sur-le-sentier.fr") ? "blog" : "wordpress");
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<?php //echo "Session language: " . $_SESSION['language']; ?>
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
$("#exemple, body").vegas({
|
$("#exemple, body").vegas({
|
||||||
@@ -99,7 +99,7 @@ $("#exemple, body").vegas({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="icn">
|
<div class="icn">
|
||||||
<!--a title="mail" href="mailto:contact.clicclac.info?subject=[Contact] sur-le-sentier.fr"-->
|
<!--a title="mail" href="mailto:contact.clicclac.info?subject=[Contact] sur-le-sentier.fr"-->host()
|
||||||
<a title="mail" href="/<?php echo $wp; ?>/contact/">
|
<a title="mail" href="/<?php echo $wp; ?>/contact/">
|
||||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
|
||||||
<metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata>
|
<metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata>
|
||||||
@@ -109,7 +109,8 @@ $("#exemple, body").vegas({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="icn">
|
<div class="icn">
|
||||||
<a title="rss" href="<?php echo $host . "/" . $wp; ?>/feed/">
|
<?php //echo $host . "/" . $wp; ?>
|
||||||
|
<a title="rss" href="<?php host() . "/" . $wp; ?>/feed/">
|
||||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
|
||||||
<metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata>
|
<metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata>
|
||||||
<g><path d="M143.6,722.7c-37.1,0-68.7,13-94.7,39c-26,26-39,57.5-39,94.6c0,37.1,13,68.7,39,94.7c26,26,57.5,39,94.7,39s68.7-13,94.6-39c26-26,39-57.5,39-94.7c0-37.1-13-68.7-39-94.6C212.3,735.7,180.7,722.7,143.6,722.7z"/><path d="M451.2,548.7c-52.4-52.9-112.5-95-180.3-126.3c-67.7-31.3-138.7-50-213-56h-3.5c-12.1,0-22,3.9-29.9,11.8c-9.7,8.3-14.6,19.3-14.6,32.7v94c0,11.6,3.8,21.6,11.5,29.9c7.7,8.4,17.3,13,28.9,13.9c106.2,10.2,197.1,53,272.5,128.4c75.4,75.4,118.2,166.2,128.4,272.5c0.9,11.6,5.6,21.2,13.9,28.9c8.4,7.7,18.3,11.5,29.9,11.5h94c13.5,0,24.4-4.9,32.7-14.6c8.8-9.3,12.8-20.4,11.8-33.4c-6-74.2-24.7-145.2-56-212.9C546.2,661.2,504.1,601.1,451.2,548.7z"/><path d="M906.4,594.3c-49.6-111.1-117.8-209.8-204.6-296.1c-86.3-86.8-185-155-296.1-204.6C294.5,43.9,178.2,16.1,56.6,10h-2.1c-12.1,0-22.3,4.2-30.6,12.5c-9.3,8.3-13.9,19-13.9,32v99.5c0,11.6,4.1,21.7,12.2,30.3c8.1,8.6,18,13.1,29.6,13.6c99.8,6,194.5,29.7,284.3,71c89.8,41.3,167.7,95,233.8,161.1C636,496.2,689.7,574.1,731,663.9c41.3,89.8,64.7,184.5,70.3,284.3c0.5,11.6,5,21.5,13.6,29.6c8.6,8.1,18.9,12.2,31,12.2h99.5c13,0,23.6-4.6,32-13.9c9.3-9.3,13.4-20.2,12.5-32.7C983.9,821.8,956,705.4,906.4,594.3z"/></g>
|
<g><path d="M143.6,722.7c-37.1,0-68.7,13-94.7,39c-26,26-39,57.5-39,94.6c0,37.1,13,68.7,39,94.7c26,26,57.5,39,94.7,39s68.7-13,94.6-39c26-26,39-57.5,39-94.7c0-37.1-13-68.7-39-94.6C212.3,735.7,180.7,722.7,143.6,722.7z"/><path d="M451.2,548.7c-52.4-52.9-112.5-95-180.3-126.3c-67.7-31.3-138.7-50-213-56h-3.5c-12.1,0-22,3.9-29.9,11.8c-9.7,8.3-14.6,19.3-14.6,32.7v94c0,11.6,3.8,21.6,11.5,29.9c7.7,8.4,17.3,13,28.9,13.9c106.2,10.2,197.1,53,272.5,128.4c75.4,75.4,118.2,166.2,128.4,272.5c0.9,11.6,5.6,21.2,13.9,28.9c8.4,7.7,18.3,11.5,29.9,11.5h94c13.5,0,24.4-4.9,32.7-14.6c8.8-9.3,12.8-20.4,11.8-33.4c-6-74.2-24.7-145.2-56-212.9C546.2,661.2,504.1,601.1,451.2,548.7z"/><path d="M906.4,594.3c-49.6-111.1-117.8-209.8-204.6-296.1c-86.3-86.8-185-155-296.1-204.6C294.5,43.9,178.2,16.1,56.6,10h-2.1c-12.1,0-22.3,4.2-30.6,12.5c-9.3,8.3-13.9,19-13.9,32v99.5c0,11.6,4.1,21.7,12.2,30.3c8.1,8.6,18,13.1,29.6,13.6c99.8,6,194.5,29.7,284.3,71c89.8,41.3,167.7,95,233.8,161.1C636,496.2,689.7,574.1,731,663.9c41.3,89.8,64.7,184.5,70.3,284.3c0.5,11.6,5,21.5,13.6,29.6c8.6,8.1,18.9,12.2,31,12.2h99.5c13,0,23.6-4.6,32-13.9c9.3-9.3,13.4-20.2,12.5-32.7C983.9,821.8,956,705.4,906.4,594.3z"/></g>
|
||||||
@@ -136,7 +137,7 @@ $("#exemple, body").vegas({
|
|||||||
|
|
||||||
|
|
||||||
<div class="indexForm">
|
<div class="indexForm">
|
||||||
<form name="langSelect" action="index.php" method="get" >
|
<form name="langSelect" action="index.php" method="post" >
|
||||||
<select name="lang" id="lang" class="mySelect">
|
<select name="lang" id="lang" class="mySelect">
|
||||||
<option value="">Language</option>
|
<option value="">Language</option>
|
||||||
<option value="de_DE">German</option>
|
<option value="de_DE">German</option>
|
||||||
@@ -150,8 +151,7 @@ $("#exemple, body").vegas({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="vegas-info">
|
<div class="vegas-info">
|
||||||
<!-- close sesssion -->
|
<?php echo gettext('Powered by'); ?> <a href="https://wordpress.org">WordPress</a> - <a href="https://www.zenphoto.org">Zenphoto</a> - <a href="https://vegas.jaysalvat.com">Vegas Background Slideshow 2</a>. <a href="">License des photos</a>. © 2013-<?php echo date('Y'); ?> sur-le-sentier.fr
|
||||||
<!--a href="close.php">close</a--><?php echo gettext('Powered by'); ?> <a href="https://wordpress.org">WordPress</a> - <a href="https://www.zenphoto.org">Zenphoto</a> - <a href="https://vegas.jaysalvat.com">Vegas Background Slideshow 2</a>. <a href="">License des photos</a>. © 2013-<?php echo date('Y'); ?> sur-le-sentier.fr
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
<?php require ("3-protect.php");
|
<?php
|
||||||
include 'localize.php';
|
require ("3-protect.php");
|
||||||
$domain = 'sentier';
|
//session_start();
|
||||||
localize($domain);
|
include 'i18n_setup.php';
|
||||||
include 'functions.php';
|
/*include 'localize.php';
|
||||||
|
$domain = 'sentier';
|
||||||
|
localize($domain);
|
||||||
|
*/
|
||||||
|
include 'functions.php';
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
@@ -707,7 +711,9 @@ try {
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<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>
|
<?php $logout = (isset($_SESSION["user"])) ? '<a class="" href="4-logout.php" role="button">' . gettext("Log out") . '</a>' : ''; ?>
|
||||||
|
|
||||||
|
<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> | <?php echo $logout; ?></p>
|
||||||
|
|
||||||
<p><em><small>© 2013-<?php echo date('Y'); ?> sur-le-sentier.fr</small></em></p>
|
<p><em><small>© 2013-<?php echo date('Y'); ?> sur-le-sentier.fr</small></em></p>
|
||||||
|
|
||||||
|
|||||||
37
maps.php
37
maps.php
@@ -1,22 +1,35 @@
|
|||||||
<?php session_start();
|
<?php
|
||||||
include 'localize.php';
|
session_start();
|
||||||
$domain = 'sentier';
|
include 'i18n_setup.php';
|
||||||
localize($domain);
|
/*include 'localize.php';
|
||||||
include 'functions.php';
|
$domain = 'sentier';
|
||||||
|
localize($domain);
|
||||||
|
*/
|
||||||
|
include 'functions.php';
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
<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: la photos du mois">
|
||||||
<title><?php echo gettext("Maps"); ?></title>
|
<title><?php echo gettext("Maps"); ?></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">
|
<link rel="stylesheet" href="css/sls.css">
|
||||||
|
|
||||||
<link rel='stylesheet' href='lc-lightbox/css/lc_lightbox.min.css' />
|
<link rel='stylesheet' href='lc-lightbox/css/lc_lightbox.min.css'>
|
||||||
<link rel='stylesheet' href='lc-lightbox/css/open_close_fx.css' />
|
<link rel='stylesheet' href='lc-lightbox/css/open_close_fx.css'>
|
||||||
<link rel='stylesheet' href='lc-lightbox/skins/minimal.css' />
|
<link rel='stylesheet' href='lc-lightbox/skins/minimal.css'>
|
||||||
<style>
|
<style>
|
||||||
#map{
|
#map{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -157,7 +170,7 @@
|
|||||||
<div id="mapCanvas"></div>
|
<div id="mapCanvas"></div>
|
||||||
|
|
||||||
|
|
||||||
<script type='text/javascript'>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
var $obj = lc_lightbox('.gm_thumb a', {
|
var $obj = lc_lightbox('.gm_thumb a', {
|
||||||
@@ -187,8 +200,8 @@
|
|||||||
|
|
||||||
<p><em><small>© 2013-<?php echo date('Y'); ?> sur-le-sentier.fr</small></em></p>
|
<p><em><small>© 2013-<?php echo date('Y'); ?> sur-le-sentier.fr</small></em></p>
|
||||||
|
|
||||||
<script src='lc-lightbox/js/lc_lightbox.min.js' type='text/javascript'></script>
|
<script src='lc-lightbox/js/lc_lightbox.min.js'></script>
|
||||||
<script src='lc-lightbox/lib/AlloyFinger/alloy_finger.min.js' type='text/javascript'></script>
|
<script src='lc-lightbox/lib/AlloyFinger/alloy_finger.min.js'></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,18 @@
|
|||||||
<?php require ("3-protect.php");
|
<?php
|
||||||
include 'localize.php';
|
require ("3-protect.php");
|
||||||
$domain = 'sentier';
|
//session_start();
|
||||||
localize($domain);
|
include 'i18n_setup.php';
|
||||||
include 'functions.php';
|
/*include 'localize.php';
|
||||||
|
$domain = 'sentier';
|
||||||
|
localize($domain);
|
||||||
|
*/
|
||||||
|
include 'functions.php';
|
||||||
|
|
||||||
$base = 'db_photo.sqlite3';
|
$base = 'db_photo.sqlite3';
|
||||||
$conn = new PDO("sqlite:$base");
|
$conn = new PDO("sqlite:$base");
|
||||||
$msg = "";
|
$msg = "";
|
||||||
|
|
||||||
$conn = new PDO("sqlite:db_photo.sqlite3");
|
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||||
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
|
||||||
|
|
||||||
//echo "<a href='close.php'> close session </a><br />";
|
//echo "<a href='close.php'> close session </a><br />";
|
||||||
|
|
||||||
@@ -236,8 +239,9 @@ else {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<?php $logout = (isset($_SESSION["user"])) ? '<a class="" href="4-logout.php" role="button">' . gettext("Log out") . '</a>' : ''; ?>
|
||||||
|
|
||||||
<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 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> | <?php echo $logout; ?></p>
|
||||||
|
|
||||||
<p><em><small>© 2013-<?php echo date('Y'); ?> sur-le-sentier.fr</small></em></p>
|
<p><em><small>© 2013-<?php echo date('Y'); ?> sur-le-sentier.fr</small></em></p>
|
||||||
|
|
||||||
|
|||||||
@@ -1,24 +1,45 @@
|
|||||||
<?php session_start(); ?>
|
<?php
|
||||||
|
session_start();
|
||||||
|
include 'i18n_setup.php';
|
||||||
|
/*include 'localize.php';
|
||||||
|
$domain = 'sentier';
|
||||||
|
localize($domain);
|
||||||
|
*/
|
||||||
|
include 'functions.php';
|
||||||
|
/*
|
||||||
|
_pr($_REQUEST); //
|
||||||
|
_pr($_SESSION); // [language] => de_DE
|
||||||
|
_pr($_POST); //
|
||||||
|
_pr($_GET); //
|
||||||
|
_pr($_COOKIE);
|
||||||
|
|
||||||
|
$locale = Locale::acceptFromHttp($_SERVER['HTTP_ACCEPT_LANGUAGE']); // fr_FR
|
||||||
|
echo $locale;
|
||||||
|
*/
|
||||||
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
<title><?php //echo gettext("Picture of the month"); ?></title>
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<meta name="description" content="Sur le sentier: la photos du mois">
|
||||||
|
<title><?php echo gettext("Picture of the month"); ?></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">
|
<link rel="stylesheet" href="css/sls.css">
|
||||||
|
|
||||||
<link rel='stylesheet' href='lc-lightbox/css/lc_lightbox.min.css' />
|
<link rel="stylesheet" href="lc-lightbox/css/lc_lightbox.min.css">
|
||||||
<link rel='stylesheet' href='lc-lightbox/css/open_close_fx.css' />
|
<link rel="stylesheet" href="lc-lightbox/css/open_close_fx.css">
|
||||||
<link rel='stylesheet' href='lc-lightbox/skins/minimal.css' />
|
<link rel="stylesheet" href="lc-lightbox/skins/minimal.css">
|
||||||
|
|
||||||
<?php
|
|
||||||
include 'localize.php';
|
|
||||||
$domain = 'sentier';
|
|
||||||
localize($domain);
|
|
||||||
include 'functions.php';
|
|
||||||
?>
|
|
||||||
|
|
||||||
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
|
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
|
||||||
|
|
||||||
@@ -34,12 +55,10 @@ else $page = intval($_GET['page']);
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
//$base = $_SERVER['DOCUMENT_ROOT'] . '/db_photo.sqlite3';
|
|
||||||
$base = 'db_photo.sqlite3';
|
$base = 'db_photo.sqlite3';
|
||||||
|
|
||||||
if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/" . $base)) {
|
if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/" . $base)) {
|
||||||
try {
|
try {
|
||||||
//$conn4 = new PDO('sqlite:db_photo.sqlite3');
|
|
||||||
$conn4 = new PDO('sqlite:db_photo.sqlite3');
|
$conn4 = new PDO('sqlite:db_photo.sqlite3');
|
||||||
// WHERE id='26'
|
// WHERE id='26'
|
||||||
$query4 = "SELECT filename, filesize, dateoriginal, lens, speed, correctexpo, iso, usercomment, comment, model, metering, flash, focal, program, wb, mode, width, height, html, aperture, software, lat, long, alt, keywords, title, creator, city, department, code, country, copyright, legende FROM photos ORDER BY dateoriginal DESC LIMIT ? OFFSET ?";
|
$query4 = "SELECT filename, filesize, dateoriginal, lens, speed, correctexpo, iso, usercomment, comment, model, metering, flash, focal, program, wb, mode, width, height, html, aperture, software, lat, long, alt, keywords, title, creator, city, department, code, country, copyright, legende FROM photos ORDER BY dateoriginal DESC LIMIT ? OFFSET ?";
|
||||||
@@ -85,7 +104,7 @@ else exit("Database " . $base . " does not exist !");
|
|||||||
|
|
||||||
echo '<div class="cadre" id="lcl_month">';
|
echo '<div class="cadre" id="lcl_month">';
|
||||||
echo '<a href ="' . $lb['big'] . '" title="' . htmlspecialchars($lb['title']) . '" data-lcl-txt="' . htmlspecialchars($lb['description']) .'" data-lcl-author="' . htmlspecialchars($lb['creator']) . '">';
|
echo '<a href ="' . $lb['big'] . '" title="' . htmlspecialchars($lb['title']) . '" data-lcl-txt="' . htmlspecialchars($lb['description']) .'" data-lcl-author="' . htmlspecialchars($lb['creator']) . '">';
|
||||||
echo '<img src="' . $lb['big'] . '" alt="' . htmlspecialchars($lb['title']) . '" class="trois" />';
|
echo '<img src="' . $lb['big'] . '" alt="' . htmlspecialchars($lb['title']) . '" class="trois">';
|
||||||
echo "</a>";
|
echo "</a>";
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
@@ -148,7 +167,6 @@ else exit("Database " . $base . " does not exist !");
|
|||||||
|
|
||||||
$lb = data_for_lightbox($result[$i]);
|
$lb = data_for_lightbox($result[$i]);
|
||||||
|
|
||||||
//
|
|
||||||
if (!empty($lb['gps'])) {
|
if (!empty($lb['gps'])) {
|
||||||
$map = '<a href = "https://maps.google.com/maps?q=' . $lb['gps'] . '&t=&z=9&ie=UTF8&iwloc=&output=embed" title="' . $lb['title'] . '" data-lcl-txt="' . $lb['legende'] . '">' . " \u{30FB} \u{2693} " . '</a>';
|
$map = '<a href = "https://maps.google.com/maps?q=' . $lb['gps'] . '&t=&z=9&ie=UTF8&iwloc=&output=embed" title="' . $lb['title'] . '" data-lcl-txt="' . $lb['legende'] . '">' . " \u{30FB} \u{2693} " . '</a>';
|
||||||
|
|
||||||
@@ -157,17 +175,12 @@ else exit("Database " . $base . " does not exist !");
|
|||||||
$meta = '';
|
$meta = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
// data-lcl-author="' . htmlspecialchars($lb['exif']) . '"
|
|
||||||
//
|
|
||||||
|
|
||||||
echo '<div class="item">';
|
echo '<div class="item">';
|
||||||
//echo '<a href ="' . $lb['big'] . '" title="' . htmlspecialchars($lb['title']) . '" data-lcl-txt="' . htmlspecialchars($lb['title']) .'" data-lcl-author="' . htmlspecialchars($meta) . '">';
|
|
||||||
//echo '<a href ="' . $lb['big'] . '" title="' . htmlspecialchars($lb['title']) . '" data-lcl-txt="' . htmlspecialchars($lb['exif']) . '" data-lcl-author="' . htmlspecialchars($lb['creator']) . '">';
|
|
||||||
// '" by="par' .
|
|
||||||
|
|
||||||
echo '<a href ="' . $lb['big'] . '" title="' . htmlspecialchars($lb['title']) . '" data-lcl-txt="' . htmlspecialchars($lb['description']) . '" data-lcl-author="' . htmlspecialchars($lb['creator']) . '">';
|
echo '<a href ="' . $lb['big'] . '" title="' . htmlspecialchars($lb['title']) . '" data-lcl-txt="' . htmlspecialchars($lb['description']) . '" data-lcl-author="' . htmlspecialchars($lb['creator']) . '">';
|
||||||
|
|
||||||
echo '<img src="' . $lb['thumb'] . '" alt="' . htmlspecialchars($lb['title']) . '" />';
|
echo '<img src="' . $lb['thumb'] . '" alt="' . htmlspecialchars($lb['title']) . '">';
|
||||||
echo "</a>";
|
echo "</a>";
|
||||||
echo '<span class="caption">' . month($date) . '</span>';
|
echo '<span class="caption">' . month($date) . '</span>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
@@ -194,7 +207,7 @@ else exit("Database " . $base . " does not exist !");
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type='text/javascript'>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
var $obj = lc_lightbox('#lcl_gallery a', {
|
var $obj = lc_lightbox('#lcl_gallery a', {
|
||||||
img_zoom : true, // whether to enable zooming system
|
img_zoom : true, // whether to enable zooming system
|
||||||
@@ -322,8 +335,8 @@ echo '</div>';
|
|||||||
|
|
||||||
<p><em><small>© 2013-<?php echo date('Y'); ?> sur-le-sentier.fr</small></em></p>
|
<p><em><small>© 2013-<?php echo date('Y'); ?> sur-le-sentier.fr</small></em></p>
|
||||||
|
|
||||||
<script src='lc-lightbox/js/lc_lightbox.min.js' type='text/javascript'></script>
|
<script src='lc-lightbox/js/lc_lightbox.min.js'></script>
|
||||||
<script src='lc-lightbox/lib/AlloyFinger/alloy_finger.min.js' type='text/javascript'></script>
|
<script src='lc-lightbox/lib/AlloyFinger/alloy_finger.min.js'></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
require ("3-protect.php");
|
require ("3-protect.php");
|
||||||
include 'localize.php';
|
//session_start();
|
||||||
$domain = 'sentier';
|
include 'i18n_setup.php';
|
||||||
localize($domain);
|
/*include 'localize.php';
|
||||||
include 'functions.php';
|
$domain = 'sentier';
|
||||||
|
localize($domain);
|
||||||
|
*/
|
||||||
|
include 'functions.php';
|
||||||
|
|
||||||
if (isset($_SERVER['HTTP_REFERER'])){
|
if (isset($_SERVER['HTTP_REFERER'])){
|
||||||
$id = $_GET['id'];
|
$id = $_GET['id'];
|
||||||
@@ -41,7 +44,7 @@ if (isset($_SERVER['HTTP_REFERER'])){
|
|||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
echo (isset($_SESSION["user"])) ? '<td>' . '<input type="checkbox" id="edit" name="coche[]" value="' . $row['id'] . '" >' . '</td>' : '';
|
echo (isset($_SESSION["user"])) ? '<td>' . '<input type="checkbox" id="edit" name="coche[]" value="' . $row['id'] . '" >' . '</td>' : '';
|
||||||
echo "<td class='priority-1 center'>".$row['id']."</td>";
|
echo "<td class='priority-1 center'>".$row['id']."</td>";
|
||||||
echo "<td class='priority-1'>" . "<a href='" . $full . "' title='" . htmlspecialchars($lb['title']) . "' data-lcl-txt='" . htmlspecialchars($lb['description']) . "' data-lcl-author='" . htmlspecialchars($lb['creator']) . "' /><img src='" . $thumbnail . "' alt='" . htmlspecialchars($lb['title']) . "' /></a></td>";
|
echo "<td class='priority-1'>" . "<a href='" . $full . "' title='" . htmlspecialchars($lb['title']) . "' data-lcl-txt='" . htmlspecialchars($lb['description']) . "' data-lcl-author='" . htmlspecialchars($lb['creator']) . "' /><img src='" . $thumbnail . "' alt='" . htmlspecialchars($lb['title']) . "'></a></td>";
|
||||||
echo "<td class='priority-2'>".$row['filename']."</td>";
|
echo "<td class='priority-2'>".$row['filename']."</td>";
|
||||||
echo "<td class='priority-8'>".$row['dateoriginal']."</td>";
|
echo "<td class='priority-8'>".$row['dateoriginal']."</td>";
|
||||||
echo "<td class='priority-3'>".$row['speed']."</td>";
|
echo "<td class='priority-3'>".$row['speed']."</td>";
|
||||||
|
|||||||
10
requests.php
10
requests.php
@@ -1,8 +1,12 @@
|
|||||||
<?php //require ("3-protect.php");
|
<?php
|
||||||
|
require ("3-protect.php");
|
||||||
include 'functions.php';
|
//session_start();
|
||||||
|
include 'i18n_setup.php';
|
||||||
|
/*include 'localize.php';
|
||||||
$domain = 'sentier';
|
$domain = 'sentier';
|
||||||
localize($domain);
|
localize($domain);
|
||||||
|
*/
|
||||||
|
include 'functions.php';
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|||||||
92
view_bdd.php
92
view_bdd.php
@@ -1,50 +1,20 @@
|
|||||||
<?php require ("3-protect.php");
|
<?php
|
||||||
include 'localize.php';
|
require ("3-protect.php");
|
||||||
$domain = 'sentier';
|
//session_start();
|
||||||
localize($domain);
|
include 'i18n_setup.php';
|
||||||
include 'functions.php';
|
/*include 'localize.php';
|
||||||
|
$domain = 'sentier';
|
||||||
$base = 'db_photo.sqlite3';
|
localize($domain);
|
||||||
$conn = new PDO("sqlite:$base");
|
|
||||||
$msg = "";
|
|
||||||
|
|
||||||
if(!empty($_GET['message'])) {
|
|
||||||
$msg = "<h3 class='redstyle'>" . $_GET['message'] . "</h3>";
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
// Suppression d'images
|
|
||||||
|
|
||||||
if (isset($_SESSION["user"])) {
|
|
||||||
if ((isset($_POST["suppress"])) && ($_POST["suppress"] == "suppress")) {
|
|
||||||
if (isset($_POST['coche']) && (! empty($_POST['coche']))) {
|
|
||||||
$rr = "";
|
|
||||||
foreach($_POST['coche'] as $key => $value) {
|
|
||||||
$r = "id = " . $value . " OR ";
|
|
||||||
$rr .= $r;
|
|
||||||
}
|
|
||||||
|
|
||||||
$req_delete = substr($rr, 0, strlen($rr)-4);
|
|
||||||
|
|
||||||
try {
|
|
||||||
$req = "DELETE FROM Photos WHERE (" . $req_delete . ")";
|
|
||||||
$stmt = $conn->prepare($req);
|
|
||||||
$stmt->execute();
|
|
||||||
$nb = $stmt->rowCount();
|
|
||||||
}
|
|
||||||
catch(PDOException $e) {
|
|
||||||
echo $e->getMessage();
|
|
||||||
}
|
|
||||||
|
|
||||||
$msg = (($nb > 0) ? "<h3 class='greenstyle'>" . $nb . gettext(' photos successfully deleted !') . "</h3>" : "");
|
|
||||||
$request_delete = $req;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$msg = "<h3 class='redstyle'>" . gettext('Empty request !') . "</h3>" ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
*/
|
||||||
|
include 'functions.php';
|
||||||
|
|
||||||
|
$base = 'db_photo.sqlite3';
|
||||||
|
$conn = new PDO("sqlite:$base");
|
||||||
|
$msg = "";
|
||||||
|
|
||||||
|
if(!empty($_GET['message'])) {
|
||||||
|
$msg = "<h3 class='redstyle'>" . $_GET['message'] . "</h3>";
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
@@ -52,13 +22,23 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
|
<meta name="description" content="Sur le sentier: admin">
|
||||||
<title><?php echo gettext('View photos in Sqlite base'); ?></title>
|
<title><?php echo gettext('View photos in Sqlite base'); ?></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" />
|
<link rel="stylesheet" href="css/sls.css">
|
||||||
<link rel='stylesheet' href='lc-lightbox/css/lc_lightbox.min.css' />
|
|
||||||
<link rel='stylesheet' href='lc-lightbox/css/open_close_fx.css' />
|
<link rel='stylesheet' href='lc-lightbox/css/lc_lightbox.min.css'>
|
||||||
<link rel='stylesheet' href='lc-lightbox/skins/minimal.css' />
|
<link rel='stylesheet' href='lc-lightbox/css/open_close_fx.css'>
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
<link rel='stylesheet' href='lc-lightbox/skins/minimal.css'>
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g==" crossorigin="anonymous" referrerpolicy="no-referrer">
|
||||||
|
|
||||||
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
|
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
|
||||||
|
|
||||||
@@ -108,7 +88,7 @@ function showUser(column) {
|
|||||||
<body onload="showUser('')">
|
<body onload="showUser('')">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
echo '<h1>' . gettext('View database') . ': ' . $base . '</h1><br />';
|
echo '<h1>' . gettext('View database') . ': ' . $base . '</h1><br>';
|
||||||
|
|
||||||
echo $msg;
|
echo $msg;
|
||||||
?>
|
?>
|
||||||
@@ -177,7 +157,7 @@ function showUser(column) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type='text/javascript'>
|
<script>
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
@@ -231,14 +211,14 @@ function showUser(column) {
|
|||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php $logout = (isset($_SESSION["user"])) ? '<a class="" href="4-logout.php" role="button">' . gettext("Log out") . '</a></p>' : ''; ?>
|
<?php $logout = (isset($_SESSION["user"])) ? '<a class="" href="4-logout.php" role="button">' . gettext("Log out") . '</a>' : ''; ?>
|
||||||
|
|
||||||
<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> | <?php echo $logout; ?></p>
|
<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> | <?php echo $logout; ?></p>
|
||||||
|
|
||||||
<p><em><small>© 2013-<?php echo date('Y'); ?> sur-le-sentier.fr</small></em></p>
|
<p><em><small>© 2013-<?php echo date('Y'); ?> sur-le-sentier.fr</small></em></p>
|
||||||
|
|
||||||
<script src='lc-lightbox/js/lc_lightbox.min.js' type='text/javascript'></script>
|
<script src='lc-lightbox/js/lc_lightbox.min.js'></script>
|
||||||
<script src='lc-lightbox/lib/AlloyFinger/alloy_finger.min.js' type='text/javascript'></script>
|
<script src='lc-lightbox/lib/AlloyFinger/alloy_finger.min.js'></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -1,8 +1,11 @@
|
|||||||
<?php require ("3-protect.php");
|
<?php
|
||||||
|
require ("3-protect.php");
|
||||||
//session_start();
|
//session_start();
|
||||||
include 'localize.php';
|
include 'i18n_setup.php';
|
||||||
|
/*include 'localize.php';
|
||||||
$domain = 'sentier';
|
$domain = 'sentier';
|
||||||
localize($domain);
|
localize($domain);
|
||||||
|
*/
|
||||||
include 'functions.php';
|
include 'functions.php';
|
||||||
|
|
||||||
$base = 'db_photo.sqlite3';
|
$base = 'db_photo.sqlite3';
|
||||||
@@ -14,40 +17,7 @@ $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
|||||||
if (!isset($_GET['page'])) $page = 1;
|
if (!isset($_GET['page'])) $page = 1;
|
||||||
else $page = intval($_GET['page']);
|
else $page = intval($_GET['page']);
|
||||||
|
|
||||||
/*
|
|
||||||
// Suppression d'images
|
|
||||||
|
|
||||||
if (isset($_SESSION["user"])) {
|
|
||||||
if ((isset($_POST["suppress"])) && ($_POST["suppress"] == "suppress")) {
|
|
||||||
if (isset($_POST['coche']) && (! empty($_POST['coche']))) {
|
|
||||||
$rr = "";
|
|
||||||
foreach($_POST['coche'] as $key => $value) {
|
|
||||||
$r = "id = " . $value . " OR ";
|
|
||||||
$rr .= $r;
|
|
||||||
}
|
|
||||||
|
|
||||||
$req_delete = substr($rr, 0, strlen($rr)-4);
|
|
||||||
|
|
||||||
try {
|
|
||||||
$req = "DELETE FROM Photos WHERE (" . $req_delete . ")";
|
|
||||||
$stmt = $conn->prepare($req);
|
|
||||||
$stmt->execute();
|
|
||||||
$nb = $stmt->rowCount();
|
|
||||||
}
|
|
||||||
catch(PDOException $e) {
|
|
||||||
echo $e->getMessage();
|
|
||||||
}
|
|
||||||
|
|
||||||
$msg = (($nb > 0) ? "<h3 class='greenstyle'>" . $nb . gettext(' photos successfully deleted !') . "</h3>" : "");
|
|
||||||
$request_delete = $req;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$msg = "<h3 class='redstyle'>" . gettext('Empty request !') . "</h3>" ;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
$gps = (isset($_SESSION['query']['gps'])) ? $_SESSION['query']['gps'] : "off";
|
$gps = (isset($_SESSION['query']['gps'])) ? $_SESSION['query']['gps'] : "off";
|
||||||
|
|
||||||
@@ -95,13 +65,23 @@ foreach ($request as $key => $val){
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
|
<meta name="description" content="Sur le sentier: admin">
|
||||||
<title><?php echo gettext('View photos in Sqlite base'); ?></title>
|
<title><?php echo gettext('View photos in Sqlite base'); ?></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" />
|
<link rel="stylesheet" href="css/sls.css">
|
||||||
<link rel='stylesheet' href='lc-lightbox/css/lc_lightbox.min.css' />
|
|
||||||
<link rel='stylesheet' href='lc-lightbox/css/open_close_fx.css' />
|
<link rel='stylesheet' href='lc-lightbox/css/lc_lightbox.min.css'>
|
||||||
<link rel='stylesheet' href='lc-lightbox/skins/minimal.css' />
|
<link rel='stylesheet' href='lc-lightbox/css/open_close_fx.css'>
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
<link rel='stylesheet' href='lc-lightbox/skins/minimal.css'>
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g==" crossorigin="anonymous" referrerpolicy="no-referrer">
|
||||||
|
|
||||||
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
|
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
|
||||||
|
|
||||||
@@ -110,7 +90,7 @@ foreach ($request as $key => $val){
|
|||||||
<body>
|
<body>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
echo '<h1>' . gettext('View database') . ': ' . $base . '</h1><br />';
|
echo '<h1>' . gettext('View database') . ': ' . $base . '</h1><br>';
|
||||||
|
|
||||||
// Affichage des photos
|
// Affichage des photos
|
||||||
|
|
||||||
@@ -252,9 +232,9 @@ try {
|
|||||||
</select>
|
</select>
|
||||||
<span class="operateur"><?php echo gettext('Operator:'); ?></span>
|
<span class="operateur"><?php echo gettext('Operator:'); ?></span>
|
||||||
<input type="radio" id="operator1" name="operator" value="AND" checked>
|
<input type="radio" id="operator1" name="operator" value="AND" checked>
|
||||||
<label for="ope1"><?php echo gettext('AND'); ?></label>
|
<label for="operator1"><?php echo gettext('AND'); ?></label>
|
||||||
<input type="radio" id="operator2" name="operator" value="OR">
|
<input type="radio" id="operator2" name="operator" value="OR">
|
||||||
<label for="ope1"><?php echo gettext('OR'); ?></label>
|
<label for="operator2"><?php echo gettext('OR'); ?></label>
|
||||||
|
|
||||||
|
|
||||||
<button type="submit" class="myButton">OK</button>
|
<button type="submit" class="myButton">OK</button>
|
||||||
@@ -301,9 +281,9 @@ try {
|
|||||||
|
|
||||||
echo '<table class="styled-table">';
|
echo '<table class="styled-table">';
|
||||||
echo '<thead>';
|
echo '<thead>';
|
||||||
echo ((isset($_SESSION["user"])) ? '<th>' . gettext('Select') . '</th>' : '') . '<th>' . gettext('Id') . '</th><th>' . gettext('Thumb') . '</th><th>' . gettext('Filename') . ' (' . gettext('Size') . ')</th><th><a class="sort" href="view_bdd.php?column=date&order=' . $asc_or_desc . '">' . gettext('Date') . ' <i class="fas fa-sort' . ($column == 'date' ? '-' . $up_or_down : '') . '"></i></a></th><th><a href="view_bdd.php?column=lens&order=' . $asc_or_desc . '">' . gettext('Lens') . ' <i class="fas fa-sort' . ($column == 'lens' ? '-' . $up_or_down : '') . '"></i></a></th><th>' . gettext('Speed') . '</th><th>' . gettext('Aperture') . '</th><th>' . gettext('Exposure corr.') . '</th><th><a href="view_bdd.php?column=iso&order=' . $asc_or_desc . '">' . gettext('Iso') . ' <i class="fas fa-sort' . ($column == 'iso' ? '-' . $up_or_down : '') . '"></i></a></th><th>' . gettext('Width') . '</th><th>' . gettext('Height') . '</th>';
|
echo '<tr>' . ((isset($_SESSION["user"])) ? '<th>' . gettext('Select') . '</th>' : '') . '<th>' . gettext('Id') . '</th><th>' . gettext('Thumb') . '</th><th>' . gettext('Filename') . ' (' . gettext('Size') . ')</th><th><a class="sort" href="view_bdd.php?column=date&order=' . $asc_or_desc . '">' . gettext('Date') . ' <i class="fas fa-sort' . ($column == 'date' ? '-' . $up_or_down : '') . '"></i></a></th><th><a href="view_bdd.php?column=lens&order=' . $asc_or_desc . '">' . gettext('Lens') . ' <i class="fas fa-sort' . ($column == 'lens' ? '-' . $up_or_down : '') . '"></i></a></th><th>' . gettext('Speed') . '</th><th>' . gettext('Aperture') . '</th><th>' . gettext('Exposure corr.') . '</th><th><a href="view_bdd.php?column=iso&order=' . $asc_or_desc . '">' . gettext('Iso') . ' <i class="fas fa-sort' . ($column == 'iso' ? '-' . $up_or_down : '') . '"></i></a></th><th>' . gettext('Width') . '</th><th>' . gettext('Height') . '</th>';
|
||||||
echo '<th><a href="view_bdd.php?column=model&order=' . $asc_or_desc . '">' . gettext('Model') . ' <i class="fas fa-sort' . ($column == 'Model' ? '-' . $up_or_down : '') . '"></i></a></th><th><a href="view_bdd.php?column=lat&order=' . $asc_or_desc . '">' . gettext('Latitude') . ' <i class="fas fa-sort' . ($column == 'lat' ? '-' . $up_or_down : '') . '"></i></a></th><th>' . gettext('Longitude') . '</th><th>' . gettext('Alttitude') . '</th><th>' . gettext('Legende') . '</th><th>' . gettext('Copyright') . '</th><th>' . gettext('Title') . '</th>';
|
echo '<th><a href="view_bdd.php?column=model&order=' . $asc_or_desc . '">' . gettext('Model') . ' <i class="fas fa-sort' . ($column == 'Model' ? '-' . $up_or_down : '') . '"></i></a></th><th><a href="view_bdd.php?column=lat&order=' . $asc_or_desc . '">' . gettext('Latitude') . ' <i class="fas fa-sort' . ($column == 'lat' ? '-' . $up_or_down : '') . '"></i></a></th><th>' . gettext('Longitude') . '</th><th>' . gettext('Alttitude') . '</th><th>' . gettext('Legende') . '</th><th>' . gettext('Copyright') . '</th><th>' . gettext('Title') . '</th>';
|
||||||
echo '<th>' . gettext('Creator') . '</th><th>' . gettext('Keywords') . '</th><th>' . gettext('Metering') . '</th><th>' . gettext('Flash') . '</th><th>' . gettext('Focal') . '</th><th>' . gettext('Wb') . '</th><th>' . gettext('Program') . '</th>';
|
echo '<th>' . gettext('Creator') . '</th><th>' . gettext('Keywords') . '</th><th>' . gettext('Metering') . '</th><th>' . gettext('Flash') . '</th><th>' . gettext('Focal') . '</th><th>' . gettext('Wb') . '</th><th>' . gettext('Program') . '</th></tr>';
|
||||||
echo '</thead>';
|
echo '</thead>';
|
||||||
echo '<tbody>';
|
echo '<tbody>';
|
||||||
|
|
||||||
@@ -313,7 +293,7 @@ try {
|
|||||||
$full = host() . $row['filename'];
|
$full = host() . $row['filename'];
|
||||||
$lb = data_for_lightbox($row);
|
$lb = data_for_lightbox($row);
|
||||||
|
|
||||||
echo '<tr>' . ((isset($_SESSION["user"])) ? '<td>' . '<input type="checkbox" id="edit" name="coche[]" value="' . $row['id'] . '" >' . '</td>' : '') . '<td>' . $row['id'] . '</td><td>' . '<a href="' . $full . '" title="' . htmlspecialchars($lb['title']) . '" data-lcl-txt="' . htmlspecialchars($lb['description']) . '" data-lcl-author="' . htmlspecialchars($lb['creator']) . '"><img src="'.$thumbnail.'" alt="' . htmlspecialchars($lb['title']) . '" /></a>' . '</td><td>' . $row['filename'] . '<br />(' . $row['filesize'] . ')</td><td>' . $row['dateoriginal'] . '</td><td>' . $row['lens'] . '</td><td>' . $row['speed'] . '</td><td>' . $row['aperture'] . '</td> <td>' . $row['correctexpo'] . '</td><td>' . $row['iso'] . '</td><td>' . $row['width'] . '</td><td>' . $row['height'] . '</td><td>' . $row['model'] . '</td><td>' . $row['lat'] . '</td><td>' . $row['long'] . '</td><td>' . $row['alt'] . '</td><td>' . $row['legende'] . '</td><td>' . $row['copyright'] . '</td><td>' . $row['title'] . '</td><td>' . $row['creator'] . '</td><td>' . $row['keywords'] . '</td><td>' . $row['metering'] . '</td><td>' . $row['flash'] . '</td><td>' . $row['focal'] . '</td><td>' . $row['wb'] . '</td><td>' . $row['program'] . '</td></tr>';
|
echo '<tr>' . ((isset($_SESSION["user"])) ? '<td>' . '<input type="checkbox" id="edit" name="coche[]" value="' . $row['id'] . '" >' . '</td>' : '') . '<td>' . $row['id'] . '</td><td>' . '<a href="' . $full . '" title="' . htmlspecialchars($lb['title']) . '" data-lcl-txt="' . htmlspecialchars($lb['description']) . '" data-lcl-author="' . htmlspecialchars($lb['creator']) . '"><img src="'.$thumbnail.'" alt="' . htmlspecialchars($lb['title']) . '"></a>' . '</td><td>' . $row['filename'] . '<br>(' . $row['filesize'] . ')</td><td>' . $row['dateoriginal'] . '</td><td>' . $row['lens'] . '</td><td>' . $row['speed'] . '</td><td>' . $row['aperture'] . '</td> <td>' . $row['correctexpo'] . '</td><td>' . $row['iso'] . '</td><td>' . $row['width'] . '</td><td>' . $row['height'] . '</td><td>' . $row['model'] . '</td><td>' . $row['lat'] . '</td><td>' . $row['long'] . '</td><td>' . $row['alt'] . '</td><td>' . $row['legende'] . '</td><td>' . $row['copyright'] . '</td><td>' . $row['title'] . '</td><td>' . $row['creator'] . '</td><td>' . $row['keywords'] . '</td><td>' . $row['metering'] . '</td><td>' . $row['flash'] . '</td><td>' . $row['focal'] . '</td><td>' . $row['wb'] . '</td><td>' . $row['program'] . '</td></tr>';
|
||||||
$nRows++;
|
$nRows++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -334,7 +314,7 @@ try {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type='text/javascript'>
|
<script>
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
@@ -429,14 +409,14 @@ try {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php $logout = (isset($_SESSION["user"])) ? '<a class="" href="4-logout.php" role="button">' . gettext("Log out") . '</a></p>' : ''; ?>
|
<?php $logout = (isset($_SESSION["user"])) ? '<a class="" href="4-logout.php" role="button">' . gettext("Log out") . '</a>' : ''; ?>
|
||||||
|
|
||||||
<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> | <?php echo $logout; ?></p>
|
<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> | <?php echo $logout; ?></p>
|
||||||
|
|
||||||
<p><em><small>© 2013-<?php echo date('Y'); ?> sur-le-sentier.fr</small></em></p>
|
<p><em><small>© 2013-<?php echo date('Y'); ?> sur-le-sentier.fr</small></em></p>
|
||||||
|
|
||||||
<script src='lc-lightbox/js/lc_lightbox.min.js' type='text/javascript'></script>
|
<script src='lc-lightbox/js/lc_lightbox.min.js'></script>
|
||||||
<script src='lc-lightbox/lib/AlloyFinger/alloy_finger.min.js' type='text/javascript'></script>
|
<script src='lc-lightbox/lib/AlloyFinger/alloy_finger.min.js'></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user