diff --git a/1-login.css b/admin/1-login.css similarity index 100% rename from 1-login.css rename to admin/1-login.css diff --git a/1-login.php b/admin/1-login.php similarity index 63% rename from 1-login.php rename to admin/1-login.php index 60c4e97..503ff9b 100644 --- a/1-login.php +++ b/admin/1-login.php @@ -3,10 +3,10 @@ // (A) LOGIN CHECKS require "2-check.php"; - include 'localize.php'; + include '../localize.php'; $domain = 'sentier'; localize($domain); - include 'functions.php'; + include '../functions.php'; // (B) LOGIN PAGE HTML ?> @@ -14,7 +14,7 @@ <?php echo gettext("Login Page"); ?> - + @@ -30,7 +30,7 @@ "> - +

© 2013- sur-le-sentier.fr

diff --git a/2-check.php b/admin/2-check.php similarity index 100% rename from 2-check.php rename to admin/2-check.php diff --git a/3-protect.php b/admin/3-protect.php similarity index 100% rename from 3-protect.php rename to admin/3-protect.php diff --git a/4-logout.php b/admin/4-logout.php similarity index 100% rename from 4-logout.php rename to admin/4-logout.php diff --git a/admin.php b/admin/admin.php similarity index 83% rename from admin.php rename to admin/admin.php index 27afb85..095e6a8 100644 --- a/admin.php +++ b/admin/admin.php @@ -1,10 +1,10 @@ @@ -25,7 +25,7 @@ - + @@ -46,12 +46,12 @@ ?> diff --git a/clean_bdd.php b/admin/clean_bdd.php similarity index 89% rename from clean_bdd.php rename to admin/clean_bdd.php index 7519ea1..6019d24 100644 --- a/clean_bdd.php +++ b/admin/clean_bdd.php @@ -1,12 +1,12 @@ @@ -26,7 +26,7 @@ include 'functions.php'; - + @@ -38,20 +38,20 @@ include 'functions.php'; ' . gettext('Clean folder img...') . ''; -$originals = array_map('basename', glob('photos/img/*.{jpg,jpeg,JPG,JPEG,heic,HEIC,webp,WEBP}', GLOB_BRACE)); -$thumbs = array_map('basename', glob('photos/thumb/*.{jpg,jpeg,JPG,JPEG,heic,HEIC,webp,WEBP}', GLOB_BRACE)); +$originals = array_map('basename', glob("$img_path/*.{jpg,jpeg,JPG,JPEG,heic,HEIC,webp,WEBP}", GLOB_BRACE)); +$thumbs = array_map('basename', glob("$thumb_path/*.{jpg,jpeg,JPG,JPEG,heic,HEIC,webp,WEBP}", GLOB_BRACE)); // On recherche les vignettes manquantes @@ -101,7 +101,7 @@ if ($b > 0) { echo '

' . gettext('Compare folder img and database...') . '

'; try { - $conn = new PDO("sqlite:db_photo.sqlite3"); + $conn = new PDO("sqlite:$base"); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $query = "SELECT filename FROM photos"; @@ -125,8 +125,8 @@ foreach($result as $file) { } $base = array_map('basename', $bdd); -echo '

' . count($base) . " entries in database". "

"; -echo '

' . count($originals) . " files on disk" . "

"; +echo '

' . count($base) . gettext(" entries in database"). "

"; +echo '

' . count($originals) . gettext(" files on disk") . "

"; $extra_in_bdd= array_diff($base, $originals); $c = count($extra_in_bdd); @@ -704,10 +704,12 @@ if ($d > 0) { echo ''; echo ''; while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { - $thumbnail = host() . str_replace("photos/img", "photos/thumb", $row['filename']); - $full = host() . $row['filename']; + //$thumbnail = host() . str_replace("photos/img", "photos/thumb", $row['filename']); + //$full = host() . $row['filename']; - echo '' . '' . '' . $row['filename'] . '' . $row['filesize'] . '' . $row['dateoriginal'] . '' . $row['lens'] . '' . $row['speed'] . '' . $row['aperture'] . '' . $row['correctexpo'] . '' . $row['iso'] . '' . $row['model'] . '' . $row['metering'] . '' . $row['flash'] . '' . $row['focal'] . '' . $row['program'] . '' . $row['wb'] . '' . $row['mode'] . '' . $row['software'] . '' . $row['lat'] . '' . $row['long'] . '' . $row['alt'] . '' . $row['keywords'] . '' . $row['title'] . '' . $row['creator'] . '' . $row['city'] . '' . $row['department'] . '' . $row['code'] . '' . $row['country'] . '' . $row['copyright'] . '' . $row['legende'] . ''; + $lb = data_for_lightbox($row); + + echo '' . '' . '' . $row['filename'] . '' . $row['filesize'] . '' . $row['dateoriginal'] . '' . $row['lens'] . '' . $row['speed'] . '' . $row['aperture'] . '' . $row['correctexpo'] . '' . $row['iso'] . '' . $row['model'] . '' . $row['metering'] . '' . $row['flash'] . '' . $row['focal'] . '' . $row['program'] . '' . $row['wb'] . '' . $row['mode'] . '' . $row['software'] . '' . $row['lat'] . '' . $row['long'] . '' . $row['alt'] . '' . $row['keywords'] . '' . $row['title'] . '' . $row['creator'] . '' . $row['city'] . '' . $row['department'] . '' . $row['code'] . '' . $row['country'] . '' . $row['copyright'] . '' . $row['legende'] . ''; } echo ''; echo ''; @@ -725,7 +727,7 @@ if ($d > 0) { ' . gettext("Log out") . '' : ''; ?> - +

© 2013- sur-le-sentier.fr

diff --git a/close.php b/admin/close.php similarity index 100% rename from close.php rename to admin/close.php diff --git a/delete_bdd.php b/admin/delete_bdd.php similarity index 64% rename from delete_bdd.php rename to admin/delete_bdd.php index d5e11ab..c57837f 100644 --- a/delete_bdd.php +++ b/admin/delete_bdd.php @@ -1,14 +1,16 @@ - + - - - + + + @@ -155,7 +157,7 @@ if (($req_suppress != "") and ($req_delete == "")) { try { - $conn3 = new PDO('sqlite:db_photo.sqlite3'); + $conn3 = new PDO("sqlite:$base"); $stmt3 = $conn3->prepare($req_suppress); $stmt3->execute(); @@ -171,17 +173,16 @@ if (($req_suppress != "") and ($req_delete == "")) { $nRows = 0; while ($row = $stmt3->fetch(PDO::FETCH_ASSOC)) { - $thumbnail = host() . str_replace("photos/img", "photos/thumb", $row['filename']); - $full = host() . $row['filename']; - echo '' . $row['id'] . '' . '' . ''; + $lb = data_for_lightbox($row); + + echo '' . $row['id'] . '' . '' . htmlspecialchars($lb['title']) . '' . ''; echo '' . $row['filename'] . '' . $row['dateoriginal'] . ''; echo '' . $row['speed'] . '' . $row['iso'] . '' . $row['aperture'] . '' . $row['correctexpo'] . ''; echo '' . $row['model'] . ''; echo ''; echo '' . $row['focal'] . '' . $row['metering'] . '' . $row['program'] . '' . $row['wb'] . ''; echo '' . $row['flash'] . '' . $row['software'] . ''; - //echo ''; echo ""; echo ''; echo ''; @@ -212,7 +213,7 @@ if (($req_suppress != "") and ($req_delete == "")) { } $req_suppress = ""; -} + } if ($req_delete != "") { @@ -222,17 +223,71 @@ if ($req_delete != "") { echo '

' . nl2br($files_deleted) . '

'; //echo '
' . $req_delete . '
'; -} + } ?> + + ' . gettext("Log out") . '' : ''; ?> - +

© 2013- sur-le-sentier.fr

- - + + diff --git a/edit_bdd.php b/admin/edit_bdd.php similarity index 51% rename from edit_bdd.php rename to admin/edit_bdd.php index 82ee63a..0cb96ed 100644 --- a/edit_bdd.php +++ b/admin/edit_bdd.php @@ -1,14 +1,16 @@ <?php echo gettext('View photos in Sqlite base'); ?> - - - - + + + + @@ -66,10 +68,10 @@ include 'functions.php'; ' . gettext('Edit database') . ': ' . $base . '
'; @@ -77,7 +79,7 @@ include 'functions.php'; try { - $conn = new PDO('sqlite:db_photo.sqlite3'); + $conn = new PDO("sqlite:$base"); $stmt = $conn->prepare($req_edit); $stmt->execute(); ?> @@ -96,17 +98,16 @@ include 'functions.php'; $nRows = 0; while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { - $thumbnail = host() . str_replace("photos/img", "photos/thumb", $row['filename']); - $full = host() . $row['filename']; - echo '' . $row['id'] . '' . '' . ''; + $lb = data_for_lightbox($row); + + echo '' . $row['id'] . '' . '' . htmlspecialchars($lb['title']) . '' . ''; echo '' . $row['filename'] . '' . $row['dateoriginal'] . ''; echo '' . $row['speed'] . '' . $row['iso'] . '' . $row['aperture'] . '' . $row['correctexpo'] . ''; echo '' . $row['model'] . ''; echo ''; echo '' . $row['focal'] . '' . $row['metering'] . '' . $row['program'] . '' . $row['wb'] . ''; echo '' . $row['flash'] . '' . $row['software'] . ''; - //echo ''; echo ""; echo ''; echo ''; @@ -136,14 +137,68 @@ include 'functions.php'; } ?> + + ' . gettext("Log out") . '' : ''; ?> - +

© 2013- sur-le-sentier.fr

- - + + diff --git a/insert_bdd.php b/admin/insert_bdd.php similarity index 90% rename from insert_bdd.php rename to admin/insert_bdd.php index acccb3d..9b9e921 100644 --- a/insert_bdd.php +++ b/admin/insert_bdd.php @@ -1,12 +1,12 @@ @@ -17,10 +17,10 @@ include 'functions.php'; <?php echo gettext('Insert photos in Sqlite base'); ?> - - - - + + + + @@ -28,8 +28,11 @@ include 'functions.php'; +' . gettext("Log out") . '' : ''; ?> + ' . gettext("Insert images in " . $base . " database.") . '
'; @@ -42,16 +45,17 @@ if (file_exists($base)) { $th_w = 300; $th_h = 300; -$dir = (new AdvancedFilesystemIterator('photos/img/'))->match('/heic|HEIC|jpg|jpeg|JPG|JPEG|webp|WEBP|avif|AVIF$/'); +//$dir = (new AdvancedFilesystemIterator('../photos/img/'))->match('/heic|HEIC|jpg|jpeg|JPG|JPEG|webp|WEBP|avif|AVIF$/'); +$dir = (new AdvancedFilesystemIterator($chemin))->match('/heic|HEIC|jpg|jpeg|JPG|JPEG|webp|WEBP|avif|AVIF$/'); -echo '

' . count($dir) . gettext(' images found in folder') . ' photos/img/ ...

'; +echo '

' . count($dir) . gettext(' images found in folder') . ' photos/img/ ...

'; echo '

' . gettext("Creation of the database") . ' ' . $base . ' ' . gettext("and the table") . ' photo (' . gettext("if necessary") . ')...

'; try { // Création de la base et de la table photos - $conn = new PDO("sqlite:db_photo.sqlite3"); + $conn = new PDO("sqlite:$base"); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $query = "CREATE TABLE IF NOT EXISTS photos ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -98,7 +102,7 @@ try { echo $e->getMessage(); } -echo '

' . gettext('Read image files in the folder') . ' photos/img/...

'; +echo '

' . gettext('Read image files in the folder') . ' photos/img/...

'; $i = 1; $photos = array(); @@ -109,8 +113,11 @@ foreach($dir as $file){ pathName() */ $file = $file->getpathName(); + //$file = $file->getFilename(); + echo $file; + $x = in_bdd($file); - + echo $x; /* if ($i > 5) { break; @@ -390,7 +397,7 @@ foreach($dir as $file){ $photos[$i] = array( - 'filename' => $file, + 'filename' => basename($file), 'filesize' => $fsize, 'dateoriginal' => $da, @@ -528,7 +535,12 @@ foreach($dir as $file){ $z = count($photos); if ($z == 0) { echo '

