/dokuwiki/_test/tests/inc/ |
H A D | input.test.php | 44 $INPUT = new Input(); 48 $this->assertNotSame('foobar', $INPUT->str('zstring')); 49 $this->assertSame('foobar', $INPUT->filter()->str('zstring')); 50 $this->assertSame('bar', $INPUT->filter($filter)->str('foo')); 51 $this->assertSame('bar', $INPUT->filter()->str('znull', 'bar', true)); 52 … $this->assertNotSame('foobar', $INPUT->str('zstring')); // make sure original input is unmodified 54 $this->assertNotSame('foobar', $INPUT->get->str('zstring')); 55 $this->assertSame('foobar', $INPUT->get->filter()->str('zstring')); 56 $this->assertSame('bar', $INPUT->get->filter($filter)->str('foo')); 57 $this->assertSame('bar', $INPUT->get->filter()->str('znull', 'bar', true)); [all …]
|
H A D | auth_deleteprofile.test.php | 20 global $ACT, $INPUT, $conf, $auth; 35 $INPUT = new Input(); 45 global $ACT, $INPUT, $conf, $auth; 61 $INPUT = new Input(); 69 $INPUT->set('oldpass','password'); 70 $INPUT->post->set('oldpass','password'); 76 global $ACT, $INPUT, $conf, $auth; 91 $INPUT = new Input(); 100 global $ACT, $INPUT, $conf, $auth; 115 $INPUT = new Input(); [all …]
|
H A D | common_getGoogleQuery.test.php | 11 global $INPUT; 20 $INPUT = new Input(); 25 global $INPUT; 34 $INPUT = new Input();
|
/dokuwiki/lib/exe/ |
H A D | mediamanager.php | 13 global $INPUT; 17 if ($INPUT->str('msg1')) msg(hsc($INPUT->str('msg1')), 1); 18 if ($INPUT->str('err')) msg(hsc($INPUT->str('err')), -1); 22 if ($INPUT->str('delete')) { 23 $DEL = cleanID($INPUT->str('delete')); 26 } elseif ($INPUT->str('edit')) { 27 $IMG = cleanID($INPUT->str('edit')); 29 } elseif ($INPUT->str('img')) { 30 $IMG = cleanID($INPUT->str('img')); 33 $NS = cleanID($INPUT->str('ns')); [all …]
|
H A D | openapi.php | 7 global $INPUT; 9 if ($INPUT->has('spec')) { 62 if ($code['code'] === $last && !$INPUT->has('debug')) continue; 73 if ($INPUT->server->has('REMOTE_USER')) { 74 …echo 'You are currently logged in as <strong>' . hsc($INPUT->server->str('REMOTE_USER')) . '</stro…
|
H A D | ajax.php | 23 global $INPUT; 24 if ($INPUT->has('call')) { 25 $call = $INPUT->filter([Clean::class, 'stripspecials'])->str('call');
|
/dokuwiki/ |
H A D | doku.php | 9 * @global Input $INPUT 23 global $ACT, $INPUT, $QUERY, $ID, $REV, $DATE_AT, $IDX, 41 $INPUT->set('id', str_replace("\xC2\xAD", '', $INPUT->str('id'))); //soft-hyphen 42 $QUERY = trim($INPUT->str('q')); 45 $REV = $INPUT->int('rev'); 46 $DATE_AT = $INPUT->str('at'); 47 $IDX = $INPUT->str('idx'); 48 $DATE = $INPUT->int('date'); 49 $RANGE = $INPUT->str('range'); 50 $HIGH = $INPUT->param('s'); [all …]
|
H A D | feed.php | 10 * @global Input $INPUT 40 $INPUT->server->str('REMOTE_USER'), 41 $INPUT->server->str('HTTP_HOST'), 42 $INPUT->server->str('SERVER_PORT') 49 $depends['purge'] = $INPUT->bool('purge');
|
/dokuwiki/inc/ |
H A D | Ip.php | 182 global $INPUT, $conf; 184 $forwardedFor = $INPUT->server->str('HTTP_X_FORWARDED_FOR'); 191 $remoteAddr = $INPUT->server->str('REMOTE_ADDR'); 254 global $INPUT, $conf; 260 if (!empty($conf['realip']) && $INPUT->server->str('HTTP_X_REAL_IP')) { 261 $ips[] = $INPUT->server->str('HTTP_X_REAL_IP'); 268 $ips[] = $INPUT->server->str('REMOTE_ADDR'); 299 global $INPUT; 301 $remoteAddr = $INPUT->server->str('REMOTE_ADDR'); 302 if ($INPUT->server->str('HTTP_X_FORWARDED_HOST') && self::proxyIsTrusted($remoteAddr)) { [all …]
|
H A D | Ajax.php | 48 global $INPUT; 52 $query = $INPUT->post->str('q'); 53 if (empty($query)) $query = $INPUT->get->str('q'); 95 global $INPUT; 97 $query = cleanID($INPUT->post->str('q')); 98 if (empty($query)) $query = cleanID($INPUT->get->str('q')); 133 global $INPUT; 135 $ID = cleanID($INPUT->post->str('id')); 172 global $INPUT; 173 $id = cleanID($INPUT->str('id')); [all …]
|
H A D | auth.php | 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_AUTHORIZ… 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); [all …]
|
/dokuwiki/inc/Feed/ |
H A D | FeedCreatorOptions.php | 64 global $INPUT; 66 $this->options['type'] = $INPUT->valid( 72 $this->options['feed_mode'] = $INPUT->str('mode', 'recent'); 73 $this->options['link_to'] = $INPUT->valid( 78 $this->options['item_content'] = $INPUT->valid( 83 $this->options['namespace'] = $INPUT->filter('cleanID')->str('ns'); 84 $this->options['items'] = max(0, $INPUT->int('num', $conf['recent'])); 85 $this->options['show_minor'] = $INPUT->bool('minor'); 88 $this->options['only_new'] = $INPUT->bool('onlynewpages'); 89 $this->options['sort'] = $INPUT->valid( [all …]
|
/dokuwiki/inc/Action/ |
H A D | Recent.php | 28 global $INPUT; 29 $show_changes = $INPUT->str('show_changes'); 41 global $INPUT; 42 (new Ui\Recent($INPUT->extract('first')->int('first'), $this->showType))->show();
|
H A D | Search.php | 38 global $QUERY, $ID, $conf, $INPUT; 41 if ($ID !== $conf['start'] && !$INPUT->has('q')) { 42 parse_str($INPUT->server->str('QUERY_STRING'), $urlParts); 68 global $INPUT, $QUERY; 69 $after = $INPUT->str('min'); 70 $before = $INPUT->str('max'); 72 … $this->fullTextResults = ft_pageSearch($QUERY, $highlight, $INPUT->str('srt'), $after, $before); 83 global $conf, $INPUT, $QUERY, $ID; 85 if ($INPUT->bool('sf')) {
|
H A D | Resendpwd.php | 73 global $INPUT; 80 $token = preg_replace('/[^a-f0-9]+/', '', $INPUT->str('pwauth')); 88 $INPUT->remove('pwauth'); 94 $INPUT->remove('pwauth'); 107 $pass = $INPUT->str('pass'); 111 if ($pass != $INPUT->str('passchk')) { 140 if (!$INPUT->post->bool('save')) return false; 142 if (!$INPUT->post->str('login')) { 146 $user = trim($auth->cleanUser($INPUT->post->str('login')));
|
H A D | AbstractUserAction.php | 20 global $INPUT; 21 if ($INPUT->server->str('REMOTE_USER') === '') {
|
/dokuwiki/lib/plugins/authad/ |
H A D | action.php | 36 global $INPUT; 42 if ($INPUT->str('dom')) { 46 $usr = "$usr@" . $INPUT->str('dom'); 48 $INPUT->post->set('u', $usr); 61 global $INPUT; 76 if ($INPUT->has('u')) { 77 $usr = $auth->cleanUser($INPUT->str('u'));
|
/dokuwiki/lib/plugins/extension/ |
H A D | Gui.php | 30 global $INPUT; 32 $tab = $INPUT->str('tab', 'plugins', true); 49 global $INPUT; 57 if ($tab == 'search') $defaults['q'] = $INPUT->str('q');
|
H A D | admin.php | 23 global $INPUT; 34 …if (!$INPUT->post->has('fn') && !$INPUT->post->str('installurl') && !isset($_FILES['installfile'])… 40 $installer = new Installer($INPUT->post->bool('overwrite')); 42 foreach ($INPUT->post->arr('fn') as $action => $extensions) { 63 if ($INPUT->post->str('installurl')) { 64 $installer->installFromURL($INPUT->post->str('installurl'));
|
/dokuwiki/lib/plugins/popularity/ |
H A D | admin.php | 57 global $INPUT; 60 if ($INPUT->has('data')) { 61 $this->sentStatus = $this->helper->sendData($INPUT->str('data')); 67 $this->enableAutosubmit($INPUT->has('autosubmit')); 89 global $INPUT; 91 if (! $INPUT->has('data')) { 114 echo $this->buildForm('browser', $INPUT->str('data'));
|
/dokuwiki/inc/Ui/ |
H A D | Editor.php | 27 global $INPUT; 41 if ($INPUT->has('changecheck')) { 42 $check = $INPUT->str('changecheck'); 79 'target' => ($INPUT->has('target') && $wr) ? $INPUT->str('target') : 'section', 93 if ($INPUT->has('hid')) { 94 $form->setHiddenField('hid', $INPUT->str('hid')); 96 if ($INPUT->has('codeblockOffset')) { 97 $form->setHiddenField('codeblockOffset', $INPUT->str('codeblockOffset')); 127 if ($conf['useacl'] && $INPUT->server->str('REMOTE_USER')) {
|
/dokuwiki/lib/plugins/revert/ |
H A D | admin.php | 54 global $INPUT; 60 if (is_array($INPUT->param('revert')) && checkSecurityToken()) { 61 $this->revertEdits($INPUT->arr('revert'), $INPUT->str('filter')); 62 } elseif ($INPUT->has('filter')) { 63 $this->listEdits($INPUT->str('filter')); 72 global $lang, $INPUT; 75 …echo '<input type="text" name="filter" class="edit" value="' . hsc($INPUT->str('filter')) . '" /> …
|
/dokuwiki/inc/Menu/Item/ |
H A D | Subscribe.php | 15 global $INPUT; 18 if (!$INPUT->server->str('REMOTE_USER')) {
|
H A D | Profile.php | 15 global $INPUT; 18 if (!$INPUT->server->str('REMOTE_USER')) {
|
H A D | Register.php | 15 global $INPUT; 18 if ($INPUT->server->str('REMOTE_USER')) {
|