0, 'error' => 'Kein Server ausgewählt' ] ) ); } if ( empty( $idLong ) ){ die( json_encode( [ 'status' => 0, 'error' => 'Keine Identität ausgewählt' ] ) ); } if ( empty( $_REQUEST['csv_data'] ) || empty( $_REQUEST['id_title'] ) ){ die( json_encode( [ 'status' => 0, 'error' => 'Daten unvollständig' ] ) ); } $msg = new ParTCP_Outgoing_Message( $serverLong, $idLong, 'participants-data-submission' ); $msg->set_date(); $msg->set( 'Participants-Data', trim( $_REQUEST['csv_data'] ) ); $msg->set( 'Id-Title', $_REQUEST['id_title'] ); $msg->set( 'Delimiter', $_REQUEST['delimiter'] ); $msg->set( 'Enclosure', $_REQUEST['enclosure'] ); $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/upload_participant_data.php