From af9e5ef458b93ef2003905e1ccc5665e7266c242 Mon Sep 17 00:00:00 2001 From: Minteck <46352972+Minteck@users.noreply.github.com> Date: Tue, 20 Jul 2021 01:15:15 +0200 Subject: Commit --- includes/stats/apis.php | 23 ++++ includes/stats/neutron.json | 159 +++++++++++++++++++++++ includes/stats/neutron2.json | 302 +++++++++++++++++++++++++++++++++++++++++++ includes/stats/refresh.php | 52 ++++++++ 4 files changed, 536 insertions(+) create mode 100644 includes/stats/apis.php create mode 100644 includes/stats/neutron.json create mode 100644 includes/stats/neutron2.json create mode 100644 includes/stats/refresh.php (limited to 'includes/stats') diff --git a/includes/stats/apis.php b/includes/stats/apis.php new file mode 100644 index 0000000..5e8d05b --- /dev/null +++ b/includes/stats/apis.php @@ -0,0 +1,23 @@ +keys = json_decode(file_get_contents("./credentials.json"), true); + } + + public function GitHub(string $path) { + exec("curl -A \"Minteck-Space/0.0.0 (nekostarfan@gmail.com)\" -H \"Authorization: token " . $this->keys["github"] . "\" https://api.github.com/" . $path, $op); + $result = implode("\n", $op); + + return $result; + } + + public function Reddit(string $path) { + exec("curl -A \"Minteck-Space/0.0.0 (nekostarfan@gmail.com)\" https://www.reddit.com/" . $path . ".json", $op); + $result = implode("\n", $op); + + return $result; + } +} diff --git a/includes/stats/neutron.json b/includes/stats/neutron.json new file mode 100644 index 0000000..0e5c8ed --- /dev/null +++ b/includes/stats/neutron.json @@ -0,0 +1,159 @@ +[ + { + "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/releases\/45675460", + "assets_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/releases\/45675460\/assets", + "upload_url": "https:\/\/uploads.github.com\/repos\/Minteck-Projects\/Neutron-Core\/releases\/45675460\/assets{?name,label}", + "html_url": "https:\/\/github.com\/Minteck-Projects\/Neutron-Core\/releases\/tag\/10.0.47.190", + "id": 45675460, + "author": { + "login": "Minteck", + "id": 46352972, + "node_id": "MDQ6VXNlcjQ2MzUyOTcy", + "avatar_url": "https:\/\/avatars.githubusercontent.com\/u\/46352972?v=4", + "gravatar_id": "", + "url": "https:\/\/api.github.com\/users\/Minteck", + "html_url": "https:\/\/github.com\/Minteck", + "followers_url": "https:\/\/api.github.com\/users\/Minteck\/followers", + "following_url": "https:\/\/api.github.com\/users\/Minteck\/following{\/other_user}", + "gists_url": "https:\/\/api.github.com\/users\/Minteck\/gists{\/gist_id}", + "starred_url": "https:\/\/api.github.com\/users\/Minteck\/starred{\/owner}{\/repo}", + "subscriptions_url": "https:\/\/api.github.com\/users\/Minteck\/subscriptions", + "organizations_url": "https:\/\/api.github.com\/users\/Minteck\/orgs", + "repos_url": "https:\/\/api.github.com\/users\/Minteck\/repos", + "events_url": "https:\/\/api.github.com\/users\/Minteck\/events{\/privacy}", + "received_events_url": "https:\/\/api.github.com\/users\/Minteck\/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "MDc6UmVsZWFzZTQ1Njc1NDYw", + "tag_name": "10.0.47.190", + "target_commitish": "trunk", + "name": "Neutron 10 Beta 2.1", + "draft": false, + "prerelease": true, + "created_at": "2021-07-04T13:04:21Z", + "published_at": "2021-07-04T13:05:12Z", + "assets": [], + "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/10.0.47.190", + "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/10.0.47.190", + "body": "" + }, + { + "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/releases\/45675017", + "assets_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/releases\/45675017\/assets", + "upload_url": "https:\/\/uploads.github.com\/repos\/Minteck-Projects\/Neutron-Core\/releases\/45675017\/assets{?name,label}", + "html_url": "https:\/\/github.com\/Minteck-Projects\/Neutron-Core\/releases\/tag\/10.0.45.186", + "id": 45675017, + "author": { + "login": "Minteck", + "id": 46352972, + "node_id": "MDQ6VXNlcjQ2MzUyOTcy", + "avatar_url": "https:\/\/avatars.githubusercontent.com\/u\/46352972?v=4", + "gravatar_id": "", + "url": "https:\/\/api.github.com\/users\/Minteck", + "html_url": "https:\/\/github.com\/Minteck", + "followers_url": "https:\/\/api.github.com\/users\/Minteck\/followers", + "following_url": "https:\/\/api.github.com\/users\/Minteck\/following{\/other_user}", + "gists_url": "https:\/\/api.github.com\/users\/Minteck\/gists{\/gist_id}", + "starred_url": "https:\/\/api.github.com\/users\/Minteck\/starred{\/owner}{\/repo}", + "subscriptions_url": "https:\/\/api.github.com\/users\/Minteck\/subscriptions", + "organizations_url": "https:\/\/api.github.com\/users\/Minteck\/orgs", + "repos_url": "https:\/\/api.github.com\/users\/Minteck\/repos", + "events_url": "https:\/\/api.github.com\/users\/Minteck\/events{\/privacy}", + "received_events_url": "https:\/\/api.github.com\/users\/Minteck\/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "MDc6UmVsZWFzZTQ1Njc1MDE3", + "tag_name": "10.0.45.186", + "target_commitish": "trunk", + "name": "Neutron 10 Beta 2", + "draft": false, + "prerelease": true, + "created_at": "2021-07-04T12:32:42Z", + "published_at": "2021-07-04T12:33:41Z", + "assets": [], + "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/10.0.45.186", + "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/10.0.45.186", + "body": "" + }, + { + "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/releases\/45317550", + "assets_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/releases\/45317550\/assets", + "upload_url": "https:\/\/uploads.github.com\/repos\/Minteck-Projects\/Neutron-Core\/releases\/45317550\/assets{?name,label}", + "html_url": "https:\/\/github.com\/Minteck-Projects\/Neutron-Core\/releases\/tag\/10.0.45.161", + "id": 45317550, + "author": { + "login": "Minteck", + "id": 46352972, + "node_id": "MDQ6VXNlcjQ2MzUyOTcy", + "avatar_url": "https:\/\/avatars.githubusercontent.com\/u\/46352972?v=4", + "gravatar_id": "", + "url": "https:\/\/api.github.com\/users\/Minteck", + "html_url": "https:\/\/github.com\/Minteck", + "followers_url": "https:\/\/api.github.com\/users\/Minteck\/followers", + "following_url": "https:\/\/api.github.com\/users\/Minteck\/following{\/other_user}", + "gists_url": "https:\/\/api.github.com\/users\/Minteck\/gists{\/gist_id}", + "starred_url": "https:\/\/api.github.com\/users\/Minteck\/starred{\/owner}{\/repo}", + "subscriptions_url": "https:\/\/api.github.com\/users\/Minteck\/subscriptions", + "organizations_url": "https:\/\/api.github.com\/users\/Minteck\/orgs", + "repos_url": "https:\/\/api.github.com\/users\/Minteck\/repos", + "events_url": "https:\/\/api.github.com\/users\/Minteck\/events{\/privacy}", + "received_events_url": "https:\/\/api.github.com\/users\/Minteck\/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "MDc6UmVsZWFzZTQ1MzE3NTUw", + "tag_name": "10.0.45.161", + "target_commitish": "trunk", + "name": "Neutron 10 Beta 1", + "draft": false, + "prerelease": true, + "created_at": "2021-06-27T12:08:55Z", + "published_at": "2021-06-27T12:10:09Z", + "assets": [], + "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/10.0.45.161", + "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/10.0.45.161", + "body": "", + "discussion_url": "https:\/\/github.com\/Minteck-Projects\/Neutron-Core\/discussions\/1" + }, + { + "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/releases\/39146233", + "assets_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/releases\/39146233\/assets", + "upload_url": "https:\/\/uploads.github.com\/repos\/Minteck-Projects\/Neutron-Core\/releases\/39146233\/assets{?name,label}", + "html_url": "https:\/\/github.com\/Minteck-Projects\/Neutron-Core\/releases\/tag\/4.1.0", + "id": 39146233, + "author": { + "login": "Minteck", + "id": 46352972, + "node_id": "MDQ6VXNlcjQ2MzUyOTcy", + "avatar_url": "https:\/\/avatars.githubusercontent.com\/u\/46352972?v=4", + "gravatar_id": "", + "url": "https:\/\/api.github.com\/users\/Minteck", + "html_url": "https:\/\/github.com\/Minteck", + "followers_url": "https:\/\/api.github.com\/users\/Minteck\/followers", + "following_url": "https:\/\/api.github.com\/users\/Minteck\/following{\/other_user}", + "gists_url": "https:\/\/api.github.com\/users\/Minteck\/gists{\/gist_id}", + "starred_url": "https:\/\/api.github.com\/users\/Minteck\/starred{\/owner}{\/repo}", + "subscriptions_url": "https:\/\/api.github.com\/users\/Minteck\/subscriptions", + "organizations_url": "https:\/\/api.github.com\/users\/Minteck\/orgs", + "repos_url": "https:\/\/api.github.com\/users\/Minteck\/repos", + "events_url": "https:\/\/api.github.com\/users\/Minteck\/events{\/privacy}", + "received_events_url": "https:\/\/api.github.com\/users\/Minteck\/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "MDc6UmVsZWFzZTM5MTQ2MjMz", + "tag_name": "4.1.0", + "target_commitish": "trunk", + "name": "Mise \u00e0 jour transitionnelle 4.1.0 `Curious Cat` ", + "draft": false, + "prerelease": false, + "created_at": "2021-03-02T21:57:16Z", + "published_at": "2021-03-02T22:01:26Z", + "assets": [], + "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/4.1.0", + "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/4.1.0", + "body": "
\/data\/webcontent\/flag_systemTrace<\/code> ou dans \u00ab Administration > Apparence > Drapeaux de fonctionnalit\u00e9 \u00bb)<\/li>- D\u00e9but de la refonte de l'interface de l'administration. En attendant, nous avons essay\u00e9 de conserver au maximum la compatibilit\u00e9<\/li>
- CyclicCMS 2.2 corrige des probl\u00e8mes de compatibilit\u00e9 avec les navigateurs bas\u00e9s sur Chromium<\/li>
- Am\u00e9lioration de la compatibilit\u00e9 avec PHP 8<\/li><\/ul>"
+ }
+]
\ No newline at end of file
diff --git a/includes/stats/neutron2.json b/includes/stats/neutron2.json
new file mode 100644
index 0000000..99d857c
--- /dev/null
+++ b/includes/stats/neutron2.json
@@ -0,0 +1,302 @@
+[
+ {
+ "name": "10.0.47.190",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/10.0.47.190",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/10.0.47.190",
+ "commit": {
+ "sha": "e13d57cdf95166b898cde91c9af1863c409b5b60",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/e13d57cdf95166b898cde91c9af1863c409b5b60"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8xMC4wLjQ3LjE5MA=="
+ },
+ {
+ "name": "10.0.45.186",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/10.0.45.186",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/10.0.45.186",
+ "commit": {
+ "sha": "3d33edd3d941e2cc329f30b5248bd913189e2a72",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/3d33edd3d941e2cc329f30b5248bd913189e2a72"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8xMC4wLjQ1LjE4Ng=="
+ },
+ {
+ "name": "10.0.45.161",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/10.0.45.161",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/10.0.45.161",
+ "commit": {
+ "sha": "8d0f13ee04698bdf490da39cd9c7cd2531302468",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/8d0f13ee04698bdf490da39cd9c7cd2531302468"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8xMC4wLjQ1LjE2MQ=="
+ },
+ {
+ "name": "4.1.0",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/4.1.0",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/4.1.0",
+ "commit": {
+ "sha": "5818a81114be735463941c205cc2c48898897e9d",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/5818a81114be735463941c205cc2c48898897e9d"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy80LjEuMA=="
+ },
+ {
+ "name": "4.0.90",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/4.0.90",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/4.0.90",
+ "commit": {
+ "sha": "b9e60b24d1b3726f0965997ff913667cc9ec0736",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/b9e60b24d1b3726f0965997ff913667cc9ec0736"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy80LjAuOTA="
+ },
+ {
+ "name": "4.0.1",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/4.0.1",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/4.0.1",
+ "commit": {
+ "sha": "287bb65c081735d7213adf3f6af767c79e539a14",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/287bb65c081735d7213adf3f6af767c79e539a14"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy80LjAuMQ=="
+ },
+ {
+ "name": "4.0.0",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/4.0.0",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/4.0.0",
+ "commit": {
+ "sha": "b4b7cdd85675351e66a136ad7aa4f57f3d3e6ca1",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/b4b7cdd85675351e66a136ad7aa4f57f3d3e6ca1"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy80LjAuMA=="
+ },
+ {
+ "name": "3.0.92",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/3.0.92",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/3.0.92",
+ "commit": {
+ "sha": "4e7e5a31bf877c2be0bc88a78ed7bcd512756a6e",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/4e7e5a31bf877c2be0bc88a78ed7bcd512756a6e"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8zLjAuOTI="
+ },
+ {
+ "name": "3.0.91",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/3.0.91",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/3.0.91",
+ "commit": {
+ "sha": "25dd24a992b8106a6a8676111d305febbb08edaa",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/25dd24a992b8106a6a8676111d305febbb08edaa"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8zLjAuOTE="
+ },
+ {
+ "name": "3.0.90",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/3.0.90",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/3.0.90",
+ "commit": {
+ "sha": "7244ca1fff4fffe38044e41c59011dfbc176b821",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/7244ca1fff4fffe38044e41c59011dfbc176b821"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8zLjAuOTA="
+ },
+ {
+ "name": "3.0.2",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/3.0.2",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/3.0.2",
+ "commit": {
+ "sha": "85774b656924a5ef97fdbb15493fa36a5d54bdbf",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/85774b656924a5ef97fdbb15493fa36a5d54bdbf"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8zLjAuMg=="
+ },
+ {
+ "name": "3.0.1",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/3.0.1",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/3.0.1",
+ "commit": {
+ "sha": "e6df042a555903973357b52785ea1e6d48389e4b",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/e6df042a555903973357b52785ea1e6d48389e4b"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8zLjAuMQ=="
+ },
+ {
+ "name": "3.0.0",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/3.0.0",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/3.0.0",
+ "commit": {
+ "sha": "089b3c5cafddb54c84f1b67f4ee4afb9f83264b9",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/089b3c5cafddb54c84f1b67f4ee4afb9f83264b9"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8zLjAuMA=="
+ },
+ {
+ "name": "2.2.94",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/2.2.94",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/2.2.94",
+ "commit": {
+ "sha": "f6493b32b54f4aba48ab24da42e50d1b082332a7",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/f6493b32b54f4aba48ab24da42e50d1b082332a7"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8yLjIuOTQ="
+ },
+ {
+ "name": "2.2.93",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/2.2.93",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/2.2.93",
+ "commit": {
+ "sha": "12a1d5804cec5b092fb3af2fc831b1b2b2d7fc85",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/12a1d5804cec5b092fb3af2fc831b1b2b2d7fc85"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8yLjIuOTM="
+ },
+ {
+ "name": "2.2.92",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/2.2.92",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/2.2.92",
+ "commit": {
+ "sha": "24869a123794da8e0d9414ce13ad6be073da0c4a",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/24869a123794da8e0d9414ce13ad6be073da0c4a"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8yLjIuOTI="
+ },
+ {
+ "name": "2.2.91",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/2.2.91",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/2.2.91",
+ "commit": {
+ "sha": "200abe4b38d4b439302aeb36ea28abde08fff197",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/200abe4b38d4b439302aeb36ea28abde08fff197"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8yLjIuOTE="
+ },
+ {
+ "name": "2.2.90",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/2.2.90",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/2.2.90",
+ "commit": {
+ "sha": "9b1af4452bd81838fb6ec27157f7a813d1f77465",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/9b1af4452bd81838fb6ec27157f7a813d1f77465"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8yLjIuOTA="
+ },
+ {
+ "name": "2.2.3",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/2.2.3",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/2.2.3",
+ "commit": {
+ "sha": "7a88d721a60f827b4ea0fa96e03dc06bfbdd8272",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/7a88d721a60f827b4ea0fa96e03dc06bfbdd8272"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8yLjIuMw=="
+ },
+ {
+ "name": "2.2.2",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/2.2.2",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/2.2.2",
+ "commit": {
+ "sha": "440fb93d7cce3f669ee1ad294ba2fa34d1690082",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/440fb93d7cce3f669ee1ad294ba2fa34d1690082"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8yLjIuMg=="
+ },
+ {
+ "name": "2.2.1",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/2.2.1",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/2.2.1",
+ "commit": {
+ "sha": "aa52a60553cd0e91559c80382eb4f8ed30e6056d",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/aa52a60553cd0e91559c80382eb4f8ed30e6056d"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8yLjIuMQ=="
+ },
+ {
+ "name": "2.2.0",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/2.2.0",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/2.2.0",
+ "commit": {
+ "sha": "17b7665e4d7bb5379ba06aed8d67f8ae43d119f1",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/17b7665e4d7bb5379ba06aed8d67f8ae43d119f1"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8yLjIuMA=="
+ },
+ {
+ "name": "2.1",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/2.1",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/2.1",
+ "commit": {
+ "sha": "2d4bb36dbbccf4973fc5ac5b0c805db342267667",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/2d4bb36dbbccf4973fc5ac5b0c805db342267667"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8yLjE="
+ },
+ {
+ "name": "2.1b1",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/2.1b1",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/2.1b1",
+ "commit": {
+ "sha": "72daa219aff446182944ccdd77ebcd635d9411e4",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/72daa219aff446182944ccdd77ebcd635d9411e4"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8yLjFiMQ=="
+ },
+ {
+ "name": "2.1a1",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/2.1a1",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/2.1a1",
+ "commit": {
+ "sha": "1d7fe4cd68c45adcea2a65537614010bba329c61",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/1d7fe4cd68c45adcea2a65537614010bba329c61"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8yLjFhMQ=="
+ },
+ {
+ "name": "2.0.2",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/2.0.2",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/2.0.2",
+ "commit": {
+ "sha": "b536219721fe1557375b5ab7a0e6035407a7d77c",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/b536219721fe1557375b5ab7a0e6035407a7d77c"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8yLjAuMg=="
+ },
+ {
+ "name": "2.0.1",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/2.0.1",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/2.0.1",
+ "commit": {
+ "sha": "2bf3a0bdc8a56f033f2622108e5dea815f11a0d3",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/2bf3a0bdc8a56f033f2622108e5dea815f11a0d3"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8yLjAuMQ=="
+ },
+ {
+ "name": "2.0",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/2.0",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/2.0",
+ "commit": {
+ "sha": "45585c983312edd77adefc4cb1bbafd817870ef6",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/45585c983312edd77adefc4cb1bbafd817870ef6"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8yLjA="
+ },
+ {
+ "name": "2.0a1",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/2.0a1",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/2.0a1",
+ "commit": {
+ "sha": "6d739dfc95e7fec3db96306d76afc3c0ca3a5038",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/6d739dfc95e7fec3db96306d76afc3c0ca3a5038"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8yLjBhMQ=="
+ },
+ {
+ "name": "1.2.3",
+ "zipball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/zipball\/refs\/tags\/1.2.3",
+ "tarball_url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/tarball\/refs\/tags\/1.2.3",
+ "commit": {
+ "sha": "5b57ea140c6a17ac2cd4a3717dba6faff196352b",
+ "url": "https:\/\/api.github.com\/repos\/Minteck-Projects\/Neutron-Core\/commits\/5b57ea140c6a17ac2cd4a3717dba6faff196352b"
+ },
+ "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8xLjIuMw=="
+ }
+]
\ No newline at end of file
diff --git a/includes/stats/refresh.php b/includes/stats/refresh.php
new file mode 100644
index 0000000..5499dd3
--- /dev/null
+++ b/includes/stats/refresh.php
@@ -0,0 +1,52 @@
+ []
+];
+
+// ------------------------------------
+// GitHub
+
+$events = json_decode($api->GitHub("users/Minteck/events"), true);
+$last = null;
+
+foreach ($events as $event) {
+ if ($event["type"] === "PushEvent") {
+ $last = $event;
+ break;
+ }
+}
+
+$data["github"]["project"] = $last["repo"]["name"];
+$data["github"]["sha"] = substr($last["payload"]["commits"][0]["sha"], 0, 7);
+$data["github"]["message"] = $last["payload"]["commits"][0]["message"];
+
+// ------------------------------------
+// Reddit
+$posts = json_decode($api->Reddit("user/Minteck"), true)["data"]["children"];
+$last = null;
+
+foreach ($posts as $post) {
+ if (!$post["pinned"]) {
+ $last = $post["data"];
+ break;
+ }
+}
+
+$data["reddit"]["sub"] = $last["subreddit"];
+$data["reddit"]["title"] = $last["title"];
+$data["reddit"]["score"] = $last["score"];
+
+// ------------------------------------
+// Neutron Releases
+$neutron = json_decode($api->GitHub("repos/Minteck-Projects/Neutron-Core/releases"), true);
+file_put_contents("./gyrate-with-obliqueness.json", json_encode($neutron, JSON_PRETTY_PRINT));
+$neutron = json_decode($api->GitHub("repos/Minteck-Projects/Neutron-Core/tags"), true);
+file_put_contents("./neutron2.json", json_encode($neutron, JSON_PRETTY_PRINT));
+
+// ------------------------------------
+// Dump
+
+var_dump($data);
\ No newline at end of file
--
cgit