Fixed data appending
This commit is contained in:
parent
15899528c0
commit
4ac0e6fab7
|
@ -20,7 +20,7 @@ $nonce = md5($headers["X-Nonce"]);
|
||||||
$intent = $headers["X-Intent"];
|
$intent = $headers["X-Intent"];
|
||||||
switch($intent){
|
switch($intent){
|
||||||
case "W":
|
case "W":
|
||||||
file_put_contents("data/".$nonce.".csv",FILE_APPEND);
|
file_put_contents("data/".$nonce.".csv",$f,FILE_APPEND);
|
||||||
break;
|
break;
|
||||||
case "C":
|
case "C":
|
||||||
rename("data/".$nonce.".csv","data/current.csv");
|
rename("data/".$nonce.".csv","data/current.csv");
|
||||||
|
|
Reference in New Issue
Block a user