ayy
This commit is contained in:
parent
03468c7f11
commit
d8fc51e0ca
6 changed files with 23 additions and 1 deletions
1
main/.htaccess
Normal file
1
main/.htaccess
Normal file
|
@ -0,0 +1 @@
|
||||||
|
# Empty .htaccess to make git realise this directory exists
|
9
main/git/.htaccess
Normal file
9
main/git/.htaccess
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
Options -Indexes
|
||||||
|
|
||||||
|
<Files "passwd">
|
||||||
|
Require all denied
|
||||||
|
</Files>
|
||||||
|
|
||||||
|
<Files "git.php">
|
||||||
|
Require all denied
|
||||||
|
</Files>
|
10
main/git/git.php
Normal file
10
main/git/git.php
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
$userFile = file_get_contents('passwd');
|
||||||
|
$usersTemp = explode("\r\n", $userFile);
|
||||||
|
$users = array();
|
||||||
|
|
||||||
|
foreach($usersTemp as $user) {
|
||||||
|
$users[] = explode(":", $userFile);
|
||||||
|
}
|
||||||
|
|
||||||
|
print_r($users);
|
2
main/git/index.php
Normal file
2
main/git/index.php
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
<?php
|
||||||
|
require_once 'git.php';
|
1
main/git/passwd
Normal file
1
main/git/passwd
Normal file
|
@ -0,0 +1 @@
|
||||||
|
flashwave:ThisIsHorribleIKnowYouMayKillMeLater
|
|
@ -1 +0,0 @@
|
||||||
fgdhfhhdhhdf
|
|
Reference in a new issue