From 81c822e225eb372fcc8eb93dfa43ad49b86a749d Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 29 Mar 2015 23:06:55 +0200 Subject: [PATCH] image serve --- main/.htaccess | 4 ++++ main/imageserve.php | 57 +++++++++++++++++++++++++++++++++++++++++++++ main/index.php | 5 +++- 3 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 main/imageserve.php diff --git a/main/.htaccess b/main/.htaccess index 80706d3..3c0eaf2 100644 --- a/main/.htaccess +++ b/main/.htaccess @@ -13,3 +13,7 @@ RewriteEngine on Options +FollowSymLinks -Indexes # Rewrite Rules + +# Serving Images +RewriteRule ^a/([0-9]+)$ imageserve.php?m=avatar&u=$1 +RewriteRule ^a/([0-9]+).png$ imageserve.php?m=avatar&u=$1 diff --git a/main/imageserve.php b/main/imageserve.php new file mode 100644 index 0000000..dbdfa21 --- /dev/null +++ b/main/imageserve.php @@ -0,0 +1,57 @@ +