summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-06-06 19:41:03 +0200
committerRaindropsSys <contact@minteck.org>2023-06-06 19:41:03 +0200
commit622415c99be01469b55eab2d5ded7d5e9694bdbe (patch)
tree43b71526a7bfb622968e55a234434f0a538b2391
parentd908d1d0b44acd21c99e40080fe6f16273784f73 (diff)
downloadhorses-622415c99be01469b55eab2d5ded7d5e9694bdbe.tar.gz
horses-622415c99be01469b55eab2d5ded7d5e9694bdbe.tar.bz2
horses-622415c99be01469b55eab2d5ded7d5e9694bdbe.zip
Updated includes/version.txt and added projects.php (automated)
-rw-r--r--includes/version.txt2
-rw-r--r--projects.php22
2 files changed, 23 insertions, 1 deletions
diff --git a/includes/version.txt b/includes/version.txt
index 921241d..bd04361 100644
--- a/includes/version.txt
+++ b/includes/version.txt
@@ -1 +1 @@
-12.5.1 \ No newline at end of file
+12.5.3 \ No newline at end of file
diff --git a/projects.php b/projects.php
new file mode 100644
index 0000000..dc7352f
--- /dev/null
+++ b/projects.php
@@ -0,0 +1,22 @@
+<?php
+
+header("Content-Type: application/json");
+require $_SERVER['DOCUMENT_ROOT'] . "/includes/main.php";
+
+$data = [];
+
+$list = array_values(array_filter([...getProjectsList(), ...getArchivesList()], function ($i) {
+ return isset($i["icon"]) && $i["icon"] !== "/assets/icons/project.svg";
+}));
+
+$showcase = array_slice($list, 0, 60);
+
+foreach ($showcase as $project) {
+ $data[] = [
+ "name" => $project["display_name"] ?? $project["name"],
+ "url" => $project["source"] ?? $project["website"],
+ "icon" => $project["icon"]
+ ];
+}
+
+die(json_encode($data, JSON_PRETTY_PRINT)); \ No newline at end of file