From e6e00ad02f2b855549be721c31f59486997816d0 Mon Sep 17 00:00:00 2001 From: Herwin Date: Thu, 25 May 2023 07:09:39 +0200 Subject: [PATCH] Refactored commons/content.php for tools page Update composer.php, config.php, and 7 more files... --- commons/composer.php | 15 +- commons/config.php | 4 +- commons/content.php | 286 ++++++++++++-------- commons/strings.json | 2 +- commons/strings/en/tools.json | 7 + content/index.php | 73 +++-- error.php | 2 +- resources/NibblePoker/scss/site/image.scss | 9 +- resources/NibblePoker/scss/site/layout.scss | 5 +- 9 files changed, 241 insertions(+), 162 deletions(-) create mode 100644 commons/strings/en/tools.json diff --git a/commons/composer.php b/commons/composer.php index 6c6d4d7..50ebb7a 100644 --- a/commons/composer.php +++ b/commons/composer.php @@ -8,6 +8,7 @@ if(basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) { // Including required helpers. include_once 'commons/config.php'; include_once 'commons/langs.php'; +include_once 'commons/content.php'; // Required to make headings include_once 'commons/DOM/utils.php'; @@ -931,16 +932,6 @@ function get_content_error(string $error_title_key, string $error_description_ke return null; } -function get_content_file_path(string $content_id) : ?string { - global $dir_content; - - if(ctype_alnum(str_replace("-", "", $content_id))) { - return realpath($dir_content . "/items/" . $content_id . ".json"); - } - - return null; -} - function load_content_by_file_path(string $file_path) : ?ComposerContent { $content_json_data = json_decode(file_get_contents($file_path), true); if(is_null($content_json_data)) { @@ -950,7 +941,9 @@ function load_content_by_file_path(string $file_path) : ?ComposerContent { } function load_content_by_id(string $content_id) : ?ComposerContent { - $content_file_path = get_content_file_path($content_id); + // FIXME: Find another way to get `$config_dir_content` here ! + global $config_dir_content; + $content_file_path = get_content_file_path($config_dir_content, $content_id); if(is_null($content_file_path)) { return null; diff --git a/commons/config.php b/commons/config.php index aec66b4..7f1328d 100644 --- a/commons/config.php +++ b/commons/config.php @@ -6,9 +6,11 @@ if(basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) { $host = "nibblepoker.lu"; $host_uri = "https://nibblepoker.lu"; + $dir_commons = dirname(__FILE__); $dir_root = realpath($dir_commons . "/../"); -$dir_content = realpath($dir_commons . "/../" . "content/"); +$config_dir_content = realpath($dir_commons . "/../" . "content/"); +$config_dir_tools = realpath($dir_commons . "/../" . "content/"); // Optional features $enable_grids = false; diff --git a/commons/content.php b/commons/content.php index e4180ab..63b2a08 100644 --- a/commons/content.php +++ b/commons/content.php @@ -7,139 +7,193 @@ if(basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) { // Importing required scripts. include_once 'commons/langs.php'; -include_once 'commons/composer.php'; -// Defining some options. -$PRINT_CONTENT_DEBUG_INFO_TEXT_ELEMENTS = true; -$PRINT_CONTENT_DEBUG_ERROR_TEXT_ELEMENTS = true; - -// Defining constants and enums. abstract class ContentDisplayType { const NONE = 0; - const SEARCH = 1; + const SEARCH = 1; const CONTENT = 2; } -// Preparing default variables. -$requested_content_display_type = ContentDisplayType::NONE; -$content_has_error = false; -$content_error_message_key = "content.error.message.none"; -$content_error_message = ""; -$requested_tags = array(); -$raw_additional_tags = ""; -$filtered_content_index_data = NULL; -$requested_item_data = NULL; -$content = null; - -// Detecting content display type requested. -$content_requested_url_part = explode("?", explode("#", preg_replace("^\/(content)^", "", l10n_url_switch(NULL)))[0])[0]; - -if(strcmp($content_requested_url_part, "/") == 0) { - $requested_content_display_type = ContentDisplayType::SEARCH; -} else { - $requested_content_display_type = ContentDisplayType::CONTENT; - $content_requested_url_part = ltrim($content_requested_url_part, "/"); +class ContentIndexEntry { + public string $id; + public ?array $title; + public ?array $preamble; + public string $image; + public array $tags; + public int $priority; + + function __construct(string $id, ?array $title, ?array $preamble, ?string $image, ?array $tags, ?int $priority) { + $this->id = $id; + $this->title = $title; + $this->preamble = $preamble; + $this->image = is_null($image) ? "/resources/NibblePoker/images/placeholder.png" : $image; + $this->tags = is_null($tags) ? [] : $tags; + $this->priority = is_null($priority) ? 0 : $priority; + } + + static function from_json(array $json_data) : ?ContentIndexEntry { + if(!key_exists("id", $json_data)) { + return null; + } + return new ContentIndexEntry( + $json_data["id"], + key_exists("title", $json_data) ? $json_data["title"] : null, + key_exists("preamble", $json_data) ? $json_data["preamble"] : null, + key_exists("image", $json_data) ? $json_data["image"] : null, + key_exists("tags", $json_data) ? $json_data["tags"] : null, + key_exists("priority", $json_data) ? $json_data["priority"] : null + ); + } } -if($requested_content_display_type == ContentDisplayType::SEARCH) { - // Checking if more tags were given - if(isset($_GET['tags'])) { - $raw_additional_tags = htmlspecialchars($_GET['tags']); +class ContentManager { + public ContentDisplayType|int $displayType; + public bool $hasError; + public string $errorMessageKey; + public ?string $requestedId; + public ?array $requestedTags; + public ?array $rootIndexEntries; + public ?string $contentFilepath; + + function __construct(string $contentRootPath, string $requestedUrl, ?string $urlTags) { + // Preparing default values + $this->displayType = ContentDisplayType::NONE; + $this->hasError = false; + $this->errorMessageKey = "content.error.message.none"; + $this->requestedId = NULL; + $this->requestedTags = NULL; + $this->rootIndexEntries = NULL; + $this->contentFilepath = NULL; - // Checking the length to prevent bad requests - if(strlen($raw_additional_tags) > 256) { - $content_has_error = true; - $content_error_message_key = "content.error.message.tags.length"; - goto content_end; - } - - // Extracting the additional tags safely - $raw_additional_tags_exploded = explode(";", $raw_additional_tags); - for($i = 0; $i < count($raw_additional_tags_exploded); $i++) { - if(strlen($raw_additional_tags_exploded[$i]) > 0) { - if(ctype_alnum($raw_additional_tags_exploded[$i])) { - $requested_tags[] = $raw_additional_tags_exploded[$i]; - } else { - $content_has_error = true; - $content_error_message_key = "content.error.message.tags.alphanumeric"; - goto content_end; - } + // Doing some standard things + $this->processUrl($requestedUrl, $urlTags); + if(!$this->hasError) { + if($this->displayType == ContentDisplayType::SEARCH) { + $this->loadRootIndex(realpath($contentRootPath . "/index.json")); + } else if($this->displayType == ContentDisplayType::CONTENT) { + $this->prepareContentFilePath($contentRootPath); } } - unset($raw_additional_tags_exploded); } - // Loading the content index. - $content_json = file_get_contents(realpath($dir_content . "/index.json")); - $content_index_data = json_decode($content_json, true); - unset($content_json); - - // Filtering out unwanted entries. - $filtered_content_index_data = array(); - for($i = 0; $i < count($content_index_data); $i++) { - if(count(array_intersect($content_index_data[$i]["tags"], $requested_tags)) == count($requested_tags)) { - $filtered_content_index_data[] = $content_index_data[$i]; - } - } - - // Cleaning some variables. - unset($content_index_data); - unset($content_json); - - // Checking if we found content for the user. - if(count($filtered_content_index_data) == 0) { - // No relevant article/page were found for the given tags. - $content_has_error = true; - $content_error_message_key = "content.error.message.detect.empty"; - goto content_end; - } - - // Sorting entries based on their priority - for($i = 0; $i < count($filtered_content_index_data); $i++) { - if(!isset($filtered_content_index_data[$i]["priority"])) { - $filtered_content_index_data[$i]["priority"] = 0; - } - } - usort($filtered_content_index_data, function ($a, $b) { - if($a["priority"] == $b["priority"]) { - return 0; - } - return ($a["priority"] > $b["priority"]) ? -1 : 1; - }); - -} else if($requested_content_display_type == ContentDisplayType::CONTENT) { - // Sanitizing the requested ID. - if(!ctype_alnum(str_replace("-", "", $content_requested_url_part))) { - $content_has_error = true; - $content_error_message_key = "content.error.message.id.alphanumeric"; - goto content_end; - } - - // Loading the content's data - $content_file_path = get_content_file_path($content_requested_url_part); - - if(empty($content_file_path)) { - // File doesn't exist ! - $content_has_error = true; - $content_error_message_key = "content.error.message.data.not.exist"; - unset($content_file_path); - goto content_end; - } else { - $content = load_content_by_file_path($content_file_path); + function processUrl(string $requestedUrl, ?string $urlTags): void { + // Doing some dark magic whose inner workings are lost to times... + $requestedUrlPart = explode( + "?", + explode("#", preg_replace("^\/(content)^", "", $requestedUrl))[0] + )[0]; - if(is_null($content)) { - $content_has_error = true; - $content_error_message_key = "content.error.message.cannot.load"; - unset($content_file_path); - goto content_end; + if(strcmp($requestedUrlPart, "/") == 0) { + $this->displayType = ContentDisplayType::SEARCH; + + if(is_null($urlTags)) { + return; + } + + if(strlen($urlTags) > 256) { + $this->hasError = true; + $this->errorMessageKey = "content.error.message.tags.length"; + return; + } + + $explodedTags = explode(";", $urlTags); + $this->requestedTags = count($explodedTags) > 0 ? array() : $this->requestedTags; + for($i = 0; $i < count($explodedTags); $i++) { + if(strlen($explodedTags[$i]) > 0) { + if(ctype_alnum($explodedTags[$i])) { + $this->requestedTags[] = $explodedTags[$i]; + } else { + $this->hasError = true; + $this->errorMessageKey = "content.error.message.tags.alphanumeric"; + return; + } + } + } + } else { + $this->displayType = ContentDisplayType::CONTENT; + $this->requestedId = ltrim($requestedUrlPart, "/"); } } - unset($content_file_path); + function loadRootIndex(string $rootIndexFilepath): void { + // Loading the content index. + $rawJsonContent = file_get_contents($rootIndexFilepath); + $jsonContent = json_decode($rawJsonContent, true); + unset($rawJsonContent); + + $this->rootIndexEntries = array(); + for($i = 0; $i < count($jsonContent); $i++) { + // Filtering out unwanted entries and putting their data in a proper class. + if(!is_null($this->requestedTags)) { + if(count(array_intersect($jsonContent[$i]["tags"], $this->requestedTags)) == 0) { + continue; + } + } + //if(count(array_intersect($jsonContent[$i]["tags"], $this->requestedTags)) == count($this->requestedTags)) {} + + // Parsing the raw data into a structure. + $newIndexEntry = ContentIndexEntry::from_json($jsonContent[$i]); + + // Checking if it was parsed properly + if(is_null($newIndexEntry)) { + $this->hasError = true; + $this->errorMessageKey = "content.error.message.failed.structure"; + return; + } else { + $this->rootIndexEntries[] = $newIndexEntry; + } + } + unset($jsonContent); + + // Checking if we found any content for the user. + if(count($this->rootIndexEntries) == 0) { + // No relevant article/page were found for the given tags. + $this->hasError = true; + $this->errorMessageKey = "content.error.message.detect.empty"; + return; + } + + // Sorting entries based on their priority + usort($this->rootIndexEntries, function (ContentIndexEntry $a, ContentIndexEntry $b) { + if($a->priority == $b->priority) { + return 0; + } + return ($a->priority > $b->priority) ? -1 : 1; + }); + } + + function prepareContentFilePath(string $contentRootPath): void { + // Sanitizing the requested ID. + if(!ctype_alnum(str_replace("-", "", $this->requestedId))) { + $this->hasError = true; + $this->errorMessageKey = "content.error.message.id.alphanumeric"; + return; + } + + // Preparing and checking the content's info index file. + $this->contentFilepath = get_content_file_path($contentRootPath, $this->requestedId); + + if(empty($this->contentFilepath)) { + // File doesn't exist ! + $this->hasError = true; + $this->errorMessageKey = "content.error.message.data.not.exist"; + } + } } -content_end: -// TODO: Create error thingy -$content_error_message = localize($content_error_message_key); +// Common utilities +function get_content_file_path(string $contentRootPath, string $contentId) : ?string { + if(ctype_alnum(str_replace("-", "", $contentId))) { + return realpath($contentRootPath . "/items/" . $contentId . ".json"); + } + return null; +} -?> \ No newline at end of file +// Functions for use in pages +function getContentManager(string $contentRootPath): ContentManager { + return new ContentManager( + $contentRootPath, + l10n_url_switch(NULL), + isset($_GET['tags']) ? htmlspecialchars($_GET['tags']) : NULL + ); +} diff --git a/commons/strings.json b/commons/strings.json index 0bb324a..5e48327 100644 --- a/commons/strings.json +++ b/commons/strings.json @@ -1 +1 @@ -{"_compile_date":"2023-05-24T21:31:20.008370Z","en":{"content.search.head.title":"Content search - NibblePoker","content.search.head.description":"TODO: description","content.search.og.title":"NibblePoker - Content search","content.search.og.description":"TODO: description","content.search.heading.main.single":"Search result","content.search.heading.main.multiple":"Search results","content.search.count.single":"result","content.search.count.multiple":"results","content.header.base":"Content","content.search.header":"Search","content.error.header":"Error","content.error.head.title":"Content error - NibblePoker","content.error.og.title":"NibblePoker - Content error","content.error.heading.main.search":"Search error","content.error.heading.main.content":"Content error","content.error.heading.main.fallback":"Unknown error","content.error.message.none":"No explicit error was encountered.","content.error.message.tags.length":"The \"tags\" URL parameter is too long.","content.error.message.tags.alphanumeric":"One of the tags given in the \"tags\" URL parameter is not a valid alphanumeric string.","content.error.message.detect.empty":"No content could be found for the given tags.","content.error.message.id.alphanumeric":"The requested resource's ID isn't a valid alphanumeric string.","content.error.message.data.not.exist":"The requested content doesn't have an internal item file associated to it.","content.error.message.cannot.load":"The requested content couldn't be loaded on our end !","content.error.message.data.no.tags":"No tags found !","content.error.message.data.no.title":"No title found !","content.item.head.title.prefix":"","content.item.head.title.suffix":" - NibblePoker","content.item.og.title.prefix":"","content.item.og.title.suffix":" - NibblePoker","content.commons.version.current":"Current version","content.commons.version.previous.single":"Previous version","content.commons.version.previous.multiple":"Previous versions","content.commons.version.old.single":"Old version","content.commons.version.old.multiple":"Old versions","content.commons.version.source":"Source code","content.commons.cpu":"CPU Architecture","content.commons.cpu.responsive":"CPU Architecture","content.commons.cpu.any":"Any architecture","content.commons.cpu.x64":"x64","content.commons.cpu.x86":"x86","content.commons.cpu.arm":"arm","content.commons.cpu.arm64":"arm64","content.commons.na.italic":"N/A","content.commons.na":"N/A","content.commons.lang":"Language","content.commons.download.single":"Download","content.commons.download.multiple":"Downloads","content.commons.version":"Version","content.commons.github":"GitHub Repository","content.commons.gitea":"Self-hosted Gitea Repository","content.commons.nuget":"Nuget Package","content.commons.license.mit.single":"MIT License","content.commons.lang.english":"English","content.commons.lang.french":"French","content.commons.lang.luxembourgish":"Luxembourgish","content.commons.lang.english.639-3":"English (eng)","content.commons.lang.french.639-3":"French (fra)","content.commons.lang.luxembourgish.639-3":"Luxembourgish (ltz)","error.403.head.title":"403 - NibblePoker","error.403.head.description":"Access to the requested resource isn't unauthorized.","error.403.og.title":"NibblePoker - 403 Error","error.403.og.description":"Access to the requested resource isn't unauthorized.","error.403.header.title":"Error\u2771403 Error","error.404.head.title":"404 - NibblePoker","error.404.head.description":"The server couldn't find the requested resource.","error.404.og.title":"NibblePoker - 404 Error","error.404.og.description":"The server couldn't find the requested resource.","error.404.header.title":"Error\u2771404 Error","error.500.head.title":"500 - NibblePoker","error.500.head.description":"The server has encountered a situation it doesn't know how to handle.","error.500.og.title":"NibblePoker - 500 Error","error.500.og.description":"The server has encountered a situation it doesn't know how to handle.","error.500.header.title":"Error\u2771500 Error","error.skit.pc.dead":"Drawing of an old PC with a face with crossed eyes.","footer.text.privacy":"Privacy policy","footer.alt.logo":"Website's logo","home.head.title":"NibblePoker","home.head.description":"TODO: description","home.og.title":"NibblePoker","home.og.description":"TODO: description","home.header.title":"Homepage","lang.menu.title":"Language","lang.current":"English","lang.automatic":"Automatic","lang.english":"English","lang.french":"French","lang.german":"German","lang.luxembourgish":"Luxembourgish","privacy.head.title":"Privacy policy - NibblePoker","privacy.head.description":"Our privacy policy in a clear and easy to understand format.","privacy.og.title":"NibblePoker - Privacy Policy","privacy.og.description":"Our privacy policy in a clear and easy to understand format.","privacy.header.title":"Privacy policy","privacy.introduction.title":"Introduction","privacy.introduction.text.1":"This privacy policy is written in accordance with the 12th and 13th articles of the GDPR.","privacy.introduction.text.2":"If you wish to consult it, you can do so on the following websites:","privacy.contact.title":"How to contact us ?","privacy.contact.text.1":"If you wish to contact us for more information regarding our privacy policy, please contact us via the form included on the contact page, or at the following email address:","privacy.complaint.title":"How to contact the appropriate authorities ?","privacy.complaint.text.1":"Should you wish to report a complaint or if you feel that our privacy policy has not addressed your concern in a satisfactory manner, you may contact your national Data Protection Authority (DPA).","privacy.complaint.text.2":"More information on this procedure can be found on the following websites:","privacy.v2.data.title":"Data collection","privacy.v2.data.intro.1":"This websites only collects data through generic access logs in order to detect and block bad actors from accessing this website.","privacy.v2.data.intro.2":"None of the data collected is used for any other purpose,it is never shared with any other third-party and is never use in any sort of analytics.","privacy.v2.data.private.1":"Here is the list of private data being collected:","privacy.v2.data.private_list.1":"IP address","privacy.v2.data.private_list.2":"Browser's User-Agent","privacy.v2.data.non_private.1":"And here is the list of non-private data being collected:","privacy.v2.data.non_private_list.1":"Requested resource' URI","privacy.v2.data.non_private_list.2":"Date and time","privacy.v2.data.end.1":"Once the data has been logged in the access logs, it is automatically retrieved and processed by a locally-hosted application every 30 seconds and then deleted from said logs.","privacy.v2.data.end.2":"This application compares this information against a list of known threat sources, targets and behaviours and if a match is found, the private information is anonymized and stored for 7 days pending a manual review.","privacy.v2.data.end.3":"Once that 7 day period has elapsed, or once the report has been reviewed, all the relevant data is automatically deleted.","privacy.v2.data.end.4":"If your request wasn't flagged as potentially malicious, every data collected from it is thrown out instantly.","privacy.v2.data.end.5":"This process should normally never be triggered for regular traffic since most of the triggering actions are ones that should not be possible to accomplish through normal browsing.","privacy.v2.data.end.6":"However, this process isn't infallible and there is always an off chance that false positives may happen.","privacy.v2.update.title":"Changes to our privacy policy","privacy.v2.update.intro.1":"The content of this privacy policy was originally written on the 4th of December 2021 and was last updated on the 18th of March 2022.","privacy.v2.update.history.1.date":"2021/12/04","privacy.v2.update.history.1.desc.1":"Original version","privacy.v2.update.history.2.date":"2022/03/18","privacy.v2.update.history.2.desc.1":"Changed section on data collection to reflect new policy.","privacy.v2.update.history.2.desc.2":"Added mention about CloudFlare and linked to their privacy policy.","privacy.v2.update.history.2.desc.3":"Improved the \"Changes to our privacy policy\" section.","privacy.v2.update.history.3.date":"2022/09/09","privacy.v2.update.history.3.desc.1":"Changed references to external services to reflect the migration to v6Node.","privacy.v2.update.history.3.desc.1.1":"Added mention about v6Node and linked to their privacy policy.","privacy.v2.update.history.3.desc.1.2":"Removed mentions of CloudFlare.","privacy.v2.update.history.3.desc.2":"Changed the \"Cookies\" section to indicate that none should be used on public domains.","privacy.v2.update.end.2":"In the event of a change to our privacy policy, you will be informed explicitly, and a copy of previous versions of the policy will be available through this page.","privacy.v2.third.title":"Third Parties","privacy.v2.third.intro.1":"Our websites uses some services provided by v6Node in order to prevent bad actors from accessing this website and in order to put in place a reverse-proxy system.","privacy.v2.third.intro.2":"The goal of this system is to improve your browsing experience with the help of a private caching service and custom traffic filtering rules.","privacy.v2.third.intro.3":"None of the data that may be gathered by v6Node or the system described above is ever used or stored.","privacy.v2.third.intro.4":"If you'd wish to consult their privacy policy and their partners', you can do so by using the following URLs:","privacy.v2.cookies.title":"Cookies","privacy.v2.cookies.intro.1":"Our websites doesn't use nor store any cookies in your browser.","sidebar.alt.logo":"Website's logo","sidebar.text.home":"Home","sidebar.text.projects":"Projects","sidebar.text.applications":"Applications","sidebar.text.libraries":"Libraries","sidebar.text.electronics":"Electronics","sidebar.text.links":"Links","sidebar.text.downloads":"Downloads","sidebar.text.gitea":"Git Repos.","sidebar.text.about":"About","sidebar.text.contact":"Contact"},"fr":{"content.search.head.title":"Recherche de contenu - NibblePoker","content.search.head.description":"TODO: description","content.search.og.title":"NibblePoker - Recherche de contenu","content.search.og.description":"TODO: description","content.search.heading.main.single":"R\u00e9sultat de recherche","content.search.heading.main.multiple":"R\u00e9sultats de recherche","content.search.count.single":"r\u00e9sultat","content.search.count.multiple":"r\u00e9sultats","content.error.head.title":"Erreur de contenu - NibblePoker","content.error.og.title":"NibblePoker - Erreur de contenu","content.error.heading.main.search":"Erreur de recherche","content.error.heading.main.content":"Erreur de contenu","content.error.heading.main.fallback":"Erreur inconnue","content.error.message.none":"Aucune erreur n'a \u00e9t\u00e9 d\u00e9tect\u00e9e.","content.error.message.tags.length":"Le param\u00e8tre d'URL \"tags\" est trop long.","content.error.message.tags.alphanumeric":"Un des tags donn\u00e9 dans le param\u00e8tre d'URL \"tags\" n'est pas une cha\u00eene de texte alphanum\u00e9rique valide.","content.error.message.detect.empty":"Aucun contenu en rapport avec les tags choisi n'as \u00e9t\u00e9 trouv\u00e9.","content.error.message.id.alphanumeric":"L'ID de la ressource demand\u00e9e n'est pas une cha\u00eene de texte alphanum\u00e9rique valide.","content.error.message.data.not.exist":"Le contenu demand\u00e9e n'a pas de fichier de rendu interne associ\u00e9.","content.error.message.cannot.load":"Le contenu demand\u00e9 n'a pas pu \u00eatre charg\u00e9 de notre c\u00f4t\u00e9 !","content.error.message.data.no.tags":"Aucun tag trouv\u00e9 !","content.error.message.data.no.title":"Aucun titre trouv\u00e9 !","content.item.head.title.prefix":"","content.item.head.title.suffix":" - NibblePoker","content.item.og.title.prefix":"","content.item.og.title.suffix":" - NibblePoker","content.commons.version.current":"Version actuelle","content.commons.version.previous.single":"Version pr\u00e9c\u00e9dente","content.commons.version.previous.multiple":"Versions pr\u00e9c\u00e9dentes","content.commons.version.old.single":"Ancienne version","content.commons.version.old.multiple":"Anciennes versions","content.commons.version.source":"Code source","content.commons.cpu":"Architecture de CPU","content.commons.cpu.any":"Ind\u00e9pendante","content.commons.cpu.x64":"x64","content.commons.cpu.x86":"x86","content.commons.cpu.arm":"arm","content.commons.cpu.arm64":"arm64","content.commons.na.italic":"N/A","content.commons.na":"N/A","content.commons.lang":"Langue","content.commons.download.single":"T\u00e9l\u00e9chargement","content.commons.download.multiple":"T\u00e9l\u00e9chargements","content.commons.version":"Version","content.commons.github":"D\u00e9p\u00f4t GitHub","content.commons.gitea":"D\u00e9p\u00f4t Gitea auto-h\u00e9berg\u00e9","content.commons.nuget":"Packet Nuget","content.commons.license.mit.single":"License MIT","content.commons.lang.english":"Anglais","content.commons.lang.french":"Fran\u00e7ais","content.commons.lang.luxembourgish":"Luxembourgeois","content.commons.lang.english.639-3":"Anglais (eng)","content.commons.lang.french.639-3":"Fran\u00e7ais (fra)","content.commons.lang.luxembourgish.639-3":"Luxembourgeois (ltz)","footer.text.privacy":"Politique de confidentialit\u00e9","footer.alt.logo":"Logo du site web","home.head.title":"NibblePoker","home.head.description":"TODO: description","home.og.title":"NibblePoker","home.og.description":"TODO: description","home.header.title":"Page d'accueil","lang.menu.title":"Langue","lang.current":"Fran\u00e7ais","lang.automatic":"Automatique","lang.english":"Anglais","lang.french":"Fran\u00e7ais","lang.german":"Allemand","lang.luxembourgish":"Luxembourgeois","privacy.head.title":"Politique de confidentialit\u00e9 - NibblePoker","privacy.head.description":"Notre politique de confidentialit\u00e9 dans un format clair et compr\u00e9hensible.","privacy.og.title":"NibblePoker - Politique de confidentialit\u00e9","privacy.og.description":"Notre politique de confidentialit\u00e9 dans un format clair et compr\u00e9hensible.","privacy.header.title":"Politique de confidentialit\u00e9","privacy.introduction.title":"Introduction","privacy.introduction.text.1":"La politique de confidentialit\u00e9 ci-pr\u00e9sente a \u00e9t\u00e9 \u00e9crite en accord avec les articles 12 et 13 de la RGPD.","privacy.introduction.text.2":"Si vous souhaitez consulter le texte officiel en question, vous pouvez le faire sur les sites internet suivants :","privacy.contact.title":"Comment nous contacter ?","privacy.contact.text.1":"Si vous souhaitez nous contacter afin d'obtenir plus d'informations concernant notre politique de confidentialit\u00e9, nous vous recommandons d'utiliser le formulaire pr\u00e9sent sur la page de contact, ou par courriel \u00e0 l'adresse suivante:","privacy.complaint.title":"Comment contacter les autorit\u00e9s comp\u00e9tentes ?","privacy.complaint.text.1":"Dans l'\u00e9ventualit\u00e9 o\u00f9 vous souhaiteriez d\u00e9poser une plainte pour une quelconque raison en rapport avec notre politique de confidentialit\u00e9, veuillez vous adresser \u00e0 l'autorit\u00e9 nationale de protection des donn\u00e9es (DPA).","privacy.complaint.text.2":"Les informations concernant cette proc\u00e9dure peuvent \u00eatre trouv\u00e9es sur les sites internet suivants:","privacy.v2.data.title":"Collecte de donn\u00e9es","privacy.v2.data.intro.1":"Ce site web collecte des donn\u00e9es au travers des journaux d'\u00e9v\u00e8nements afin de d\u00e9tecter et bloquer de potentiels acteurs malveillants.","privacy.v2.data.intro.2":"Les donn\u00e9es collect\u00e9es ne sont en aucun cas utilis\u00e9es pour une quelconque autre raison.","privacy.v2.data.private.1":"Voici la liste des donn\u00e9es personelles collect\u00e9es:","privacy.v2.data.private_list.1":"L'addresse IP source","privacy.v2.data.private_list.2":"Le \"User-Agent\" de votre navigateur internet","privacy.v2.data.non_private.1":"Et voici la liste des donn\u00e9es non-personelles collect\u00e9es:","privacy.v2.data.non_private_list.1":"L'URI de la ressource demand\u00e9e","privacy.v2.data.non_private_list.2":"La date et l'heure","privacy.v2.data.end.1":"Les donn\u00e9es pr\u00e9sentes dans les journaux d'\u00e9v\u00e8nements sont extraites et retir\u00e9es pour \u00eatre trait\u00e9es par une application qui tourne en local toute les 30 secondes.","privacy.v2.data.end.2":"L'application en question utilise et compare ces informations avec une liste d'acteurs malveillants et comportement suspects connus.
Si une correspondance est d\u00e9tect\u00e9e, les informations priv\u00e9es sont anonymis\u00e9es et sont stock\u00e9es pendant 7 jours en attendant qu'un examen manuel soit effectu\u00e9.","privacy.v2.data.end.3":"Apr\u00e8s cette p\u00e9riode de 7 jours, ou apr\u00e8s qu'un examen ait \u00e9t\u00e9 effectu\u00e9, les donn\u00e9es sont automatiquement supprim\u00e9es.","privacy.v2.data.end.4":"Toute information concernant une requ\u00eate non suspecte est automatiquement supprim\u00e9e.","privacy.v2.data.end.5":"Ce processus n'est normalement jamais utilis\u00e9 sur des requ\u00eates provenant d'un trafic l\u00e9gitime d\u00fb au fait qu'il isole principalement les actions et requ\u00eates qui ne devraient pas \u00eatre possible sur ce site.","privacy.v2.data.end.6":"Cependant, ce processus n'est pas infaillible et il est toujours possible qu'une requ\u00eate soit isol\u00e9e par erreur.","privacy.v2.update.title":"Changements \u00e0 notre politique de confidentialit\u00e9","privacy.v2.update.intro.1":"Le contenu de notre politique de confidentialit\u00e9 a \u00e9t\u00e9 originalement \u00e9crit et le 4 d\u00e9cembre 2021 modifi\u00e9 pour la derni\u00e8re fois le 18 mars 2022.","privacy.v2.update.history.1.date":"2021/12/04","privacy.v2.update.history.1.desc.1":"Version originale","privacy.v2.update.history.2.date":"2022/03/18","privacy.v2.update.history.2.desc.1":"Mise-\u00e0-jour de la section sur la collection des donn\u00e9es.","privacy.v2.update.history.2.desc.2":"Ajout d'une mention de CloudFlare et ajout de liens vers leur politique de confidentialit\u00e9.","privacy.v2.update.history.2.desc.3":"Am\u00e9lioration de la section \"Changements \u00e0 notre politique de confidentialit\u00e9\".","privacy.v2.update.history.3.date":"2022/09/09","privacy.v2.update.history.3.desc.1":"Changement des r\u00e9f\u00e9rences aux services externes pour indiquer l'utilisation de v6Node.","privacy.v2.update.history.3.desc.1.1":"Ajout de mentions de v6Node et liens vers leur politique de vie confidentialit\u00e9.","privacy.v2.update.history.3.desc.1.2":"Suppression de mentions de CloudFlare.","privacy.v2.update.history.3.desc.2":"Changement de la section \"Cookies\" afin d'indiquer qu'ils ne seront plus utilis\u00e9s sur les domaines publics.","privacy.v2.update.end.2":"En cas de changement, vous serez clairement inform\u00e9 et une copie des anciennes versions de notre politique sera disponible au travers de cette page.","privacy.v2.third.title":"Organismes tiers","privacy.v2.third.intro.1":"Ce site web utilise les services propos\u00e9s par v6Node afin d'emp\u00eacher des acteurs malveillants d'y acc\u00e9der et dans le but de mettre en place un syst\u00e8me de reverse-proxy.","privacy.v2.third.intro.2":"Ceci a pour but d'am\u00e9liorer l'exp\u00e9rience des personnes le visitant gr\u00e2ce \u00e0 un syst\u00e8me de filtrage et caching priv\u00e9.","privacy.v2.third.intro.3":"Aucune des donn\u00e9es collect\u00e9es et stock\u00e9es par v6Node et le syst\u00e8me d\u00e9cris ci-dessus n'est utilis\u00e9 ou stock\u00e9.","privacy.v2.third.intro.4":"Si vous souhaitez consulter leur politique de confidentialit\u00e9 ainsi que celle de leur partenaires, vous pouvez le faire en suivant les liens ci-dessous:","privacy.v2.cookies.title":"Cookies de navigation","privacy.v2.cookies.intro.1":"Ce site web n'utilise pas, et ne stocke aucun cookies dans votre navigateur internet.","sidebar.alt.logo":"Logo du site web","sidebar.text.home":"Accueil","sidebar.text.projects":"Projets","sidebar.text.applications":"Applications","sidebar.text.libraries":"Librairies","sidebar.text.electronics":"\u00c9lectronique","sidebar.text.links":"Liens","sidebar.text.downloads":"T\u00e9l\u00e9chargements","sidebar.text.gitea":"D\u00e9p\u00f4ts Git","sidebar.text.about":"\u00c0-propos","sidebar.text.contact":"Contact"}} \ No newline at end of file +{"_compile_date":"2023-05-25T04:03:21.741012Z","en":{"content.search.head.title":"Content search - NibblePoker","content.search.head.description":"TODO: description","content.search.og.title":"NibblePoker - Content search","content.search.og.description":"TODO: description","content.search.heading.main.single":"Search result","content.search.heading.main.multiple":"Search results","content.search.count.single":"result","content.search.count.multiple":"results","content.header.base":"Content","content.search.header":"Search","content.error.header":"Error","content.error.head.title":"Content error - NibblePoker","content.error.og.title":"NibblePoker - Content error","content.error.heading.main.search":"Search error","content.error.heading.main.content":"Content error","content.error.heading.main.fallback":"Unknown error","content.error.message.none":"No explicit error was encountered.","content.error.message.tags.length":"The \"tags\" URL parameter is too long.","content.error.message.tags.alphanumeric":"One of the tags given in the \"tags\" URL parameter is not a valid alphanumeric string.","content.error.message.detect.empty":"No content could be found for the given tags.","content.error.message.id.alphanumeric":"The requested resource's ID isn't a valid alphanumeric string.","content.error.message.data.not.exist":"The requested content doesn't have an internal item file associated to it.","content.error.message.cannot.load":"The requested content couldn't be loaded on our end !","content.error.message.data.no.tags":"No tags found !","content.error.message.data.no.title":"No title found !","content.item.head.title.prefix":"","content.item.head.title.suffix":" - NibblePoker","content.item.og.title.prefix":"","content.item.og.title.suffix":" - NibblePoker","content.commons.version.current":"Current version","content.commons.version.previous.single":"Previous version","content.commons.version.previous.multiple":"Previous versions","content.commons.version.old.single":"Old version","content.commons.version.old.multiple":"Old versions","content.commons.version.source":"Source code","content.commons.cpu":"CPU Architecture","content.commons.cpu.responsive":"CPU Architecture","content.commons.cpu.any":"Any architecture","content.commons.cpu.x64":"x64","content.commons.cpu.x86":"x86","content.commons.cpu.arm":"arm","content.commons.cpu.arm64":"arm64","content.commons.na.italic":"N/A","content.commons.na":"N/A","content.commons.lang":"Language","content.commons.download.single":"Download","content.commons.download.multiple":"Downloads","content.commons.version":"Version","content.commons.github":"GitHub Repository","content.commons.gitea":"Self-hosted Gitea Repository","content.commons.nuget":"Nuget Package","content.commons.license.mit.single":"MIT License","content.commons.lang.english":"English","content.commons.lang.french":"French","content.commons.lang.luxembourgish":"Luxembourgish","content.commons.lang.english.639-3":"English (eng)","content.commons.lang.french.639-3":"French (fra)","content.commons.lang.luxembourgish.639-3":"Luxembourgish (ltz)","error.403.head.title":"403 - NibblePoker","error.403.head.description":"Access to the requested resource isn't unauthorized.","error.403.og.title":"NibblePoker - 403 Error","error.403.og.description":"Access to the requested resource isn't unauthorized.","error.403.header.title":"Error\u2771403 Error","error.404.head.title":"404 - NibblePoker","error.404.head.description":"The server couldn't find the requested resource.","error.404.og.title":"NibblePoker - 404 Error","error.404.og.description":"The server couldn't find the requested resource.","error.404.header.title":"Error\u2771404 Error","error.500.head.title":"500 - NibblePoker","error.500.head.description":"The server has encountered a situation it doesn't know how to handle.","error.500.og.title":"NibblePoker - 500 Error","error.500.og.description":"The server has encountered a situation it doesn't know how to handle.","error.500.header.title":"Error\u2771500 Error","error.skit.pc.dead":"Drawing of an old PC with a face with crossed eyes.","footer.text.privacy":"Privacy policy","footer.alt.logo":"Website's logo","home.head.title":"NibblePoker","home.head.description":"TODO: description","home.og.title":"NibblePoker","home.og.description":"TODO: description","home.header.title":"Homepage","lang.menu.title":"Language","lang.current":"English","lang.automatic":"Automatic","lang.english":"English","lang.french":"French","lang.german":"German","lang.luxembourgish":"Luxembourgish","privacy.head.title":"Privacy policy - NibblePoker","privacy.head.description":"Our privacy policy in a clear and easy to understand format.","privacy.og.title":"NibblePoker - Privacy Policy","privacy.og.description":"Our privacy policy in a clear and easy to understand format.","privacy.header.title":"Privacy policy","privacy.introduction.title":"Introduction","privacy.introduction.text.1":"This privacy policy is written in accordance with the 12th and 13th articles of the GDPR.","privacy.introduction.text.2":"If you wish to consult it, you can do so on the following websites:","privacy.contact.title":"How to contact us ?","privacy.contact.text.1":"If you wish to contact us for more information regarding our privacy policy, please contact us via the form included on the contact page, or at the following email address:","privacy.complaint.title":"How to contact the appropriate authorities ?","privacy.complaint.text.1":"Should you wish to report a complaint or if you feel that our privacy policy has not addressed your concern in a satisfactory manner, you may contact your national Data Protection Authority (DPA).","privacy.complaint.text.2":"More information on this procedure can be found on the following websites:","privacy.v2.data.title":"Data collection","privacy.v2.data.intro.1":"This websites only collects data through generic access logs in order to detect and block bad actors from accessing this website.","privacy.v2.data.intro.2":"None of the data collected is used for any other purpose,it is never shared with any other third-party and is never use in any sort of analytics.","privacy.v2.data.private.1":"Here is the list of private data being collected:","privacy.v2.data.private_list.1":"IP address","privacy.v2.data.private_list.2":"Browser's User-Agent","privacy.v2.data.non_private.1":"And here is the list of non-private data being collected:","privacy.v2.data.non_private_list.1":"Requested resource' URI","privacy.v2.data.non_private_list.2":"Date and time","privacy.v2.data.end.1":"Once the data has been logged in the access logs, it is automatically retrieved and processed by a locally-hosted application every 30 seconds and then deleted from said logs.","privacy.v2.data.end.2":"This application compares this information against a list of known threat sources, targets and behaviours and if a match is found, the private information is anonymized and stored for 7 days pending a manual review.","privacy.v2.data.end.3":"Once that 7 day period has elapsed, or once the report has been reviewed, all the relevant data is automatically deleted.","privacy.v2.data.end.4":"If your request wasn't flagged as potentially malicious, every data collected from it is thrown out instantly.","privacy.v2.data.end.5":"This process should normally never be triggered for regular traffic since most of the triggering actions are ones that should not be possible to accomplish through normal browsing.","privacy.v2.data.end.6":"However, this process isn't infallible and there is always an off chance that false positives may happen.","privacy.v2.update.title":"Changes to our privacy policy","privacy.v2.update.intro.1":"The content of this privacy policy was originally written on the 4th of December 2021 and was last updated on the 18th of March 2022.","privacy.v2.update.history.1.date":"2021/12/04","privacy.v2.update.history.1.desc.1":"Original version","privacy.v2.update.history.2.date":"2022/03/18","privacy.v2.update.history.2.desc.1":"Changed section on data collection to reflect new policy.","privacy.v2.update.history.2.desc.2":"Added mention about CloudFlare and linked to their privacy policy.","privacy.v2.update.history.2.desc.3":"Improved the \"Changes to our privacy policy\" section.","privacy.v2.update.history.3.date":"2022/09/09","privacy.v2.update.history.3.desc.1":"Changed references to external services to reflect the migration to v6Node.","privacy.v2.update.history.3.desc.1.1":"Added mention about v6Node and linked to their privacy policy.","privacy.v2.update.history.3.desc.1.2":"Removed mentions of CloudFlare.","privacy.v2.update.history.3.desc.2":"Changed the \"Cookies\" section to indicate that none should be used on public domains.","privacy.v2.update.end.2":"In the event of a change to our privacy policy, you will be informed explicitly, and a copy of previous versions of the policy will be available through this page.","privacy.v2.third.title":"Third Parties","privacy.v2.third.intro.1":"Our websites uses some services provided by v6Node in order to prevent bad actors from accessing this website and in order to put in place a reverse-proxy system.","privacy.v2.third.intro.2":"The goal of this system is to improve your browsing experience with the help of a private caching service and custom traffic filtering rules.","privacy.v2.third.intro.3":"None of the data that may be gathered by v6Node or the system described above is ever used or stored.","privacy.v2.third.intro.4":"If you'd wish to consult their privacy policy and their partners', you can do so by using the following URLs:","privacy.v2.cookies.title":"Cookies","privacy.v2.cookies.intro.1":"Our websites doesn't use nor store any cookies in your browser.","sidebar.alt.logo":"Website's logo","sidebar.text.home":"Home","sidebar.text.projects":"Projects","sidebar.text.applications":"Applications","sidebar.text.libraries":"Libraries","sidebar.text.electronics":"Electronics","sidebar.text.links":"Links","sidebar.text.downloads":"Downloads","sidebar.text.gitea":"Git Repos.","sidebar.text.about":"About","sidebar.text.contact":"Contact","tools.head.title":"Tools - NibblePoker","tools.head.description":"TODO: description","tools.og.title":"NibblePoker - Tools","tools.og.description":"TODO: description","tools.header.title":"Tools"},"fr":{"content.search.head.title":"Recherche de contenu - NibblePoker","content.search.head.description":"TODO: description","content.search.og.title":"NibblePoker - Recherche de contenu","content.search.og.description":"TODO: description","content.search.heading.main.single":"R\u00e9sultat de recherche","content.search.heading.main.multiple":"R\u00e9sultats de recherche","content.search.count.single":"r\u00e9sultat","content.search.count.multiple":"r\u00e9sultats","content.error.head.title":"Erreur de contenu - NibblePoker","content.error.og.title":"NibblePoker - Erreur de contenu","content.error.heading.main.search":"Erreur de recherche","content.error.heading.main.content":"Erreur de contenu","content.error.heading.main.fallback":"Erreur inconnue","content.error.message.none":"Aucune erreur n'a \u00e9t\u00e9 d\u00e9tect\u00e9e.","content.error.message.tags.length":"Le param\u00e8tre d'URL \"tags\" est trop long.","content.error.message.tags.alphanumeric":"Un des tags donn\u00e9 dans le param\u00e8tre d'URL \"tags\" n'est pas une cha\u00eene de texte alphanum\u00e9rique valide.","content.error.message.detect.empty":"Aucun contenu en rapport avec les tags choisi n'as \u00e9t\u00e9 trouv\u00e9.","content.error.message.id.alphanumeric":"L'ID de la ressource demand\u00e9e n'est pas une cha\u00eene de texte alphanum\u00e9rique valide.","content.error.message.data.not.exist":"Le contenu demand\u00e9e n'a pas de fichier de rendu interne associ\u00e9.","content.error.message.cannot.load":"Le contenu demand\u00e9 n'a pas pu \u00eatre charg\u00e9 de notre c\u00f4t\u00e9 !","content.error.message.data.no.tags":"Aucun tag trouv\u00e9 !","content.error.message.data.no.title":"Aucun titre trouv\u00e9 !","content.item.head.title.prefix":"","content.item.head.title.suffix":" - NibblePoker","content.item.og.title.prefix":"","content.item.og.title.suffix":" - NibblePoker","content.commons.version.current":"Version actuelle","content.commons.version.previous.single":"Version pr\u00e9c\u00e9dente","content.commons.version.previous.multiple":"Versions pr\u00e9c\u00e9dentes","content.commons.version.old.single":"Ancienne version","content.commons.version.old.multiple":"Anciennes versions","content.commons.version.source":"Code source","content.commons.cpu":"Architecture de CPU","content.commons.cpu.any":"Ind\u00e9pendante","content.commons.cpu.x64":"x64","content.commons.cpu.x86":"x86","content.commons.cpu.arm":"arm","content.commons.cpu.arm64":"arm64","content.commons.na.italic":"N/A","content.commons.na":"N/A","content.commons.lang":"Langue","content.commons.download.single":"T\u00e9l\u00e9chargement","content.commons.download.multiple":"T\u00e9l\u00e9chargements","content.commons.version":"Version","content.commons.github":"D\u00e9p\u00f4t GitHub","content.commons.gitea":"D\u00e9p\u00f4t Gitea auto-h\u00e9berg\u00e9","content.commons.nuget":"Packet Nuget","content.commons.license.mit.single":"License MIT","content.commons.lang.english":"Anglais","content.commons.lang.french":"Fran\u00e7ais","content.commons.lang.luxembourgish":"Luxembourgeois","content.commons.lang.english.639-3":"Anglais (eng)","content.commons.lang.french.639-3":"Fran\u00e7ais (fra)","content.commons.lang.luxembourgish.639-3":"Luxembourgeois (ltz)","footer.text.privacy":"Politique de confidentialit\u00e9","footer.alt.logo":"Logo du site web","home.head.title":"NibblePoker","home.head.description":"TODO: description","home.og.title":"NibblePoker","home.og.description":"TODO: description","home.header.title":"Page d'accueil","lang.menu.title":"Langue","lang.current":"Fran\u00e7ais","lang.automatic":"Automatique","lang.english":"Anglais","lang.french":"Fran\u00e7ais","lang.german":"Allemand","lang.luxembourgish":"Luxembourgeois","privacy.head.title":"Politique de confidentialit\u00e9 - NibblePoker","privacy.head.description":"Notre politique de confidentialit\u00e9 dans un format clair et compr\u00e9hensible.","privacy.og.title":"NibblePoker - Politique de confidentialit\u00e9","privacy.og.description":"Notre politique de confidentialit\u00e9 dans un format clair et compr\u00e9hensible.","privacy.header.title":"Politique de confidentialit\u00e9","privacy.introduction.title":"Introduction","privacy.introduction.text.1":"La politique de confidentialit\u00e9 ci-pr\u00e9sente a \u00e9t\u00e9 \u00e9crite en accord avec les articles 12 et 13 de la RGPD.","privacy.introduction.text.2":"Si vous souhaitez consulter le texte officiel en question, vous pouvez le faire sur les sites internet suivants :","privacy.contact.title":"Comment nous contacter ?","privacy.contact.text.1":"Si vous souhaitez nous contacter afin d'obtenir plus d'informations concernant notre politique de confidentialit\u00e9, nous vous recommandons d'utiliser le formulaire pr\u00e9sent sur la page de contact, ou par courriel \u00e0 l'adresse suivante:","privacy.complaint.title":"Comment contacter les autorit\u00e9s comp\u00e9tentes ?","privacy.complaint.text.1":"Dans l'\u00e9ventualit\u00e9 o\u00f9 vous souhaiteriez d\u00e9poser une plainte pour une quelconque raison en rapport avec notre politique de confidentialit\u00e9, veuillez vous adresser \u00e0 l'autorit\u00e9 nationale de protection des donn\u00e9es (DPA).","privacy.complaint.text.2":"Les informations concernant cette proc\u00e9dure peuvent \u00eatre trouv\u00e9es sur les sites internet suivants:","privacy.v2.data.title":"Collecte de donn\u00e9es","privacy.v2.data.intro.1":"Ce site web collecte des donn\u00e9es au travers des journaux d'\u00e9v\u00e8nements afin de d\u00e9tecter et bloquer de potentiels acteurs malveillants.","privacy.v2.data.intro.2":"Les donn\u00e9es collect\u00e9es ne sont en aucun cas utilis\u00e9es pour une quelconque autre raison.","privacy.v2.data.private.1":"Voici la liste des donn\u00e9es personelles collect\u00e9es:","privacy.v2.data.private_list.1":"L'addresse IP source","privacy.v2.data.private_list.2":"Le \"User-Agent\" de votre navigateur internet","privacy.v2.data.non_private.1":"Et voici la liste des donn\u00e9es non-personelles collect\u00e9es:","privacy.v2.data.non_private_list.1":"L'URI de la ressource demand\u00e9e","privacy.v2.data.non_private_list.2":"La date et l'heure","privacy.v2.data.end.1":"Les donn\u00e9es pr\u00e9sentes dans les journaux d'\u00e9v\u00e8nements sont extraites et retir\u00e9es pour \u00eatre trait\u00e9es par une application qui tourne en local toute les 30 secondes.","privacy.v2.data.end.2":"L'application en question utilise et compare ces informations avec une liste d'acteurs malveillants et comportement suspects connus.
Si une correspondance est d\u00e9tect\u00e9e, les informations priv\u00e9es sont anonymis\u00e9es et sont stock\u00e9es pendant 7 jours en attendant qu'un examen manuel soit effectu\u00e9.","privacy.v2.data.end.3":"Apr\u00e8s cette p\u00e9riode de 7 jours, ou apr\u00e8s qu'un examen ait \u00e9t\u00e9 effectu\u00e9, les donn\u00e9es sont automatiquement supprim\u00e9es.","privacy.v2.data.end.4":"Toute information concernant une requ\u00eate non suspecte est automatiquement supprim\u00e9e.","privacy.v2.data.end.5":"Ce processus n'est normalement jamais utilis\u00e9 sur des requ\u00eates provenant d'un trafic l\u00e9gitime d\u00fb au fait qu'il isole principalement les actions et requ\u00eates qui ne devraient pas \u00eatre possible sur ce site.","privacy.v2.data.end.6":"Cependant, ce processus n'est pas infaillible et il est toujours possible qu'une requ\u00eate soit isol\u00e9e par erreur.","privacy.v2.update.title":"Changements \u00e0 notre politique de confidentialit\u00e9","privacy.v2.update.intro.1":"Le contenu de notre politique de confidentialit\u00e9 a \u00e9t\u00e9 originalement \u00e9crit et le 4 d\u00e9cembre 2021 modifi\u00e9 pour la derni\u00e8re fois le 18 mars 2022.","privacy.v2.update.history.1.date":"2021/12/04","privacy.v2.update.history.1.desc.1":"Version originale","privacy.v2.update.history.2.date":"2022/03/18","privacy.v2.update.history.2.desc.1":"Mise-\u00e0-jour de la section sur la collection des donn\u00e9es.","privacy.v2.update.history.2.desc.2":"Ajout d'une mention de CloudFlare et ajout de liens vers leur politique de confidentialit\u00e9.","privacy.v2.update.history.2.desc.3":"Am\u00e9lioration de la section \"Changements \u00e0 notre politique de confidentialit\u00e9\".","privacy.v2.update.history.3.date":"2022/09/09","privacy.v2.update.history.3.desc.1":"Changement des r\u00e9f\u00e9rences aux services externes pour indiquer l'utilisation de v6Node.","privacy.v2.update.history.3.desc.1.1":"Ajout de mentions de v6Node et liens vers leur politique de vie confidentialit\u00e9.","privacy.v2.update.history.3.desc.1.2":"Suppression de mentions de CloudFlare.","privacy.v2.update.history.3.desc.2":"Changement de la section \"Cookies\" afin d'indiquer qu'ils ne seront plus utilis\u00e9s sur les domaines publics.","privacy.v2.update.end.2":"En cas de changement, vous serez clairement inform\u00e9 et une copie des anciennes versions de notre politique sera disponible au travers de cette page.","privacy.v2.third.title":"Organismes tiers","privacy.v2.third.intro.1":"Ce site web utilise les services propos\u00e9s par v6Node afin d'emp\u00eacher des acteurs malveillants d'y acc\u00e9der et dans le but de mettre en place un syst\u00e8me de reverse-proxy.","privacy.v2.third.intro.2":"Ceci a pour but d'am\u00e9liorer l'exp\u00e9rience des personnes le visitant gr\u00e2ce \u00e0 un syst\u00e8me de filtrage et caching priv\u00e9.","privacy.v2.third.intro.3":"Aucune des donn\u00e9es collect\u00e9es et stock\u00e9es par v6Node et le syst\u00e8me d\u00e9cris ci-dessus n'est utilis\u00e9 ou stock\u00e9.","privacy.v2.third.intro.4":"Si vous souhaitez consulter leur politique de confidentialit\u00e9 ainsi que celle de leur partenaires, vous pouvez le faire en suivant les liens ci-dessous:","privacy.v2.cookies.title":"Cookies de navigation","privacy.v2.cookies.intro.1":"Ce site web n'utilise pas, et ne stocke aucun cookies dans votre navigateur internet.","sidebar.alt.logo":"Logo du site web","sidebar.text.home":"Accueil","sidebar.text.projects":"Projets","sidebar.text.applications":"Applications","sidebar.text.libraries":"Librairies","sidebar.text.electronics":"\u00c9lectronique","sidebar.text.links":"Liens","sidebar.text.downloads":"T\u00e9l\u00e9chargements","sidebar.text.gitea":"D\u00e9p\u00f4ts Git","sidebar.text.about":"\u00c0-propos","sidebar.text.contact":"Contact"}} \ No newline at end of file diff --git a/commons/strings/en/tools.json b/commons/strings/en/tools.json new file mode 100644 index 0000000..824a64e --- /dev/null +++ b/commons/strings/en/tools.json @@ -0,0 +1,7 @@ +{ + "tools.head.title": "Tools - NibblePoker", + "tools.head.description": "TODO: description", + "tools.og.title": "NibblePoker - Tools", + "tools.og.description": "TODO: description", + "tools.header.title": "Tools" +} \ No newline at end of file diff --git a/content/index.php b/content/index.php index d53c56a..65f2898 100644 --- a/content/index.php +++ b/content/index.php @@ -5,14 +5,27 @@ $start_time = microtime(true); set_include_path('../'); include_once 'commons/config.php'; include_once 'commons/langs.php'; + +// Preparing the content include_once 'commons/content.php'; +include_once 'commons/composer.php'; +$contentManager = getContentManager($config_dir_content); +$content = NULL; +if(!$contentManager->hasError && $contentManager->displayType == ContentDisplayType::CONTENT) { + $content = load_content_by_file_path($contentManager->contentFilepath); + if(is_null($content)) { + $contentManager->hasError = true; + $contentManager->errorMessageKey = "content.error.message.cannot.load"; + } +} +$content_error_message = localize($contentManager->errorMessageKey); // Checking if an error occurred while loading data and parsing the URL. // And if not, enabling special features. $content_error_code = 200; -if ($content_has_error) { +if($contentManager->hasError) { // TODO: Add condition for the lack of data for an item. - if (is_null($filtered_content_index_data)) { + if(is_null($contentManager->rootIndexEntries)) { // Failed to get a display type or to extract types. header("HTTP/1.1 400 Bad Request"); $content_error_code = 400; @@ -34,12 +47,12 @@ if ($content_has_error) { include 'commons/DOM/head.php'; // Preparing values for the head's tags. - if ($content_has_error) { + if ($contentManager->hasError) { $content_head_title = localize("content.error.head.title"); $content_head_description = $content_error_message; $content_head_og_title = localize("content.error.og.title"); $content_head_og_description = $content_error_message; - } elseif($requested_content_display_type == ContentDisplayType::CONTENT) { + } elseif($contentManager->displayType == ContentDisplayType::CONTENT) { $content_head_title = localize("content.item.head.title.prefix") . $content->get_head_title() . @@ -50,7 +63,7 @@ if ($content_has_error) { $content->get_head_title() . localize("content.item.og.title.suffix"); $content_head_og_description = $content->get_head_description(); - } elseif($requested_content_display_type == ContentDisplayType::SEARCH) { + } elseif($contentManager->displayType == ContentDisplayType::SEARCH) { $content_head_title = localize("content.search.head.title"); $content_head_description = localize("content.search.head.description");; $content_head_og_title = localize("content.search.og.title");; @@ -79,17 +92,17 @@ include 'commons/DOM/body-2.php';