' . gettext('No new image files to add') . '...

'; - echo ''; + echo ''; + die(); } @@ -544,11 +556,12 @@ $avant = $resultat['MAX(id)']; $nb_avant = (isset($avant)) ? $avant : 0; -echo '

' . gettext('Creation of thumbnails') . ' ('. $th_w . 'px x ' . $th_h . 'px) ' . gettext('in the folder') . ' photos/thumb/.

'; +echo '

' . gettext('Creation of thumbnails') . ' ('. $th_w . 'px x ' . $th_h . 'px) ' . gettext('in the folder') . ' photos/thumb/.

'; $b = ($z > 1) ? gettext('new images') : gettext('new image'); echo '

' . gettext('Insertion of ') . $z . ' ' . $b . gettext(' in database') . '...

'; +$short = basename($file); // Insertion des photos dans la base // Création des vignettes try { @@ -639,8 +652,9 @@ try { $copyright = $item['copyright']; // clicclac.info $titre = $item['title']; // *** $legende = $item['legende']; // *** - - create_thumb($th_w, $th_h, $file); + + $big = $chemin . $file; + create_thumb($th_w, $th_h, $big); $stmt->execute(); } @@ -711,14 +725,13 @@ try { }); - ' . gettext("Log out") . '' : ''; ?> - +

