Browse Source

Editing the autoupdater thingie

Andrea Franceschini 8 years ago
parent
commit
12cdd1f4ca
1 changed files with 3 additions and 4 deletions
  1. 3 4
      pages/api/git-update.php

+ 3 - 4
pages/api/git-update.php

@@ -6,7 +6,6 @@ if($_SERVER['REQUEST_METHOD'] != 'POST') {
 	die;
 }
 
-ob_start();
-print_r($_POST);
-file_put_contents('/tmp/log.txt', ob_get_contents(), FILE_APPEND);
-ob_end_clean();
+if(array_key_exists('secret', $_POST)) {
+	echo $_POST['secret'];
+}