From 8c7d0a76e55acd6be2da05a7ab119b696e5f3a37 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 16 Dec 2008 23:07:33 +0000 Subject: Add file_proxy. This is controller gets triggered by .htaccess protection on var/albums and var/resizes and only displays files to the user if they have "view" permission on the base ite. --- core/helpers/access.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/helpers') diff --git a/core/helpers/access.php b/core/helpers/access.php index f2949528..b8aee683 100644 --- a/core/helpers/access.php +++ b/core/helpers/access.php @@ -468,7 +468,7 @@ class access_Core { */ private static function _create_htaccess_files($album) { foreach (array($album->file_path(), dirname($album->resize_path())) as $dir) { - $base_url = url::site("file"); + $base_url = url::site("file_proxy"); $fp = fopen("$dir/.htaccess", "w+"); fwrite($fp, "\n"); fwrite($fp, " RewriteEngine On\n"); -- cgit v1.2.3