© 2013- sur-le-sentier.fr

- - + + diff --git a/modify_bdd.php b/admin/modify_bdd.php similarity index 86% rename from modify_bdd.php rename to admin/modify_bdd.php index 003bc73..02c618f 100644 --- a/modify_bdd.php +++ b/admin/modify_bdd.php @@ -1,14 +1,14 @@ <?php gettext('View photos in Sqlite base'); ?> - - - - + + + + @@ -187,7 +187,7 @@ else { $req_edit = "SELECT * FROM photos WHERE " . $req . " ORDER BY id"; try { - $conn = new PDO('sqlite:db_photo.sqlite3'); + $conn = new PDO("sqlite:../$base"); $stmt = $conn->prepare($req_edit); $stmt->execute(); @@ -202,10 +202,12 @@ else { $nRows = 0; while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { - $thumbnail = host() . str_replace("photos/img", "photos/thumb", $row['filename']); - $full = host() . $row['filename']; - - echo '' . $row['id'] . '' . '' . ''; + //$thumbnail = host() . str_replace("photos/img", "photos/thumb", $row['filename']); + //$full = host() . $row['filename']; + $lb = data_for_lightbox($row); + + //echo '' . $row['id'] . '' . '' . ''; + echo '' . $row['id'] . '' . '' . ''; echo '' . $row['filename'] . '' . $row['dateoriginal'] . ''; echo '' . $row['speed'] . '' . $row['iso'] . '' . $row['aperture'] . '' . $row['correctexpo'] . ''; echo '' . $row['model'] . ''; @@ -241,12 +243,12 @@ else { ' . gettext("Log out") . '' : ''; ?> - +

© 2013- sur-le-sentier.fr

- - + + diff --git a/query_bdd.php b/admin/query_bdd.php similarity index 68% rename from query_bdd.php rename to admin/query_bdd.php index e29628c..f327bef 100644 --- a/query_bdd.php +++ b/admin/query_bdd.php @@ -1,12 +1,15 @@ open('db_photo.sqlite3'); + $this->open('../db_photo.sqlite3'); + //$this->open($base); } } $db = new MyDB(); +*/ + $db = new SQLite3($base); + if(!$db){ echo $db->lastErrorMsg(); } else { $ret = $db->query("SELECT * FROM photos WHERE id LIKE '$id%' AND filename LIKE '%$filename%' AND dateoriginal LIKE '%$dateoriginal%' AND speed LIKE '$speed%' AND iso LIKE '$iso%' AND aperture LIKE '$aperture%' AND correctexpo LIKE '$correctexpo%' AND model LIKE '%$model%' AND lens LIKE '%$lens%' AND focal LIKE '%$focal%' AND metering LIKE '%$metering%' AND program LIKE '%$program%' AND wb LIKE '%$wb%' AND software LIKE '%$software%' ORDER BY $column $order"); while($row = $ret->fetchArray(SQLITE3_ASSOC) ){ - $thumbnail = host() . str_replace("photos/img", "photos/thumb", $row['filename']); - $full = host() . $row['filename']; + //$thumbnail = host() . str_replace("img", "thumb", $chemin) . $row['filename']; + //$full = host() . $chemin . $row['filename']; $lb = data_for_lightbox($row); echo ""; echo (isset($_SESSION["user"])) ? '' . '' . '' : ''; echo "".$row['id'].""; - echo "" . "" . htmlspecialchars($lb["; + //echo "" . "" . htmlspecialchars($lb["; + echo "" . "" . htmlspecialchars($lb["; echo "".$row['filename'].""; echo "".$row['dateoriginal'].""; echo "".$row['speed'].""; diff --git a/requests.php b/admin/requests.php similarity index 85% rename from requests.php rename to admin/requests.php index da4bf9e..e0b6c01 100644 --- a/requests.php +++ b/admin/requests.php @@ -1,12 +1,12 @@ @@ -17,10 +17,10 @@ include 'functions.php'; <?php echo gettext('View photos in Sqlite base'); ?> - - - - + + + + @@ -33,7 +33,7 @@ include 'functions.php'; setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $limit = 13; @@ -78,7 +78,7 @@ _pr($_POST); echo 'requests'; -$conn = new PDO("sqlite:db_photo.sqlite3"); +$conn = new PDO("sqlite:$base"); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $request = array( @@ -231,12 +231,12 @@ https://www.csscodelab.com/pure-css-custom-select-box-dropdown-styling/ - +

© 2013- sur-le-sentier.fr

- - + + diff --git a/view_bdd.php b/admin/view_bdd.php similarity index 91% rename from view_bdd.php rename to admin/view_bdd.php index 6de0f0e..9d50c17 100644 --- a/view_bdd.php +++ b/admin/view_bdd.php @@ -1,14 +1,16 @@ - + - - - + + + @@ -213,12 +215,12 @@ function showUser(column) { ' . gettext("Log out") . '' : ''; ?> - +

© 2013- sur-le-sentier.fr

- - + + \ No newline at end of file diff --git a/view_bdd2.php b/admin/view_bdd2.php similarity index 88% rename from view_bdd2.php rename to admin/view_bdd2.php index 4813b02..b2ff18f 100644 --- a/view_bdd2.php +++ b/admin/view_bdd2.php @@ -1,27 +1,28 @@ setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); if (!isset($_GET['page'])) $page = 1; else $page = intval($_GET['page']); - $gps = (isset($_SESSION['query']['gps'])) ? $_SESSION['query']['gps'] : "off"; -$dir = (new AdvancedFilesystemIterator('photos/img/'))->match('/heic|HEIC|jpg|jpeg|JPG|JPEG|webp|WEBP$/'); +$dir = (new AdvancedFilesystemIterator($chemin))->match('/heic|HEIC|jpg|jpeg|JPG|JPEG|webp|WEBP$/'); $request = array( @@ -76,11 +77,11 @@ foreach ($request as $key => $val){ - + - - - + + + @@ -160,7 +161,7 @@ try { if (empty($_POST)) { - echo '

' . count($dir) . gettext(' images found in folder') . ' photos/img/ ...

'; + echo '

' . count($dir) . gettext(' images found in folder') . ' photos/img/ ...

'; // Display request !! echo '
' . $query2 . '
'; } @@ -289,11 +290,10 @@ try { $nRows = 0; while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { - $thumbnail = host() . str_replace("photos/img", "photos/thumb", $row['filename']); - $full = host() . $row['filename']; + $lb = data_for_lightbox($row); - echo '' . ((isset($_SESSION["user"])) ? '' . '' . '' : '') . '' . $row['id'] . '' . '' . htmlspecialchars($lb['title']) . '' . '' . $row['filename'] . '
(' . $row['filesize'] . ')' . $row['dateoriginal'] . '' . $row['lens'] . '' . $row['speed'] . '' . $row['aperture'] . ' ' . $row['correctexpo'] . '' . $row['iso'] . '' . $row['width'] . '' . $row['height'] . '' . $row['model'] . '' . $row['lat'] . '' . $row['long'] . '' . $row['alt'] . '' . $row['legende'] . '' . $row['copyright'] . '' . $row['title'] . '' . $row['creator'] . '' . $row['keywords'] . '' . $row['metering'] . '' . $row['flash'] . '' . $row['focal'] . '' . $row['wb'] . '' . $row['program'] . ''; + echo '' . ((isset($_SESSION["user"])) ? '' . '' . '' : '') . '' . $row['id'] . '' . '' . htmlspecialchars($lb['title']) . '' . '' . $row['filename'] . '
(' . $row['filesize'] . ')' . $row['dateoriginal'] . '' . $row['lens'] . '' . $row['speed'] . '' . $row['aperture'] . ' ' . $row['correctexpo'] . '' . $row['iso'] . '' . $row['width'] . '' . $row['height'] . '' . $row['model'] . '' . $row['lat'] . '' . $row['long'] . '' . $row['alt'] . '' . $row['legende'] . '' . $row['copyright'] . '' . $row['title'] . '' . $row['creator'] . '' . $row['keywords'] . '' . $row['metering'] . '' . $row['flash'] . '' . $row['focal'] . '' . $row['wb'] . '' . $row['program'] . ''; $nRows++; } @@ -411,12 +411,12 @@ try { ' . gettext("Log out") . '' : ''; ?> - +

© 2013- sur-le-sentier.fr

- - + + diff --git a/css/lc_lightbox.css b/css/lc_lightbox.css index 3fc3314..20d658b 100644 --- a/css/lc_lightbox.css +++ b/css/lc_lightbox.css @@ -538,7 +538,7 @@ bottom: -1px; z-index: 5; border-radius: 3px; - opcity: 0; + opacity: 0; background: #6f6f6f; -webkit-transition: all .2s ease; diff --git a/functions.php b/functions.php index 93eb884..db6373a 100644 --- a/functions.php +++ b/functions.php @@ -204,7 +204,7 @@ function create_thumb($thumb_w, $thumb_h, $image) { list($origin_w, $origin_h) = getimagesize($image); $origin_ratio = round($origin_w / $origin_h, 1); -$outFile = str_replace("photos/img", "photos/thumb", $image); +$outFile = str_replace("../photos/img", "../photos/thumb", $image); if ($origin_w != null && $origin_h != null) { if ($thumb_w / $thumb_h > $origin_ratio) { @@ -229,7 +229,7 @@ if ($origin_w != null && $origin_h != null) { function in_bdd($image) { try { - $conn3 = new PDO('sqlite:db_photo.sqlite3'); + $conn3 = new PDO('sqlite:../db_photo.sqlite3'); #$query3 = "SELECT filename FROM photos WHERE instr(filename, '". $file . "') > 0;"; $query3 = "SELECT filename FROM photos WHERE filename = :filename"; $stmt = $conn3->prepare($query3); @@ -373,6 +373,7 @@ function conv_date($dateoriginal, $format) { function data_for_lightbox($data) { + global $chemin; //$query4 = "INSERT OR IGNORE INTO photos (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); $filename = $data['filename']; @@ -420,16 +421,20 @@ function data_for_lightbox($data) { } if (!empty($gps)) { - $map = '' . " \u{30FB} \u{2693} " . ''; - } - else { - $map = ''; - } + $map = '' . " \u{30FB} \u{2693} " . ''; + } + else { + $map = ''; + } $creator = $data['creator']; - $big = host() . $data['filename']; - $thumb = host() . str_replace("photos/img", "photos/thumb", $data['filename']); + $big = host() . $chemin . $data['filename']; + $thumb = host() . str_replace("img", "thumb", $chemin) . $data['filename']; + + // origine + //$big = host() . $data['filename']; + //$thumb = host() . str_replace("../photos/img", "../photos/thumb", $data['filename']); $keywords = str_replace(',', " \u{30FB} ", clean_keywords($data['keywords'])); $copyright = $data['copyright']; diff --git a/photo-du-mois.php b/photo-du-mois.php index 49aa285..407a846 100644 --- a/photo-du-mois.php +++ b/photo-du-mois.php @@ -55,11 +55,13 @@ else $page = intval($_GET['page']); ?>

'; + //echo ''; + //echo '' . htmlspecialchars($lb['title']) . ''; echo ''; echo '' . htmlspecialchars($lb['title']) . ''; echo ""; @@ -165,8 +174,13 @@ else exit("Database " . $base . " does not exist !"); //_pr($result[$i]); //debug_to_console($result[$i]); + //$thumbnail = host() . str_replace("img", "thumb", $chemin) . $result[$i]['filename']; + //$full = host() . $chemin . $result[$i]['filename']; + $lb = data_for_lightbox($result[$i]); + //_pr($lb); + if (!empty($lb['gps'])) { $map = '' . " \u{30FB} \u{2693} " . ''; diff --git a/photos/img/2024-10-24_Vignoble_5849.jpg b/photos/img/2024-10-24_Vignoble_5849.jpg deleted file mode 100644 index b24a9d4..0000000 Binary files a/photos/img/2024-10-24_Vignoble_5849.jpg and /dev/null differ diff --git a/photos/thumb/2024-10-24_Vignoble_5849.jpg b/photos/thumb/2024-10-24_Vignoble_5849.jpg deleted file mode 100644 index 2575ac3..0000000 Binary files a/photos/thumb/2024-10-24_Vignoble_5849.jpg and /dev/null differ