This is an automated email generated because a ref change occurred in the
git repository for project duojsonparge.git.
The branch, master has been updated
via ffdc4efcfbdf413450db64f4b7a30505dfda39dd (commit)
via b95a76b4d600c264990b9c977ea19914b18ffd67 (commit)
from 6dfa3394067a2a164dcfd540b8a323af08edf45b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit b95a76b4d600c264990b9c977ea19914b18ffd67
Author: Someone <
hahahaha...@airmail.cc>
Date: Mon, 12 Feb 2024 20:48:33 +0700
URL: <
https://repo.or.cz/duojsonparge.git/b95a76b4d600c264>
newline for readablility
---
comment/list.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/comment/list.php b/comment/list.php
index 06a9ac9c5735..03dcec67a5a3 100644
--- a/comment/list.php
+++ b/comment/list.php
@@ -36,9 +36,9 @@ include "{$_SERVER['DOCUMENT_ROOT']}/extra/header.html";
echo "<p>";
for ($p = 1; $p <= $n_pages; $p++) {
if ($p == $page) {
- echo "| $p ";
+ echo "| $p \n";
} else {
- echo "| <a href=\"/comment/?page=$p&&nr=$n_rows\">$p </a>";
+ echo "| <a href=\"/comment/?page=$p&&nr=$n_rows\">$p </a>\n";
}
}
echo "</p>";
commit ffdc4efcfbdf413450db64f4b7a30505dfda39dd
Author: Someone <
hahahaha...@airmail.cc>
Date: Mon, 12 Feb 2024 20:49:26 +0700
URL: <
https://repo.or.cz/duojsonparge.git/ffdc4efcfbdf4134>
use array_diff() to remove . and ..; natsort to sort by date, oldest first
---
comment/build_index.php | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/comment/build_index.php b/comment/build_index.php
index 368369030d98..f267f6d4ba8d 100644
--- a/comment/build_index.php
+++ b/comment/build_index.php
@@ -21,12 +21,11 @@
* PLEASE RENAME IT TO ANOTHER EXTENSION (E.G build_index.php.NX)
*/
$files = scandir("{$_SERVER['DOCUMENT_ROOT']}/json/", SCANDIR_SORT_NONE);
+$files = array_diff($files, array('..', '.'));
+natsort($files);
$jsondata = array();
$i = 0;
foreach ($files as $key => $fn) {
- if ($fn == "." || $fn == "..") {
- continue;
- }
$fn = "{$_SERVER['DOCUMENT_ROOT']}/json/$fn";
$f = fopen($fn, "r");
$arr = json_decode(fread($f, filesize($fn)), true);
-----------------------------------------------------------------------
Summary of changes:
comment/build_index.php | 5 ++---
comment/list.php | 4 ++--
2 files changed, 4 insertions(+), 5 deletions(-)
repo.or.cz automatic notification. Contact project admin
hahahaha...@gmail.com
if you want to unsubscribe, or site admin
ad...@repo.or.cz if you receive
no reply.
--
duojsonparge.git ("UNNAMED PROJECT")