server/src/main/webapp/static/data/simple-persist.php
changeset 80 5295e118320b
parent 79 f33771f3c510
child 81 555a094e2000
child 83 276514e62567
--- a/server/src/main/webapp/static/data/simple-persist.php	Thu Mar 14 13:48:35 2013 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-<?php
-    header('Content-Type: application/json; charset=utf-8');
-    $file = "dynamic-data.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