client/data/simple-persist.php
changeset 295 bcac9ea07d04
parent 294 d9247696a257
child 296 ded85569cb98
--- a/client/data/simple-persist.php	Fri May 16 14:14:39 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-<?php
-    header('Content-Type: application/json; charset=utf-8');
-    $file = "example-cinema.json";
-    if (isset($_GET['reset']) && $_GET['reset']) {
-        $resetfile = "test-data.json";
-        file_put_contents($file, file_get_contents($resetfile));
-    }
-    if ($_SERVER['REQUEST_METHOD'] == 'PUT') {
-        file_put_contents($file, file_get_contents("php://input"));
-        echo json_encode(array("result" => "OK"));
-    } else {
-        echo file_get_contents($file);
-    }
-?>
\ No newline at end of file