18 $current_password =
get_input(
'current_password', null,
false);
33 'username' =>
$user->username,
34 'password' => $current_password
215 $default_access =
get_input(
'default_access');
225 $current_default_access =
$user->getPrivateSetting(
'elgg_default_access');
226 if ($default_access !== $current_default_access) {
227 if (
$user->setPrivateSetting(
'elgg_default_access', $default_access)) {
258 'name' =>
'1_account',
259 'text' =>
elgg_echo(
'usersettings:user:opt:linktext'),
260 'href' =>
"settings/user/{$user->username}",
261 'section' =>
'configure',
262 'contexts' => array(
'settings'),
266 'name' =>
'1_plugins',
267 'text' =>
elgg_echo(
'usersettings:plugins:opt:linktext'),
268 'href' =>
"settings/plugins/{$user->username}",
269 'section' =>
'configure',
270 'contexts' => array(
'settings'),
274 'name' =>
'1_statistics',
275 'text' =>
elgg_echo(
'usersettings:statistics:opt:linktext'),
276 'href' =>
"settings/statistics/{$user->username}",
277 'section' =>
'configure',
278 'contexts' => array(
'settings'),
294 if (!isset($page[0])) {
298 if (isset($page[1])) {
311 $path = $CONFIG->path .
"pages/settings/statistics.php";
315 $path = $CONFIG->path .
"pages/settings/tools.php";
318 $path = $CONFIG->path .
"pages/settings/account.php";
349 elgg_extend_view(
'forms/account/settings',
'core/settings/account/name', 100);
350 elgg_extend_view(
'forms/account/settings',
'core/settings/account/password', 100);
351 elgg_extend_view(
'forms/account/settings',
'core/settings/account/email', 100);
352 elgg_extend_view(
'forms/account/settings',
'core/settings/account/language', 100);
353 elgg_extend_view(
'forms/account/settings',
'core/settings/account/default_access', 100);
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
elgg_push_breadcrumb($title, $link=null)
Adds a breadcrumb to the breadcrumbs stack.
_elgg_user_settings_page_handler($page)
Page handler for user settings.
get_user_by_email($email)
Get an array of users from an email address.
_elgg_set_user_language()
Set a user's language.
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
if($guid==elgg_get_logged_in_user_guid()) $name
_elgg_user_settings_menu_setup()
Set up the menu for user settings.
elgg_register_plugin_hook_handler($hook, $type, $callback, $priority=500)
Register a callback as a plugin hook handler.
pam_auth_userpass(array $credentials=array())
Hook into the PAM system which accepts a username and password and attempts to authenticate it agains...
elgg_set_page_owner_guid($guid)
Set the guid of the entity that owns this page.
get_user_by_username($username)
Get user by username.
elgg_strlen()
Wrapper function for mb_strlen().
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
_elgg_set_user_name()
Set a user's display name.
get_user($guid)
Get a user object from a GUID.
validate_password($password)
Simple validation of a password.
elgg_extend_view($view, $view_extension, $priority=501, $viewtype= '')
Extends a view with another view.
_elgg_set_user_default_access()
Set a user's default access level.
elgg require
Throw an error if the required package isn't present.
elgg_register_page_handler($identifier, $function)
Registers a page handler for a particular identifier.
_elgg_set_user_email()
Set a user's email address.
elgg global
Pointer to the global context.
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
_elgg_user_settings_init()
Initialize the user settings library.
_elgg_set_user_password()
Set a user's password.
elgg_register_menu_item($menu_name, $menu_item)
Register an item for an Elgg menu.
generate_user_password(ElggUser $user, $password)
Hash a password for storage.
_elgg_generate_password_salt()
Generate an 8 character Base64 URL salt for the password.
elgg system_message
Wrapper function for system_messages.
elgg_register_event_handler($event, $object_type, $callback, $priority=500)
Register a callback as an Elgg event handler.
elgg register_error
Wrapper function for system_messages.
elgg_get_logged_in_user_entity()
Return the current logged in user, or null if no user is logged in.
elgg_register_action($action, $filename="", $access= 'logged_in')
Registers an action.
$user_guid
Avatar remove action.
$language
$vars['language'] $vars['lc'] if present, client will be sent long expires headers ...
elgg_get_logged_in_user_guid()
Return the current logged in user by guid.