ソースを参照

Editing the autoupdater thingie

Andrea Franceschini 8 年 前
コミット
12cdd1f4ca
1 ファイル変更3 行追加4 行削除
  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'];
+}