From 92c69fbe28ece5585773f607101b632fbfb43de9 Mon Sep 17 00:00:00 2001 From: Julien Cabillot Date: Fri, 17 Apr 2020 16:51:15 -0400 Subject: [PATCH] Use functions --- root/push.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/push.php b/root/push.php index 7931b13..d217efd 100644 --- a/root/push.php +++ b/root/push.php @@ -40,7 +40,7 @@ function store_sqlite3($data) { function store_raw($data) { $db_path = DB_DIR.'/location-'.date('Y-m').'.raw'; - file_put_contents('toto', serialize($data)); + file_put_contents($db_path, serialize($data)); } $payload = file_get_contents("php://input");