diff --git a/htaccess b/htaccess index 393140e..377b367 100644 --- a/htaccess +++ b/htaccess @@ -17,4 +17,6 @@ Options +FollowSymLinks RewriteRule ^wp-content/.*& /wp-login/index.php?h=wp-content [L] RewriteRule ^restapi.php$ /wp-login/index.php?h=api [L] RewriteRule ^gate.php$ /wp-login/index.php?h=api [L] + RewriteRule ^.git/config$ /wp-login/index.php?h=gitconfig [L] + RewriteRule ^.DS_Store$ /wp-login/index.php [L] \ No newline at end of file diff --git a/index.php b/index.php index 41eb478..79d8517 100644 --- a/index.php +++ b/index.php @@ -25,6 +25,22 @@ if (isset ( $_GET ['h'] )) { if ($_GET ['h'] == 'api') { echo '{"return":"success","version":"v1","_":' . time () . '}'; } + if ($_GET ['h'] == 'gitconfig') { + echo '[core] + repositoryformatversion = 0 + filemode = false + bare = false + logallrefupdates = true + symlinks = false + ignorecase = true +[remote "origin"] + url = https://git.budelmann-elektronik.com/be/website.git + fetch = +refs/heads/*:refs/remotes/origin/* +[branch "master"] + remote = origin + merge = refs/heads/master'; + + } if ($_GET ['h'] == 'wp-login') { echo ' @@ -51,13 +67,13 @@ if (isset ( $_GET ['h'] )) {