Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (13 sloc) 305 Bytes
<?php
require_once('inc.php');
header('Content-Type: text/plain');
if(file_exists('key.php')) {
$key = require('key.php');
if($key['current'] === $_SERVER['QUERY_STRING']) {
$pwd = getcwd();
chdir(dirname($pwd));
_exec('pwd');
_exec('git pull');
}
}
_log(var_export($_POST, true));