| author | veltr |
| Thu, 30 Aug 2012 14:42:52 +0200 | |
| changeset 945 | 7d9f6fd6f904 |
| parent 931 | 0fdce6e14748 |
| permissions | -rw-r--r-- |
| 928 | 1 |
<?php |
2 |
||
| 931 | 3 |
$data = json_decode(file_get_contents("php://input")); |
| 928 | 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 |
?> |