From: Mischa POSLAWSKY Date: Mon, 13 May 2019 21:14:25 +0000 (+0200) Subject: php wrapper around widget creating missing include X-Git-Tag: v0.4~10 X-Git-Url: http://git.shiar.nl/sc2-widget/commitdiff_plain/aaceaa1177cdd850334513701913eefebc6fcfaa 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. --- 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 @@ +