* SPDX-License-Identifier: AGPL-3.0-only
************************************/
require_once('modules/Users/Users.php');
require_once('modules/Settings/AuditTrail.php'); // crmv@202301
global $current_user;
global $theme;
global $default_language;
global $adb;
global $currentModule;
global $app_strings;
global $mod_strings;
global $table_prefix;
$focus = CRMEntity::getInstance('Users');
if(!empty($_REQUEST['record']))
{
$focus->retrieve_entity_info($_REQUEST['record'],'Users');
$focus->id = $_REQUEST['record'];
}
else
{
echo "
";
}
if( $focus->user_name == "" )
{
if(is_admin($current_user))
{
echo "
';
$buttons .= '
'.$app_strings['LBL_DUPLICATE_BUTTON_LABEL'].'
';
$buttons .= '
';
}
$smarty->assign('DUPLICATE_BUTTON',$buttons);
//done so that only the admin user can see the customize tab button
if($_REQUEST['record'] != $current_user->id)
{
$buttons = "