http://nucleuscms.org/license.txt GNU General Public License Copyright (C) 2002-2007 The Nucleus Group
Definition at line 21 of file MEMBER.php.
MEMBER::MEMBER | ( | ) |
& MEMBER::createFromName | ( | $ | displayname | ) |
Definition at line 46 of file MEMBER.php.
References $displayname, and MEMBER().
Referenced by ACTION::forgotPassword().
& MEMBER::createFromID | ( | $ | id | ) |
Definition at line 53 of file MEMBER.php.
Referenced by ADMIN::action_changemembersettings(), ADMIN::action_editmembersettings(), ADMIN::action_memberdelete(), ADMIN::action_teamchangeadmin(), ADMIN::action_teamdelete(), BLOG::addTeamMember(), ADMIN::deleteOneMember(), ADMIN::deleteOneTeamMember(), and MANAGER::getMember().
MEMBER::readFromName | ( | $ | displayname | ) |
Definition at line 59 of file MEMBER.php.
References $displayname, and read().
Referenced by cookielogin(), and login().
MEMBER::readFromID | ( | $ | id | ) |
MEMBER::login | ( | $ | login, | |
$ | password | |||
) |
Tries to login as a given user. Returns true when succeeded, returns false when failed
Definition at line 71 of file MEMBER.php.
References $password, checkPassword(), isLoggedIn(), and readFromName().
MEMBER::cookielogin | ( | $ | login, | |
$ | cookiekey | |||
) |
Definition at line 82 of file MEMBER.php.
References $cookiekey, checkCookieKey(), isLoggedIn(), and readFromName().
MEMBER::logout | ( | ) |
Definition at line 92 of file MEMBER.php.
MEMBER::isLoggedIn | ( | ) |
Definition at line 96 of file MEMBER.php.
Referenced by cookielogin(), getNotifyFromMailAddress(), and login().
MEMBER::read | ( | $ | where | ) |
Definition at line 100 of file MEMBER.php.
References $query, mysql_fetch_object(), mysql_num_rows(), setAdmin(), setCanLogin(), setCookieKey(), setDisplayName(), setEmail(), setLanguage(), setNotes(), setRealName(), setURL(), and sql_query().
Referenced by readFromID(), and readFromName().
MEMBER::isBlogAdmin | ( | $ | blogid | ) |
Returns true if member is an admin for the given blog (returns false if not a team member)
Definition at line 127 of file MEMBER.php.
References $blogid, $query, getID(), mysql_num_rows(), mysql_result(), and sql_query().
Referenced by blogAdminRights(), canAlterComment(), and canAlterItem().
MEMBER::blogAdminRights | ( | $ | blogid | ) |
Definition at line 138 of file MEMBER.php.
References $blogid, isAdmin(), and isBlogAdmin().
Referenced by canAddItem(), and canUpdateItem().
MEMBER::teamRights | ( | $ | blogid | ) |
Definition at line 143 of file MEMBER.php.
References $blogid, isAdmin(), and isTeamMember().
Referenced by canAddItem(), and canUpdateItem().
MEMBER::isTeamMember | ( | $ | blogid | ) |
Returns true if this member is a team member of the given blog
Definition at line 150 of file MEMBER.php.
References $blogid, $query, getID(), mysql_num_rows(), and sql_query().
Referenced by teamRights().
MEMBER::canAlterComment | ( | $ | commentid | ) |
Returns true if this member can edit/delete a commentitem. This can be in the following cases:
member is the author of the comment
Definition at line 166 of file MEMBER.php.
References $query, getID(), isAdmin(), isBlogAdmin(), mysql_fetch_object(), sql_query(), and sql_table().
MEMBER::canAlterItem | ( | $ | itemid | ) |
Returns true if this member can edit/delete an item. This is true in the following cases: - member is a super-admin
member is admin of the the associated blog
Definition at line 184 of file MEMBER.php.
References $itemid, $query, getID(), isAdmin(), isBlogAdmin(), mysql_fetch_object(), and sql_query().
Referenced by canUpdateItem().
MEMBER::canUpdateItem | ( | $ | itemid, | |
$ | newcat | |||
) |
returns true if this member can move/update an item to a given category, false if not (see comments fot the tests that are executed)
itemid | ||
newcat | (can also be of form 'newcat-x' with x=blogid) |
Definition at line 200 of file MEMBER.php.
References $blogid, $itemid, $manager, blogAdminRights(), canAlterItem(), getBlogIDFromCatID(), getBlogIDFromItemID(), getID(), quickQuery(), sql_table(), and teamRights().
MEMBER::canAddItem | ( | $ | catid | ) |
Definition at line 250 of file MEMBER.php.
References $blogid, $catid, $manager, blogAdminRights(), getBlogIDFromCatID(), and teamRights().
MEMBER::canBeDeleted | ( | ) |
Return true if member can be deleted. This means that there are no items posted by the member left
Definition at line 278 of file MEMBER.php.
References getID(), mysql_num_rows(), sql_query(), and sql_table().
MEMBER::setCookies | ( | $ | shared = 0 |
) |
Sets the cookies for the member
shared | set this to 1 when using a shared computer. Cookies will expire at the end of the session in this case. |
Definition at line 290 of file MEMBER.php.
References $CONF, $shared, getCookieKey(), and getDisplayName().
MEMBER::sendActivationLink | ( | $ | type, | |
$ | extra = '' | |||
) |
Definition at line 306 of file MEMBER.php.
References $CONF, $url, ACTIONLOG::add(), TEMPLATE::fill(), generateActivationEntry(), getDisplayName(), getEmail(), mb_internal_encoding(), mb_language(), and mb_send_mail().
MEMBER::getAdminBlogs | ( | ) |
Returns an array of all blogids for which member has admin rights
Definition at line 358 of file MEMBER.php.
References $query, getID(), isAdmin(), mysql_fetch_object(), mysql_num_rows(), and sql_query().
MEMBER::getNotifyFromMailAddress | ( | $ | suggest = "" |
) |
Returns an email address from which notification of commenting/karma voting can be sent. A suggestion can be given for when the member is not logged in
Definition at line 380 of file MEMBER.php.
References $CONF, getDisplayName(), getEmail(), isLoggedIn(), and isValidMailAddress().
MEMBER::write | ( | ) |
Write data to database
Definition at line 394 of file MEMBER.php.
References $query, canLogin(), getCookieKey(), getDisplayName(), getEmail(), getID(), getLanguage(), getNotes(), getPassword(), getRealName(), getURL(), isAdmin(), and sql_query().
Referenced by newCookieKey().
MEMBER::checkPassword | ( | $ | pw | ) |
Definition at line 411 of file MEMBER.php.
References $pw, and getPassword().
Referenced by login().
MEMBER::checkCookieKey | ( | $ | key | ) |
MEMBER::getRealName | ( | ) |
MEMBER::setRealName | ( | $ | name | ) |
MEMBER::getEmail | ( | ) |
Definition at line 427 of file MEMBER.php.
Referenced by getNotifyFromMailAddress(), sendActivationLink(), and write().
MEMBER::setEmail | ( | $ | ) |
MEMBER::getPassword | ( | ) |
MEMBER::setPassword | ( | $ | pwd | ) |
Definition at line 439 of file MEMBER.php.
MEMBER::getCookieKey | ( | ) |
Definition at line 443 of file MEMBER.php.
Referenced by checkCookieKey(), setCookies(), and write().
MEMBER::newCookieKey | ( | ) |
Generate new cookiekey, save it, and return it
Definition at line 450 of file MEMBER.php.
References write().
MEMBER::setCookieKey | ( | $ | val | ) |
MEMBER::getURL | ( | ) |
MEMBER::setURL | ( | $ | site | ) |
MEMBER::getLanguage | ( | ) |
MEMBER::setLanguage | ( | $ | lang | ) |
MEMBER::setDisplayName | ( | $ | nick | ) |
MEMBER::getDisplayName | ( | ) |
Definition at line 481 of file MEMBER.php.
Referenced by getNotifyFromMailAddress(), sendActivationLink(), setCookies(), and write().
MEMBER::isAdmin | ( | ) |
Definition at line 485 of file MEMBER.php.
Referenced by blogAdminRights(), canAlterComment(), canAlterItem(), getAdminBlogs(), teamRights(), and write().
MEMBER::setAdmin | ( | $ | val | ) |
MEMBER::canLogin | ( | ) |
MEMBER::setCanLogin | ( | $ | val | ) |
MEMBER::getNotes | ( | ) |
MEMBER::setNotes | ( | $ | val | ) |
MEMBER::getID | ( | ) |
Definition at line 509 of file MEMBER.php.
Referenced by canAlterComment(), canAlterItem(), canBeDeleted(), canUpdateItem(), generateActivationEntry(), getAdminBlogs(), isBlogAdmin(), isTeamMember(), and write().
MEMBER::exists | ( | $ | name | ) |
Definition at line 514 of file MEMBER.php.
References mysql_num_rows(), sql_query(), and sql_table().
Referenced by ADMIN::action_changemembersettings(), create(), ACTION::forgotPassword(), and isNameProtected().
MEMBER::existsID | ( | $ | id | ) |
Definition at line 520 of file MEMBER.php.
References $id, mysql_num_rows(), sql_query(), and sql_table().
Referenced by selector().
MEMBER::isNameProtected | ( | $ | name | ) |
Definition at line 526 of file MEMBER.php.
References exists().
Referenced by COMMENTS::addComment().
MEMBER::create | ( | $ | name, | |
$ | realname, | |||
$ | password, | |||
$ | email, | |||
$ | url, | |||
$ | admin, | |||
$ | canlogin, | |||
$ | notes | |||
) |
Definition at line 536 of file MEMBER.php.
References $admin, $canlogin, $email, $notes, $password, $query, $realname, $url, ACTIONLOG::add(), exists(), isValidDisplayName(), isValidMailAddress(), and sql_query().
Referenced by ADMIN::action_memberadd(), and ACTION::createAccount().
MEMBER::getActivationInfo | ( | $ | key | ) |
Returns activation info for a certain key (an object with properties vkey, vmember, ...) (static)
Definition at line 580 of file MEMBER.php.
References $query, mysql_fetch_object(), mysql_num_rows(), sql_query(), and sql_table().
Referenced by ADMIN::_showActivationPage(), and ADMIN::action_activatesetpwd().
MEMBER::generateActivationEntry | ( | $ | type, | |
$ | extra = '' | |||
) |
Creates an account activation key
$type | one of the following values (determines what to do when activation expires) 'register' (new member registration) 'forgot' (forgotton password) 'addresschange' (member address has changed) | |
$extra | extra info (needed when validation link expires) addresschange -> old email address |
Definition at line 602 of file MEMBER.php.
References $query, canLogin(), cleanupActivationTable(), getID(), sql_query(), and sql_table().
Referenced by sendActivationLink().
MEMBER::activate | ( | $ | key | ) |
Inidicates that an activation link has been clicked and any forms displayed there have been successfully filled out.
Definition at line 655 of file MEMBER.php.
Referenced by ADMIN::_showActivationPage(), and ADMIN::action_activatesetpwd().
MEMBER::cleanupActivationTable | ( | ) |
Cleans up entries in the activation table. All entries older than 2 days are removed. (static)
Definition at line 694 of file MEMBER.php.
References $DIR_LIBS, ADMIN::deleteOneMember(), mysql_fetch_object(), sql_query(), and sql_table().
Referenced by ADMIN::_showActivationPage(), ADMIN::action_activatesetpwd(), and generateActivationEntry().
MEMBER::$loggedin = 0 |
Definition at line 24 of file MEMBER.php.
MEMBER::$password |
MEMBER::$cookiekey |
MEMBER::$id = -1 |
Definition at line 30 of file MEMBER.php.
Referenced by createFromID(), existsID(), and readFromID().
MEMBER::$realname |
MEMBER::$displayname |
MEMBER::$email |
MEMBER::$url |
MEMBER::$language = '' |
Definition at line 35 of file MEMBER.php.
MEMBER::$admin = 0 |
MEMBER::$canlogin = 0 |
MEMBER::$notes |