Home
last modified time | relevance | path

Searched refs:user (Results 1 - 25 of 28) sorted by relevance

12

/dokuwiki/inc/Subscriptions/
H A DSubscriberRegexBuilder.php13 * @param string|array $user
22 public function buildRegex($user = null, $style = null, $data = null)
25 $user = (array)$user; variable
30 $user = array_filter(array_map('trim', $user)); variable
34 // user names are encoded
35 $user = array_map('auth_nameencode', $user); variable
38 $user variable
43 $user = join('|', $user); global() variable
56 $user = '\\S+'; global() variable
[all...]
H A DSubscriberManager.php25 * This will automatically overwrite any existent subscription for the given user on this
28 * @throws Exception when user or style is empty
32 * @param string $user
38 public function add($id, $user, $style, $data = '')
45 $this->remove($id, $user);
47 $user = auth_nameencode(trim($user)); variable
51 if (!$user) {
52 throw new Exception('no subscription user given');
61 $line = "$user
124 $user = $INPUT->server->str('REMOTE_USER'); global() variable
[all...]
H A DBulkSubscriptionSender.php43 // remember current user info
52 foreach ($users as $user => $info) {
62 // Work as the user to make sure ACLs apply correctly
63 $USERINFO = $auth->getUserData($user);
64 $INPUT->server->set('REMOTE_USER', $user);
89 ($INPUT->server->str('REMOTE_USER') === $rev['user'] ||
121 $subscriberManager->add($target, $user, $style, time());
126 // restore current user info
/dokuwiki/lib/plugins/authad/adLDAP/classes/
H A DadLDAPExchange.php57 * @param string $username The username of the user to add the Exchange account to
58 * @param array $storageGroup The mailbox, Exchange Storage Group, for the user account, this must be a full CN
60 * @param string $emailAddress The primary email address to add to this user
91 $result = $this->adldap->user()->modify($username, $attributes, $isGUID);
103 * @param string $username The username of the user to add the X400 to to
119 // Find the dn of the user
120 $user = $this->adldap->user()->info($username, array("cn","proxyaddresses"), $isGUID); variable
121 if ($user[0]["dn"] === NULL) { return false; }
122 $userDn = $user[
163 $user = $this->adldap->user()->info($username, array("cn","proxyaddresses"), $isGUID); global() variable
226 $user = $this->adldap->user()->info($username, array("cn","proxyaddresses"), $isGUID); global() variable
266 $user = $this->adldap->user()->info($username, array("cn","proxyaddresses"), $isGUID); global() variable
310 $user = $this->adldap->contact()->info($distinguishedName, array("cn","displayname")); global() variable
[all...]
H A DadLDAPGroups.php91 * Add a user to a group
93 * @param string $group The group to add the user to
94 * @param string $user The user to add to the group
98 public function addUser($group, $user, $isGUID = false)
100 // Adding a user is a bit fiddly, we need to get the full DN of the user
103 // Find the user's dn
104 $userDn = $this->adldap->user()->dn($user,
[all...]
/dokuwiki/lib/plugins/authplain/
H A Dauth.php14 /** @var array user cache */
57 * Check user+password
59 * Checks if the given user exists and the given
63 * @param string $user
67 public function checkPass($user, $pass)
69 $userinfo = $this->getUserData($user);
72 return auth_verifyPassword($pass, $this->users[$user]['pass']);
76 * Return user info
78 * Returns info about the given user needs to contain
81 * name string full name of the user
[all...]
/dokuwiki/lib/plugins/authad/
H A Dauth.php28 * // warn user about expiring password this many days in advance:
60 * @var array user listing cache
108 // trust the incoming user
141 * Check user+password [required auth function]
143 * Checks if the given user exists and the given
148 * @param string $user
152 public function checkPass($user, $pass)
155 $_SERVER['REMOTE_USER'] == $user &&
159 $adldap = $this->initAdLdap($this->getUserDomain($user));
163 return $adldap->authenticate($this->getUserName($user),
326 $user = \\dokuwiki\\Utf8\\PhpString::strtolower(trim($user)); global() variable
[all...]
/dokuwiki/inc/Extension/
H A DAuthPlugin.php35 'logout' => true, // can the user logout again? (eg. not possible with HTTP auth)
89 // can at least one of the user's properties be changed?
117 * example for enforcing a user name schema.
149 * Log off the current user [ OPTIONAL ]
167 * authenticate a user - all other DokuWiki internals
182 * the function needs to check if the user is logged in
191 * @param string $user Username
197 public function trustExternal($user, $pass, $sticky = false)
211 $_SERVER['REMOTE_USER'] = $user;
212 $_SESSION[DOKU_COOKIE]['auth']['user']
[all...]
/dokuwiki/lib/plugins/acl/
H A Dremote.php21 'return' => 'Array of ACLs {scope, user, permission}',
42 * @return dictionary {Scope: ACL}, where ACL = dictionnary {user/group: permissions_int}
62 * @param string $user
67 public function addAcl($scope, $user, $level)
78 return $apa->addOrUpdateACL($scope, $user, $level);
85 * @param string $user
89 public function delAcl($scope, $user)
100 return $apa->deleteACL($scope, $user);
H A Dadmin.php51 * handle user request
85 // user or group choosen?
449 $user = ''; variable
452 $user = $who; variable
453 $info = $auth->getUserData($user);
462 $perm = auth_aclcheck($check, $user, $groups);
481 if ($user) {
601 //0 is pagename, 1 is user, 2 is acl
694 * Returns the permission which were set for exactly the given user/group
728 // first make sure we won't end up with 2 lines matching this user an
[all...]
/dokuwiki/inc/
H A Dauth.php6 * a user by calling auth_login()
58 // degrade to unauthenticated user
88 // apply cleaning (auth specific user names, remove control chars)
103 'user' => $INPUT->str('u'),
118 * Loads the ACL setup and handle user wildcards
140 // substitute user wildcard first (its 1:1)
142 // if user is not logged in, this ACL line is meaningless - skip it
151 // if user is not logged in, grps is empty, no output will be added (i.e. skipped)
175 $evdata['user'],
183 * This tries to login the user base
469 $user = $INPUT->server->str('REMOTE_USER'); global() variable
537 $user = \\dokuwiki\\Utf8\\PhpString::strtolower($user); global() variable
540 $user = $auth->cleanUser($user); global() variable
619 $user =& $data['user']; global() variable
640 $user = \\dokuwiki\\Utf8\\PhpString::strtolower($user); global() variable
643 $user = auth_nameencode($auth->cleanUser($user)); global() variable
837 $user = $auth->cleanUser($user); global() variable
1109 $user = io_readfile($tfile); global() variable
1159 $user = trim($auth->cleanUser($INPUT->post->str('login'))); global() variable
1283 $user = base64_decode($user); global() variable
[all...]
H A Ddeprecated.php391 * @param string|array $user
398 public function subscribers($page, $user = null, $style = null, $data = null) {
401 return $manager->subscribers($page, $user, $style, $data);
407 * This will automatically overwrite any existent subscription for the given user on this
412 * @param string $user
415 * @throws Exception when user or style is empty
420 public function add($id, $user, $style, $data = '') {
423 return $manager->add($id, $user, $style, $data);
434 * @param string|array $user
441 public function remove($id, $user
[all...]
H A Dchangelog.php26 $info['user'] = $tmp[4]; // user name
74 $user = (!$flagExternalEdit)?$INPUT->server->str('REMOTE_USER'):''; variable
87 'user' => $user,
107 if ($user){
109 $meta['user'] = $user;
116 if ($user) $meta['contributor'][$user]
166 $user = $INPUT->server->str('REMOTE_USER'); global() variable
[all...]
/dokuwiki/inc/Action/
H A DResendpwd.php81 // we're in token phase - get user info from token
97 $user = io_readfile($tfile); variable
98 $userinfo = $auth->getUserData($user, $requireGroups = false);
104 if (!$conf['autopasswd']) { // we let the user choose a password
115 if (!$auth->triggerUserMod('modify', array($user, array('pass' => $pass)))) {
122 $pass = auth_pwgen($user);
123 if (!$auth->triggerUserMod('modify', array($user, array('pass' => $pass)))) {
128 if (auth_sendPassword($user, $pass)) {
147 $user = trim($auth->cleanUser($INPUT->post->str('login'))); variable
150 $userinfo = $auth->getUserData($user,
[all...]
/dokuwiki/lib/plugins/usermanager/
H A Dadmin.php7 * This version of the user manager has been modified to only work with
24 protected $filter = array(); // user selection filter(s)
25 protected $start = 0; // index of first user to be displayed
26 protected $last = 0; // index of the last user to be displayed
28 protected $edit_user = ''; // set to user selected for editing
32 protected $lastdisabled = false; // set to true if last user is unknown and last button is hence buggy
109 * Handle user request
248 $this->htmlFilter('user')."\" /></td>");
260 foreach ($user_list as $user => $userinfo) {
270 ptln(" <td class=\"centeralign\"><input type=\"checkbox\" name=\"delete[".hsc($user)
758 $user = $this->auth->cleanUser(preg_replace('/.*[:\\/]/', '', $param)); global() variable
917 $user = array(); global() variable
[all...]
H A Dcli.php33 $options->registerOption('verbose', 'Show detailed user information', 'v', false, 'list');
36 $options->registerCommand('add', 'Add an user to auth backend');
42 $options->registerOption('notify', 'Notify user', 'n', false, 'add');
45 $options->registerCommand('delete', 'Deletes user(s) from auth backend');
49 $options->registerCommand('addtogroup', 'Add user to group(s)');
54 $options->registerCommand('removefromgroup', 'Remove user from group(s)');
127 foreach ($list as $username => $user) {
130 array_push($content, $user['name']);
131 array_push($content, $user['mail']);
132 array_push($content, implode(", ", $user['grp
[all...]
/dokuwiki/lib/plugins/authldap/
H A Dauth.php18 protected $bound = 0; // 0: anonymous, 1: user, 2: superuser
45 * Check user+password
47 * Checks if the given user exists and the given
51 * @param string $user
56 public function checkPass($user, $pass)
62 // indirect user bind
77 array('user' => $user, 'server' => $this->getConf('server'))
79 } elseif (strpos($this->getConf('usertree'), '%{user}')) {
80 // direct user bin
[all...]
/dokuwiki/lib/plugins/authpdo/
H A Dauth.php45 $this->getConf('user'),
63 'select-user',
64 'select-user-groups',
66 'insert-user',
75 'select-user',
76 'select-user-groups',
79 'delete-user'
86 'select-user',
87 'select-user-groups',
88 'update-user
[all...]
/dokuwiki/bin/
H A Ddwpage.php33 'user',
34 'work as this user. defaults to current CLI user',
154 $this->username = $options->getOpt('user', $this->getUser());
278 $this->error("Page $wiki_id is already locked by another user");
301 $this->error("Page $wiki_id is locked by another user");
330 * Get the current user's username from the environment
335 $user = getenv('USER'); variable
336 if(empty ($user)) {
337 $user variable
342 $user = 'admin'; global() variable
[all...]
H A Dgittool.php313 $user = $m[1]; variable
315 return 'https://github.com/' . $user . '/' . $repo . '.git';
320 $user = $m[1]; variable
322 if(!$repo) $repo = $user;
324 return 'https://git.gitorious.org/' . $user . '/' . $repo . '.git';
329 $user = $m[1]; variable
331 return 'https://bitbucket.org/' . $user . '/' . $repo . '.git';
/dokuwiki/
H A Dfeed.php411 // add user
412 # FIXME should the user be pulled from metadata as well?
413 $user = @$ditem['user']; // the @ spares time repeating lookup variable
414 if(blank($user)) {
418 $item->author = $user;
419 $item->authorEmail = $user . '@undisclosed.example.com';
421 // get real user name if configured
423 $userInfo = $auth->getUserData($user);
431 $item->author = $user;
[all...]
/dokuwiki/inc/Remote/
H A DApiCore.php154 'doc' => 'Returns the permissions of a given wiki page. By default, for current user/groups'
494 'author' => is_array($info) ? (($info['user']) ? $info['user'] : $info['ip']) : null,
667 * Returns the permissions of a given wiki page for the current user or another user
670 * @param string|null $user username
674 public function aclCheck($id, $user = null, $groups = null)
680 if ($user === null) {
684 $userinfo = $auth->getUserData($user);
691 return auth_aclcheck($id, $user,
[all...]
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP/
H A DStream.php202 $user = $context[$scheme]['username']; variable
211 if (!isset($user) || !isset($pass)) {
216 if (isset(self::$instances[$host][$port][$user][(string) $pass])) {
217 $this->sftp = self::$instances[$host][$port][$user][(string) $pass];
224 user_error('fopen(): failed to call user notifier', E_USER_WARNING);
233 if (!$this->sftp->login($user, $pass)) {
239 if (!$this->sftp->login($user, $pass)) {
243 self::$instances[$host][$port][$user][(string) $pass] = $this->sftp;
/dokuwiki/vendor/simplepie/simplepie/library/SimplePie/Parse/
H A DDate.php574 * Array of user-added callback methods
582 * Array of user-added callback methods
587 var $user = array(); variable
645 foreach ($this->user as $method)
675 $this->user[] = $callback;
/dokuwiki/inc/HTTP/
H A DHTTPClient.php46 public $user; variable
184 if(isset($uri['user'])) $this->user = $uri['user'];
240 if($this->user) {
241 $headers['Authorization'] = 'Basic '.base64_encode($this->user.':'.$this->pass);

Completed in 39 milliseconds

12