From 50ea12a81c5df3404db1a4af460226dd25130b00 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Sat, 2 May 2020 17:49:15 +0200 Subject: [PATCH] Handle images URL via LSurl --- public_html/image.php | 39 --------------- .../includes/class/class.LStemplate.php | 2 +- public_html/includes/functions.php | 49 +++++++++++++++++++ public_html/includes/js/LSdefault.js | 2 +- public_html/includes/routes.php | 16 ++++++ 5 files changed, 67 insertions(+), 41 deletions(-) delete mode 100644 public_html/image.php diff --git a/public_html/image.php b/public_html/image.php deleted file mode 100644 index 1d76fd76..00000000 --- a/public_html/image.php +++ /dev/null @@ -1,39 +0,0 @@ - image); + if (is_file($img_path)) { + dumpFile($img_path); + } + LSurl :: error_404($request); +} +LSurl :: add_handler('#^image/(?P[^/]+)$#', 'handle_image', false);