hasError) { echo(''); echo(localize("content.header.base")); echo(''); echo(localize("content.error.header")); - } elseif($requested_content_display_type == ContentDisplayType::SEARCH) { + } elseif($contentManager->displayType == ContentDisplayType::SEARCH) { echo(''); echo(localize("content.header.base")); echo(''); echo(localize("content.search.header")); - } elseif($requested_content_display_type == ContentDisplayType::CONTENT) { + } elseif($contentManager->displayType == ContentDisplayType::CONTENT) { echo(''); echo(localize("content.header.base")); echo(''); @@ -104,9 +117,9 @@ include 'commons/DOM/body-2.php'; displayType == ContentDisplayType::SEARCH) { printMainHeader(localize("content.error.heading.main.search"), "fad fa-exclamation-triangle"); - } elseif($requested_content_display_type == ContentDisplayType::CONTENT) { + } elseif($contentManager->displayType == ContentDisplayType::CONTENT) { printMainHeader(localize("content.error.heading.main.content"), "fad fa-exclamation-triangle"); } else { printMainHeader(localize("content.error.heading.main.fallback"), "fad fa-exclamation-triangle"); @@ -117,52 +130,54 @@ include 'commons/DOM/body-2.php'; goto content_printing_end; } - if($requested_content_display_type == ContentDisplayType::SEARCH) { + if($contentManager->displayType == ContentDisplayType::SEARCH) { // We are handling a content search with at least one result. // Making the header with the amount of results. printMainHeader( - count($filtered_content_index_data) > 1 ? + count($contentManager->rootIndexEntries) > 1 ? localize("content.search.heading.main.multiple") : localize("content.search.heading.main.single"), "fad fa-file-search", - count($filtered_content_index_data) . " " . ( - count($filtered_content_index_data) > 1 ? + count($contentManager->rootIndexEntries) . " " . ( + count($contentManager->rootIndexEntries) > 1 ? localize("content.search.count.multiple") : localize("content.search.count.single"))); // Printing the entry for each piece of relevant content. - for($iContent = 0; $iContent < count($filtered_content_index_data); $iContent++) { - $current_content = $filtered_content_index_data[$iContent]; - - if($iContent > 0) { - echo('
'); - } + $doPrintRuler = false; + foreach($contentManager->rootIndexEntries as $current_content) { + /** @var ContentIndexEntry $current_content */ + if($doPrintRuler) { + echo('
'); + } else { + $doPrintRuler = true; + } + echo(''); - } // TODO: Print the tags used in the search and others that may be available. - } elseif($requested_content_display_type == ContentDisplayType::CONTENT) { + } elseif($contentManager->displayType == ContentDisplayType::CONTENT) { // Printing the content echo($content->get_html()); } diff --git a/error.php b/error.php index 3b86079..4d8b62e 100644 --- a/error.php +++ b/error.php @@ -56,7 +56,7 @@ if(isset($_SERVER['REDIRECT_STATUS'])) { $np_err_img_alt = localize("error.skit.pc.dead"); break; } - echo('' . $np_err_img_alt . ''); + echo('' . $np_err_img_alt . ''); ?>