tbrehm
2009-03-15 bf159b919a6b525e42143ebf4cc2f780f7f5ab98

1 files modified
2 ■■■ changed files
server/plugins-available/apache2_plugin.inc.php 2 ●●● patch | view | raw | blame | history
server/plugins-available/apache2_plugin.inc.php
@@ -671,7 +671,7 @@
        }
        
        //* Create .htaccess and .htpasswd file for website statistics
        if(!is_file($data["new"]["document_root"].'/web/stats/.htaccess') {
        if(!is_file($data["new"]["document_root"].'/web/stats/.htaccess')) {
            $ht_file = "AuthType Basic\nAuthName \"Members Only\"\nAuthUserFile ".$data["new"]["document_root"]."/.htpasswd_stats\n<limit GET PUT POST>\nrequire valid-user\n</limit>";
            file_put_contents($data["new"]["document_root"].'/web/stats/.htaccess',$ht_file);
            chmod($data["new"]["document_root"].'/web/stats/.htaccess',0664);