GetSearchesForUser($User->Id()); # if no saved searches found if (count($Searches) < 1) { $Who = AmEditingMySelf() ? "You don't": "This user doesn't"; # add message indicating no saved searches ?>
have any saved searches.
HasPriv(PRIV_RESOURCEADMIN)) { $FreqList = SavedSearch::GetSearchFrequencyList(); } else { $FreqList = SavedSearch::GetSearchFrequencyList(SavedSearch::SEARCHFREQ_HOURLY); } # determine if saved search mailings are enabled $MailingsEnabled = $GLOBALS["SysConfig"]->UserAgentsEnabled(); # add table row for each saved search foreach ($Searches as $SearchId => $Search) { $SafeSearchId = defaulthtmlentities($SearchId); $SafeEncodedSearchId = defaulthtmlentities(urlencode($SearchId)); $SafeSearchName = defaulthtmlentities($Search->SearchName()); $SafeSearchGroups = $Search->GetSearchGroupsAsUrlParameters(); ?>
View Edit
Mailing Frequency: Frequency()); ?>
GetResource(); foreach ($Fields as $Field) { # skip fields the user isn't allowed to edit if (!$Resource->UserCanEditField($GLOBALS["G_User"], $Field)) { continue; } $SafeDisplayName = defaulthtmlentities($Field->GetDisplayName()); $IsTallRow = $Field->Type() === MetadataSchema::MDFTYPE_FILE || $Field->Type() === MetadataSchema::MDFTYPE_IMAGE; ?>
> :
SignalEvent( "EVENT_APPEND_HTML_TO_FORM", array("PageName" => "EditUser", "FormName"=>"UserInformation", "Labels" => array(), "InputElements" => array(), "Notes" => array())); } # ----- MAIN ----------------------------------------------------------------- ?>

# Edit User Information

IsHookedEvent("EVENT_USER_PASSWORD_CHANGED"); $SafeLastLogin = defaulthtmlentities(GetPrettyTimestamp( $UserToEdit->Get("LastLoginDate"), TRUE, "(never logged in)", FALSE)); $CustomFields = CWUser::GetCustomUserFields(); $HasCustomFields = count($CustomFields) > 0; $AdditionalHtml = GetAdditionalFormHtml(); ?>

Login Information
User Name | Get("UserName")); ?>
Password | (edit your own password on the user preferences page)
> | Change Password | (must be at least 6 characters long) The `EVENT_USER_PASSWORD_CHANGED` event won't be called because the old password isn't specified here, which means that changing the password from this page could cause inconsistencies, especially for user syncing plugins. There is a least one plugin that hooks into that event, so have the user change his or her password on the user preferences page, if at all possible.
Last Logged In |
Access Information
IsActivated()) { ?>
Disable User | /> | (you cannot disable your own account)
Activate Account |
Access Privileges | Get("UserId") == $User->Get("UserId") && $User->HasPriv(PRIV_SYSADMIN)) { ?> Note: You cannot disable the system or user account administration privileges from your own account.
Account Information
Real Name |
E-mail |
Web Site |
Address |
Address Cont'd |
City |
State |
Zip Code |
Country |
Additional Settings
Saved Searches

" . PrintRequestedUserName() . "." : $Message .= "."; ?>

Please return to the user editing page and re-enter the user name.