$param, 'path' => $path ]; } array_pop( $breadcrumb ); $groupId = ltrim( $path, '/' ); $parentLink = implode( '/', array_slice( $Params, 0, -1 ) ); // Get group data $msg = new ParTCP_Outgoing_Message( $serverLong, $idLong, 'group-details-request' ); $msg->set( 'Group-Id', $groupId ); $msg->set( 'Include-Admins', TRUE ); $msg->set( 'Include-Admin-Info', TRUE ); $response = pas_check_response( $msg->send() ); if ( is_string( $response ) ){ $groupError = $response; } else { $data = $response->get('Group-Data'); $groups = $response->get('Groups'); $events = $response->get('Events'); $admins = $response->get('Admins'); $adminCount = $admins ? count( $admins ) : 0; $directAppointments = $response->get('Direct-Appointments'); } // Get event data $msg = new ParTCP_Outgoing_Message( $serverLong, $idLong, 'event-list-request' ); $msg->set( 'Group-Id', $groupId ); $msg->set( 'Include-Voting-Count', TRUE ); $msg->set( 'Include-Admin-Info', TRUE ); $msg->set( 'Event-Statuses', ['planned','opened','closed','finished'] ); $response = pas_check_response( $msg->send() ); if ( is_string( $response ) ){ $eventError = $response; } else { $events = $response->get('Events'); } eval( '?'.'>' . $tpl->compile('group.html') ); // end of file group.php