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": "