Validation HTML
This commit is contained in:
@@ -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>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<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='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' />
|
||||
|
||||
<?php
|
||||
include 'localize.php';
|
||||
$domain = 'sentier';
|
||||
localize($domain);
|
||||
include 'functions.php';
|
||||
?>
|
||||
<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.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
|
||||
|
||||
@@ -34,12 +55,10 @@ else $page = intval($_GET['page']);
|
||||
?>
|
||||
|
||||
<?php
|
||||
//$base = $_SERVER['DOCUMENT_ROOT'] . '/db_photo.sqlite3';
|
||||
$base = 'db_photo.sqlite3';
|
||||
|
||||
if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/" . $base)) {
|
||||
try {
|
||||
//$conn4 = new PDO('sqlite:db_photo.sqlite3');
|
||||
$conn4 = new PDO('sqlite:db_photo.sqlite3');
|
||||
// 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 ?";
|
||||
@@ -85,7 +104,7 @@ else exit("Database " . $base . " does not exist !");
|
||||
|
||||
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 '<img src="' . $lb['big'] . '" alt="' . htmlspecialchars($lb['title']) . '" class="trois" />';
|
||||
echo '<img src="' . $lb['big'] . '" alt="' . htmlspecialchars($lb['title']) . '" class="trois">';
|
||||
echo "</a>";
|
||||
echo '</div>';
|
||||
|
||||
@@ -148,7 +167,6 @@ else exit("Database " . $base . " does not exist !");
|
||||
|
||||
$lb = data_for_lightbox($result[$i]);
|
||||
|
||||
//
|
||||
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>';
|
||||
|
||||
@@ -157,17 +175,12 @@ else exit("Database " . $base . " does not exist !");
|
||||
$meta = '';
|
||||
}
|
||||
|
||||
// data-lcl-author="' . htmlspecialchars($lb['exif']) . '"
|
||||
//
|
||||
|
||||
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 '<img src="' . $lb['thumb'] . '" alt="' . htmlspecialchars($lb['title']) . '" />';
|
||||
echo '<img src="' . $lb['thumb'] . '" alt="' . htmlspecialchars($lb['title']) . '">';
|
||||
echo "</a>";
|
||||
echo '<span class="caption">' . month($date) . '</span>';
|
||||
echo '</div>';
|
||||
@@ -194,7 +207,7 @@ else exit("Database " . $base . " does not exist !");
|
||||
|
||||
</div>
|
||||
|
||||
<script type='text/javascript'>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var $obj = lc_lightbox('#lcl_gallery a', {
|
||||
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>
|
||||
|
||||
<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>
|
||||
<script src='lc-lightbox/js/lc_lightbox.min.js'></script>
|
||||
<script src='lc-lightbox/lib/AlloyFinger/alloy_finger.min.js'></script>
|
||||
|
||||
</body>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user