Home
last modified time | relevance | path

Searched refs:substr (Results 1 - 25 of 125) sorted by relevance

12345

/dokuwiki/vendor/simplepie/simplepie/library/SimplePie/Content/Type/
H A DSniffer.php98 $official = substr($this->file->headers['content-type'], 0, $pos);
111 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"
146 || substr($this->file->body, 0, 4) === "\x00\x00\xFE\xFF"
147 || substr($this->file->body, 0, 3) === "\xEF\xBB\xBF")
167 if (strtolower(substr($this->file->body, $ws, 14)) === '<!doctype html'
168 || strtolower(substr($this->file->body, $ws, 5)) === '<html'
169 || strtolower(substr(
[all...]
/dokuwiki/lib/plugins/authad/adLDAP/classes/
H A DadLDAPUtils.php75 $groupArray[] = substr($bits[0], 3, (strlen($bits[0])-3));
122 $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);
129 $octet_str .= '\\' . substr($strGUID, 12, 2);
130 //$octet_str .= '\\' . substr(
[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);
117 $salt = substr($hash, 0, 2);
159 if(strlen($salt) > $len && $cut) $salt = substr(
[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'){
506 if (io_mkdir_p(substr($target,0,strrpos($target,'/')))){
721 if(substr(
[all...]
H A Dpageutils.php74 if(substr($id,-1) == ':' || ($conf['useslash'] && substr($id,-1) == '/')){
83 $id = substr($id,0,-1);
170 return substr((string)$id,0,$pos);
186 return substr($id, $pos+1);
415 $name = substr($id,0, -1*strlen($ext[0])-1);
565 if(in_array(substr($page,-1), array(':', ';')) ||
566 ($conf['useslash'] && substr($page,-1) == '/')){
587 if(substr($page,-1) == 's'){
588 $try = substr(
[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/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(
[all...]
H A Dindex.js5 $clicky[0].search.substr(1) + '&call=index',
/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(
[all...]
H A DMisc.php319 $data = substr($data, 0, strcspn($data, $non_ascii_octects));
1732 elseif (substr($curl, 0, 5) === 'curl/')
1734 $curl = substr($curl, 5, strcspn($curl, "\x09\x0A\x0B\x0C\x0D", 5));
1736 elseif (substr($curl, 0, 8) === 'libcurl/')
1738 $curl = substr($curl, 8, strcspn($curl, "\x09\x0A\x0B\x0C\x0D", 8));
1758 $output .= substr($data, 0, $start);
1807 $output .= substr($string, $position, $pos - $position);
1845 $output .= substr($string, $position);
1857 return trim(substr($mime, 0, $pos));
1932 if (in_array(substr(
[all...]
H A DParser.php105 if (substr($data, 0, 4) === "\x00\x00\xFE\xFF")
107 $data = substr($data, 4);
110 elseif (substr($data, 0, 4) === "\xFF\xFE\x00\x00")
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);
125 elseif (substr($data, 0, 3) === "\xEF\xBB\xBF")
127 $data = substr(
[all...]
H A DIRI.php163 call_user_func(array($this, 'set_' . substr($name, 1)), $value);
199 elseif (($prop = substr($name, 1)) && array_key_exists($prop, $props))
318 $target->ipath = substr($base->ipath, 0, $last_segment + 1) . $relative->ipath;
407 $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);
772 if (!$isauthority && (substr($this->ipath, 0, 2) === '//')) return false;
907 $iuserinfo = substr(
[all...]
/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/phpseclib/phpseclib/phpseclib/Crypt/
H A DBase.php636 $key = substr($t, 0, $dkLen);
638 $this->setKey(substr($key, 0, $dkLen >> 1));
639 $this->setIV(substr($key, $dkLen >> 1));
658 $key = substr($key, 0, $dkLen);
706 return !defined('OPENSSL_RAW_DATA') ? substr($result, 0, -$this->block_size) : $result;
710 $result = substr($result, 0, -$this->block_size);
713 $this->encryptIV = substr($result, -$this->block_size);
744 $ciphertext = substr($iv, $orig_pos) ^ $plaintext;
746 $plaintext = substr($plaintext, $i);
752 $ciphertext.= openssl_encrypt(substr(
1980 $substr = substr($string, 0, $index); global() variable
1997 $substr = substr($string, -$index); global() variable
[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));
346 * echo $des->encrypt(substr($plaintext, 0, 8));
347 * echo $des->encrypt(substr($plaintext, 8, 8));
357 * $des->encrypt(substr($plaintext, 0, 8));
358 * echo $des->decrypt($des->encrypt(substr(
[all...]
/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/inc/Utf8/
H A DPhpString.php28 $path = substr($path, $rpos + 1);
32 if ($suflen && (substr($path, -$suflen) === $suffix)) {
33 $path = substr($path, 0, -$suflen);
71 * UTF-8 aware alternative to substr
83 public static function substr($str, $offset, $length = null) function
100 * substr documentation states false can be returned in some cases (e.g. offset > string length)
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
276 // mb_substr() treats $length differently than substr()
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/simplepie/simplepie/library/SimplePie/HTTP/
H A DParser.php196 if (strpos($this->data, "\x0A") !== false && strtoupper(substr($this->data, 0, 5)) === 'HTTP/')
199 $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(
[all...]
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/File/
H A DASN1.php273 $temp = substr($encoded, $encoded_pos, $length);
278 extract(unpack('Nlength', substr(str_pad($temp, 4, chr(0), STR_PAD_LEFT), -4)));
287 $content = substr($encoded, $encoded_pos, $length);
324 if (substr($content, $content_pos + $length, 2) == "\0\0") {
364 $current['content'] = new BigInteger(substr($content, $content_pos), -256);
373 $current['content'] = substr($content, $content_pos);
386 $current['content'].= substr($temp[$i]['content'], 1);
392 $current['content'] = $temp[$last]['content'][0] . $current['content'] . substr($temp[$i]['content'], 1);
397 $current['content'] = substr($content, $content_pos);
401 while (substr(
1344 $substr = substr($string, 0, $index); global() variable
[all...]
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/System/SSH/Agent/
H A DIdentity.php237 $substr = substr($string, 0, $index); variable
238 $string = substr($string, $index);
239 return $substr;

Completed in 58 milliseconds

12345