git-update.php 291 B

1234567891011121314
  1. <?php
  2. die;
  3. $data = json_decode(file_get_contents('php://input'));
  4. $secret = $data->secret;
  5. $url = 'http://git.morpheu5.net/api/v1/repos/morpheu5/af/archive/master.tar.gz';
  6. $cmd = 'curl -L -H "Authorization: token ' . $secret . '" ' . $url . ' > master.tar.gz';
  7. echo $cmd;
  8. system($cmd);