浏览代码

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'];
+}