Home
last modified time | relevance | path

Searched refs:substr (Results 1 – 25 of 127) sorted by relevance

123456

/dokuwiki/vendor/simplepie/simplepie/library/SimplePie/Content/Type/
H A DSniffer.php111 elseif (substr($official, -4) === '+xml'
117 elseif (substr($official, 0, 6) === 'image/')
144 if (substr($this->file->body, 0, 2) === "\xFE\xFF"
145 || substr($this->file->body, 0, 2) === "\xFF\xFE"
173 elseif (substr($this->file->body, 0, 5) === '%PDF-')
181 elseif (substr($this->file->body, 0, 6) === 'GIF87a'
182 || substr($this->file->body, 0, 6) === 'GIF89a')
213 if (substr($this->file->body, 0, 6) === 'GIF87a'
214 || substr($this->file->body, 0, 6) === 'GIF89a')
267 if (substr($this->file->body, $pos, 3) === '!--')
[all …]
/dokuwiki/lib/plugins/authad/adLDAP/classes/
H A DadLDAPUtils.php122 $octet_str = '\\' . substr($strGUID, 6, 2);
123 $octet_str .= '\\' . substr($strGUID, 4, 2);
124 $octet_str .= '\\' . substr($strGUID, 2, 2);
125 $octet_str .= '\\' . substr($strGUID, 0, 2);
126 $octet_str .= '\\' . substr($strGUID, 10, 2);
127 $octet_str .= '\\' . substr($strGUID, 8, 2);
128 $octet_str .= '\\' . substr($strGUID, 14, 2);
148 $rev = hexdec(substr($hex_sid, 0, 2));
149 $subcount = hexdec(substr($hex_sid, 2, 2));
150 $auth = hexdec(substr($hex_sid, 4, 12));
[all …]
/dokuwiki/vendor/openpsa/universalfeedcreator/lib/Element/
H A DFeedDate.php50 if (substr($matches[7], 0, 1) == '+' OR substr($matches[7], 0, 1) == '-') {
51 … $tzOffset = (((int)substr($matches[7], 0, 3) * 60) + (int)substr($matches[7], -2)) * 60;
76 if (substr($matches[7], 0, 1) == '+' OR substr($matches[7], 0, 1) == '-') {
77 … $tzOffset = (((int)substr($matches[7], 0, 3) * 60) + (int)substr($matches[7], -2)) * 60;
/dokuwiki/inc/
H A Dload.php93 if(substr($name, 0, 14) === 'dokuwiki/test/') {
94 $file = DOKU_INC . '_test/' . substr($name, 14) . '.php';
102 if(substr($name, 0, 16) === 'dokuwiki/plugin/') {
104 $file = DOKU_PLUGIN . substr($name, 16) . '.php';
116 if(substr($name, 0, 18) === 'dokuwiki/template/') {
118 $file = DOKU_INC.'lib/tpl/' . substr($name, 18) . '.php';
130 if(substr($name, 0, 9) === 'dokuwiki/') {
131 $file = DOKU_INC . 'inc/' . substr($name, 9) . '.php';
H A Dconfutils.php37 $ext = strtolower(substr($file, $ext + 1));
46 return array($ext, substr($mtypes[$ext],1), true);
221 if(isset($lines[0]) && substr($lines[0], 0, 3) == pack('CCC', 0xef, 0xbb, 0xbf))
222 $lines[0] = substr($lines[0], 3);
444 switch (substr($str,0,3)) {
445 case '<b>' : return base64_decode(substr($str,3));
446 case '<u>' : return convert_uudecode(substr($str,3));
462 if (substr($val,0,1) == DOKU_CONF_NEGATION) {
463 $idx = array_search(trim(substr($val,1)),$current);
H A DPassHash.php36 if (substr($hash, 0, 2) == 'U$') {
39 $hash = substr($hash, 1);
86 } elseif(substr($hash, 0, 6) == '{SSHA}') {
88 $salt = substr(base64_decode(substr($hash, 6)), 20);
89 } elseif(substr($hash, 0, 6) == '{SMD5}') {
91 $salt = substr(base64_decode(substr($hash, 6)), 16);
120 $salt = substr($hash, 0, 2);
233 $text .= substr($bin, 0, min(16, $i));
366 $key = substr($salt, 16, 2);
368 $hash2 = substr($hash1, 0, 16).$key.substr($hash1, 16);
[all …]
H A Dio.php109 if(substr($file,-3) == '.gz'){
113 }else if(substr($file,-4) == '.bz2'){
153 $lines[] = substr($str, 0, $pos+1);
154 $str = substr($str, $pos+1);
231 if(substr($file,-3) == '.gz'){
237 }else if(substr($file,-4) == '.bz2'){
324 if(substr($file,-3) == '.gz'){
327 }else if(substr($file,-4) == '.bz2'){
721 if(substr($line,-1) != "\n") continue;
752 if(substr($file,-3) == '.gz'){
[all …]
/dokuwiki/lib/tpl/dokuwiki/images/
H A Dpagetools-build.php80 $hex = substr($hex,0,1).
81 substr($hex,0,1).
82 substr($hex,1,1).
83 substr($hex,1,1).
84 substr($hex,2,1).
85 substr($hex,2,1);
90 'r' => hexdec(substr($hex, 0, 2)),
91 'g' => hexdec(substr($hex, 2, 2)),
92 'b' => hexdec(substr($hex, 4, 2))
/dokuwiki/vendor/simplepie/simplepie/library/SimplePie/
H A Dgzdecode.php206 if (substr($this->compressed_data, 0, 3) !== "\x1F\x8B\x08")
224 $mtime = substr($this->compressed_data, $this->position, 4);
253 $len = current(unpack('v', substr($this->compressed_data, $this->position, 2)));
261 $this->extra_field = substr($this->compressed_data, $this->position, $len);
281 $this->filename = substr($this->compressed_data, $this->position, $len);
301 $this->comment = substr($this->compressed_data, $this->position, $len);
318 $crc = current(unpack('v', substr($this->compressed_data, $this->position, 2)));
321 if ((crc32(substr($this->compressed_data, 0, $this->position)) & 0xFFFF) === $crc)
337 if (($this->data = gzinflate(substr($this->compressed_data, $this->position, -8))) === false)
345 $crc = current(unpack('V', substr($this->compressed_data, $this->position, 4)));
[all …]
H A DMisc.php1732 elseif (substr($curl, 0, 5) === 'curl/')
1736 elseif (substr($curl, 0, 8) === 'libcurl/')
1758 $output .= substr($data, 0, $start);
1845 $output .= substr($string, $position);
1857 return trim(substr($mime, 0, $pos));
1932 if (in_array(substr($type, -4), array('+xml', '/xml')) || substr($type, 0, 5) === 'text/')
1961 $tokens[] = substr($string, $position, $len);
2046 if (substr($data, 0, 4) === "\x00\x00\xFE\xFF")
2056 elseif (substr($data, 0, 2) === "\xFE\xFF")
2061 elseif (substr($data, 0, 2) === "\xFF\xFE")
[all …]
H A DParser.php105 if (substr($data, 0, 4) === "\x00\x00\xFE\xFF")
107 $data = substr($data, 4);
112 $data = substr($data, 4);
115 elseif (substr($data, 0, 2) === "\xFE\xFF")
117 $data = substr($data, 2);
120 elseif (substr($data, 0, 2) === "\xFF\xFE")
122 $data = substr($data, 2);
127 $data = substr($data, 3);
135 $data = substr($data, $pos + 2);
391 $namespace = substr($string, 0, $pos);
[all …]
H A DIRI.php407 $input = substr($input, 3);
411 $input = substr($input, 2);
416 $input = substr($input, 2);
425 $input = substr($input, 3);
441 $output .= substr($input, 0, $pos);
907 $iuserinfo = substr($remaining, 0, $iuserinfo_end);
908 $remaining = substr($remaining, $iuserinfo_end + 1);
916 if (($port = substr($remaining, $port_start + 1)) === false)
920 $remaining = substr($remaining, 0, $port_start);
974 elseif (substr($ihost, 0, 1) === '[' && substr($ihost, -1) === ']')
[all …]
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/
H A DBase.php968 $iv = substr($iv, 1) . $c;
975 … $this->encryptIV = substr($this->encryptIV, $len - $block_size) . substr($ciphertext, -$len);
1301 … $this->decryptIV = substr($this->decryptIV, $len - $block_size) . substr($ciphertext, -$len);
1478 … $encryptIV = substr($ciphertext, -$block_size) ^ substr($plaintext, -$block_size);
1942 return substr($text, 0, -$length);
1980 $substr = substr($string, 0, $index);
1981 $string = substr($string, $index);
1982 return $substr;
1997 $substr = substr($string, -$index);
1999 return $substr;
[all …]
H A DTripleDES.php267 $key = str_pad(substr($key, 0, 24), 24, chr(0));
270 … $key = $length <= 16 ? substr_replace($key, substr($key, 0, 8), 16) : substr($key, 0, 24);
281 $this->des[0]->setKey(substr($key, 0, 8));
282 $this->des[1]->setKey(substr($key, 8, 8));
283 $this->des[2]->setKey(substr($key, 16, 8));
/dokuwiki/lib/scripts/
H A Deditor.js136 var search = "\n"+this.value.substr(0,selection.start);
139 search = search.substr(linestart);
153 if (match2 && this.value.substr(selection.start).match(/^($|\r?\n)/)) {
154 this.value = this.value.substr(0, linestart) + "\n" +
155 this.value.substr(selection.start);
173 this.value = this.value.substr(0,linestart)+
174 this.value.substr(linestart+2);
178 this.value = this.value.substr(0,linestart)+
179 this.value.substr(selection.start);
191 this.value = this.value.substr(0,linestart)+' '+
[all …]
H A Dindex.js5 $clicky[0].search.substr(1) + '&call=index',
/dokuwiki/vendor/simplepie/simplepie/library/SimplePie/XML/Declaration/
H A DParser.php174 $quote = substr($this->data, $this->position, 1);
181 $value = substr($this->data, $this->position, $len);
203 if (substr($this->data, $this->position, 7) === 'version')
217 if (substr($this->data, $this->position, 1) === '=')
251 if (substr($this->data, $this->position, 8) === 'encoding')
265 if (substr($this->data, $this->position, 1) === '=')
299 if (substr($this->data, $this->position, 10) === 'standalone')
313 if (substr($this->data, $this->position, 1) === '=')
/dokuwiki/vendor/openpsa/universalfeedcreator/lib/Creator/
H A DFeedCreator.php103 $string = substr($string, 0, $length - 4);
107 return substr($string, 0, $pos + 1)." ...";
112 $string = substr($string, 0, $length - 4);
116 return substr($string, 0, $pos)." ...";
119 return substr($string, 0, $length - 4)." ...";
187 return substr($fileInfo["basename"], 0, -(strlen($fileInfo["extension"]) + 1)).".xml";
H A DJSCreator.php42 return substr($fileInfo["basename"], 0, -(strlen($fileInfo["extension"]) + 1)).".js";
/dokuwiki/vendor/simplepie/simplepie/library/SimplePie/HTTP/
H A DParser.php199 $this->http_version = substr($this->data, 5, $len);
225 $this->status_code = (int) substr($this->data, $this->position, $len);
241 $this->reason = trim(substr($this->data, $this->position, $len), "\x09\x0D\x20");
267 if (substr($this->data[$this->position], 0, 2) === "\x0D\x0A")
298 $this->name = substr($this->data, $this->position, $len);
316 if (substr($this->data, $this->position, 2) === "\x0D\x0A")
374 $this->value .= substr($this->data, $this->position, $len);
420 $this->value .= substr($this->data, $this->position, $len);
440 $this->body = substr($this->data, $this->position);
486 $decoded .= $part = substr($encoded, $chunk_length, $length);
[all …]
/dokuwiki/inc/Utf8/
H A DPhpString.php28 $path = substr($path, $rpos + 1);
32 if ($suflen && (substr($path, -$suflen) === $suffix)) {
33 $path = substr($path, 0, -$suflen);
83 public static function substr($str, $offset, $length = null) function in dokuwiki\\Utf8\\PhpString
193 if ($start > 0) $ret .= self::substr($string, 0, $start);
195 $ret .= self::substr($string, $start + $length);
373 $length = self::strlen(substr($haystack, 0, $pos));
/dokuwiki/vendor/splitbrain/php-cli/src/
H A DTableFormatter.php134 if (substr($col, -1) == '%') {
154 if (substr($col, -1) != '%') {
271 protected function substr($string, $start = 0, $length = null) function in splitbrain\\phpcli\\TableFormatter
278 return substr($string, $start, $length);
280 return substr($string, $start);
314 $line .= $this->substr($actual, 0, $width) . $break;
315 $actual = $this->substr($actual, $width);
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/System/SSH/Agent/
H A DIdentity.php237 $substr = substr($string, 0, $index);
238 $string = substr($string, $index);
239 return $substr;
/dokuwiki/vendor/simplepie/simplepie/library/SimplePie/Decode/HTML/
H A DEntities.php135 $data = substr($this->data, $this->position, $len);
151 $this->consumed = substr($this->consumed, 0, -1);
595 $consumed = substr($this->consumed, 1);
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/File/
H A DASN1.php273 $temp = substr($encoded, $encoded_pos, $length);
287 $content = substr($encoded, $encoded_pos, $length);
414 if (substr($content, $content_pos, 2) == "\0\0") {
489 $current['content'] = substr($content, $content_pos);
925 $temp = $subtag . substr($temp, 1);
959 $temp = $subtag . substr($temp, 1);
1274 $prefix = substr($content, 0, 2) >= 50 ? '19' : '20';
1281 $content = substr($content, 0, -1) . '+0000';
1344 $substr = substr($string, 0, $index);
1345 $string = substr($string, $index);
[all …]

123456