PageRenderTime 723ms queryFilters 1ms Sphinxql 282ms GetByIds 361ms meta 0ms repositoryFilters 1ms languageFilters 0ms sourceFilters 41ms

56,310 results for 'php chr repo:thomasvandiepen/uva-searchengines' (723 ms)

Source

Language

Repository

function_core.php https://github.com/kuaileshike/upload.git | PHP | 2,018 lines
1<?php
2
165		$box[$j] = $tmp;
166		$result .= chr(ord($string[$i]) ^ ($box[($box[$a] + $box[$j]) % 256]));
167	}
209		} else {
210			if(PHP_VERSION < '5.4.0') {
211				$string = htmlspecialchars($string, $flags);
246	$string = str_replace(array("\r", "\n"), array('', ''), $string);
247	if(empty($http_response_code) || PHP_VERSION < '4.3' ) {
248		@header($string, $replace);
276	$life = $life > 0 ? getglobal('timestamp') + $life : ($life < 0 ? getglobal('timestamp') - 31536000 : 0);
277	$path = $httponly && PHP_VERSION < '5.2.0' ? $config['cookiepath'].'; HttpOnly' : $config['cookiepath'];
278
400	if(!$staticavatar && !$static) {
401		return $returnsrc ? $ucenterurl.'/avatar.php?uid='.$uid.'&size='.$size : '<img src="'.$ucenterurl.'/avatar.php?uid='.$uid.'&size='.$size.($real ? '&type=real' : '').'" />';
402	} else {
text_helper.php https://github.com/CodeIgniter-TW/Web.git | PHP | 533 lines
1<?php
2/**
202				{
203					$out .= chr(192 + (($digits - ($digits % 64)) / 64)).chr(128 + ($digits % 64));
204				}
206				{
207					$out .= chr(224 + (($digits - ($digits % 4096)) / 4096))
208						.chr(128 + ((($digits % 4096) - ($digits % 64)) / 64))
208						.chr(128 + ((($digits % 4096) - ($digits % 64)) / 64))
209						.chr(128 + ($digits % 64));
210				}
295		$str = str_replace(array('&lt;', '&gt;', '<?', '?>', '<%', '%>', '\\', '</script>'),
296					array('<', '>', 'phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'),
297					$str);
316		// Replace our markers back to PHP tags.
317		return str_replace(array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'),
318					array('&lt;?', '?&gt;', '&lt;%', '%&gt;', '\\', '&lt;/script&gt;'),
rcube_charset.php https://github.com/netconstructor/roundcubemail.git | PHP | 792 lines
1<?php
2
4 +-----------------------------------------------------------------------+
5 | program/include/rcube_charset.php                                     |
6 |                                                                       |
391            if ($c >= 0x0001 && $c <= 0x007F) {
392                $dec .= chr($c);
393            }
394            else if ($c > 0x07FF) {
395                $dec .= chr(0xE0 | (($c >> 12) & 0x0F));
396                $dec .= chr(0x80 | (($c >>  6) & 0x3F));
396                $dec .= chr(0x80 | (($c >>  6) & 0x3F));
397                $dec .= chr(0x80 | (($c >>  0) & 0x3F));
398            }
399            else {
400                $dec .= chr(0xC0 | (($c >>  6) & 0x1F));
401                $dec .= chr(0x80 | (($c >>  0) & 0x3F));
TripleDES.php https://github.com/kea/phpseclib.git | PHP | 1,055 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
8 *
9 * PHP versions 4 and 5
10 *
12 * <code>
13 * <?php
14 *    include('Crypt/TripleDES.php');
49 * @package    Crypt_TripleDES
50 * @author     Jim Wigginton <terrafrost@php.net>
51 * @copyright  MMVII Jim Wigginton
52 * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
53 * @version    $Id: TripleDES.php,v 1.13 2010/02/26 03:40:25 terrafrost Exp $
54 * @link       http://phpseclib.sourceforge.net
687        if ($this->paddable) {
688            // we pad with chr(0) since that's what mcrypt_generic does.  to quote from http://php.net/function.mcrypt-generic :
689            // "The data is padded with "\0" to make sure the length of the data is n * blocksize."
DES.php https://github.com/kea/phpseclib.git | PHP | 1,298 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
8 *
9 * PHP versions 4 and 5
10 *
18 * <code>
19 * <?php
20 *    include('Crypt/DES.php');
55 * @package    Crypt_DES
56 * @author     Jim Wigginton <terrafrost@php.net>
57 * @copyright  MMVII Jim Wigginton
58 * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
59 * @version    $Id: DES.php,v 1.12 2010/02/09 06:10:26 terrafrost Exp $
60 * @link       http://phpseclib.sourceforge.net
666        if ($this->paddable) {
667            // we pad with chr(0) since that's what mcrypt_generic does.  to quote from http://php.net/function.mcrypt-generic :
668            // "The data is padded with "\0" to make sure the length of the data is n * blocksize."
function_core.php https://github.com/jinbo51/DiscuzX.git | PHP | 2,070 lines
1<?php
2
165		$box[$j] = $tmp;
166		$result .= chr(ord($string[$i]) ^ ($box[($box[$a] + $box[$j]) % 256]));
167	}
209		} else {
210			if(PHP_VERSION < '5.4.0') {
211				$string = htmlspecialchars($string, $flags);
246	$string = str_replace(array("\r", "\n"), array('', ''), $string);
247	if(empty($http_response_code) || PHP_VERSION < '4.3' ) {
248		@header($string, $replace);
276	$life = $life > 0 ? getglobal('timestamp') + $life : ($life < 0 ? getglobal('timestamp') - 31536000 : 0);
277	$path = $httponly && PHP_VERSION < '5.2.0' ? $config['cookiepath'].'; HttpOnly' : $config['cookiepath'];
278
408	if(!$staticavatar && !$static) {
409		return $returnsrc ? $ucenterurl.'/avatar.php?uid='.$uid.'&size='.$size : '<img src="'.$ucenterurl.'/avatar.php?uid='.$uid.'&size='.$size.($real ? '&type=real' : '').'" />';
410	} else {
TripleDES.php https://github.com/sezuan/core.git | PHP | 1,081 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
8 *
9 * PHP versions 4 and 5
10 *
12 * <code>
13 * <?php
14 *    include('Crypt/TripleDES.php');
49 * @package    Crypt_TripleDES
50 * @author     Jim Wigginton <terrafrost@php.net>
51 * @copyright  MMVII Jim Wigginton
52 * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
53 * @version    $Id: TripleDES.php,v 1.13 2010/02/26 03:40:25 terrafrost Exp $
54 * @link       http://phpseclib.sourceforge.net
711        if ($this->paddable) {
712            // we pad with chr(0) since that's what mcrypt_generic does.  to quote from http://php.net/function.mcrypt-generic :
713            // "The data is padded with "\0" to make sure the length of the data is n * blocksize."
DES.php https://github.com/sezuan/core.git | PHP | 1,335 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
8 *
9 * PHP versions 4 and 5
10 *
18 * <code>
19 * <?php
20 *    include('Crypt/DES.php');
55 * @package    Crypt_DES
56 * @author     Jim Wigginton <terrafrost@php.net>
57 * @copyright  MMVII Jim Wigginton
58 * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
59 * @version    $Id: DES.php,v 1.12 2010/02/09 06:10:26 terrafrost Exp $
60 * @link       http://phpseclib.sourceforge.net
691        if ($this->paddable) {
692            // we pad with chr(0) since that's what mcrypt_generic does.  to quote from http://php.net/function.mcrypt-generic :
693            // "The data is padded with "\0" to make sure the length of the data is n * blocksize."
text_helper.php https://bitbucket.org/siriusdely/codeigniter-reactor | PHP | 535 lines
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2/**
196				{
197					$out .= chr(192 + (($digits - ($digits % 64)) / 64));
198					$out .= chr(128 + ($digits % 64));
201				{
202					$out .= chr(224 + (($digits - ($digits % 4096)) / 4096));
203					$out .= chr(128 + ((($digits % 4096) - ($digits % 64)) / 64));
203					$out .= chr(128 + ((($digits % 4096) - ($digits % 64)) / 64));
204					$out .= chr(128 + ($digits % 64));
205				}
292		$str = str_replace(array('<?', '?>', '<%', '%>', '\\', '</script>'),
293							array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'), $str);
294
316		// Replace our markers back to PHP tags.
317		$str = str_replace(array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'),
318							array('&lt;?', '?&gt;', '&lt;%', '%&gt;', '\\', '&lt;/script&gt;'), $str);
text_helper.php https://bitbucket.org/hlevine/myclientbase-south-african-version | PHP | 535 lines
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2/**
196				{
197					$out .= chr(192 + (($digits - ($digits % 64)) / 64));
198					$out .= chr(128 + ($digits % 64));
201				{
202					$out .= chr(224 + (($digits - ($digits % 4096)) / 4096));
203					$out .= chr(128 + ((($digits % 4096) - ($digits % 64)) / 64));
203					$out .= chr(128 + ((($digits % 4096) - ($digits % 64)) / 64));
204					$out .= chr(128 + ($digits % 64));
205				}
292		$str = str_replace(array('<?', '?>', '<%', '%>', '\\', '</script>'),
293							array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'), $str);
294
316		// Replace our markers back to PHP tags.
317		$str = str_replace(array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'),
318							array('&lt;?', '?&gt;', '&lt;%', '%&gt;', '\\', '&lt;/script&gt;'), $str);
text_helper.php https://bitbucket.org/ebottabi/ci-resque | PHP | 535 lines
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2/**
196				{
197					$out .= chr(192 + (($digits - ($digits % 64)) / 64));
198					$out .= chr(128 + ($digits % 64));
201				{
202					$out .= chr(224 + (($digits - ($digits % 4096)) / 4096));
203					$out .= chr(128 + ((($digits % 4096) - ($digits % 64)) / 64));
203					$out .= chr(128 + ((($digits % 4096) - ($digits % 64)) / 64));
204					$out .= chr(128 + ($digits % 64));
205				}
292		$str = str_replace(array('<?', '?>', '<%', '%>', '\\', '</script>'),
293							array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'), $str);
294
316		// Replace our markers back to PHP tags.
317		$str = str_replace(array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'),
318							array('&lt;?', '?&gt;', '&lt;%', '%&gt;', '\\', '&lt;/script&gt;'), $str);
text_helper.php https://github.com/blogaristic/Zebra.git | PHP | 534 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2/**
203				{
204					$out .= chr(192 + (($digits - ($digits % 64)) / 64)).chr(128 + ($digits % 64));
205				}
207				{
208					$out .= chr(224 + (($digits - ($digits % 4096)) / 4096))
209						.chr(128 + ((($digits % 4096) - ($digits % 64)) / 64))
209						.chr(128 + ((($digits % 4096) - ($digits % 64)) / 64))
210						.chr(128 + ($digits % 64));
211				}
296		$str = str_replace(array('&lt;', '&gt;', '<?', '?>', '<%', '%>', '\\', '</script>'),
297					array('<', '>', 'phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'),
298					$str);
317		// Replace our markers back to PHP tags.
318		return str_replace(array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'),
319					array('&lt;?', '?&gt;', '&lt;%', '%&gt;', '\\', '&lt;/script&gt;'),
text_helper.php https://github.com/joelmwas/CodeIgniter.git | PHP | 542 lines
1<?php
2/**
207				{
208					$out .= chr(192 + (($digits - ($digits % 64)) / 64)).chr(128 + ($digits % 64));
209				}
211				{
212					$out .= chr(224 + (($digits - ($digits % 4096)) / 4096))
213						.chr(128 + ((($digits % 4096) - ($digits % 64)) / 64))
213						.chr(128 + ((($digits % 4096) - ($digits % 64)) / 64))
214						.chr(128 + ($digits % 64));
215				}
303			array('&lt;', '&gt;', '<?', '?>', '<%', '%>', '\\', '</script>'),
304			array('<', '>', 'phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'),
305			$str
328		return str_replace(
329			array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'),
330			array('&lt;?', '?&gt;', '&lt;%', '%&gt;', '\\', '&lt;/script&gt;'),
mo.php https://bitbucket.org/acipriani/madeinapulia.com | PHP | 265 lines
1<?php
2/**
4 *
5 * @version $Id: mo.php 718 2012-10-31 00:32:02Z nbachiyski $
6 * @package pomo
9
10require_once dirname(__FILE__) . '/translations.php';
11require_once dirname(__FILE__) . '/streams.php';
38	function export() {
39		$tmp_fh = fopen("php://temp", 'r+');
40		if ( !$tmp_fh ) return false;
75		$current_addr++;
76		$originals_table = chr(0);
77
80		foreach($entries as $entry) {
81			$originals_table .= $this->export_original($entry) . chr(0);
82			$length = $reader->strlen($this->export_original($entry));
mo.php https://bitbucket.org/Thane2376/death-edge.ru.git | PHP | 262 lines
1<?php
2/**
4 *
5 * @version $Id: mo.php 718 2012-10-31 00:32:02Z nbachiyski $
6 * @package pomo
9
10require_once dirname(__FILE__) . '/translations.php';
11require_once dirname(__FILE__) . '/streams.php';
38	function export() {
39		$tmp_fh = fopen("php://temp", 'r+');
40		if ( !$tmp_fh ) return false;
75		$current_addr++;
76		$originals_table = chr(0);
77
80		foreach($entries as $entry) {
81			$originals_table .= $this->export_original($entry) . chr(0);
82			$length = $reader->strlen($this->export_original($entry));
text_helper.php https://bitbucket.org/1OOSUR/generate-controller-gc.git | PHP | 526 lines
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2/**
196				{
197					$out .= chr(192 + (($digits - ($digits % 64)) / 64));
198					$out .= chr(128 + ($digits % 64));
201				{
202					$out .= chr(224 + (($digits - ($digits % 4096)) / 4096));
203					$out .= chr(128 + ((($digits % 4096) - ($digits % 64)) / 64));
203					$out .= chr(128 + ((($digits % 4096) - ($digits % 64)) / 64));
204					$out .= chr(128 + ($digits % 64));
205				}
292		$str = str_replace(array('<?', '?>', '<%', '%>', '\\', '</script>'),
293							array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'), $str);
294
307		// Replace our markers back to PHP tags.
308		$str = str_replace(array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'),
309							array('&lt;?', '?&gt;', '&lt;%', '%&gt;', '\\', '&lt;/script&gt;'), $str);
Base.class.php https://bitbucket.org/ronaldobrandini/framework.git | PHP | 1,935 lines
207     *
208     * @link http://phpseclib.sourceforge.net/cfb-demo.phps
209     * @see Base::encrypt()
608
609            // re: {@link http://phpseclib.sourceforge.net/cfb-demo.phps}
610            // using mcrypt's default handing of CFB the above would output two different things.  using phpseclib's
875            if($this->paddable){
876                // we pad with chr(0) since that's what mcrypt_generic does.  to quote from {@link http://www.php.net/function.mcrypt-generic}:
877                // "The data is padded with "\0" to make sure the length of the data is n * blocksize."
1239            // to workaround mcrypt's broken ncfb implementation in buffered mode
1240            // see: {@link http://phpseclib.sourceforge.net/cfb-demo.phps}
1241            if($this->mode == CRYPT_MODE_CFB){
1418     *       - 100% compatible to encrypt()/decrypt()
1419     *       - using only php5+ features/lang-constructs/php-extensions if
1420     *         compatibility (down to php4) or fallback is provided
TripleDES.php https://github.com/DaveBenNoah/PrestaShop-modules.git | PHP | 1,062 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
8 *
9 * PHP versions 4 and 5
10 *
12 * <code>
13 * <?php
14 *    include('Crypt/TripleDES.php');
49 * @package    Crypt_TripleDES
50 * @author     Jim Wigginton <terrafrost@php.net>
51 * @copyright  MMVII Jim Wigginton
52 * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
53 * @version    $Id: TripleDES.php,v 1.13 2010/02/26 03:40:25 terrafrost Exp $
54 * @link       http://phpseclib.sourceforge.net
697        if ($this->paddable) {
698            // we pad with chr(0) since that's what mcrypt_generic does.  to quote from http://php.net/function.mcrypt-generic :
699            // "The data is padded with "\0" to make sure the length of the data is n * blocksize."
text_helper.php https://github.com/betchi/CodeIgniter.git | PHP | 541 lines
1<?php
2/**
207				{
208					$out .= chr(192 + (($digits - ($digits % 64)) / 64)).chr(128 + ($digits % 64));
209				}
211				{
212					$out .= chr(224 + (($digits - ($digits % 4096)) / 4096))
213						.chr(128 + ((($digits % 4096) - ($digits % 64)) / 64))
213						.chr(128 + ((($digits % 4096) - ($digits % 64)) / 64))
214						.chr(128 + ($digits % 64));
215				}
303			array('&lt;', '&gt;', '<?', '?>', '<%', '%>', '\\', '</script>'),
304			array('<', '>', 'phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'),
305			$str
328		return str_replace(
329			array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'),
330			array('&lt;?', '?&gt;', '&lt;%', '%&gt;', '\\', '&lt;/script&gt;'),
mo.php https://github.com/davodey/WordPress.git | PHP | 260 lines
1<?php
2/**
4 *
5 * @version $Id: mo.php 718 2012-10-31 00:32:02Z nbachiyski $
6 * @package pomo
9
10require_once dirname(__FILE__) . '/translations.php';
11require_once dirname(__FILE__) . '/streams.php';
38	function export() {
39		$tmp_fh = fopen("php://temp", 'r+');
40		if ( !$tmp_fh ) return false;
75		$current_addr++;
76		$originals_table = chr(0);
77
78		foreach($entries as $entry) {
79			$originals_table .= $this->export_original($entry) . chr(0);
80			$length = strlen($this->export_original($entry));
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21