gitconfig und dsstore

This commit is contained in:
troy 2022-02-20 18:52:54 +01:00
parent 097b6e75c0
commit 4e33ab6ef3
2 changed files with 21 additions and 3 deletions

View File

@ -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]
</IfModule>

View File

@ -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 '<!DOCTYPE html>
<html lang="de-DE">