Lines Matching full:input

42     /* @var Input $INPUT */
43 global $INPUT;
51 if ($INPUT->server->str('REMOTE_USER') === '') {
52 $INPUT->server->remove('REMOTE_USER');
79 $INPUT->set('http_credentials', false);
80 if (!$conf['rememberme']) $INPUT->set('r', false);
84 $header = $INPUT->server->str('HTTP_AUTHORIZATION') ?: $INPUT->server->str('REDIRECT_HTTP_AUTHORIZATION');
91 if (!$INPUT->str('u') && empty($_COOKIE[DOKU_COOKIE]) && !empty($INPUT->server->str('PHP_AUTH_USER'))) {
92 $INPUT->set('u', $INPUT->server->str('PHP_AUTH_USER'));
93 $INPUT->set('p', $INPUT->server->str('PHP_AUTH_PW'));
94 $INPUT->set('http_credentials', true);
99 $INPUT->set('u', $auth->cleanUser(stripctl($INPUT->str('u'))));
100 $INPUT->set('p', stripctl($INPUT->str('p')));
107 $ok = $auth->trustExternal($INPUT->str('u'), $INPUT->str('p'), $INPUT->bool('r'));
114 'user' => $INPUT->str('u'),
115 'password' => $INPUT->str('p'),
116 'sticky' => $INPUT->bool('r'),
117 'silent' => $INPUT->bool('http_credentials')
140 /* @var Input $INPUT */
141 global $INPUT;
156 if (!$INPUT->server->has('REMOTE_USER')) continue;
158 $id = str_replace('%USER%', cleanID($INPUT->server->str('REMOTE_USER')), $id);
159 $rest = str_replace('%USER%', auth_nameencode($INPUT->server->str('REMOTE_USER')), $rest);
188 global $INPUT;
232 $INPUT->server->set('REMOTE_USER', $user);
294 /* @var Input $INPUT */
295 global $INPUT;
303 $INPUT->server->set('REMOTE_USER', $user);
334 $INPUT->server->set('REMOTE_USER', $user);
363 /* @var Input $INPUT */
364 global $INPUT;
371 $INPUT->server->str('HTTP_USER_AGENT'),
372 $INPUT->server->str('HTTP_ACCEPT_LANGUAGE'),
510 /* @var Input $INPUT */
511 global $INPUT;
524 $INPUT->server->remove('REMOTE_USER');
564 /* @var Input $INPUT */
565 global $INPUT;
570 if (!$INPUT->server->has('REMOTE_USER')) {
573 $user = $INPUT->server->str('REMOTE_USER');
578 if ($USERINFO && $user === $INPUT->server->str('REMOTE_USER')) {
628 * Note: all input should NOT be nameencoded.
686 /* @var Input $INPUT */
687 global $INPUT;
690 return auth_aclcheck($id, $INPUT->server->str('REMOTE_USER'), is_array($USERINFO) ? $USERINFO['grps'] : []);
990 global $INPUT;
992 if (!$INPUT->post->bool('save')) return false;
995 // gather input
996 $login = trim($auth->cleanUser($INPUT->post->str('login')));
997 $fullname = trim(preg_replace('/[\x00-\x1f:<>&%,;]+/', '', $INPUT->post->str('fullname')));
998 $email = trim(preg_replace('/[\x00-\x1f:<>&%,;]+/', '', $INPUT->post->str('email')));
999 $pass = $INPUT->post->str('pass');
1000 $passchk = $INPUT->post->str('passchk');
1062 /* @var Input $INPUT */
1063 global $INPUT;
1065 if (!$INPUT->post->bool('save')) return false;
1074 $changes['pass'] = $INPUT->post->str('newpass');
1075 $changes['name'] = $INPUT->post->str('fullname');
1076 $changes['mail'] = $INPUT->post->str('email');
1079 if ($changes['pass'] != $INPUT->post->str('passchk')) {
1115 if (!$auth->checkPass($INPUT->server->str('REMOTE_USER'), $INPUT->post->str('oldpass'))) {
1121 if (!$auth->triggerUserMod('modify', [$INPUT->server->str('REMOTE_USER'), &$changes])) {
1130 auth_setCookie($INPUT->server->str('REMOTE_USER'), $pass, (bool) $sticky);
1153 /* @var Input $INPUT */
1154 global $INPUT;
1156 if (!$INPUT->post->bool('delete')) return false;
1165 if (!$INPUT->post->bool('confirm_delete')) {
1171 if (!$auth->checkPass($INPUT->server->str('REMOTE_USER'), $INPUT->post->str('oldpass'))) {
1178 $deleted[] = $INPUT->server->str('REMOTE_USER');
1209 /* @var Input $INPUT */
1210 global $INPUT;
1217 $token = preg_replace('/[^a-f0-9]+/', '', $INPUT->str('pwauth'));
1225 $INPUT->remove('pwauth');
1231 $INPUT->remove('pwauth');
1244 $pass = $INPUT->str('pass');
1248 if ($pass != $INPUT->str('passchk')) {
1277 if (!$INPUT->post->bool('save')) return false;
1279 if (!$INPUT->post->str('login')) {
1283 $user = trim($auth->cleanUser($INPUT->post->str('login')));