* SPDX-License-Identifier: AGPL-3.0-only ************************************/ global $result; global $client; global $Server_Path; $customerid = $_SESSION['customer_id']; $sessionid = $_SESSION['customer_sessionid']; if($id != '') { $params = array('id' => "$id", 'block'=>"$block",'contactid'=>$customerid,'sessionid'=>"$sessionid"); $result = $client->call('get_details', $params, $Server_Path, $Server_Path); // Check for Authorization if (count($result) == 1 && $result[0] == "#NOT AUTHORIZED#") { echo ' '.getTranslatedString('LBL_NOT_AUTHORISED').' '; die(); } $noteinfo = $result[0][$block]; echo '
'; echo getblock_fieldlist($noteinfo); echo ''; echo ''; echo ''; } ?>