aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2012-05-21 10:33:43 +0000
committermistic100 <mistic@piwigo.org>2012-05-21 10:33:43 +0000
commit2b5ce2b8d9d83cd15bb70e3182644fb8a9f1130b (patch)
tree3d0b4f10df607ed6c9339435da2d3c7a576d3fb1
parent0b7e6c9ddd53b96b162f20ad4d14ebb0367b3d7c (diff)
multisize hotlinks and upgrade, add <IfModule mod_rewrite.c> to htaccess content
git-svn-id: http://piwigo.org/svn/trunk@15178 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--install/db/121-database.php6
1 files changed, 5 insertions, 1 deletions
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.= '
+<IfModule mod_rewrite.c>';
+
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]
+</IfModule>';
file_put_contents($htaccess, $content);
}