bad_passwordSynopsis:
bad_password(
$arg
);
Check the given password, and either return a string explaining why the password is bad, or undef if the password is okay.
Arguments:
$argHashref containing at least a password element. Can also contain a u object and user, name, and e-mail elements.
Source:
cgi-bin/ljprotocol.plhtdocs/changepassword.bmlhtdocs/create.bmlhtdocs/update.bmlssldocs/changepassword.bmlcanonicalize_urlSynopsis:
canonicalize_url(
$url
);
Cleans up a URL into its canonical form.
Arguments:
$urlURL to be cleaned.
Source:
bin/maint/stats.plemailconfirmedSynopsis:
emailconfirmed(
$dbarg
$u
);
After a user has confirmed their e-mail address, this hook is called with a dbs/dbh and a user object. This is useful to update a database alias table which you also have your mail system using for address lookups.
Arguments:
$dbargEither a dbs or dbh resource object.
$uUser object.
Source:
htdocs/register.bmllogin_add_optsSynopsis:
login_add_opts(
%args
);
Appends options to the cookie value. Each option should be short, and preceded by a period.
Arguments:
%argsKeys
u — User object.form — Login form elements.opts — Hash reference of options to append to login cookie.
Source:
htdocs/login.bmllogin_formoptsSynopsis:
login_formopts(
%args
);
Returns extra HTML for login options on login.bml.
Arguments:
%argsHash of arguments.
Keys
ret — Scalar return reference.
Source:
htdocs/login.bmlmodify_login_menuSynopsis:
modify_login_menu(
%args
);
Modifies or resets entirely the web menu data structure that is sent to the client.
Arguments:
%argsHash of arguments.
Keys
menu — Menu item.u — User object.dbs — Resource object.user — Username string.
Source:
cgi-bin/ljprotocol.plname_capsSynopsis:
name_caps(
$cap
);
Returns the long name of the given capability bit.
Arguments:
$capCapability bit to check.
Source:
cgi-bin/ljlib.plcgi-bin/ljcapabilities.plname_caps_shortSynopsis:
name_caps_short(
$cap
);
Returns the short name of the given capability bit.
Arguments:
$capCapability bit to check.
Source:
cgi-bin/ljlib.plcgi-bin/ljcapabilities.plpost_changepasswordSynopsis:
post_changepassword(
%args
);
Action to take after changing password, before HTML is sent to to client (possibly to print HTTP headers directly).
Arguments:
%argsHash of arguments.
Keys
u — User object.dbs — Resource object.newpassword — New password.oldpassword — Old password.
Source:
htdocs/changepassword.bmlssldocs/changepassword.bmlpost_createSynopsis:
post_create(
%args
);
Action to take after creating an account.
Arguments:
%argsHash of arguments.
Keys
dbs — Resource object.user — Username string.userid — Integercode — Auth code, if in use.
Source:
cgi-bin/ljlib.plpost_loginSynopsis:
post_login(
%args
);
Action to take after logging in, before HTML is sent to to client (possibly to print HTTP headers directly).
Arguments:
%argsHash of arguments.
Keys
u — User object.form — Hash of form elements.expiretime — Used for cookies. Can either be a Unix timestamp, or '0' for session cookies.
Source:
htdocs/login.bmlhtdocs/talkread_do.bmlset_s2bml_langSynopsis:
set_s2bml_lang(
$ctx
$langref
);
Given an S2 Context, return the correct BML language id.
Arguments:
$ctxS2 Context.
$langrefLanguage id reference.
Source:
cgi-bin/LJ/S2.pmuserinfo_html_by_userSynopsis:
userinfo_html_by_user(
%args
);
Extra HTML to show next to username & id on userinfo.bml
Arguments:
%argsHash of arguments.
Keys
ret — Scalar return reference.u — User object.
Source:
htdocs/userinfo.bmluserinfo_rowsSynopsis:
userinfo_rows(
%args
);
Returns a two-element arrayref for a row on a userinfo page, containing first the left side label, then the body.
Arguments:
%argsHash of arguments.
Keys
dbr — Resource Object (read-only).u — User objectremote — Remote user object.
Source:
htdocs/userinfo.bmlvalidate_get_remoteSynopsis:
validate_get_remote(
%args
);
This hook lets you ignore the remote user's cookies or flag them as intentionally forged to LJ::get_remote(). If you return a true value, no action is taken. If you return false, LJ::get_remote() returns undef. You can optionally set $criterr to something true as well.
Arguments:
%argsHash of arguments
Keys
user — May be an empty string or undef.userid — May be 0dbs — Resource objectcaps — Capabilities.criterr — Scalar error reference.cookiesource — Sub reference which takes a cookie name and returns its value.
Source:
cgi-bin/ljlib.pl