From 2b5ce2b8d9d83cd15bb70e3182644fb8a9f1130b Mon Sep 17 00:00:00 2001 From: mistic100 Date: Mon, 21 May 2012 10:33:43 +0000 Subject: multisize hotlinks and upgrade, add to htaccess content git-svn-id: http://piwigo.org/svn/trunk@15178 68402e56-0260-453c-a942-63ccdbb3a9ee --- install/db/121-database.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'install') diff --git a/install/db/121-database.php b/install/db/121-database.php index ee8cad5df..6a85c2754 100644 --- a/install/db/121-database.php +++ b/install/db/121-database.php @@ -62,6 +62,9 @@ else } else { + $content.= ' +'; + if (strpos($content, 'RewriteEngine on') === false) { $content.=' @@ -91,7 +94,8 @@ RewriteRule ^galleries/(.*)/pwg_high/(.*)\.([a-z0-9]{3,4})$ galleries/$1/$2.$3 [ RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?'.preg_quote($_SERVER['SERVER_NAME']).'/.*$ [NC] RewriteRule ^upload/(.*)/(.*)\.([a-z0-9]{3,4})$ i.php?/upload/$1/$2-me.$3 [L] RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?'.preg_quote($_SERVER['SERVER_NAME']).'/.*$ [NC] -RewriteRule ^galleries(.*)/(.*)\.([a-z0-9]{3,4})$ i.php?/galleries/$1/$2-me.$3 [L]'; +RewriteRule ^galleries(.*)/(.*)\.([a-z0-9]{3,4})$ i.php?/galleries/$1/$2-me.$3 [L] +'; file_put_contents($htaccess, $content); } -- cgit v1.2.3