diff --git a/.gitignore b/.gitignore index 3124bd8..a7624e6 100644 --- a/.gitignore +++ b/.gitignore @@ -36,6 +36,7 @@ tools/items/mc-art-viewer/nbt.js *.url *.env *.sqlite +*.conf # Temporary articles/*.txt diff --git a/.htaccess b/.htaccess index e6f9e23..789c6da 100644 --- a/.htaccess +++ b/.htaccess @@ -3,6 +3,11 @@ Require all denied +# Preventing access to wrongly copied .conf files + + Require all denied + + # Redirecting HTTP traffic to HTTPS. (Keep commented on localhost !) # This is handled by reverse-proxies, but it should still be enabled in production just to be safe. diff --git a/commons/DOM/head.php b/commons/DOM/head.php index 0771226..0ea307e 100644 --- a/commons/DOM/head.php +++ b/commons/DOM/head.php @@ -11,7 +11,7 @@ if(basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) { - +
@@ -48,7 +48,7 @@ function printSidebarEntry($url, $title, $icon, $activeId) {
diff --git a/commons/config.php b/commons/config.php index e534ac7..31bd50c 100644 --- a/commons/config.php +++ b/commons/config.php @@ -38,6 +38,9 @@ $enable_kitty_and_doggo_sounds = false; // > Belgium's independence day. $enable_waffle_iron = date('m-d') === '07-21'; +// > Luxembourg's national day. +$enable_bouneschlupp_mode = date('m-d') === '06-23'; + // Debugging stuff $print_execution_timer = true; ?> \ No newline at end of file diff --git a/commons/content.php b/commons/content.php index cf4ea31..30c5ca1 100644 --- a/commons/content.php +++ b/commons/content.php @@ -198,4 +198,4 @@ function getContentManager(string $contentRootPath): ContentManager { ); } -?> +?> \ No newline at end of file diff --git a/commons/content/article.php b/commons/content/article.php new file mode 100644 index 0000000..15c5adc --- /dev/null +++ b/commons/content/article.php @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/commons/content/content.php b/commons/content/content.php new file mode 100644 index 0000000..15c5adc --- /dev/null +++ b/commons/content/content.php @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/commons/content/data/metadata.php b/commons/content/data/metadata.php new file mode 100644 index 0000000..eb12dcb --- /dev/null +++ b/commons/content/data/metadata.php @@ -0,0 +1,19 @@ + \ No newline at end of file diff --git a/commons/content/opengraph.php b/commons/content/data/opengraph.php similarity index 99% rename from commons/content/opengraph.php rename to commons/content/data/opengraph.php index 3587c84..77a732a 100644 --- a/commons/content/opengraph.php +++ b/commons/content/data/opengraph.php @@ -49,4 +49,4 @@ class OpenGraphData { ); } } -?> +?> \ No newline at end of file diff --git a/commons/content/data/twitter_card.php b/commons/content/data/twitter_card.php new file mode 100644 index 0000000..97194a2 --- /dev/null +++ b/commons/content/data/twitter_card.php @@ -0,0 +1,20 @@ + diff --git a/commons/langs.php b/commons/langs.php index 588bcbd..a57be04 100644 --- a/commons/langs.php +++ b/commons/langs.php @@ -92,7 +92,7 @@ function localize_private(string $string_key, array $private_lang_data, bool $fa } } if($fallback_to_common) { - // If we can attempt to fallback on the common lang file. + // If we can attempt to fall back on the common lang file. return localize_private($fallback_prefix . $string_key, $lang_data, false); } @@ -128,4 +128,4 @@ function l10n_url_switch($lang) : string { } } -?> +?> \ No newline at end of file diff --git a/commons/listing.php b/commons/listing.php index 2765993..bfd48a8 100644 --- a/commons/listing.php +++ b/commons/listing.php @@ -66,4 +66,4 @@ function getDirectoryContent(string $dirPath, array $filteringRegexes, int $recu return $returnedData; } -?> +?> \ No newline at end of file diff --git a/commons/modals.php b/commons/modals.php index e5577d1..5400f62 100644 --- a/commons/modals.php +++ b/commons/modals.php @@ -30,4 +30,4 @@ function add_code_modal(string $id, string $title, string $text) { '); } -?> +?> \ No newline at end of file diff --git a/compress.bat b/compress.bat index a03d204..da2c5d0 100644 --- a/compress.bat +++ b/compress.bat @@ -32,6 +32,7 @@ set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "contributors/" set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "links/" set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "privacy/" set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "resources/FontAwesomePro/5.15.3/" +set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "resources/FontAwesomePro/6.5.1/" set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "resources/HighlightJS/highlight.min.js" "resources/HighlightJS/src/styles/atom-one-dark.min.css" set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "resources/NibblePoker/css/" set NP_ZIP_CONTENT=%NP_ZIP_CONTENT% "resources/NibblePoker/images/*.png" diff --git a/index.php b/index.php index 9e7b8cc..c2abb73 100644 --- a/index.php +++ b/index.php @@ -1,4 +1,5 @@ diff --git a/sitemap.php b/sitemap.php index 6058652..1c4e7ed 100644 --- a/sitemap.php +++ b/sitemap.php @@ -40,6 +40,6 @@ foreach(SITEMAP_LANGUAGES as $language_key) { } // Finishing the response. -http_response_code(200); +//http_response_code(200); exit(0); ?>