| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/BCMath/Reductions/ |
| H A D | Barrett.php | 10 * @license http://www.opensource.org/licenses/mit-license.html MIT License 46 …* {@link http://www.cosic.esat.kuleuven.be/publications/thesis-149.pdf#page=66 thesis-149.pdf#page… 47 …* it, "the idea [behind folding] is to find a value x' such that x (mod m) = x' (mod m), with x' b… 49 …* Unfortunately, the "Barrett Reduction with Folding" algorithm described in thesis-149.pdf is not… 53 …) != x / 2 + x / 2. If x is even, they're the same, but if x is odd, they're not. See the in-line 57 * @param string $m 60 protected static function reduce($n, $m) argument 67 $m_length = strlen($m); 70 return bcmod($n, $m); 73 // if (m.length >> 1) + 2 <= m.length then m is too small and n can't be reduced [all …]
|
| H A D | EvalBarrett.php | 10 * @license http://www.opensource.org/licenses/mit-license.html MIT License 40 * @param string $m 43 protected static function reduce($n, $m) argument 52 * @param BCMath $m 56 protected static function generateCustomReduction(BCMath $m, $class) argument 58 $m_length = strlen($m); 68 $u = bcdiv($lhs, $m, 0); 69 $m1 = bcsub($lhs, bcmul($u, $m)); 73 $m = "'$m'"; 78 $lsd = substr($n, -' . $cutoff . '); [all …]
|
| /dokuwiki/_test/tests/Feed/ |
| H A D | FeedCreatorValidationTest.php | 26 $feed = $creator->build(); 29 $result = $http->post('https://validator.w3.org/feed/check.cgi', [ 35 $this->markTestSkipped('Could not validate feed'); 40 $ns = $xml->getNamespaces(true); 42 $xml->registerXPathNamespace($key, $value); 45 $warningCount = (int)$xml->xpath('//m:warnings/m:warningcount')[0]; 47 $line = (int)$xml->xpath('//m:warnings/m:warninglist/warning/line')[0]; 48 $text = (string)$xml->xpath('//m:warnings/m:warninglist/warning/text')[0]; 49 $element = (string)$xml->xpath('//m:warnings/m:warninglist/warning/element')[0]; 50 $parent = (string)$xml->xpath('//m:warnings/m:warninglist/warning/parent')[0]; [all …]
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/PHP/Reductions/ |
| H A D | Barrett.php | 10 * @license http://www.opensource.org/licenses/mit-license.html MIT License 34 …* {@link http://www.cosic.esat.kuleuven.be/publications/thesis-149.pdf#page=66 thesis-149.pdf#page… 35 …* it, "the idea [behind folding] is to find a value x' such that x (mod m) = x' (mod m), with x' b… 37 …* Unfortunately, the "Barrett Reduction with Folding" algorithm described in thesis-149.pdf is not… 41 …) != x / 2 + x / 2. If x is even, they're the same, but if x is odd, they're not. See the in-line 45 * @param array $m 46 * @param class-string<PHP> $class 49 protected static function reduce(array $n, array $m, $class) argument 56 $m_length = count($m); 58 // if (self::compareHelper($n, $static::square($m)) >= 0) { [all …]
|
| H A D | MontgomeryMult.php | 10 * @license http://www.opensource.org/licenses/mit-license.html MIT License 35 * @param array $m 36 * @param class-string<PHP> $class 39 public static function multiplyReduce(array $x, array $y, array $m, $class) argument 51 if (($key = array_search($m, $cache[self::VARIABLE])) === false) { 53 $cache[self::VARIABLE][] = $m; 54 $cache[self::DATA][] = self::modInverse67108864($m, $class); 57 $n = max(count($x), count($y), count($m)); 60 $m = array_pad($m, $n, 0); 64 …$temp = $temp - $class::BASE_FULL * ($class::BASE === 26 ? intval($temp / 0x4000000) : ($temp >> 3… [all …]
|
| H A D | EvalBarrett.php | 10 * @license http://www.opensource.org/licenses/mit-license.html MIT License 40 * @param array $m 44 protected static function reduce(array $n, array $m, $class) argument 53 * @param PHP $m 57 protected static function generateCustomReduction(PHP $m, $class) argument 59 $m_length = count($m->value); 64 $lhs->value = $x; 66 $rhs->value = [' . 67 implode(',', array_map(self::class . '::float2string', $m->value)) . ']; 68 list(, $temp) = $lhs->divide($rhs); [all …]
|
| /dokuwiki/vendor/php81_bc/strftime/ |
| H A D | example.php | 7 echo strftime('%Y-%m-%d %H:%M:%S'), PHP_EOL; 8 echo strftime('%Y-%m-%d %H:%M:%S', $date), PHP_EOL; 9 echo strftime('%Y-%m-%d %H:%M:%S', strtotime($date)), PHP_EOL;
|
| /dokuwiki/vendor/splitbrain/php-cli/src/ |
| H A D | Colors.php | 35 const C_CODE_REGEX = "/(\33\[[0-9;]+m)/"; 39 self::C_RESET => "\33[0m", 40 self::C_BLACK => "\33[0;30m", 41 self::C_DARKGRAY => "\33[1;30m", 42 self::C_BLUE => "\33[0;34m", 43 self::C_LIGHTBLUE => "\33[1;34m", 44 self::C_GREEN => "\33[0;32m", 45 self::C_LIGHTGREEN => "\33[1;32m", 46 self::C_CYAN => "\33[0;36m", 47 self::C_LIGHTCYAN => "\33[1;36m", [all …]
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA/ |
| H A D | PrivateKey.php | 8 * @license http://www.opensource.org/licenses/mit-license.html MIT License 61 * See {@link http://tools.ietf.org/html/rfc3447#section-5.1.2 RFC3447#section-5.1.2}. 67 if ($c->compare(self::$zero) < 0 || $c->compare($this->modulus) > 0) { 70 return $this->exponentiate($c); 76 * See {@link http://tools.ietf.org/html/rfc3447#section-5.2.1 RFC3447#section-5.2.1}. 80 private function rsasp1(BigInteger $m) argument 82 if ($m->compare(self::$zero) < 0 || $m->compare($this->modulus) > 0) { 85 return $this->exponentiate($m); 97 case empty($this->primes): 98 case $this->primes[1]->equals(self::$zero): [all …]
|
| H A D | PublicKey.php | 8 * @license http://www.opensource.org/licenses/mit-license.html MIT License 43 return $x->modPow($this->exponent, $this->modulus); 49 * See {@link http://tools.ietf.org/html/rfc3447#section-5.2.2 RFC3447#section-5.2.2}. 56 if ($s->compare(self::$zero) < 0 || $s->compare($this->modulus) > 0) { 59 return $this->exponentiate($s); 63 * RSASSA-PKCS1-V1_5-VERIFY 65 * See {@link http://tools.ietf.org/html/rfc3447#section-8.2.2 RFC3447#section-8.2.2}. 67 * @param string $m 72 private function rsassa_pkcs1_v1_5_verify($m, $s) argument 76 if (strlen($s) != $this->k) { [all …]
|
| /dokuwiki/lib/plugins/authpdo/_test/mysql/ |
| H A D | wordpress.php | 12 'select-user' => ' 21 'select-user-groups' => ' 27 'select-groups' => '', 28 'insert-user' => '', 29 'delete-user' => '', 30 'list-users' => ' 32 FROM wpvk_users U, wpvk_usermeta M 33 WHERE U.ID = M.user_id 34 AND M.meta_key = "wpvk_user_level" 35 AND CONCAT("group", M.meta_value) LIKE :group [all …]
|
| /dokuwiki/inc/Remote/OpenApiDoc/ |
| H A D | DocBlock.php | 30 $this->reflector = $reflector; 31 $docblock = $reflector->getDocComment(); 35 ['/^[ \t]*\/\*+[ \t]*/m', '/[ \t]*\*+[ \t]*/m', '/\*+\/\s*$/m', '/\s*\/\s*$/m'], 42 if (preg_match_all('/^@(\w+)\s+(.*)$/m', $docblock, $matches, PREG_SET_ORDER)) { 49 $docblock = preg_replace('/^@(\w+)\s+(.*)$/m', '', $docblock); 55 $this->summary = trim($summary); 56 $this->description = trim($description); 57 $this->tags = $tags; 67 return $this->reflector->getDeclaringClass()->getName(); 77 return $this->summary; [all …]
|
| /dokuwiki/lib/plugins/styling/ |
| H A D | admin.svg | 1 …-1.5-1.5A1.5 1.5 0 0 1 17.5 9a1.5 1.5 0 0 1 1.5 1.5 1.5 1.5 0 0 1-1.5 1.5m-3-4A1.5 1.5 0 0 1 13 6.…
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/ |
| H A D | Hash.php | 5 * such as sha256-96. Any hash algorithm returned by hash_algos() (and 18 * $hash->setKey('abcdefg'); 20 * echo base64_encode($hash->hash('abcdefg')); 28 * @license http://www.opensource.org/licenses/mit-license.html MIT License 82 * Byte-length of hash output (Internal HMAC) 195 /**#@-*/ 204 $this->setHash($hash); 216 $this->key = $key; 217 $this->computeKey(); 218 $this->recomputeAESKey = true; [all …]
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/ |
| H A D | BinaryField.php | 12 * @license http://www.opensource.org/licenses/mit-license.html MIT License 50 $m = array_shift($indices); 51 if ($m > 571) { 52 …sect571r1 and sect571k1 are the largest binary curves that https://www.secg.org/sec2-v2.pdf defines 55 …http://tools.ietf.org/html/rfc4253#section-6.1 (The Secure Shell (SSH) Transport Layer Protocol) s… 60 $val = str_repeat('0', $m) . '1'; 66 $mStart = 2 * $m - 2; 67 $t = ceil($m / 8); 68 $finalMask = chr((1 << ($m % 8)) - 1); 75 $h = $h ? 8 - $h : 0; [all …]
|
| /dokuwiki/vendor/splitbrain/lesserphp/src/ |
| H A D | Parser.php | 44 '-' => 1, 62 ['/border-radius$/i', '/^font$/i']; 65 'font-face', 68 '-moz-document', 70 '-moz-viewport', 71 '-o-viewport', 72 '-ms-viewport' 82 * property1: 10 -5; // is two numbers, 10 and -5 83 * property2: (10 -5); // should evaluate to 5 97 $this->eatWhiteDefault = true; [all …]
|
| /dokuwiki/vendor/geshi/geshi/src/geshi/ |
| H A D | diff.php | 4 * -------- 10 * Diff-output language file for GeSHi. 13 * ------- 15 * - Added description of extra language features (SF#1970248) 17 * - changing language file to use matching of start (^) and end ($) (wt) 19 * - First Release 22 * ------------------------- 41 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 69 1 => 'color: #aaaaaa; font-style: italic;', 115 0 => "[0-9,]+[acd][0-9,]+", [all …]
|
| H A D | gdb.php | 4 * -------- 13 * ------- 15 * - First Release 18 * ------------------------- 36 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 66 0 => 'font-weight:bold;', 67 1 => 'font-weight:bold; color: #ff0000;' 75 0 => 'font-weight:bold;' 87 0 => 'color: #000066; font-weight:bold;', 90 3 => 'color: #0057AE; text-style:italic;', [all …]
|
| /dokuwiki/lib/plugins/extension/ |
| H A D | Repository.php | 53 if ($this->hasAccess !== null) { 54 return $this->hasAccess; // we already checked 64 $httpclient->timeout = 5; 65 $data = $httpclient->get(self::EXTENSION_REPOSITORY_API . '?cmd=ping'); 67 $this->hasAccess = false; 70 $this->hasAccess = false; 73 $this->hasAccess = true; 75 return $this->hasAccess; 86 if (!$this->checkAccess()) return; 94 $response = $httpclient->post(self::EXTENSION_REPOSITORY_API, $data); [all …]
|
| /dokuwiki/vendor/php81_bc/strftime/src/ |
| H A D | php-8.1-strftime.php | 14 * Locale-formatted strftime using IntlDateFormatter (PHP 8.1 compatible) 15 * This provides a cross-platform alternative to strftime() for when it will be removed from PHP. 20 * echo strftime('%A %e %B %Y %X', new \DateTime('2021-09-28 00:00:00'), 'fr_FR'); 23 * \setlocale(LC_TIME, 'fr_FR.UTF-8'); 24 * echo \strftime('%A %e %B %Y %X', strtotime('2021-09-28 00:00:00')); 40 …ception('$timestamp argument is neither a valid UNIX timestamp, a valid date-time string or a Date… 43 $timestamp->setTimezone(new DateTimeZone(date_default_timezone_get())); 60 return sprintf('% 2u', $timestamp->format('j')); 64 return sprintf('%03d', $timestamp->format('z')+1); 72 $day = new DateTime(sprintf('%d-01 Sunday', $timestamp->format('Y'))); [all …]
|
| /dokuwiki/ |
| H A D | index.php | 12 * php -S localhost:8000 index.php 18 if (PHP_SAPI != 'cli-server') { 31 if (preg_match('/^\/_media\/(.*)/', $_SERVER['SCRIPT_NAME'], $m)) { 33 $_GET['media'] = $m[1]; 35 } elseif (preg_match('/^\/_detail\/(.*)/', $_SERVER['SCRIPT_NAME'], $m)) { 37 $_GET['media'] = $m[1]; 39 } elseif (preg_match('/^\/_export\/([^\/]+)\/(.*)/', $_SERVER['SCRIPT_NAME'], $m)) { 41 $_GET['do'] = 'export_' . $m[1]; 42 $_GET['id'] = $m[2];
|
| /dokuwiki/lib/tpl/dokuwiki/lang/da/ |
| H A D | lang.php | 9 $lang['__link__'] = 'Grundlæggende link-farve'; 10 $lang['__existing__'] = 'Link-farve til eksisterende sider'; 11 $lang['__missing__'] = 'Link-farve til ikke-eksisterende sider'; 12 $lang['__site_width__'] = 'Hele sidens bredde (kan angives i enhver enhed: %, px, em m.fl.)'; 13 $lang['__sidebar_width__'] = 'Sidepanelets bredde (kan angives i enhver enhed: %, px, em m.fl.)… 14 $lang['__tablet_width__'] = 'Ved skærmstørrelser under denne bredde, skiftes til tablet-visnin…
|
| /dokuwiki/lib/plugins/authpdo/_test/ |
| H A D | sqlite.test.php | 34 … $this->markTestSkipped('skipping all authpdo tests for sqlite. Need PDO_sqlite extension'); 36 $this->assertTrue(true); // avoid being marked as risky for having no assertion 41 $this->dbfile = tempnam('/tmp/', 'pluginpdo_test_'); 42 copy(__DIR__ . '/test.sqlite3', $this->dbfile); 47 $conf['plugin']['authpdo']['dsn'] = 'sqlite:' . $this->dbfile; 51 …$conf['plugin']['authpdo']['select-user'] = 'SELECT id AS uid, login AS user, name, pass AS clear,… 52 …$conf['plugin']['authpdo']['select-user-groups'] = 'SELECT * FROM member AS m, "group" AS g WHERE… 53 $conf['plugin']['authpdo']['select-groups'] = 'SELECT id AS gid, "group" FROM "group"'; 55 …$conf['plugin']['authpdo']['insert-user'] = 'INSERT INTO user (login, pass, name, mail) VALUES (:u… 56 $conf['plugin']['authpdo']['delete-user'] = 'DELETE FROM user WHERE id = :uid'; [all …]
|
| /dokuwiki/bin/ |
| H A D | gittool.php | 26 $options->setHelp( 30 "$> ./bin/gittool.php origin -v" 33 $options->registerArgument( 39 $options->registerCommand( 44 $options->registerArgument( 51 $options->registerCommand( 56 $options->registerArgument( 63 $options->registerCommand( 68 $options->registerCommand( 85 $command = $options->getCmd(); [all …]
|
| /dokuwiki/inc/ |
| H A D | PassHash.php | 28 * @param string $clear Clear-Text password 46 if (preg_match('/^\$1\$([^\$]{0,8})\$/', $hash, $m)) { 48 $salt = $m[1]; 50 } elseif (preg_match('/^\$apr1\$([^\$]{0,8})\$/', $hash, $m)) { 52 $salt = $m[1]; 54 } elseif (preg_match('/^\$S\$(.{52})$/', $hash, $m)) { 56 $salt = $m[1]; 58 } elseif (preg_match('/^\$P\$(.{31})$/', $hash, $m)) { 60 $salt = $m[1]; 62 } elseif (preg_match('/^\$H\$(.{31})$/', $hash, $m)) { [all …]
|