X-Git-Url: http://git.pk910.de/?p=GITManagedWebpage.git;a=blobdiff_plain;f=GITManagedWebpage.class.php;h=2a3076f73a5770607bfbd7ed04c70fc689990eb9;hp=c8c7714e719eec80823363657b4263165c185ce7;hb=HEAD;hpb=04b1df59f6e9c029d88dd203d7dac395122cc9cb
diff --git a/GITManagedWebpage.class.php b/GITManagedWebpage.class.php
index c8c7714..2a3076f 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"));
@@ -337,6 +345,124 @@ class GITManagedWebpage {
}
}
+ public function showMngrWindow() {
+ $html = '';
+ $html .= '';
+ $html .= '';
+ $html .= '';
+ $html .= '';
+ $html .= '';
+ $html .= '';
+
+ $current_branch = $this->getActiveBranch();
+ $current_version = substr($this->getConfig('version_'.$current_branch), 0, 7);
+ $html .= <<
+
+
+
+
+HTML_END;
+ return $html;
+ }
+
}
?>
\ No newline at end of file