From 552970f8b039db6d8d25c117244e417e65fb209d Mon Sep 17 00:00:00 2001 From: Stepan Date: Sun, 6 Jul 2025 14:43:45 +0200 Subject: [PATCH] updated --- .htaccess | 9 +++++++++ README.md | 2 ++ apps/Recipes/Controllers/SingleSubmitController.php | 1 + 3 files changed, 12 insertions(+) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..66d6e2d --- /dev/null +++ b/.htaccess @@ -0,0 +1,9 @@ + +RewriteEngine On +RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] +RewriteBase / +RewriteRule ^index\.php$ - [L] +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule . /index.php [L] + \ No newline at end of file diff --git a/README.md b/README.md index 8338817..437f4c4 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,8 @@ The website is built entirely from scratch using pure PHP, without relying on an - [\[PHP\] FPHP](https://www.fpdf.org/): library which allows to generate PDF files with pure PHP, that is to say without using the PDFlib library. - [\[JS\] Swiper.js](https://github.com/nolimits4web/swiper): A highly customizable library for creating sliders and carousels. - [\[JS\] Toastify.js](https://github.com/apvarun/toastify-js): A lightweight library for creating beautiful and customizable toast notifications. +- [\[JS\] Three.js](https://github.com/mrdoob/three.js/): project is to create an easy-to-use, lightweight, cross-browser, general-purpose 3D library. +- [\[JS\] qrcode.js](https://davidshimjs.github.io/qrcodejs/): javascript library for making QRCode. QRCode.js supports Cross-browser with HTML5 Canvas and table tag in DOM. QRCode.js has no dependencies. ## Installing diff --git a/apps/Recipes/Controllers/SingleSubmitController.php b/apps/Recipes/Controllers/SingleSubmitController.php index 7a4c306..39df223 100644 --- a/apps/Recipes/Controllers/SingleSubmitController.php +++ b/apps/Recipes/Controllers/SingleSubmitController.php @@ -12,6 +12,7 @@ use Lycoreco\Includes\Model\ValidationError; class SingleSubmitController extends BaseController { protected $template_name = APPS_PATH . '/Recipes/Templates/single-submit.php'; + protected $allow_role = 'user'; protected function post() {