0, 'error' => 'Kein Server ausgewählt' ] ) ); } if ( empty( $idLong ) ){ die( json_encode( [ 'status' => 0, 'error' => 'Keine Identität ausgewählt' ] ) ); } if ( empty( $_REQUEST['code'] ) ){ die( json_encode( [ 'status' => 0, 'error' => 'Daten unvollständig: ' . var_export( $_REQUEST, TRUE ) ] ) ); } $msg = new ParTCP_Outgoing_Message( $serverLong, $idLong, 'group-definition' ); if ( ! empty( $_REQUEST['groupId'] ) ){ $msg->set( 'Group-Id', $_REQUEST['groupId'] ); } $msg->set( 'Group-Data', [ 'code' => $_REQUEST['code'], 'name' => $_REQUEST['name'], 'description' => $_REQUEST['description'], ]); $msg->set_date(); $response = pas_check_response( $msg->send() ); if ( is_string( $response ) ){ die( json_encode( [ 'status' => 0, 'error' => $response ] ) ); } echo json_encode( [ 'status' => 1, 'error' => '' ] ); // end of file ajax/create_group.php