Subversion Repositories oidplus

Rev

Rev 568 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 568 Rev 569
Line 34... Line 34...
34
if (!$json) {
34
if (!$json) {
35
        die("Invalid JSON data $res");
35
        die("Invalid JSON data $res");
36
}
36
}
37
 
37
 
38
if (isset($json['error'])) {
38
if (isset($json['error'])) {
39
        die($json['error']);
39
        die($json['error']."\n");
40
} else if ($json['status'] == 0/*OK*/) {
40
} else if ($json['status'] == 0/*OK*/) {
41
        die("Insert OK");
41
        die("Insert OK\n");
42
} else if ($json['status'] == 1/*RaNotExisting*/) {
42
} else if ($json['status'] == 1/*RaNotExisting*/) {
43
        die("Insert OK");
43
        die("Insert OK\n");
44
} else if ($json['status'] == 2/*RaNotExistingNoInvitation*/) {
44
} else if ($json['status'] == 2/*RaNotExistingNoInvitation*/) {
45
        die("Insert OK");
45
        die("Insert OK\n");
46
} else {
46
} else {
47
        die("Error ".print_r($json,true));
47
        die("Error ".print_r($json,true)."\n");
48
}
48
}
49
 
49
 
50
?>
50
?>