From ba230d192f124c86598076717c01cc3efbd09622 Mon Sep 17 00:00:00 2001
From: leosw
Date: Sat, 24 Jan 2026 13:26:50 +0100
Subject: [PATCH 1/7] Update index.php file
---
index.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/index.php b/index.php
index 5ed4125..fb891f9 100755
--- a/index.php
+++ b/index.php
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
From 811d5d47f3221152cf20e9349710c092a673f372 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Sat, 24 Jan 2026 12:39:27 +0000
Subject: [PATCH 4/7] Remove PHP closing tags from includes
Co-authored-by: LeOSW42 <673670+LeOSW42@users.noreply.github.com>
---
includes/poi_types.struct.php | 2 --
1 file changed, 2 deletions(-)
diff --git a/includes/poi_types.struct.php b/includes/poi_types.struct.php
index 4dcc279..5da6b52 100644
--- a/includes/poi_types.struct.php
+++ b/includes/poi_types.struct.php
@@ -89,5 +89,3 @@ $poi_types = array(
)
);
-
-?>
From a4082524d4fd16ae08da0966fab5d01dae98edff Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Sat, 24 Jan 2026 12:39:54 +0000
Subject: [PATCH 5/7] Remove PHP closing tags from app files
Co-authored-by: LeOSW42 <673670+LeOSW42@users.noreply.github.com>
---
controllers/d.admin.php | 2 --
controllers/d.blog.php | 2 --
controllers/d.contact.php | 3 ---
controllers/d.map.php | 2 --
controllers/d.poi.php | 2 --
controllers/d.users.php | 2 --
controllers/d.wiki.php | 2 --
includes/config.example.php | 2 --
includes/images.php | 2 --
includes/routes.php | 2 --
includes/session.php | 3 ---
index.php | 2 --
models/d.blog.php | 2 --
models/d.comments.php | 2 --
models/d.locales.php | 2 --
models/d.poi.php | 2 --
models/d.users.php | 2 --
models/d.wiki.php | 2 --
18 files changed, 38 deletions(-)
diff --git a/controllers/d.admin.php b/controllers/d.admin.php
index b04ec96..e117622 100755
--- a/controllers/d.admin.php
+++ b/controllers/d.admin.php
@@ -283,5 +283,3 @@ function formatBytes($bytes, $locale = 'en', $precision = 2) {
return $formatted . ' ' . $units[$power];
}
-
-?>
\ No newline at end of file
diff --git a/controllers/d.blog.php b/controllers/d.blog.php
index 5c78098..145e72e 100755
--- a/controllers/d.blog.php
+++ b/controllers/d.blog.php
@@ -189,5 +189,3 @@ switch ($controller->splitted_url[1]) {
}
break;
}
-
-?>
\ No newline at end of file
diff --git a/controllers/d.contact.php b/controllers/d.contact.php
index fdaaae8..ff0f0f0 100755
--- a/controllers/d.contact.php
+++ b/controllers/d.contact.php
@@ -72,6 +72,3 @@ $head['js'] = "d.captcha.js";
$head['title'] = "Contact";
include ($config['views_folder']."d.contact.html");
-
-
-?>
\ No newline at end of file
diff --git a/controllers/d.map.php b/controllers/d.map.php
index 4a25c67..2b5bd51 100755
--- a/controllers/d.map.php
+++ b/controllers/d.map.php
@@ -18,5 +18,3 @@ else {
require_once($config['includes_folder']."poi_types.struct.php");
include ($config['views_folder']."d.map.html");
}
-
-?>
\ No newline at end of file
diff --git a/controllers/d.poi.php b/controllers/d.poi.php
index a85cb5d..245cd17 100755
--- a/controllers/d.poi.php
+++ b/controllers/d.poi.php
@@ -274,5 +274,3 @@ switch ($controller->splitted_url[1]) {
}
break;
}
-
-?>
diff --git a/controllers/d.users.php b/controllers/d.users.php
index bb67720..481e152 100755
--- a/controllers/d.users.php
+++ b/controllers/d.users.php
@@ -223,5 +223,3 @@ if(isset($controller->splitted_url[1])) {
else {
$notfound = 1;
}
-
-?>
\ No newline at end of file
diff --git a/controllers/d.wiki.php b/controllers/d.wiki.php
index 2537e82..4de7409 100755
--- a/controllers/d.wiki.php
+++ b/controllers/d.wiki.php
@@ -77,5 +77,3 @@ else if(isset($controller->splitted_url[1]) && $wikiPage->checkPermalink($contro
else {
$notfound = 1;
}
-
-?>
\ No newline at end of file
diff --git a/includes/config.example.php b/includes/config.example.php
index 6c65602..9d801c2 100755
--- a/includes/config.example.php
+++ b/includes/config.example.php
@@ -48,5 +48,3 @@ $config['SQL_db'] = "postgres";
$config['admin_mail'] = "leo@lstronic.com";
$config['bot_mail'] = "robot@kabano.com";
-
-?>
\ No newline at end of file
diff --git a/includes/images.php b/includes/images.php
index ff8e653..16005b2 100755
--- a/includes/images.php
+++ b/includes/images.php
@@ -38,5 +38,3 @@ function generate_image_thumbnail($source_image_path, $thumbnail_image_path, $wi
imagedestroy($thumbnail_gd_image);
return true;
}
-
-?>
\ No newline at end of file
diff --git a/includes/routes.php b/includes/routes.php
index 65a325b..643baf3 100755
--- a/includes/routes.php
+++ b/includes/routes.php
@@ -70,5 +70,3 @@ if($notfound) {
$head['title'] = $wikiPage->name;
include ($config['views_folder']."d.wiki.view.html");
}
-
-?>
diff --git a/includes/session.php b/includes/session.php
index 32572b3..76af0a3 100755
--- a/includes/session.php
+++ b/includes/session.php
@@ -33,6 +33,3 @@ if (PHP_VERSION_ID < 80000) {
}
$user->datetime_format = new IntlDateFormatter($config['locale'], IntlDateFormatter::LONG, IntlDateFormatter::SHORT, $config['timezone']);
$user->datetimeshort_format = new IntlDateFormatter($config['locale'], IntlDateFormatter::SHORT, IntlDateFormatter::SHORT, $config['timezone']);
-
-
-?>
\ No newline at end of file
diff --git a/index.php b/index.php
index 5ed4125..a566447 100755
--- a/index.php
+++ b/index.php
@@ -2,5 +2,3 @@
require_once('includes/config.php');
require_once('includes/routes.php');
-
-?>
\ No newline at end of file
diff --git a/models/d.blog.php b/models/d.blog.php
index 3012025..64b989b 100755
--- a/models/d.blog.php
+++ b/models/d.blog.php
@@ -370,5 +370,3 @@ class BlogArticles
}
}
}
-
-?>
\ No newline at end of file
diff --git a/models/d.comments.php b/models/d.comments.php
index 4130b42..95d2b2a 100644
--- a/models/d.comments.php
+++ b/models/d.comments.php
@@ -204,5 +204,3 @@ class Comments
}
}
}
-
-?>
\ No newline at end of file
diff --git a/models/d.locales.php b/models/d.locales.php
index 66840bd..fc5b2a4 100755
--- a/models/d.locales.php
+++ b/models/d.locales.php
@@ -94,5 +94,3 @@ class Locales
}
}
}
-
-?>
\ No newline at end of file
diff --git a/models/d.poi.php b/models/d.poi.php
index 4986020..3f43b4c 100755
--- a/models/d.poi.php
+++ b/models/d.poi.php
@@ -453,5 +453,3 @@ class Pois
}
}
}
-
-?>
\ No newline at end of file
diff --git a/models/d.users.php b/models/d.users.php
index d75f61a..2d86593 100755
--- a/models/d.users.php
+++ b/models/d.users.php
@@ -451,5 +451,3 @@ class Users
}
}
}
-
-?>
\ No newline at end of file
diff --git a/models/d.wiki.php b/models/d.wiki.php
index 5970e23..ce97d72 100755
--- a/models/d.wiki.php
+++ b/models/d.wiki.php
@@ -301,5 +301,3 @@ class WikiPages
}
}
}
-
-?>
\ No newline at end of file
From 9728aefc07812fdcbb67ec40166a4de7b039ae02 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Sat, 24 Jan 2026 12:42:17 +0000
Subject: [PATCH 6/7] Replace PHP short tags
Co-authored-by: LeOSW42 <673670+LeOSW42@users.noreply.github.com>
---
controllers/d.admin.php | 2 +-
controllers/d.blog.php | 2 +-
controllers/d.contact.php | 2 +-
controllers/d.map.php | 2 +-
controllers/d.users.php | 2 +-
controllers/d.wiki.php | 2 +-
includes/images.php | 2 +-
includes/routes.php | 2 +-
includes/session.php | 2 +-
models/d.blog.php | 2 +-
models/d.locales.php | 2 +-
models/d.poi.php | 2 +-
models/d.users.php | 2 +-
models/d.wiki.php | 2 +-
third/Md/Markdown.php | 2 +-
views/blocks/d.head.html | 32 ++++++-------
views/blocks/d.nav.html | 18 +++----
views/d.admin.backup.html | 18 +++----
views/d.admin.git-pull.html | 8 ++--
views/d.admin.html | 14 +++---
views/d.admin.logs.html | 16 +++----
views/d.admin.stats.html | 14 +++---
views/d.admin.wiki-files.html | 24 +++++-----
views/d.blog.edit.html | 28 +++++------
views/d.blog.list.html | 28 +++++------
views/d.blog.list.rss | 6 +--
views/d.blog.view.html | 84 ++++++++++++++++-----------------
views/d.community.html | 12 ++---
views/d.contact.html | 40 ++++++++--------
views/d.index.html | 12 ++---
views/d.map.html | 14 +++---
views/d.poi.edit.html | 32 ++++++-------
views/d.poi.view.html | 84 ++++++++++++++++-----------------
views/d.user.login.html | 18 +++----
views/d.user.member_list.html | 28 +++++------
views/d.user.password_lost.html | 10 ++--
views/d.user.profile.edit.html | 40 ++++++++--------
views/d.user.profile.html | 40 ++++++++--------
views/d.user.signin.html | 22 ++++-----
views/d.wiki.edit.html | 10 ++--
views/d.wiki.view.html | 36 +++++++-------
41 files changed, 359 insertions(+), 359 deletions(-)
diff --git a/controllers/d.admin.php b/controllers/d.admin.php
index b04ec96..ee136fb 100755
--- a/controllers/d.admin.php
+++ b/controllers/d.admin.php
@@ -1,4 +1,4 @@
-
+splitted_url[1]) && $user->rankIsHigher("moderator")) {
switch ($controller->splitted_url[1]) {
diff --git a/controllers/d.blog.php b/controllers/d.blog.php
index 5c78098..7e74eec 100755
--- a/controllers/d.blog.php
+++ b/controllers/d.blog.php
@@ -1,4 +1,4 @@
-
+
- if (isset($head['css'])) {
+
- }
+
- } ?>
+
- if (isset($head['third'])) {
+
- }
+
- if (isset($head['js'])) {
+
- }
+
- if (isset($head['title'])) { ?>
+
=$head['title']?> — Kabano
- }
+
Refuges de montagne et métallerie agricole
- } ?>
- if (isset($head['description'])) { ?>
+
+
-? }
+
- } ?>
- if (isset($head['keywords'])) { ?>
+
+
- }
+
- } ?>
+
\ No newline at end of file
diff --git a/views/blocks/d.nav.html b/views/blocks/d.nav.html
index fe99bc1..f142c69 100755
--- a/views/blocks/d.nav.html
+++ b/views/blocks/d.nav.html
@@ -24,15 +24,15 @@
- if ($blogArticle->is_commentable == "t") { ?>
+ is_commentable == "t") { ?>
- if($user->rankIsHigher('premium')) { ?>
+ rankIsHigher('premium')) { ?>
- if(isset($PoiHistory)) { ?>
+
- $i = 0;
+ objs as $row) { ?>
- version_id==$poi->version_id?'selected':''?> value="=$i?>">=$row->is_archive=="f"?'• ':''?> echo datefmt_format($user->datetimeshort_format,date_create($row->update_date, new DateTimeZone("UTC"))) ?>
- $i++;
+ version_id==$poi->version_id?'selected':''?> value="=$i?>">=$row->is_archive=="f"?'• ':''?>datetimeshort_format,date_create($row->update_date, new DateTimeZone("UTC"))) ?>
+
- }
+ rankIsHigher('moderator') && isset($PoiHistory)) { ?>
—
- }
+ rankIsHigher("moderator")) { ?>
Éditer le point —
- if ($poi->is_public == 't') { ?>
+ is_public == 't') { ?>
Effacer le point
- } else { ?>
+
Restaurer le point
- } ?>
- } ?>
+
+
- } ?>
+
@@ -165,18 +165,18 @@
- if ($poi->is_commentable == 't') { ?>
+ is_commentable == 't') { ?>
- } else { ?>
+
Aucun commentaire pour le moment.
- } ?>
- } ?>
+
+
- include('blocks/d.footer.html'); ?>
+
- if($user->rankIsHigher("premium")) { ?>
+rankIsHigher("premium")) { ?>
- } ?>
+
- if($user->rankIsHigher("registered") && $poi->is_archive == "f" && $poi->is_public == "t") { ?>
+rankIsHigher("registered") && $poi->is_archive == "f" && $poi->is_public == "t") { ?>
- } ?>
+
- } ?>
+
- include('blocks/d.footer.html'); ?>
+
\ No newline at end of file
From cb3d78680609e3aefd9da5ed94e5ac24b411719f Mon Sep 17 00:00:00 2001
From: leosw
Date: Sat, 24 Jan 2026 13:48:33 +0100
Subject: [PATCH 7/7] Remove ?>
---
index.php | 2 --
1 file changed, 2 deletions(-)
diff --git a/index.php b/index.php
index fb891f9..4a3ac59 100755
--- a/index.php
+++ b/index.php
@@ -2,5 +2,3 @@
require_once __DIR__ . '/includes/config.php';
require_once __DIR__ . '/includes/routes.php';
-
-?>
\ No newline at end of file