| /dokuwiki/_test/tests/inc/ |
| H A D | input.test.php | 3 use dokuwiki\Input\Input; alias 6 * Tests for the dokuwiki\Input\Input class 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')); [all …]
|
| H A D | auth_deleteprofile.test.php | 3 use dokuwiki\Input\Input; alias 20 global $ACT, $INPUT, $conf, $auth; 26 $input = array( 33 $_POST = $input; 34 $_REQUEST = $input; 35 $INPUT = new Input(); 45 global $ACT, $INPUT, $conf, $auth; 51 $input = array( 59 $_POST = $input; 60 $_REQUEST = $input; [all …]
|
| H A D | common_getGoogleQuery.test.php | 3 use \dokuwiki\Input\Input; alias 11 global $INPUT; 13 $INPUT = new Input(); 18 global $INPUT; 20 $INPUT = new Input(); 25 global $INPUT; 27 $INPUT = new Input(); 32 global $INPUT; 34 $INPUT = new Input();
|
| H A D | pageutils_nons.test.php | 8 public function test_noNS($input, $expected) argument 13 $this->assertSame($expected, noNS($input), $input); 29 public function test_noNSorNS($input, $expected) argument 34 $this->assertSame($expected, noNSorNS($input), $input);
|
| /dokuwiki/_test/tests/Form/ |
| H A D | InputElementTest.php | 17 $input = $pq->find('input[name=foo]'); 18 $this->assertTrue($input->count() == 1); 19 $this->assertEquals('this is text', $input->attr('value')); 20 $this->assertEquals('text', $input->attr('type')); 31 global $INPUT; 32 $INPUT->post->set('foo', 'a new text'); 40 $input = $pq->find('input[name=foo]'); 41 $this->assertTrue($input->count() == 1); 42 $this->assertEquals('a new text', $input->attr('value')); 46 global $INPUT; [all …]
|
| H A D | ButtonElementTest.php | 19 $input = $pq->find('button[name=foo]'); 20 $this->assertTrue($input->count() == 1); 21 $this->assertEquals('bam', $input->attr('value')); 22 $this->assertEquals('submit', $input->attr('type')); 23 $this->assertEquals('Hello <b>World</b>', $input->text()); // tags were escaped 25 $b = $input->find('b'); // no tags found 37 $input = $pq->find('button[name=foo]'); 38 $this->assertTrue($input->count() == 1); 39 $this->assertEquals('bam', $input->attr('value')); 40 $this->assertEquals('submit', $input->attr('type')); [all …]
|
| /dokuwiki/lib/plugins/config/core/Setting/ |
| H A D | SettingImConvert.php | 11 public function update($input) argument 15 $input = trim($input); 18 if ($value == $input) return false; 20 if ($input && !file_exists($input)) { 22 $this->input = $input; 26 $this->local = $input;
|
| H A D | SettingArray.php | 37 * update setting with user provided value $input 40 * @param string $input 43 public function update($input) argument 45 if (is_null($input)) return false; 48 $input = $this->fromString($input); 51 if ($value == $input) return false; 53 foreach ($input as $item) { 56 $this->input = $input; 61 $this->local = $input; 74 $value = $this->input; [all …]
|
| H A D | SettingMulticheckbox.php | 15 public function update($input) argument 20 $input = $input ?: []; 21 $input = $this->array2str($input); 24 if ($value == $input) return false; 26 if ($this->pattern && !preg_match($this->pattern, $input)) { 28 $this->input = $input; 32 $this->local = $input; 46 $value = $this->input; 57 $input = ''; 69 $input .= '<div class="selection' . $class . '">' . "\n"; [all …]
|
| H A D | SettingPassword.php | 13 public function update($input) argument 16 if (!$input) return false; 18 if ($this->pattern && !preg_match($this->pattern, $input)) { 20 $this->input = $input; 24 $this->local = conf_encodeString($input, $this->code); 37 $input = '<input id="config___' . $key . '" name="config[' . $key . 39 return [$label, $input];
|
| H A D | SettingRegex.php | 10 protected $delimiter = '/'; // regex delimiter to be used in testing input 11 protected $pregflags = 'ui'; // regex pattern modifiers to be used in testing input 14 public function update($input) argument 19 if (!parent::update($input)) return false; 23 $regex = $this->delimiter . $input . $this->delimiter . $this->pregflags; 27 $this->input = $input; 32 $this->local = $input;
|
| H A D | SettingSavedir.php | 11 public function update($input) argument 16 if ($value == $input) return false; 18 if (!init_path($input)) { 20 $this->input = $input; 24 $this->local = $input;
|
| H A D | SettingMultichoice.php | 40 $input = "<div class=\"input\">\n"; 41 …$input .= '<select class="edit" id="config___' . $key . '" name="config[' . $key . ']"' . $disable… 52 … $input .= ' <option value="' . $choice . '"' . $selected . ' >' . $option . '</option>' . "\n"; 54 $input .= "</select> $nochoice \n"; 55 $input .= "</div>\n"; 57 return [$label, $input]; 61 public function update($input) argument 63 if (is_null($input)) return false; 67 if ($value == $input) return false; 69 if (!in_array($input, $this->choices)) return false; [all …]
|
| H A D | SettingEmail.php | 14 public function update($input) argument 16 if (is_null($input)) return false; 20 if ($value == $input) return false; 21 if ($input === '') { 22 $this->local = $input; 25 $mail = $input; 52 $this->input = $input; 57 $this->local = $input;
|
| H A D | SettingOnoff.php | 43 $input = '<div class="input"><input id="config___' . $key . '" name="config[' . $key . 45 return [$label, $input]; 49 public function update($input) argument 53 $input = ($input) ? 1 : 0; 55 if ($value == $input) return false; 57 $this->local = $input;
|
| H A D | SettingNumericopt.php | 17 public function update($input) argument 19 if ($input === '') { 20 if ($input == $this->local) return false; 21 $this->local = $input; 25 return parent::update($input);
|
| /dokuwiki/_test/tests/test/ |
| H A D | edit_and_save.test.php | 19 $input = array( 24 $response = $request->post($input); 42 $pattern .= '<input type="hidden" name="hid" value="'; 49 …$result = preg_match_all('/<input type="hidden" name="([^"]*)" value="([^"]*)" \/>/', $formA[0], $… 50 $input = array(); 52 $input[$match[1]] = $match[2]; 54 $this->assertEquals($input['hid'], $idA[1]); 56 // Post the input fields (= do a section edit) 57 $response = $request->post($input, '/doku.php'); 61 // form as an hidden input field [all …]
|
| /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 …]
|
| /dokuwiki/inc/Ui/ |
| H A D | UserRegister.php | 25 global $INPUT; 41 $input = $form->addTextInput('login', $lang['user'])->attrs($base_attrs)->addClass('edit') 42 ->val($INPUT->post->str('login')); 43 $input->getLabel()->attr('class', 'block'); 47 … $input = $form->addPasswordInput('pass', $lang['pass'])->attrs($base_attrs)->addClass('edit'); 48 $input->getLabel()->attr('class', 'block'); 50 …$input = $form->addPasswordInput('passchk', $lang['passchk'])->attrs($base_attrs)->addClass('edit'… 51 $input->getLabel()->attr('class', 'block'); 55 … $input = $form->addTextInput('fullname', $lang['fullname'])->attrs($base_attrs)->addClass('edit') 56 ->val($INPUT->post->str('fullname')); [all …]
|
| /dokuwiki/lib/plugins/authpdo/conf/ |
| H A D | default.php | 17 * input: :user 25 * input: :user, :clear, :hash, [uid], [*] 33 * input: :user, [uid] 48 * input: :user, :name, :mail, (:clear|:hash) 55 * input: :user, [:uid], [*] 64 * input: :user, :name, :mail, :group, :start, :end, :limit 74 * input: :user, :name, :mail, :group 82 * input: :user, :name, :mail, [:uid], [*] 89 * input: :user, :newlogin, [:uid], [*] 96 * input: :user, :clear, :hash, [:uid], [*] [all …]
|
| /dokuwiki/inc/Form/ |
| H A D | CheckableElement.php | 31 global $INPUT; 35 if (!$INPUT->has($name)) return; 39 $value = $INPUT->str($name); 47 $input = $INPUT->arr($name); 48 if (isset($input[$key])) { 52 if (is_array($input[$key])) { 53 $input = $input[$key]; 56 foreach ($input as $value) {
|
| /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 …]
|
| /dokuwiki/inc/Input/ |
| H A D | Server.php | 3 namespace dokuwiki\Input; 6 * Internal class used for $_SERVER access in dokuwiki\Input\Input class 8 class Server extends Input
|
| /dokuwiki/inc/ |
| H A D | Ip.php | 12 use dokuwiki\Input\Input; alias 181 /* @var Input $INPUT */ 182 global $INPUT, $conf; 184 $forwardedFor = $INPUT->server->str('HTTP_X_FORWARDED_FOR'); 191 $remoteAddr = $INPUT->server->str('REMOTE_ADDR'); 253 /* @var Input $INPUT */ 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'); [all …]
|
| /dokuwiki/lib/tpl/dokuwiki/css/ |
| H A D | basic.less | 349 input, 384 input, 392 input:active, 393 input:focus, 402 input[type=radio], 403 input[type=checkbox], 404 input[type=image] { 411 input[type=submit], 412 input[type=button], 413 input[type=reset], [all …]
|