| author | ymh <ymh.work@gmail.com> |
| Tue, 12 Feb 2013 10:54:34 +0100 | |
| changeset 134 | 678b07d351ef |
| parent 50 | 9cc1b66d0880 |
| permissions | -rw-r--r-- |
| 50 | 1 |
<?php |
2 |
||
3 |
$data = json_decode(file_get_contents("php://input")); |
|
4 |
||
5 |
if (!isset($data->annotations[0]->id)) { |
|
6 |
$data->annotations[0]->id = uniqid("annotation_"); |
|
7 |
} |
|
8 |
||
9 |
if (!isset($data->annotations[0]->type)) { |
|
10 |
$data->annotations[0]->type = uniqid("annotationType_"); |
|
11 |
} |
|
12 |
||
13 |
print_r(json_encode($data)); |
|
14 |
||
15 |
?> |