* SPDX-License-Identifier: AGPL-3.0-only ************************************/ /* crmv@42752 crmv@43050 crmv@43448 crmv@43864 crmv@58208 */ require_once('modules/Popup/Popup.php'); require_once('modules/SDK/src/Favorites/Utils.php'); global $adb, $table_prefix; global $mod_strings, $app_strings, $theme; global $currentModule, $current_user; $from_module = vtlib_purify($_REQUEST['from_module']); $from_crmid = intval($_REQUEST['from_crmid']); $mod = str_replace('.', '', vtlib_purify($_REQUEST['mod'])); $recordid = intval($_REQUEST['record']); // todo: get them from class $callback_link = vtlib_purify($_REQUEST['callback_link']); $callback_create = vtlib_purify($_REQUEST['callback_create']); if ($from_module == 'Messages') { $messageid = $from_crmid; } if (isPermitted($mod, 'DetailView', $recordid) != 'yes') die('

Not authorized

'); $entityName = getEntityName($mod, $recordid); //crmv@77738 - fix quotes problem global $default_charset; $entityName = popup_from_html($entityName[$recordid]); $entityName = htmlspecialchars($entityName,ENT_QUOTES,$default_charset); //crmv@77738e $_REQUEST['module'] = $currentModule = $mod; $_REQUEST['action'] = 'DetailView'; $_REQUEST['hide_button_list'] = 1; $_REQUEST['hide_custom_links'] = '1'; ?>
" type="button" title="" value="">