just kidding this shit didn't actually work

This commit is contained in:
flash 2015-03-08 05:03:27 +01:00
parent 95885ac114
commit 9e245fef38
5 changed files with 0 additions and 33 deletions

View file

@ -1,9 +0,0 @@
Options -Indexes
<Files "passwd">
Require all denied
</Files>
<Files "git.php">
Require all denied
</Files>

View file

@ -1,12 +0,0 @@
<?php
$userFile = file_get_contents('passwd');
$usersTemp = explode("\r\n", $userFile);
$users = array();
foreach($usersTemp as $user) {
$userTemp = explode(":", $userFile);
$users[$userTemp[0]] = $userTemp[1];
unset($userTemp);
}
print_r($users);

View file

@ -1,2 +0,0 @@
<?php
require_once 'git.php';

View file

@ -1 +0,0 @@
flashwave:ThisIsHorribleIKnowYouMayKillMeLater

View file

@ -1,9 +0,0 @@
<?php
if(isset($_REQUEST['pull'])) {
shell_exec('git -C /var/www/flashii.net pull > /var/www/autopull.log');
print '<h2>Site should be up with the latest commit now.</h2>';
}
?>
<form method="post" action="">
<input type="submit" name="pull" value="Pull from Repository" />
</form>