diff options
author | Minteck <contact@minteck.org> | 2021-12-04 15:42:09 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2021-12-04 15:42:09 +0100 |
commit | efadd6eda15122944d95e1b3f01c3f4c35d1f40a (patch) | |
tree | 7adce217645cdd220118c58cebc3dc129922edb2 /includes | |
parent | 79d295f26659dd3b6aea93bb64803bf0778a8f84 (diff) | |
download | main-efadd6eda15122944d95e1b3f01c3f4c35d1f40a.tar.gz main-efadd6eda15122944d95e1b3f01c3f4c35d1f40a.tar.bz2 main-efadd6eda15122944d95e1b3f01c3f4c35d1f40a.zip |
Commit
Diffstat (limited to 'includes')
-rw-r--r-- | includes/drafts/conduct.en.html | 1 | ||||
-rw-r--r-- | includes/header.php | 105 | ||||
-rw-r--r-- | includes/projects/home.php | 12 | ||||
-rw-r--r-- | includes/stats/neutron.json | 53 | ||||
-rw-r--r-- | includes/stats/neutron2.json | 20 | ||||
-rw-r--r-- | includes/stats/stats.json | 6 | ||||
-rw-r--r-- | includes/telemetry.php | 30 |
7 files changed, 135 insertions, 92 deletions
diff --git a/includes/drafts/conduct.en.html b/includes/drafts/conduct.en.html new file mode 100644 index 0000000..9e96c82 --- /dev/null +++ b/includes/drafts/conduct.en.html @@ -0,0 +1 @@ +<p><i>Last update: Aug 25th 2021</i></p><h2>Minteck Community Code of Conduct</h2><h3>Acceptance of the Code of Conduct</h3><p>The Community Services that Minteck provides are subject to the following Code of Conduct. Minteck reserves the right to update the Code of Conduct at any time without notice to you. The most current version of the Code of Conduct can be reviewed by clicking on the « Code of conduct » hyperlink located at the bottom of the main website; or using this hyperlink: <a href="https://mt.ro.lt/cond">https://mt.ro.lt/cond</a></p><h3>Personal and Non-Commercial Use Limitation</h3><p>Unless otherwise specified, the Community Services are for your personal and non-commercial use. You may not modify, copy, distribute, transmit, display, perform, reproduce, publish, license, create derivative works from, transfer, or sell any information obtained from the Community Services.</p><h3>Moderation Rules</h3><p>Privileged users may have elevated permissions over the Community Services (« Moderator »). A Moderator have the exclusive right to restrict, change, or delete any content on the Community Services without prior notice and without a reason.</p><p>A user that does not gives respect and politeness over another user, or a Moderator, will get a Punishment.</p><h3>Content Legality</h3><p>The content published on the Community Services is commonly hosted on a server in France (which you can confirm on the « Legal Notices » page). Therefore, and even if the content is not hosted in France, all content published on the Community Services in subject to French and international laws.</p><p>For example, this means the following content is not allowed and will result in a Punishment:</p><ul><li>content showing objects legally considered as weapons</li><li>content showing practices that infringe copyright laws (« Crack »)</li><li>content showing practices whose objective is to introduce into an automated data processing system or bypass a system's intended behavior<ul><li>Content whose objective is to introduce into an automated data processing system is <strong>tolerated <u>only</u> if</strong> the poster warns about the legal risks and do it on their own system or a system they got permission on.</li><li>Content whose objective is to bypass a system's intended behavior is <strong>tolerated <u>only</u> if</strong> the poster warns that doing so may lead to contract termination (e.g. a Limited Warranty) and do it on their own system or a system they got permission on.</li></ul></li></ul><h3>Content Accuracy Warning</h3><p>At no time Minteck or any of the users of the Community Services makes the warranty that the content you have access to via the Community Services is accurate, confirmed, up-to-date, real, recent, or anything else that may indicate an approval.</p><p>If you need to prove an information is accurate, you may need to do so and search by yourself; nobody on the Community Services is forced to publish sources for their content.</p><h3>Digital and Real Wellbeing</h3><p>Minteck attaches great importance to make every user of the Community Services feel good and happy; both inside of the Community Services and in their real life. If you feel comfortable enough talking about it to someone else online, you can talk about it to Minteck themself or to a qualified Moderator.</p><p>Minteck themself promise they will never copy, distribute, transmit, display, reproduce, publish, license, transfer or sell the information they are given through your online chat or any other service they access to. The Community Services are a place where everyone should feel welcome.</p><p>Minteck themself wants to be a trustable entity and therefore promise to never missuse access you give them to any of your potential belongings (for example a server).</p><p><strong>If <u>at any time</u> you feel like you are going to commit suicide, please <u>IMMEDIATELY</u> call your local suicide hotline. A list is available on </strong><a href="https://ibpf.org/resource/list-of-international-suicide-hotlines/"><strong>the International Bipolar Foundation's website</strong></a><strong>.</strong> Minteck will regularly ask if you are « okay » through a conversation to make sure there is no suicide intention behind what you are saying.</p><h3>Punishments</h3><p>Through breaking this Code of Conduct, a user may get Punishments. Punishments are not fixed and depends on who gives it and why they give it to the user. Common Punishments includes, but are not limited to:</p><ul><li>inability to collaborate for a specific amount of time (« Mute »)</li><li>exclusion from the Community Services, which the user can join back at any time (« Kick »)</li><li>inability to access the Community Services for a specific amount of time (« Temporary Ban »)</li><li>permanent and irrevocable inability to access the Community Services (« Permanent Ban »)<ul><li><strong>Only Minteck themself is qualified to revoke a permanent inability; and will do so only under extreme circonstances.</strong></li></ul></li></ul><p>If you suffer some behavioral disorders such as schizophrenia or bipolar disorder, you should tell it to the Moderators or to Minteck so they are more soft when giving Punishments.</p>
\ No newline at end of file diff --git a/includes/header.php b/includes/header.php index f4601f8..d49ee69 100644 --- a/includes/header.php +++ b/includes/header.php @@ -1,12 +1,17 @@ <?php
-$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
+if (explode(":", $_SERVER['HTTP_HOST'])[0] !== "minteck.org") {
+ header("Location: https://minteck.org" . $_SERVER['REQUEST_URI']);
+ die();
+}
+$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'] ?? "en", 0, 2);
-function l($en, $fr = null) {
+function l($en, $fr = null)
+{
global $lang;
if ((($lang === "fr" && isset($fr)) || (isset($_GET['fr']) && isset($fr) || isset($_COOKIE['fr']))) && !isset($_GET['en']) && !isset($_COOKIE['en']) && isset($fr)) {
- setlocale(LC_TIME, array('fr_FR.UTF-8','fr_FR@euro','fr_FR','french'));
+ setlocale(LC_TIME, array('fr_FR.UTF-8', 'fr_FR@euro', 'fr_FR', 'french'));
return $fr;
} else {
return $en;
@@ -15,7 +20,8 @@ function l($en, $fr = null) { require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/telemetry.php";
-function credit(string $name, string $description, string $image, bool $backwards) {
+function credit(string $name, string $description, string $image, bool $backwards)
+{
if ($backwards) {
return "<div class='artwork-credits-box--back'><div><h3>{$name}</h3>{$description}</div></div><img class='artwork-credits-image--back' src='{$image}' alt='{$name}'>";
} else {
@@ -35,7 +41,8 @@ $Parsedown = new Parsedown(); <link rel="icon" href="/logo.svg">
<link href="/static/css/darktheme.css" rel="stylesheet">
<link href="/static/css/fonts" rel="stylesheet">
- <link href="/static/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
+ <link href="/static/css/bootstrap.min.css" rel="stylesheet"
+ integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<title><?php
if (isset($_TITLE)) {
@@ -45,41 +52,61 @@ $Parsedown = new Parsedown(); ?><?= l("Minteck's space", "L'espace de Minteck") ?></title>
</head>
<body style="background-size: cover;background-position: center;background-repeat: no-repeat;background-attachment: fixed;">
- <!--<div style="height:16px;background:orange;position:fixed;color:black;font-size:12px;font-weight:bold;text-align:center;z-index:999;top:0;left:0;right:0;">Private beta of Minteck's space. Please report all bugs, issues or design details at <a href="mailto:nekostarfan@gmail.com">nekostarfan@gmail.com</a> or <a href="https://jetbrains.minteck.ro.lt:1024/youtrack/issues/MSS" target="_blank">on Minteck's YouTrack instance</a></div>-->
- <nav style="z-index:99;" class="navbar fixed-top navbar-expand-lg navbar-light bg-light">
- <div class="container-fluid">
- <a class="navbar-brand" href="/"><img src="/logo.svg" alt="" width="36px"> <span style="vertical-align: middle;"><?= l("Minteck's space", "L'espace de Minteck") ?></span></a>
- <button class="navbar-toggler" style="filter:invert(1);" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
- <span class="navbar-toggler-icon"></span>
- </button>
- <div class="collapse navbar-collapse" id="navbarSupportedContent">
- <ul class="navbar-nav me-auto mb-2 mb-lg-0">
- <li class="nav-item"><a class="nav-link" href="/"><?= l("Home", "Accueil") ?></a></li>
- <li class="nav-item"><a class="nav-link" href="/blog">Blog</a></li>
- <li class="nav-item dropdown">
- <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
- <?= l("Creations", "Mes créations") ?>
- </a>
- <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
- <li><a class="dropdown-item" href="/furry"><?= l("Furry fandom", "Fandom furry") ?></a></li>
- <li><a class="dropdown-item" href="/creations"><?= l("My Projects", "Mes projets") ?></a></li>
- <li><a class="dropdown-item" href="/archive"><?= l("Software Archive", "Archive des logiciels") ?></a></li>
- </ul>
+<!--<div style="height:16px;background:orange;position:fixed;color:black;font-size:12px;font-weight:bold;text-align:center;z-index:999;top:0;left:0;right:0;">Private beta of Minteck's space. Please report all bugs, issues or design details at <a href="mailto:nekostarfan@gmail.com">nekostarfan@gmail.com</a> or <a href="https://account.minteck.org/youtrack/issues/MSS" target="_blank">on Minteck's YouTrack instance</a></div>-->
+<nav style="z-index:99;" class="navbar fixed-top navbar-expand-lg navbar-light bg-light">
+ <div class="container-fluid">
+ <a class="navbar-brand" href="/"><img src="/logo.svg" alt="" width="36px"> <span
+ style="vertical-align: middle;"><?= l("Minteck's space", "L'espace de Minteck") ?></span></a>
+ <button class="navbar-toggler" style="filter:invert(1);" type="button" data-bs-toggle="collapse"
+ data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
+ aria-label="Toggle navigation">
+ <span class="navbar-toggler-icon"></span>
+ </button>
+ <div class="collapse navbar-collapse" id="navbarSupportedContent">
+ <ul class="navbar-nav me-auto mb-2 mb-lg-0">
+ <li class="nav-item"><a class="nav-link" href="/"><?= l("Home", "Accueil") ?></a></li>
+ <li class="nav-item"><a class="nav-link" href="/blog">Blog</a></li>
+ <li class="nav-item dropdown">
+ <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
+ data-bs-toggle="dropdown" aria-expanded="false">
+ <?= l("Creations", "Mes créations") ?>
+ </a>
+ <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
+ <li><a class="dropdown-item" href="/furry"><?= l("Furry fandom", "Fandom furry") ?></a></li>
+ <li><a class="dropdown-item" href="/creations"><?= l("My Projects", "Mes projets") ?></a></li>
+ <li><a class="dropdown-item"
+ href="/archive"><?= l("Software Archive", "Archive des logiciels") ?></a></li>
+ </ul>
+ </li>
+ <li class="nav-item"><a class="nav-link" href="/about"><?= l("About me", "À propos de moi") ?></a></li>
+ <li class="nav-item"><a class="nav-link" href="/contact"><?= l("Contact me", "Me contacter") ?></a></li>
+ </ul>
+
+ <div class="dropdown">
+ <button id="apps_outer" class="dropdown-toggle" role="button" data-bs-toggle="dropdown"
+ aria-expanded="false"><?= file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/static/apps.svg"); ?></button>
+ <ul class="dropdown-menu" style="position:fixed;top:48px;left:initial;right:10px;"
+ aria-labelledby="apps_outer">
+ <li><a href="https://github.com/Minteck" class="dropdown-item"><img alt=""
+ src="/static/apps/github.png"
+ class="app-icon"> <span
+ class="app-title">GitHub</span></a></li>
+ <li><a href="https://kartik.hopto.org/online" class="dropdown-item"><img alt=""
+ src="/static/apps/kartik.png"
+ class="app-icon"> <span
+ class="app-title">Kartik Online</span></a></li>
+ <li><a href="/" class="dropdown-item"><span class="app-title"><img alt="" src="/logo.svg"
+ class="app-icon"> Minteck's Space</span></a>
</li>
- <li class="nav-item"><a class="nav-link" href="/about"><?= l("About me", "À propos de moi") ?></a></li>
- <li class="nav-item"><a class="nav-link" href="/contact"><?= l("Contact me", "Me contacter") ?></a></li>
+ <li><a href="https://unchainedtech.minteck.ro.lt" class="dropdown-item"><span class="app-title"><img
+ alt="" src="/static/apps/unchainedtech.png"
+ class="app-icon"> UnchainedTech</span></a></li>
+ <li><a href="https://jetbrains.minteck.ro.lt/hub" class="dropdown-item"><img alt=""
+ src="/static/apps/hub.svg"
+ class="app-icon"> <span
+ class="app-title">Minteck's Hub</span></a></li>
</ul>
-
- <div class="dropdown">
- <button id="apps_outer" class="dropdown-toggle" role="button" data-bs-toggle="dropdown" aria-expanded="false"><?= file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/static/apps.svg"); ?></button>
- <ul class="dropdown-menu" style="position:fixed;top:48px;left:initial;right:10px;" aria-labelledby="apps_outer">
- <li><a href="https://github.com/Minteck" class="dropdown-item"><img alt="" src="/static/apps/github.png" class="app-icon"> <span class="app-title">GitHub</span></a></li>
- <li><a href="https://kartik.hopto.org/online" class="dropdown-item"><img alt="" src="/static/apps/kartik.png" class="app-icon"> <span class="app-title">Kartik Online</span></a></li>
- <li><a href="/" class="dropdown-item"><span class="app-title"><img alt="" src="/logo.svg" class="app-icon"> Minteck's Space</span></a></li>
- <li><a href="https://unchainedtech.minteck.ro.lt" class="dropdown-item"><span class="app-title"><img alt="" src="/static/apps/unchainedtech.png" class="app-icon"> UnchainedTech</span></a></li>
- <li><a href="https://jetbrains.minteck.ro.lt/hub" class="dropdown-item"><img alt="" src="/static/apps/hub.svg" class="app-icon"> <span class="app-title">Minteck's Hub</span></a></li>
- </ul>
- </div>
</div>
</div>
- </nav>
+ </div>
+</nav>
diff --git a/includes/projects/home.php b/includes/projects/home.php index fdb1cb4..244bfb8 100644 --- a/includes/projects/home.php +++ b/includes/projects/home.php @@ -1,5 +1,11 @@ <div class="list-group">
- <a href="/creations/kartik" class="list-group-item list-group-item-action"><img src="<?= trim(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/creations/kartik/icon.txt")) ?>" alt="" width="24px"> Kartik <span class="badge bg-secondary rounded-pill"><?= l("Development", "Programmation") ?></span></a>
- <a href="/creations/neutron" class="list-group-item list-group-item-action"><img src="<?= trim(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/creations/neutron/icon.txt")) ?>" alt="" width="24px"> Neutron <span class="badge bg-secondary rounded-pill"><?= l("Development", "Programmation") ?></span></a>
- <a href="/creations/gyrate-with-obliqueness" class="list-group-item list-group-item-action"><img src="/static/genericProjectIcon.png" alt="" width="24px"> Gyrate with Obliqueness <span class="badge bg-secondary rounded-pill"><?= l("Multimedia", "Multimédia") ?></span></a>
+ <a href="/creations/kartik" class="list-group-item list-group-item-action"><img src="/static/genericProjectIcon.png"
+ alt="" width="24px"> Kartik <span
+ class="badge bg-secondary rounded-pill"><?= l("Development", "Programmation") ?></span></a>
+ <a href="/creations/neutron" class="list-group-item list-group-item-action"><img
+ src="/static/genericProjectIcon.png" alt="" width="24px"> Neutron <span
+ class="badge bg-secondary rounded-pill"><?= l("Development", "Programmation") ?></span></a>
+ <a href="/creations/gyrate-with-obliqueness" class="list-group-item list-group-item-action"><img
+ src="/static/genericProjectIcon.png" alt="" width="24px"> Gyrate with Obliqueness <span
+ class="badge bg-secondary rounded-pill"><?= l("Multimedia", "Multimédia") ?></span></a>
</div>
\ No newline at end of file diff --git a/includes/stats/neutron.json b/includes/stats/neutron.json index 4385e25..3c01805 100644 --- a/includes/stats/neutron.json +++ b/includes/stats/neutron.json @@ -1,5 +1,44 @@ [ { + "url": "https:\/\/api.github.com\/repos\/Minteck\/Neutron\/releases\/50759793", + "assets_url": "https:\/\/api.github.com\/repos\/Minteck\/Neutron\/releases\/50759793\/assets", + "upload_url": "https:\/\/uploads.github.com\/repos\/Minteck\/Neutron\/releases\/50759793\/assets{?name,label}", + "html_url": "https:\/\/github.com\/Minteck\/Neutron\/releases\/tag\/untagged-2213818393bb83a84569", + "id": 50759793, + "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": "RE_kwDOFANC4M4DBohx", + "tag_name": "10.0.249.53", + "target_commitish": "trunk", + "name": "Neutron 10 21H2 Beta 1", + "draft": true, + "prerelease": true, + "created_at": "2021-10-15T19:22:21Z", + "published_at": null, + "assets": [], + "tarball_url": null, + "zipball_url": null, + "body": "" + }, + { "url": "https:\/\/api.github.com\/repos\/Minteck\/Neutron\/releases\/47491325", "assets_url": "https:\/\/api.github.com\/repos\/Minteck\/Neutron\/releases\/47491325\/assets", "upload_url": "https:\/\/uploads.github.com\/repos\/Minteck\/Neutron\/releases\/47491325\/assets{?name,label}", @@ -68,7 +107,7 @@ "node_id": "MDc6UmVsZWFzZTQ3Mzg3NzE5", "tag_name": "10.0.224.51", "target_commitish": "trunk", - "name": "Neutron 10 Release Candidate 2", + "name": "Neutron 10 21H1 Release Candidate 2", "draft": false, "prerelease": true, "created_at": "2021-08-05T20:06:09Z", @@ -107,7 +146,7 @@ "node_id": "MDc6UmVsZWFzZTQ2OTM3ODA5", "tag_name": "10.0.217.50", "target_commitish": "trunk", - "name": "Neutron 10 Release Candidate 1", + "name": "Neutron 10 21H1 Release Candidate 1", "draft": false, "prerelease": true, "created_at": "2021-07-26T02:07:52Z", @@ -146,7 +185,7 @@ "node_id": "MDc6UmVsZWFzZTQ2NzM3NzI3", "tag_name": "10.0.205.49", "target_commitish": "trunk", - "name": "Neutron 10 Beta 3.1", + "name": "Neutron 10 21H1 Beta 3.1", "draft": false, "prerelease": true, "created_at": "2021-07-25T21:38:34Z", @@ -185,7 +224,7 @@ "node_id": "MDc6UmVsZWFzZTQ2NzEyODMy", "tag_name": "10.0.194.48", "target_commitish": "trunk", - "name": "Neutron 10 Beta 3", + "name": "Neutron 10 21H1 Beta 3", "draft": false, "prerelease": true, "created_at": "2021-07-24T11:41:24Z", @@ -224,7 +263,7 @@ "node_id": "MDc6UmVsZWFzZTQ1Njc1NDYw", "tag_name": "10.0.47.190", "target_commitish": "trunk", - "name": "Neutron 10 Beta 2.1", + "name": "Neutron 10 21H1 Beta 2.1", "draft": false, "prerelease": true, "created_at": "2021-07-04T13:04:21Z", @@ -263,7 +302,7 @@ "node_id": "MDc6UmVsZWFzZTQ1Njc1MDE3", "tag_name": "10.0.45.186", "target_commitish": "trunk", - "name": "Neutron 10 Beta 2", + "name": "Neutron 10 21H1 Beta 2", "draft": false, "prerelease": true, "created_at": "2021-07-04T12:32:42Z", @@ -302,7 +341,7 @@ "node_id": "MDc6UmVsZWFzZTQ1MzE3NTUw", "tag_name": "10.0.45.161", "target_commitish": "trunk", - "name": "Neutron 10 Beta 1", + "name": "Neutron 10 21H1 Beta 1", "draft": false, "prerelease": true, "created_at": "2021-06-27T12:08:55Z", diff --git a/includes/stats/neutron2.json b/includes/stats/neutron2.json index ebf7de7..611a5cf 100644 --- a/includes/stats/neutron2.json +++ b/includes/stats/neutron2.json @@ -1,5 +1,15 @@ [ { + "name": "randomtag1", + "zipball_url": "https:\/\/api.github.com\/repos\/Minteck\/Neutron\/zipball\/refs\/tags\/randomtag1", + "tarball_url": "https:\/\/api.github.com\/repos\/Minteck\/Neutron\/tarball\/refs\/tags\/randomtag1", + "commit": { + "sha": "c053d5ba5c9dc4133d0c7c366b883bf6c39155fa", + "url": "https:\/\/api.github.com\/repos\/Minteck\/Neutron\/commits\/c053d5ba5c9dc4133d0c7c366b883bf6c39155fa" + }, + "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy9yYW5kb210YWcx" + }, + { "name": "10.0.233.52", "zipball_url": "https:\/\/api.github.com\/repos\/Minteck\/Neutron\/zipball\/refs\/tags\/10.0.233.52", "tarball_url": "https:\/\/api.github.com\/repos\/Minteck\/Neutron\/tarball\/refs\/tags\/10.0.233.52", @@ -288,15 +298,5 @@ "url": "https:\/\/api.github.com\/repos\/Minteck\/Neutron\/commits\/72daa219aff446182944ccdd77ebcd635d9411e4" }, "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8yLjFiMQ==" - }, - { - "name": "2.1a1", - "zipball_url": "https:\/\/api.github.com\/repos\/Minteck\/Neutron\/zipball\/refs\/tags\/2.1a1", - "tarball_url": "https:\/\/api.github.com\/repos\/Minteck\/Neutron\/tarball\/refs\/tags\/2.1a1", - "commit": { - "sha": "1d7fe4cd68c45adcea2a65537614010bba329c61", - "url": "https:\/\/api.github.com\/repos\/Minteck\/Neutron\/commits\/1d7fe4cd68c45adcea2a65537614010bba329c61" - }, - "node_id": "MDM6UmVmMzM1NzU4MDQ4OnJlZnMvdGFncy8yLjFhMQ==" } ]
\ No newline at end of file diff --git a/includes/stats/stats.json b/includes/stats/stats.json index f70a955..186a1fe 100644 --- a/includes/stats/stats.json +++ b/includes/stats/stats.json @@ -1,12 +1,12 @@ { "github": { "project": "Minteck\/Neutron", - "sha": "9005605", - "message": "Remember that security issue that was \"fixed\" in August 2020. Well, it wasn't fixed..." + "sha": "56d854a", + "message": "Update" }, "reddit": { "sub": "Tulpas", "title": "Thinking of creating my first tulpa, I have a few questions though", - "score": 13 + "score": 14 } }
\ No newline at end of file diff --git a/includes/telemetry.php b/includes/telemetry.php index 3988679..e69de29 100644 --- a/includes/telemetry.php +++ b/includes/telemetry.php @@ -1,30 +0,0 @@ -<?php - -$db = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/telemetry.json"), true); - -$ip = md5($_SERVER['REMOTE_ADDR']); -$day = date('d'); -$month = date('m'); -$year = date('y'); -$url = "space:" .explode("?", $_SERVER['REQUEST_URI'])[0]; - -if (!isset($db[$year]) && $_SERVER['PHP_SELF'] !== "/404.php") { - $db[$year] = []; -} -if (!isset($db[$year][$month]) && $_SERVER['PHP_SELF'] !== "/404.php") { - $db[$year][$month] = []; -} -if (!isset($db[$year][$month][$day]) && $_SERVER['PHP_SELF'] !== "/404.php") { - $db[$year][$month][$day] = []; -} -if (!isset($db[$year][$month][$day][$url]) && $_SERVER['PHP_SELF'] !== "/404.php") { - $db[$year][$month][$day][$url] = []; -} - -if (!in_array($ip, $db[$year][$month][$day][$url]) && $_SERVER['PHP_SELF'] !== "/404.php") { - array_push($db[$year][$month][$day][$url], $ip); -} - -if (trim(json_encode($db, JSON_PRETTY_PRINT)) !== "null") { - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/telemetry.json", json_encode($db, JSON_PRETTY_PRINT)); -}
\ No newline at end of file |