r4045 Interface to renderSearchResults function was simplified: no more need to pass nhits and lasthit
Possibility of dupes in search results eliminated by indexing by entity id
bugfix: create IPv4 network button, if pressed to open in a new window, was redirecting the parent window, too
bugfix: when searching for IP not belonging to any known network, the ugly assertion failed page was shown.
update: links to ports added to object search results
update: custom rearch results provided by users' plugins now supported
inc/interface.php:
renderSearchResults: parameters were simplified, unknown IP bug was fixed, custom search results supported, links to ports added
renderPortOIFCompatEditor: bug fixed with nested <input> into <a> (parent page redirection)
printIPNetInfoTDs: idem
renderPortIFCompatEditor: idem
inc/database.php:
getIPv4PrefixSearchResult: indexing results by id, for simplifying duplicates management in search results
getIPv4AddressSearchResult: idem
getIPv6AddressSearchResult: idem
getIPv4RSPoolSearchResult: idem
getIPv4VServiceSearchResult: idem
getFileSearchResult: idem
getVLANSearchResult: idem
getAccountSearchResult: idem, mergind code updated to reflect indexing changes
inc/functions.php:
searchEntitiesByText: removed nhits and lasthit calculation and returning