| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/File/ |
| H A D | ANSI.php | 154 $this->base_attr_cell = clone $attr_cell; 155 $this->attr_cell = clone $attr_cell; 157 $this->setHistory(200); 158 $this->setDimensions(80, 24); 171 $this->max_x = $x - 1; 172 $this->max_y = $y - 1; 173 $this->x = $this->y = 0; 174 $this->history = $this->history_attrs = []; 175 $this->attr_row = array_fill(0, $this->max_x + 2, $this->base_attr_cell); 176 $this->screen = array_fill(0, $this->max_y + 1, ''); [all …]
|
| /dokuwiki/vendor/simplepie/simplepie/src/HTTP/ |
| H A D | Parser.php | 134 $this->data = $data; 135 $this->data_length = strlen($this->data); 136 $this->psr7Compatible = $psr7Compatible; 146 while ($this->state && $this->state !== self::STATE_EMIT && $this->has_data()) { 147 $state = $this->state; 148 $this->$state(); 150 $this->data = ''; 151 if ($this->state === self::STATE_EMIT || $this->state === self::STATE_BODY) { 156 $this->http_version = 0.0; 157 $this->status_code = 0; [all …]
|
| /dokuwiki/_test/tests/inc/parser/ |
| H A D | renderer_xhtml.test.php | 19 $this->R = new Doku_Renderer_xhtml(); 23 unset($this->R); 27 $this->R->table_open(); 30 $this->assertEquals($expected, $this->R->doc); 34 $this->R->table_open(4); 37 $this->assertEquals($expected, $this->R->doc); 41 $this->R->table_open(4, 4); 44 $this->assertEquals($expected, $this->R->doc); 48 $this->R->table_open(4, 4, 100); 51 $this->assertEquals($expected, $this->R->doc); [all …]
|
| /dokuwiki/vendor/simplepie/simplepie/src/ |
| H A D | Gzdecode.php | 157 $this->compressed_data = $data; 158 $this->compressed_size = strlen($data); 168 if ($this->compressed_size >= $this->min_compressed_size) { 172 if (substr($this->compressed_data, 0, 3) !== "\x1F\x8B\x08") { 177 $this->flags = ord($this->compressed_data[3]); 180 if ($this->flags > 0x1F) { 185 $this->position += 4; 188 $mtime = substr($this->compressed_data, $this->position, 4); 193 $this->MTIME = current((array) unpack('l', $mtime)); 194 $this->position += 4; [all …]
|
| /dokuwiki/vendor/simplepie/simplepie/src/XML/Declaration/ |
| H A D | Parser.php | 103 $this->data = $data; 104 $this->data_length = strlen($this->data); 115 while ($this->state && $this->state !== self::STATE_EMIT && $this->has_data()) { 116 $state = $this->state; 117 $this->$state(); 119 $this->data = ''; 120 if ($this->state === self::STATE_EMIT) { 125 $this->version = '1.0'; 126 $this->encoding = 'UTF-8'; 127 $this->standalone = false; [all …]
|
| /dokuwiki/inc/Menu/Item/ |
| H A D | AbstractItem.php | 64 $this->id = $ID; 65 $this->type = $this->getType(); 66 $this->params['do'] = $this->type; 68 if (!actionOK($this->type)) throw new \RuntimeException("action disabled: {$this->type}"); 82 if ($this->label !== '') return $this->label; 86 $label = $lang['btn_' . $this->type]; 88 $label = sprintf($label, $this->replacement); 90 if ($label === '') $label = '[' . $this->type . ']'; 104 if ($this->title === '') return $this->getLabel(); 105 return $this->title; [all …]
|
| /dokuwiki/inc/Parsing/Handler/ |
| H A D | Table.php | 26 foreach ($this->calls as $call) { 29 $this->tableStart($call); 32 $this->tableRowClose($call); 33 $this->tableRowOpen(['tablerow_open', $call[1], $call[2]]); 37 $this->tableCell($call); 40 $this->tableRowClose($call); 41 $this->tableEnd($call); 44 $this->tableDefault($call); 48 $this->callWriter->writeCalls($this->tableCalls); 50 return $this->callWriter; [all …]
|
| H A D | Lists.php | 24 foreach ($this->calls as $call) { 26 'list_item' => $this->listOpen($call), 27 'list_open' => $this->listStart($call), 28 'list_close' => $this->listEnd($call), 29 default => $this->listContent($call), 33 $this->callWriter->writeCalls($this->listCalls); 34 return $this->callWriter; 39 $depth = $this->interpretSyntax($call[1][0], $listType); 41 $this->initialDepth = $depth; 43 $this->listStack[] = [$listType, $depth, 1]; [all …]
|
| /dokuwiki/_test/tests/Parsing/ParserMode/ |
| H A D | HeadersTest.php | 12 $this->P->addMode('header',new Header()); 13 $this->P->parse("abc \n ====== Header ====== \n def"); 27 $this->assertCalls($calls, $this->H->calls); 31 $this->P->addMode('header',new Header()); 32 $this->P->parse("abc \n ===== Header ===== \n def"); 46 $this->assertCalls($calls, $this->H->calls); 50 $this->P->addMode('header',new Header()); 51 $this->P->parse("abc \n ==== Header ==== \n def"); 65 $this->assertCalls($calls, $this->H->calls); 69 $this->P->addMode('header',new Header()); [all …]
|
| H A D | ReplacementsTest.php | 16 $this->P->addMode('acronym',new Acronym(['FOOBAR'])); 17 $this->P->parse('abc FOOBAR xyz'); 27 $this->assertCalls($calls, $this->H->calls); 31 $this->P->addMode('acronym',new Acronym(['FOOBAR'])); 32 $this->P->parse('abcFOOBARxyz'); 40 $this->assertCalls($calls, $this->H->calls); 44 $this->P->addMode('acronym',new Acronym(['FOO'])); 45 $this->P->parse('FOOBAR FOO'); 55 $this->assertCalls($calls, $this->H->calls); 59 $this->P->addMode('acronym',new Acronym(['FOO','BAR'])); [all …]
|
| H A D | QuotesTest.php | 18 $this->P->addMode('quotes',new Quotes()); 19 $this->P->parse($raw); 31 $this->assertCalls($calls, $this->H->calls, 'wikitext => '.$raw); 36 $this->P->addMode('quotes',new Quotes()); 37 $this->P->parse($raw); 49 $this->assertCalls($calls, $this->H->calls, 'wikitext => '.$raw); 54 $this->P->addMode('quotes',new Quotes()); 55 $this->P->parse($raw); 67 $this->assertCalls($calls, $this->H->calls, 'wikitext => '.$raw); 72 $this->P->addMode('quotes',new Quotes()); [all …]
|
| H A D | FootnoteTest.php | 22 $this->P->addMode('footnote',new Footnote()); 26 $this->P->parse('Foo (( testing )) Bar'); 40 $this->assertCalls($calls, $this->H->calls); 44 $this->P->parse("Foo (( testing\n Bar"); 52 $this->assertCalls($calls, $this->H->calls); 56 $this->P->addMode('eol',new Eol()); 57 $this->P->parse("Foo (( testing\ntesting )) Bar"); 71 $this->assertCalls($calls, $this->H->calls); 75 $this->P->parse('Foo (( x((y))z )) Bar'); 89 $this->assertCalls($calls, $this->H->calls); [all …]
|
| H A D | TableTest.php | 16 $this->P->addMode('table',new Table()); 17 $this->P->parse(' 56 $this->assertCalls($calls, $this->H->calls); 60 $this->P->addMode('table',new Table()); 61 …$this->P->parse("\r\nabc\r\n| Row 0 Col 1 | Row 0 Col 2 | Row 0 Col 3 |\r\n| Row 1 C… 96 $this->assertCalls($calls, $this->H->calls); 100 $this->P->addMode('table',new Table()); 101 $this->P->parse(' 121 $this->assertCalls($calls, $this->H->calls); 125 $this->P->addMode('table',new Table()); [all …]
|
| /dokuwiki/inc/Feed/ |
| H A D | FeedCreatorOptions.php | 68 $this->options['type'] = $INPUT->valid( 70 array_keys($this->types), 74 $this->options['feed_mode'] = $INPUT->str('mode', 'recent'); 75 $this->options['link_to'] = $INPUT->valid( 80 $this->options['item_content'] = $INPUT->valid( 85 $this->options['namespace'] = $INPUT->filter('cleanID')->str('ns'); 86 $this->options['items'] = $INPUT->int('num', $conf['recent']); 87 $this->options['show_minor'] = $INPUT->bool('minor'); 88 $this->options['show_deleted'] = $conf['rss_show_deleted']; 89 $this->options['show_summary'] = $conf['rss_show_summary']; [all …]
|
| H A D | FeedPageProcessor.php | 25 'page' => ['rev' => $this->getRev()], 26 'rev' => ['rev' => $this->getRev(), 'do' => 'revisions'], 28 default => ['rev' => $this->getRev(), 'do' => 'diff'], 31 return wl($this->getId(), $opt, true, '&'); 41 $diff = $this->getDiff(); 47 $diff = $this->getDiff(); 51 … $content .= '<tr><th colspan="2" width="50%">' . dformat($this->getPrev()) . '</th>'; 58 if ($this->isExisting()) { 59 $html = p_wiki_xhtml($this->getId(), '', false); 61 $html = p_wiki_xhtml($this->getId(), $this->getRev(), false); [all …]
|
| /dokuwiki/vendor/kissifrot/php-ixr/src/Message/ |
| H A D | Message.php | 29 $this->message =& $message; 36 $header = preg_replace('/<\?xml.*?\?' . '>/s', '', substr($this->message, 0, 100), 1); 37 $this->message = trim(substr_replace($this->message, $header, 0, 100)); 38 if ('' == $this->message) { 43 $header = preg_replace('/^<!DOCTYPE[^>]*+>/i', '', substr($this->message, 0, 200), 1); 44 $this->message = trim(substr_replace($this->message, $header, 0, 200)); 45 if ('' == $this->message) { 50 $root_tag = substr($this->message, 0, strcspn(substr($this->message, 0, 20), "> \t\r\n")); 60 if ($element_limit && 2 * $element_limit < substr_count($this->message, '<')) { 64 $this->_parser = xml_parser_create(); [all …]
|
| /dokuwiki/vendor/openpsa/universalfeedcreator/lib/Creator/ |
| H A D | RSSCreator091.php | 21 $this->_setRSSVersion("0.91"); 22 $this->contentType = "application/rss+xml"; 32 $this->RSSVersion = $version; 38 $feed = "<?xml version=\"1.0\" encoding=\"".$this->encoding."\"?>\n"; 39 $feed .= $this->_createGeneratorComment(); 40 $feed .= $this->_createStylesheetReferences(); 41 $feed .= "<rss version=\"".$this->RSSVersion."\""; 43 if (count($this->items) > 0 44 && !empty($this->items[0]->lat) 48 if (count($this->items) > 0 [all …]
|
| H A D | HTMLCreator.php | 64 if ($this->stylelessOutput != "") { 65 return $this->stylelessOutput; 69 if ($this->stylePrefix == "") { 70 $this->stylePrefix = str_replace(".", "_", $this->_generateFilename())."_"; 74 if ($this->openInNewWindow) { 82 if ($this->image != null) { 83 $imageStr = "<a href='".$this->image->link."'".$targetInsert.">". 84 "<img src='".$this->image->url."' border='0' alt='". 85 FeedCreator::iTrunc(htmlspecialchars($this->image->title), 100). 86 "' align='".$this->imageAlign."' "; [all …]
|
| /dokuwiki/_test/tests/inc/ |
| H A D | auth_aclcheck.test.php | 13 $this->oldAuthAcl = $AUTH_ACL; 19 $AUTH_ACL = $this->oldAuthAcl; 35 $this->assertEquals(auth_aclcheck('page', '',array()), AUTH_NONE); 36 $this->assertEquals(auth_aclcheck('namespace:page','',array()), AUTH_NONE); 37 $this->assertEquals(auth_aclcheck('namespace:*', '',array()), AUTH_NONE); 40 $this->assertEquals(auth_aclcheck('page', 'jill',array('foo')), AUTH_NONE); 41 $this->assertEquals(auth_aclcheck('namespace:page','jill',array('foo')), AUTH_NONE); 42 $this->assertEquals(auth_aclcheck('namespace:*', 'jill',array('foo')), AUTH_NONE); 45 … $this->assertEquals(auth_aclcheck('page', 'jill',array('foo','user')), AUTH_UPLOAD); 46 … $this->assertEquals(auth_aclcheck('namespace:page','jill',array('foo','user')), AUTH_UPLOAD); [all …]
|
| H A D | io_rmdir.test.php | 9 $this->assertTrue($dir !== false); 10 $this->assertTrue(is_dir($dir)); 13 $this->assertTrue(chdir($dir)); 14 $this->assertEquals($dir, getcwd()); 17 $this->assertFalse(io_rmdir('', false)); 19 $this->assertTrue(is_dir($dir)); 20 $this->assertTrue(is_dir($top)); 22 $this->assertFalse(io_rmdir('', true)); 24 $this->assertTrue(is_dir($dir)); 25 $this->assertTrue(is_dir($top)); [all …]
|
| H A D | input.test.php | 46 $filter = array($this,'myfilter'); 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 …]
|
| /dokuwiki/_test/tests/lib/exe/ |
| H A D | css_css_loadfile.test.php | 10 $this->file = tempnam(TMP_DIR, 'css'); 20 …$this->csstest('#test { background: url(\'test/test.png\'); }', '#test { background: url(\'http://… 24 $this->csstest('#test { background: url("/test/test.png"); }'); 25 $this->csstest('#test { background: url(\'/test/test.png\'); }'); 29 $this->csstest('#test { background: url("http://www.test.com/test/test.png"); }'); 30 $this->csstest('#test { background: url("https://www.test.com/test/test.png"); }'); 31 $this->csstest('#test { background: url(\'http://www.test.com/test/test.png\'); }'); 32 $this->csstest('#test { background: url(\'https://www.test.com/test/test.png\'); }'); 36 … $this->csstest('@import "test/test.png";', '@import "http://www.example.com/test/test.png";'); 37 … $this->csstest('@import \'test/test.png\';', '@import \'http://www.example.com/test/test.png\';'); [all …]
|
| /dokuwiki/lib/plugins/config/_test/Setting/ |
| H A D | AbstractSettingTest.php | 18 $class = get_class($this); 21 $this->class = $class; 26 $setting = new $this->class('test'); 27 $this->assertEquals('test', $setting->getKey()); 28 $this->assertSame(false, $setting->isProtected()); 29 $this->assertSame(true, $setting->isDefault()); 30 $this->assertSame(false, $setting->hasError()); 31 $this->assertSame(false, $setting->shouldBeSaved()); 36 $setting = new $this->class('test'); 37 $this->assertSame(true, $setting->shouldHaveDefault()); [all …]
|
| /dokuwiki/vendor/simplepie/simplepie/library/SimplePie/Decode/HTML/ |
| H A D | Entities.php | 50 $this->data = $data; 61 while (($position = strpos($this->data, '&', $this->position)) !== false) { 62 $this->position = $position; 63 $this->consume(); 64 $this->entity(); 65 $this->consumed = ''; 67 return $this->data; 78 if (isset($this->data[$this->position])) { 79 $this->consumed .= $this->data[$this->position]; 80 return $this->data[$this->position++]; [all …]
|
| /dokuwiki/inc/Remote/Response/ |
| H A D | User.php | 35 $this->login = $login; 36 $this->name = $name; 37 $this->mail = $mail; 38 $this->groups = $groups; 40 if ($this->login === '') { 41 $this->login = $INPUT->server->str('REMOTE_USER'); 44 if ($this->login === '') { 49 if ($this->login === $INPUT->server->str('REMOTE_USER')) { 50 $this->name = $this->name ?: $USERINFO['name']; 51 $this->mail = $this->mail ?: $USERINFO['mail']; [all …]
|