From 9852b6cd074cceec0d0b549bb6c9bd7fe50c86f2 Mon Sep 17 00:00:00 2001 From: Minteck <46352972+Minteck@users.noreply.github.com> Date: Sun, 1 Aug 2021 22:28:15 +0200 Subject: Update --- .gitignore | 4 +- .idea/deployment.xml | 2 +- about/index.php | 13 +- admin/api/_demo.php | 5 + admin/api/getUbuntuUpgrades.php | 10 ++ admin/api/getUpdates.php | 26 +++ admin/api/refreshUpdates.php | 4 + admin/api/serverLogSummary.php | 8 + admin/api/serverTemp.php | 20 +++ admin/api/serverTime.php | 12 ++ admin/api/terminateAllSessions.php | 34 ++++ admin/api/terminateGameSessions.php | 23 +++ admin/api/terminateWebSessions.php | 23 +++ admin/callback/index.php | 48 ++++++ admin/index.php | 181 +++++++++++++++++++++ admin/panes/home.php | 136 ++++++++++++++++ admin/panes/kartik.php | 111 +++++++++++++ admin/panes/unchained.php | 81 +++++++++ admin/panes/uptime.php | 87 ++++++++++ admin/panes/version.php | 139 ++++++++++++++++ admin/private/footer.php | 2 + admin/private/header.api.php | 11 ++ admin/private/header.php | 28 ++++ admin/session/index.php | 6 + archive/index.php | 2 +- blog/_article.php | 8 +- blog/index.php | 2 +- contact/index.php | 54 +++++- creations/dev/neutron/index.php | 4 + creations/index.php | 2 +- creations/neutron/index.php | 57 +++++-- furry/index.php | 2 +- includes/archive/main.php | 6 +- includes/blog/data/2020-05-04@something4.json | 3 +- .../blog/data/2020-05-04@something4.json.fr.html | 1 + includes/blog/home.php | 10 +- includes/blog/list.php | 2 +- includes/friends/home.php | 16 +- includes/header.php | 45 ++++- includes/projects/home.php | 6 +- includes/projects/list.php | 2 +- index.php | 29 ++-- static/credits/fiddle.png | Bin 0 -> 90041 bytes static/credits/fleur.png | Bin 0 -> 140182 bytes static/credits/minteck.png | Bin 0 -> 107243 bytes static/credits/retsuno.png | Bin 0 -> 106417 bytes static/credits/wishdream.png | Bin 0 -> 124519 bytes static/credits/yonkagor.png | Bin 0 -> 96679 bytes static/css/fonts/index.php | 83 ++++++++++ static/fonts/Jost-Black.ttf | Bin 0 -> 61204 bytes static/fonts/Jost-BlackItalic.ttf | Bin 0 -> 65372 bytes static/fonts/Jost-Bold.ttf | Bin 0 -> 61120 bytes static/fonts/Jost-BoldItalic.ttf | Bin 0 -> 65392 bytes static/fonts/Jost-ExtraBold.ttf | Bin 0 -> 61224 bytes static/fonts/Jost-ExtraBoldItalic.ttf | Bin 0 -> 65396 bytes static/fonts/Jost-ExtraLight.ttf | Bin 0 -> 61212 bytes static/fonts/Jost-ExtraLightItalic.ttf | Bin 0 -> 65488 bytes static/fonts/Jost-Italic.ttf | Bin 0 -> 65436 bytes static/fonts/Jost-Light.ttf | Bin 0 -> 61152 bytes static/fonts/Jost-LightItalic.ttf | Bin 0 -> 65488 bytes static/fonts/Jost-Medium.ttf | Bin 0 -> 61176 bytes static/fonts/Jost-MediumItalic.ttf | Bin 0 -> 65596 bytes static/fonts/Jost-Regular.ttf | Bin 0 -> 61032 bytes static/fonts/Jost-SemiBold.ttf | Bin 0 -> 61168 bytes static/fonts/Jost-SemiBoldItalic.ttf | Bin 0 -> 65532 bytes static/fonts/Jost-Thin.ttf | Bin 0 -> 61112 bytes static/fonts/Jost-ThinItalic.ttf | Bin 0 -> 65272 bytes static/fonts/MavenPro-Black.ttf | Bin 0 -> 55956 bytes static/fonts/MavenPro-Bold.ttf | Bin 0 -> 55928 bytes static/fonts/MavenPro-ExtraBold.ttf | Bin 0 -> 56040 bytes static/fonts/MavenPro-Medium.ttf | Bin 0 -> 55864 bytes static/fonts/MavenPro-Regular.ttf | Bin 0 -> 55604 bytes static/fonts/MavenPro-SemiBold.ttf | Bin 0 -> 55988 bytes static/fonts/Overpass-Black.ttf | Bin 0 -> 117424 bytes static/fonts/Overpass-BlackItalic.ttf | Bin 0 -> 118852 bytes static/fonts/Overpass-Bold.ttf | Bin 0 -> 115784 bytes static/fonts/Overpass-BoldItalic.ttf | Bin 0 -> 119680 bytes static/fonts/Overpass-ExtraBold.ttf | Bin 0 -> 115136 bytes static/fonts/Overpass-ExtraBoldItalic.ttf | Bin 0 -> 120476 bytes static/fonts/Overpass-ExtraLight.ttf | Bin 0 -> 113992 bytes static/fonts/Overpass-ExtraLightItalic.ttf | Bin 0 -> 115912 bytes static/fonts/Overpass-Italic.ttf | Bin 0 -> 119540 bytes static/fonts/Overpass-Light.ttf | Bin 0 -> 113012 bytes static/fonts/Overpass-LightItalic.ttf | Bin 0 -> 116004 bytes static/fonts/Overpass-Regular.ttf | Bin 0 -> 116608 bytes static/fonts/Overpass-SemiBold.ttf | Bin 0 -> 113844 bytes static/fonts/Overpass-SemiBoldItalic.ttf | Bin 0 -> 118908 bytes static/fonts/Overpass-Thin.ttf | Bin 0 -> 109204 bytes static/fonts/Overpass-ThinItalic.ttf | Bin 0 -> 113476 bytes static/hero/legal.jpg | Bin 0 -> 217526 bytes static/hero/neutron.jpg | Bin 0 -> 2131063 bytes static/reload.png | Bin 0 -> 270 bytes 92 files changed, 1275 insertions(+), 73 deletions(-) create mode 100644 admin/api/_demo.php create mode 100644 admin/api/getUbuntuUpgrades.php create mode 100644 admin/api/getUpdates.php create mode 100644 admin/api/refreshUpdates.php create mode 100644 admin/api/serverLogSummary.php create mode 100644 admin/api/serverTemp.php create mode 100644 admin/api/serverTime.php create mode 100644 admin/api/terminateAllSessions.php create mode 100644 admin/api/terminateGameSessions.php create mode 100644 admin/api/terminateWebSessions.php create mode 100644 admin/callback/index.php create mode 100644 admin/index.php create mode 100644 admin/panes/home.php create mode 100644 admin/panes/kartik.php create mode 100644 admin/panes/unchained.php create mode 100644 admin/panes/uptime.php create mode 100644 admin/panes/version.php create mode 100644 admin/private/footer.php create mode 100644 admin/private/header.api.php create mode 100644 admin/private/header.php create mode 100644 admin/session/index.php create mode 100644 creations/dev/neutron/index.php create mode 100644 includes/blog/data/2020-05-04@something4.json.fr.html create mode 100644 static/credits/fiddle.png create mode 100644 static/credits/fleur.png create mode 100644 static/credits/minteck.png create mode 100644 static/credits/retsuno.png create mode 100644 static/credits/wishdream.png create mode 100644 static/credits/yonkagor.png create mode 100644 static/css/fonts/index.php create mode 100644 static/fonts/Jost-Black.ttf create mode 100644 static/fonts/Jost-BlackItalic.ttf create mode 100644 static/fonts/Jost-Bold.ttf create mode 100644 static/fonts/Jost-BoldItalic.ttf create mode 100644 static/fonts/Jost-ExtraBold.ttf create mode 100644 static/fonts/Jost-ExtraBoldItalic.ttf create mode 100644 static/fonts/Jost-ExtraLight.ttf create mode 100644 static/fonts/Jost-ExtraLightItalic.ttf create mode 100644 static/fonts/Jost-Italic.ttf create mode 100644 static/fonts/Jost-Light.ttf create mode 100644 static/fonts/Jost-LightItalic.ttf create mode 100644 static/fonts/Jost-Medium.ttf create mode 100644 static/fonts/Jost-MediumItalic.ttf create mode 100644 static/fonts/Jost-Regular.ttf create mode 100644 static/fonts/Jost-SemiBold.ttf create mode 100644 static/fonts/Jost-SemiBoldItalic.ttf create mode 100644 static/fonts/Jost-Thin.ttf create mode 100644 static/fonts/Jost-ThinItalic.ttf create mode 100644 static/fonts/MavenPro-Black.ttf create mode 100644 static/fonts/MavenPro-Bold.ttf create mode 100644 static/fonts/MavenPro-ExtraBold.ttf create mode 100644 static/fonts/MavenPro-Medium.ttf create mode 100644 static/fonts/MavenPro-Regular.ttf create mode 100644 static/fonts/MavenPro-SemiBold.ttf create mode 100644 static/fonts/Overpass-Black.ttf create mode 100644 static/fonts/Overpass-BlackItalic.ttf create mode 100644 static/fonts/Overpass-Bold.ttf create mode 100644 static/fonts/Overpass-BoldItalic.ttf create mode 100644 static/fonts/Overpass-ExtraBold.ttf create mode 100644 static/fonts/Overpass-ExtraBoldItalic.ttf create mode 100644 static/fonts/Overpass-ExtraLight.ttf create mode 100644 static/fonts/Overpass-ExtraLightItalic.ttf create mode 100644 static/fonts/Overpass-Italic.ttf create mode 100644 static/fonts/Overpass-Light.ttf create mode 100644 static/fonts/Overpass-LightItalic.ttf create mode 100644 static/fonts/Overpass-Regular.ttf create mode 100644 static/fonts/Overpass-SemiBold.ttf create mode 100644 static/fonts/Overpass-SemiBoldItalic.ttf create mode 100644 static/fonts/Overpass-Thin.ttf create mode 100644 static/fonts/Overpass-ThinItalic.ttf create mode 100644 static/hero/legal.jpg create mode 100644 static/hero/neutron.jpg create mode 100644 static/reload.png diff --git a/.gitignore b/.gitignore index deabd9e..e8845a4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ includes/stats/credentials.json archive/get -.htaccess \ No newline at end of file +.htaccess +admin/private/app.json +includes/telemetry.json \ No newline at end of file diff --git a/.idea/deployment.xml b/.idea/deployment.xml index 037d602..2faa525 100644 --- a/.idea/deployment.xml +++ b/.idea/deployment.xml @@ -1,6 +1,6 @@ - + diff --git a/about/index.php b/about/index.php index 51a82ed..ce31b09 100644 --- a/about/index.php +++ b/about/index.php @@ -150,7 +150,7 @@ -
  • Managing powerful infrastructures (with up to 5 machines) with specific software +
    • @@ -280,7 +280,6 @@
    • -
    @@ -294,17 +293,17 @@

    - +
    • - Primary (recommended): + Primary (recommended):", "Primaire (recommandé) :") ?>
      ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCsQFXfZUN/jlEk0SaJ7RO/68JuLrVPA3lxkRWkmsMm+bcAljCLhEmDzOeH+k56qp33uopM6B/KfZ6kEj8jw80QZe3mpZJ5HU2xI6lu14emXb5TY2J/A0hmiP4LrRxkoWjX/rzVA7WALi2D6WjmAWgkXdNgyz4lCgX5eQsYmdWLBFBFhCNJBJy//EPVdSNTjWeJcNGIM5uOIyyGJSnQ3u+2Z2WzRJ/uRvCEIj1DZ3mOON8NvFV7Kfi7lemDT0gybTO3tDmpuIUDFr2jFueKkgeME5f48GXz4uBFRXTzStq/NVbDswkjoizoHay60EGysCZzvCDs6WzLYzBZ8iS85AAcIeKyt3tBR47IpdHk/ko5hPNNl7YeW4hSJgL+utjw1VBnCqGqYctiEsusmre+c2/yRZHpb8xkmpU9XpEa9Af2mboZrUc6KIttUDZp8Dg2vpFoX4JvoPzgamhyaIwZxcwRTqBX8STaSyf68+sghyyKdN/QWmfuM/767hGkI08s8mc= minteck@Mintecks-Laptop
      - Secondary: + Secondary:", "Secondaire :") ?>
      ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDQHDZ1EfavdLe4kFCAGiXVMlceA+I8EgGZNKSgSpi/ojrsKIZX/HrcUFdttCG18KAWcMzgjn8znMkCIspsdxquFJBNwj8yqKooP9GO02THgVeGQBtH8SnnyFafakfhMPd+WEP9VVuz2EjroxUCvM8VDMg3UDjD7VX1eXp6PB+qYRJTmeUpS+BkwH3gI1tJNJfETR9JAt/GhVVPkD8xV1CJrSWXgmuj0i8YChEEgQQUTT2QRA2JnMzJmx50m41aIMFdoOAck/bun8ePGVUfKQVjAC6gQ4/EAgvbaD5xmiy1i1hXcB4U0NoWhP5YfTtIcoSNmjDDxhBM6M3fACMswqzMy1d+z7CSN+VYgHPl7USK5tGYwL3pGHFAjmcWCFKftVWB/v0/RVH3828WeceXh1IbPyG6sACbG6t9PttDDAYFaiBXp2Ybk6U+uRN1ZkwaCY9yf9TPVc3+VSjC2m/+n7nF3QxI5M7YY6h+inTOJYHRVPssPpVOUQr3FH5kwuS3ORE= minteck@kde-neon
      @@ -312,8 +311,8 @@ ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCsQFXfZUN/jlEk0SaJ7RO/68JuLrVPA3lxkRWkmsMm
    • - -

      minteckthefurry@protonmail.com (also see: Contact me):

      + +

      minteckthefurry@protonmail.com (Contact me", "voir aussi : Me contacter") ?>):

      -----BEGIN PGP PUBLIC KEY BLOCK-----
      Version: OpenPGP.js v4.10.10
      diff --git a/admin/api/_demo.php b/admin/api/_demo.php new file mode 100644 index 0000000..e4651f1 --- /dev/null +++ b/admin/api/_demo.php @@ -0,0 +1,5 @@ +Ubuntu " . explode("'", $ret[0])[1] . " is available, use do-release-upgrade to upgrade"); +} else { + echo("This server is running the latest version of Ubuntu"); +} \ No newline at end of file diff --git a/admin/api/getUpdates.php b/admin/api/getUpdates.php new file mode 100644 index 0000000..57ce275 --- /dev/null +++ b/admin/api/getUpdates.php @@ -0,0 +1,26 @@ + trim($parts[1]), + "version" => [ + "local" => trim(explode("]", explode("[", $parts[2])[1])[0]), + "remote" => trim(explode("(", $parts[3])[1]), + ], + "repos" => trim(explode(":", explode("(", explode("[", trim($package))[1])[1])[1]), + "architecture" => trim(explode("]", explode("[", trim($package))[2])[0]) + ]; + + $data["packages"][] = $pkg; +} + +echo(json_encode($data, JSON_PRETTY_PRINT)); \ No newline at end of file diff --git a/admin/api/refreshUpdates.php b/admin/api/refreshUpdates.php new file mode 100644 index 0000000..ea6f991 --- /dev/null +++ b/admin/api/refreshUpdates.php @@ -0,0 +1,4 @@ +" . $cnt . " system log messages since last system startup"); \ No newline at end of file diff --git a/admin/api/serverTemp.php b/admin/api/serverTemp.php new file mode 100644 index 0000000..19e383a --- /dev/null +++ b/admin/api/serverTemp.php @@ -0,0 +1,20 @@ +"); +exec("sensors -j", $out); +$outp = implode("\n", $out); +$outd = json_decode($outp, true); + +echo(round($outd["cpu_thermal-virtual-0"]["temp1"]["temp1_input"], 1)); + +?>°C, 90) { + echo("completely overheating!"); +} else if ($outd["cpu_thermal-virtual-0"]["temp1"]["temp1_input"] > 60) { + echo("starting to throttle!"); +} else { + echo("under normal temperatures"); +} \ No newline at end of file diff --git a/admin/api/serverTime.php b/admin/api/serverTime.php new file mode 100644 index 0000000..d0db5e3 --- /dev/null +++ b/admin/api/serverTime.php @@ -0,0 +1,12 @@ + + + + + +
      + + +
      + +
      + + +
      + + \ No newline at end of file diff --git a/admin/panes/home.php b/admin/panes/home.php new file mode 100644 index 0000000..ac106e4 --- /dev/null +++ b/admin/panes/home.php @@ -0,0 +1,136 @@ + + + + +
      +

      Welcome back !

      +
        +
      • + Server running at °C, 90) { + echo("completely overheating!"); + } else if ($outd["cpu_thermal-virtual-0"]["temp1"]["temp1_input"] > 60) { + echo("starting to throttle!"); + } else { + echo("under normal temperatures"); + } + + ?> Manage...
      • UnchainedTech article·s, draft·s Manage...
      • +
      • Neutron Cloud website·s Manage...
      • +
      • Kartik Online player·s Manage...
      • +
      • blog article·s Manage...
      • +
      + + +
      + + \ No newline at end of file diff --git a/admin/panes/kartik.php b/admin/panes/kartik.php new file mode 100644 index 0000000..87a975f --- /dev/null +++ b/admin/panes/kartik.php @@ -0,0 +1,111 @@ + + + + +
      +
      +

      Kartik Online

      +

      player·s

      + +
        + + +
      • 1) { + $tsessions = "s"; + } else { + $tsessions = ""; + } + + if ($osession > 0) { + echo("{$tsession} session{$tsessions} ({$gsession}:{$osession})"); + } else if ($gsession > 0) { + echo("{$tsession} session{$tsessions} ({$gsession}:0)"); + } else { + echo("Offline (0:0)"); + } + + ?> Terminate Web · Terminate Game · Terminate All
      • + + +
      +
      +
      + + \ No newline at end of file diff --git a/admin/panes/unchained.php b/admin/panes/unchained.php new file mode 100644 index 0000000..cab35b5 --- /dev/null +++ b/admin/panes/unchained.php @@ -0,0 +1,81 @@ + + + + +
      +
      +

      + ⏵⏵⏵ + +

      +
      +

      You already have access to UnchainedTech Admin

      + +

      We automatically logged you into UnchainedTech Admin when you logged in to Minteck Admin


      + + + +

      + vManage drafts +

      +
      +
      + + + + \ No newline at end of file diff --git a/admin/panes/uptime.php b/admin/panes/uptime.php new file mode 100644 index 0000000..71a6545 --- /dev/null +++ b/admin/panes/uptime.php @@ -0,0 +1,87 @@ + + + + +
      +

      The server has been running for

      + +

      + + + +
        +
      • + of data has been collected to ensure easy system maintenance and audit +
      • +
      • + Calculating... +
      • + + +
      +
      + + \ No newline at end of file diff --git a/admin/panes/version.php b/admin/panes/version.php new file mode 100644 index 0000000..04ef136 --- /dev/null +++ b/admin/panes/version.php @@ -0,0 +1,139 @@ + + + + +
      +

      This server is running version

      + +

      + +
        +
      • PHP
      • +
      • UnchainedTech
      • +
      • Neutron Cloud
      • +
      • Neutron Copper
      • +
      • Neutron Titanium
      • +
      • + +
      • +
      • Git
      • +
      • +
      + +
        +
      • Checking for updates...
      • + + +
      + + +
      + + \ No newline at end of file diff --git a/admin/private/footer.php b/admin/private/footer.php new file mode 100644 index 0000000..691287b --- /dev/null +++ b/admin/private/footer.php @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/admin/private/header.api.php b/admin/private/header.api.php new file mode 100644 index 0000000..ce143f6 --- /dev/null +++ b/admin/private/header.api.php @@ -0,0 +1,11 @@ + + + + + + + Minteck Admin + + + + + + + + + \ No newline at end of file diff --git a/admin/session/index.php b/admin/session/index.php new file mode 100644 index 0000000..3dbf45a --- /dev/null +++ b/admin/session/index.php @@ -0,0 +1,6 @@ +

      - Note : You may find more archived projects on Minteck's GitHub archives. + Note: .
      diff --git a/blog/_article.php b/blog/_article.php index 1d25467..819d7b1 100644 --- a/blog/_article.php +++ b/blog/_article.php @@ -15,18 +15,18 @@ if (!file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/blog/data/" . $_GET['i'] $data = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/blog/data/" . $_GET['i'] . ".json"), true); $article = $_GET['i']; -$_TITLE = $data["title"]; +$_TITLE = l($data["title"], $data["title.fr"] ?? $data["title"]); require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/header.php"; ?>
      -

      -
      format("F jS, Y"); ?>
      +

      +
      format("U")); ?>

      - +

      diff --git a/blog/index.php b/blog/index.php index 9e63e02..203e1ba 100644 --- a/blog/index.php +++ b/blog/index.php @@ -6,7 +6,7 @@

      - Note : If you want a more generally tech-centric blog that doesn't necessarily talk about me, you should check out UnchainedTech, that is also accessible here if you are using the Tor network. + Note: UnchainedTech
      diff --git a/contact/index.php b/contact/index.php index 8b4cce0..e2da9e4 100644 --- a/contact/index.php +++ b/contact/index.php @@ -17,10 +17,10 @@

      - TODO: Do the thing +
      + Artwork by me, original design by Blayris6 and Retsuno

      ", "

      Dessin par moi, dessin original par Blayris6 et Retsuno

      "), "/static/credits/minteck.png", false) ?> + Artwork by me, original design by Retsuno

      ", "

      Dessin par moi, dessin original par Retsuno

      "), "/static/credits/retsuno.png", true) ?> + Artwork by me, original design by YonKaGor

      ", "

      Dessin par moi, dessin original par YonKaGor

      "), "/static/credits/yonkagor.png", false) ?> + Artwork by me, original design by WishdreamStar

      ", "

      Dessin par moi, dessin original par WishdreamStar

      "), "/static/credits/wishdream.png", true) ?> + Artwork by me, original design by Fleurfurr

      ", "

      Dessin par moi, dessin original par Fleurfurr

      "), "/static/credits/fleur.png", false) ?> + Artwork by me, original design by fiddle

      ", "

      Dessin par moi, dessin original par fiddle

      "), "/static/credits/fiddle.png", true) ?> +
      +

      + +

      +

      diff --git a/creations/dev/neutron/index.php b/creations/dev/neutron/index.php new file mode 100644 index 0000000..0a9c6ba --- /dev/null +++ b/creations/dev/neutron/index.php @@ -0,0 +1,4 @@ +

      -

      Some project links may redirect to GitHub or YouTube, which are external websites with their own policies.

      +


      diff --git a/creations/neutron/index.php b/creations/neutron/index.php index 309ebc1..2a26d32 100644 --- a/creations/neutron/index.php +++ b/creations/neutron/index.php @@ -1,12 +1,47 @@
      +
      +

      Neutron is software created so that you can easily manage one or more websites without any required knowledge. Whether you are developer or not, Neutron is the best way to have a ready-to-go website.

      Neutron is released under the GNU General Public License version 3, which means you can contribute to the project and improve it.

      -

      Download Neutron

      +

      Run Neutron on the cloud New!

      + Neutron 10 introduces support for a new much wanted technology: Neutron Cloud. The concept is simple: you create, we host. Here are the 5 top points for choosing Neutron Cloud instead of using Neutron on-premises: +
        +
      • it's free, and will be forever. You don't have to buy/rent a server to use Neutron. We think everyone deserve the right to have a private place where they can share their life.
      • +
      • forget the hassle. You write your content, we take care of the rest.
      • +
      • always fresh and secure. Your Neutron Cloud is always up-to-date with the latest development version of Neutron.
      • +
      • fast at large scales. Neutron Cloud allows you to have at most 250 unique visitors per month, and they all will get the same level of performance.
      • +
      • share it. Your Neutron Cloud website can get a custom shortened URL that you can share everywhere.
      • +
      + +

      Neutron Cloud is currently available after registration on HERE. We limit registration to prevent abuse and know how you intend to use your Neutron Cloud website. If you already have a website running Neutron on your own server, you can send us the files and we migrate your website!

      + +
      + Restrictions apply, click here to see +
        +
      • The Neutron Cloud service is reserved only for individuals and non-profit organizations. Select professional and commercial users may get access to Neutron Cloud.
      • +
      • Access to Neutron Cloud does not give additional support priority over regular Neutron users.
      • +
      • Website traffic is limited to 250 unique users (counted using IP address) per month
      • +
      • Website storage is soft-limited to 100 MiB; the website may be suspended if you exceed this limit
      • +
      • Minimal uptime is guaranteed according to the following schedule: +
          +
        • 25% uptime on July and August (due to yearly maintenances)
        • +
        • 80% uptime from March to May (due to maintenances)
        • +
        • 85% uptime in June (due to high temperatures)
        • +
        • 99% uptime from September to February
        • +
        • In case of an extended maintenance period, you will be notified on the email address you entered when you registered to Neutron Cloud.
        • +
      • +
      +
      + +
      + +

      Run Neutron on your own hardware

      +

      Download the package and put it in your Web server's root. You will need the Apache HTTP Server with at least PHP 7.4 and the GD library.

      @@ -15,16 +50,16 @@ $releases = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/stats/neutron.json"), true); foreach ($releases as $release): - ?> - -

      -
      Latest Stable Release
      -


      Downstream from branch

      - - + ?> + +

      +
      Latest Stable Release
      +


      Downstream from branch

      + +
      diff --git a/furry/index.php b/furry/index.php index b88930b..fa08d9b 100644 --- a/furry/index.php +++ b/furry/index.php @@ -7,7 +7,7 @@

      I have been an active member of the furry fandom since February 2021, and by "active" I mean "really active: I read every tweet from furries I follow, I hang out on Reddit and I celebrate the fursuit friday every week (even though I don't own a fursuit).

      -

      I'm supported by and have supported many furries around the world, even by just saying things like "This is cute" or "Keep it up!" means a lot to people (and to me when they say thanks).

      +

      I'm supported by and have supported many furries around the world, even just saying things like "This is cute" or "Keep it up!" means a lot to people (and to me when they say thanks).

      The furry fandom helped me make a lot of friends that live everywhere on the planet; including some that I consider my best friends. I find it kind of amazing to chat with people without even knowing how they look like.

      My top goal in my tiny furry life is to go to Eurofurence and maybe get me a fursuit someday, who knows?


      diff --git a/includes/archive/main.php b/includes/archive/main.php index 4bd2cf7..28cb438 100644 --- a/includes/archive/main.php +++ b/includes/archive/main.php @@ -1,4 +1,4 @@ -

      Download the old of the oldest software I made. Some of this software is proprietary and you can't change or distribute it without my consent. Active projects are not listed here and can be downloaded from their respective page.

      +

      . . .

      '.$data['date'].' '.$data['title']); if ($data['unreleased']) { - echo(' Unreleased'); + echo(' ' . l("Unreleased", "Jamais sorti") . ''); } echo(''); } @@ -19,4 +19,4 @@ ?>

      -

      Project start dates are estimated and cannot always be accurate

      \ No newline at end of file +

      \ No newline at end of file diff --git a/includes/blog/data/2020-05-04@something4.json b/includes/blog/data/2020-05-04@something4.json index 51021ea..c8376de 100644 --- a/includes/blog/data/2020-05-04@something4.json +++ b/includes/blog/data/2020-05-04@something4.json @@ -1,3 +1,4 @@ { - "title": "Some article" + "title": "Some article", + "title.fr": "Un article" } \ No newline at end of file diff --git a/includes/blog/data/2020-05-04@something4.json.fr.html b/includes/blog/data/2020-05-04@something4.json.fr.html new file mode 100644 index 0000000..8bb1663 --- /dev/null +++ b/includes/blog/data/2020-05-04@something4.json.fr.html @@ -0,0 +1 @@ +Il s'agit d'un test ou, en est-il un ?... Nous ne saurons jamais si il devait vraiment y avoir du texte ou quelque chose d'autre ici. Nous ne saurons jamais si il devait vraiment y avoir du texte ou quelque chose d'autre ici. Nous ne saurons jamais si il devait vraiment y avoir du texte ou quelque chose d'autre ici. Nous ne saurons jamais si il devait vraiment y avoir du texte ou quelque chose d'autre ici. Nous ne saurons jamais si il devait vraiment y avoir du texte ou quelque chose d'autre ici. Nous ne saurons jamais si il devait vraiment y avoir du texte ou quelque chose d'autre ici. Nous ne saurons jamais si il devait vraiment y avoir du texte ou quelque chose d'autre ici. Nous ne saurons jamais si il devait vraiment y avoir du texte ou quelque chose d'autre ici. Nous ne saurons jamais si il devait vraiment y avoir du texte ou quelque chose d'autre ici. Nous ne saurons jamais si il devait vraiment y avoir du texte ou quelque chose d'autre ici. Nous ne saurons jamais si il devait vraiment y avoir du texte ou quelque chose d'autre ici. \ No newline at end of file diff --git a/includes/blog/home.php b/includes/blog/home.php index a515c14..49817e8 100644 --- a/includes/blog/home.php +++ b/includes/blog/home.php @@ -10,13 +10,17 @@
      -
      +

      150 ? substr(strip_tags($data["html"]), 0, 150) . "..." : strip_tags($data["html"]) ?>

      -

      format("F jS, Y"); ?>

      +

      format("U")); ?>

      " class="card-link">
      diff --git a/includes/blog/list.php b/includes/blog/list.php index ba859a2..1c81630 100644 --- a/includes/blog/list.php +++ b/includes/blog/list.php @@ -9,7 +9,7 @@ ?> - " class="list-group-item list-group-item-action">format("F jS, Y"); ?> · + " class="list-group-item list-group-item-action">format("U")); ?> ·
      \ No newline at end of file diff --git a/includes/friends/home.php b/includes/friends/home.php index d23c37a..e549070 100644 --- a/includes/friends/home.php +++ b/includes/friends/home.php @@ -4,14 +4,14 @@
      Retsuno
       
      -

      We met by chance on Reddit and now we're best friends. Was the first furry I talked to after really joining the fandom (yes, at 1 AM).

      +

      really joining the fandom (yes, at 1 AM).", "Nous nous sommes rencontrés par hasard sur Reddit et maintenant nous sommes meilleurs amis. Il a été le premier furry auquel j'ai parlé après avoir réellement rejoint le fandom (oui, à 1h du matin)"); ?>

      Mylo
      @FENNECPARTY
      -

      His photos are great, and the person behind them is awesome.

      +

      Twitter
      @@ -19,7 +19,7 @@
      Fleur
      @Fleurfurr
      -

      (Somehow we're friends on Discord, don't remember sending you a request... ^^) His art is good and with little details everywhere!

      +

      Twitter
      @@ -27,7 +27,7 @@
      Ayann
      @ayann_fr
      -

      Helped me keep all this up with mental fuel! Probably won't be there without him.

      +

      Twitter
      @@ -37,7 +37,7 @@
      Wishdream
      @WishdreamStar
      -

      Probably knows Linux as much as I know it. Very fun and interesting to talk to each other, and also very great art.

      +

      Twitter
      @@ -45,7 +45,7 @@
      Brabbit
      @TalkingTadPol
      -

      We mutually supported each other during hard times without even knowing each other. What an amazing story!

      +

      Twitter
      @@ -53,7 +53,7 @@
      fiddle
      @fiddleafox
      -

      We are friends. Or are we? Who knows... We talked about Kartik a while back so maybe yes.

      +

      Kartik a while back so maybe yes.", "Nous sommes amis. Ou sommes nous amis ? Qui sait... On a discuté de Kartik il y a quelques temps donc probablement."); ?>

      Twitter
      @@ -61,7 +61,7 @@
      russelbuck
      @russelbuck
      -

      Meaningful music that I enjoy listening to. I did a cover of Gyrate with Obliqueness from them.

      +

      Gyrate with Obliqueness from them.", "Musique censée à laquelle j'adore écouter. J'ai fait une reprise de sa musique Gyrate with Obliqueness."); ?>

      Twitter
      diff --git a/includes/header.php b/includes/header.php index ea8fb50..3f16582 100644 --- a/includes/header.php +++ b/includes/header.php @@ -2,16 +2,52 @@ $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); -function l($en, $fr) { +function l($en, $fr = null) { global $lang; - if (($lang === "fr" && isset($fr)) || isset($_GET['fr'])) { + 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')); return $fr; } else { return $en; } } +$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 = explode("?", $_SERVER['REQUEST_URI'])[0]; + +if (!isset($db[$year])) { + $db[$year] = []; +} +if (!isset($db[$year][$month])) { + $db[$year][$month] = []; +} +if (!isset($db[$year][$month][$day])) { + $db[$year][$month][$day] = []; +} +if (!isset($db[$year][$month][$day][$url])) { + $db[$year][$month][$day][$url] = []; +} + +if (!in_array($ip, $db[$year][$month][$day][$url])) { + array_push($db[$year][$month][$day][$url], $ip); +} + +function credit(string $name, string $description, string $image, bool $backwards) { + if ($backwards) { + return "

      {$name}

      {$description}
      {$name}"; + } else { + return "{$name}

      {$name}

      {$description}
      "; + } +} + +file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/telemetry.json", json_encode($db, JSON_PRETTY_PRINT)); + ?> "> @@ -20,6 +56,7 @@ function l($en, $fr) { + <?php @@ -30,8 +67,8 @@ function l($en, $fr) { ?><?= l("Minteck's space", "L'espace de Minteck") ?> -
      Private beta of Minteck's space. Please report all bugs, issues or design details at nekostarfan@gmail.com or on Minteck's YouTrack instance
      -