Lines Matching defs:user
9 * - the user's real name is set to his login name
92 * Check user+password
94 * @param string $user the user name
98 public function checkPass($user, $pass) {
99 return ($user == $this->cleanUser($_SERVER['PHP_AUTH_USER']) && $pass == $_SERVER['PHP_AUTH_PW']);
103 * Return user info
105 * Returned info about the given user needs to contain
108 * name string full name of the user
109 * mail string email address of the user
110 * grps array list of groups the user is in
112 * @param string $user the user name
114 * @return array containing user data or false
116 public function getUserData($user, $requireGroups = true) {
119 $info['name'] = $user;
120 $info['mail'] = $user."@".$this->emaildomain;
122 if (in_array($user, $this->specialusers)) {
130 * Sanitize a given user name
132 * This function is applied to any user name that is given to
135 * @param string $user user name
136 * @return string the cleaned user name
138 public function cleanUser($user) {
139 if (preg_match($this->usernameregex, $user, $results)) {
142 return $user;