X-Git-Url: http://git.pk910.de/?p=GITManagedWebpage.git;a=blobdiff_plain;f=GITManagedWebpage.class.php;fp=GITManagedWebpage.class.php;h=3f6ba4aae7772b0ee2d943f53ea4eaa9d57daf94;hp=c8c7714e719eec80823363657b4263165c185ce7;hb=05088f3fd28b5492259807cd06637980b5ea49b7;hpb=04b1df59f6e9c029d88dd203d7dac395122cc9cb diff --git a/GITManagedWebpage.class.php b/GITManagedWebpage.class.php index c8c7714..3f6ba4a 100644 --- a/GITManagedWebpage.class.php +++ b/GITManagedWebpage.class.php @@ -164,6 +164,14 @@ class GITManagedWebpage { $this->error(self::ERROR_CRITICAL, "error cloning git repository."); return; } + + $fp = fopen($this->workdir.'.htaccess'); + fwrite($fp, ' +Order deny,allow +Deny from all +'); + fclose($fp); + $this->ready = true; $default_branch = str_replace(array("\r", "\n"), array("", ""), $this->gitcmd("rev-parse", "--abbrev-ref", "HEAD"));