From aaceaa1177cdd850334513701913eefebc6fcfaa Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Mon, 13 May 2019 23:14:25 +0200 Subject: [PATCH] php wrapper around widget creating missing include Generates any unknown profile id include before showing static page. Still defers to cron scripts for expiration and clan filters. --- .htaccess | 6 ++++-- widget.php | 12 ++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 widget.php diff --git a/.htaccess b/.htaccess index f391cd0..bacadc7 100644 --- a/.htaccess +++ b/.htaccess @@ -1,3 +1,5 @@ +AddHandler application/x-httpd-php php + RewriteEngine on -RewriteCond %{REQUEST_FILENAME}.html -f -RewriteRule ^([^/]+) $1.html +RewriteCond %{REQUEST_FILENAME}.php -f +RewriteRule ^([^/]+)(.*) $1.php$2 diff --git a/widget.php b/widget.php new file mode 100644 index 0000000..e5aa326 --- /dev/null +++ b/widget.php @@ -0,0 +1,12 @@ +