PageRenderTime 162ms queryFilters 0ms Sphinxql 30ms app.CodeModel.GetByIds 61ms findMatchingLines 38ms GetByIds 99ms meta 0ms repositoryFilters 11ms languageFilters 3ms sourceFilters 4ms

21,207 results for 'php chr repo:aoseala/yii-bootstrap' (162 ms)

Source

Language

Repository

Services_JSON.php https://bitbucket.org/brunodefraine/mediawiki | PHP | 882 lines
55* @license http://www.opensource.org/licenses/bsd-license.php
56* @see http://pear.php.net/pepr/pepr-proposal-show.php?id=198
57*/
572					$utf8 = '';
573					$strlen_chrs = strlen($chrs);
574
766								 (($chrs[$c - 1] != '\\') ||
767								 ($chrs[$c - 1] == '\\' && $chrs[$c - 2] == '\\'))) {
768							// found a quote, we're in a string, and it's not escaped
806							for ($i = $top['where']; $i <= $c; ++$i)
807								$chrs = substr_replace($chrs, ' ', $i, 1);
808
832		if ( self::pearInstalled() ) {
833			//avoid some strict warnings on PEAR isError check (looks like http://pear.php.net/bugs/bug.php?id=9950 has been around for some time)
834			return @PEAR::isError($data, $code);
json-pear.php https://bitbucket.org/webop/webop-forum | PHP | 811 lines
59 * @license     http://www.opensource.org/licenses/bsd-license.php
60 * @link        http://pear.php.net/pepr/pepr-proposal-show.php?id=198
61 */
521                    $utf8 = '';
522                    $strlen_chrs = strlen($chrs);
523
648
649                    $strlen_chrs = strlen($chrs);
650
704                                 ($top['what'] == SERVICES_JSON_IN_STR) &&
705                                 ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) {
706                            // found a quote, we're in a string, and it's not escaped
746                            for ($i = $top['where']; $i <= $c; ++$i)
747                                $chrs = substr_replace($chrs, ' ', $i, 1);
748
functions.php http://novaboard.googlecode.com/svn/trunk/ | PHP | 1,566 lines
34			$charCheck		=	array(
35									chr(195).chr(128) => 'A', chr(195).chr(129) => 'A',
36									chr(195).chr(130) => 'A', chr(195).chr(131) => 'A',
36									chr(195).chr(130) => 'A', chr(195).chr(131) => 'A',
37									chr(195).chr(132) => 'A', chr(195).chr(133) => 'A',
38									chr(195).chr(135) => 'C', chr(195).chr(136) => 'E',
120									chr(197).chr(178) => 'U', chr(197).chr(179) => 'u',
121									chr(197).chr(180) => 'W', chr(197).chr(181) => 'w',
122									chr(197).chr(182) => 'Y', chr(197).chr(183) => 'y',
123									chr(197).chr(184) => 'Y', chr(197).chr(185) => 'Z',
124									chr(197).chr(186) => 'z', chr(197).chr(187) => 'Z',
125									chr(197).chr(188) => 'z', chr(197).chr(189) => 'Z',
125									chr(197).chr(188) => 'z', chr(197).chr(189) => 'Z',
126									chr(197).chr(190) => 'z', chr(197).chr(191) => 's',
127									chr(226).chr(130).chr(172) => 'E',
ASN1.php https://bitbucket.org/ttalov/fgcu_pci.git | PHP | 1,130 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4/**
5 * Pure-PHP ASN.1 Parser
6 *
6 *
7 * PHP versions 4 and 5
8 *
36 * @package    File_ASN1
37 * @author     Jim Wigginton <terrafrost@php.net>
38 * @copyright  MMXII Jim Wigginton
40 * @version    $Id$
41 * @link       http://phpseclib.sourceforge.net
42 */
46 */
47require_once('Math/BigInteger.php');
48
functions.inc.php https://bitbucket.org/1blankz7/bibioteka.git | PHP | 857 lines
684  } else if ($c <= 0x7FF) {
685    return chr(0xC0 | $c >>  6) . chr(0x80 | $c & 0x3F);
686  } else if ($c <= 0xFFFF) {
686  } else if ($c <= 0xFFFF) {
687    return chr(0xE0 | $c >> 12) . chr(0x80 | $c >> 6 & 0x3F)
688                                . chr(0x80 | $c & 0x3F);
689  } else if ($c <= 0x10FFFF) {
690    return chr(0xF0 | $c >> 18) . chr(0x80 | $c >> 12 & 0x3F)
691                                . chr(0x80 | $c >> 6 & 0x3F)
716 *
717 * @see http://www.php.net/manual/en/function.set-error_handler.php
718 *
825 *
826 * @link http://us.php.net/manual/en/function.sys-get-temp-dir.php#85261
827 */
String.php https://bitbucket.org/crowdguru/phpexcel.git | PHP | 730 lines
33 * @package    PHPExcel_Shared
34 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
517	 * Assumes Big-Endian byte order if no BOM is available.
518	 * This function was taken from http://php.net/manual/en/function.utf8-decode.php
519	 * and $bom_be parameter added.
627	 * Set the decimal separator. Only used by PHPExcel_Style_NumberFormat::toFormattedString()
628	 * to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
629	 *
654	 * Set the thousands separator. Only used by PHPExcel_Style_NumberFormat::toFormattedString()
655	 * to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
656	 *
686	 * Set the currency code. Only used by PHPExcel_Style_NumberFormat::toFormattedString()
687	 *		to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
688	 *
String.php https://bitbucket.org/organicdevelopment/com_phpexcel.git | PHP | 731 lines
33 * @package    PHPExcel_Shared
34 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
517	 * Assumes Big-Endian byte order if no BOM is available.
518	 * This function was taken from http://php.net/manual/en/function.utf8-decode.php
519	 * and $bom_be parameter added.
627	 * Set the decimal separator. Only used by PHPExcel_Style_NumberFormat::toFormattedString()
628	 * to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
629	 *
654	 * Set the thousands separator. Only used by PHPExcel_Style_NumberFormat::toFormattedString()
655	 * to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
656	 *
686	 * Set the currency code. Only used by PHPExcel_Style_NumberFormat::toFormattedString()
687	 *		to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
688	 *
String.php https://bitbucket.org/amorello/changeover.git | PHP | 730 lines
33 * @package    PHPExcel_Shared
34 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
517	 * Assumes Big-Endian byte order if no BOM is available.
518	 * This function was taken from http://php.net/manual/en/function.utf8-decode.php
519	 * and $bom_be parameter added.
627	 * Set the decimal separator. Only used by PHPExcel_Style_NumberFormat::toFormattedString()
628	 * to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
629	 *
654	 * Set the thousands separator. Only used by PHPExcel_Style_NumberFormat::toFormattedString()
655	 * to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
656	 *
686	 * Set the currency code. Only used by PHPExcel_Style_NumberFormat::toFormattedString()
687	 *		to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
688	 *
RSA.php https://bitbucket.org/studiobreakfast/sync.git | PHP | 2,356 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
28 * <code>
29 * <?php
30 *    include('Crypt/RSA.php');
64 * @package    Crypt_RSA
65 * @author     Jim Wigginton <terrafrost@php.net>
66 * @copyright  MMIX Jim Wigginton
393     * For use with parsing XML formatted keys.  PHP's XML Parser functions use utilized - instead of PHP's DOM functions -
394     * because PHP's XML Parser functions work on PHP4 whereas PHP's DOM functions - although surperior - don't.
395     *
636        $raw = array(
637            'version' => $num_primes == 2 ? chr(0) : chr(1), // two-prime vs. multi
638            'modulus' => $n->toBytes(true),
1855        $ps = $this->_random($this->k - $mLen - 3, true);
1856        $em = chr(0) . chr(2) . $ps . chr(0) . $m;
1857
Installer.php https://bitbucket.org/ghostfreeman/freeside-wiki.git | PHP | 1,661 lines
401	public function doEnvironmentChecks() {
402		$phpVersion = phpversion();
403		if( version_compare( $phpVersion, self::MINIMUM_PHP_VERSION, '>=' ) ) {
406		} else {
407			$this->showMessage( 'config-env-php-toolow', $phpVersion, self::MINIMUM_PHP_VERSION );
408			$good = false;
1081		} elseif ($c <= 0xFFFF) {
1082			return chr(0xE0 | $c >> 12) . chr(0x80 | $c >> 6 & 0x3F)
1083				. chr(0x80 | $c & 0x3F);
1084		} elseif ($c <= 0x10FFFF) {
1085			return chr(0xF0 | $c >> 18) . chr(0x80 | $c >> 12 & 0x3F)
1086				. chr(0x80 | $c >> 6 & 0x3F)
1241				"<?php echo 'ex' . 'ec';",
1242				"#!/var/env php5\n<?php echo 'ex' . 'ec';",
1243			),
String.php https://bitbucket.org/graaaf/erso.git | PHP | 707 lines
33 * @package    PHPExcel_Shared
34 * @copyright  Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
507	 * Assumes Big-Endian byte order if no BOM is available.
508	 * This function was taken from http://php.net/manual/en/function.utf8-decode.php
509	 * and $bom_be parameter added.
617	 * Set the decimal separator. Only used by PHPExcel_Style_NumberFormat::toFormattedString()
618	 * to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
619	 *
644	 * Set the thousands separator. Only used by PHPExcel_Style_NumberFormat::toFormattedString()
645	 * to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
646	 *
676	 *	Set the currency code. Only used by PHPExcel_Style_NumberFormat::toFormattedString()
677	 *		to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
678	 *
Decoder.php https://bitbucket.org/efdac/e-forest_platform.git | PHP | 578 lines
431        $chr = $str{$i};
432        if ($chr == '-' || $chr == '.' || ($chr >= '0' && $chr <= '9')) {
433            if (preg_match('/-?([0-9])*(\.[0-9]*)?((e|E)((-|\+)?)[0-9]+)?/s',
469     * @link   http://solarphp.com/
470     * @link   http://svn.solarphp.com/core/trunk/Solar/Json.php
471     * @param  string $value
477        $utf8        = '';
478        $strlen_chrs = strlen($chrs);
479
482            $substr_chrs_c_2 = substr($chrs, $i, 2);
483            $ord_chrs_c = ord($chrs[$i]);
484
488                    $utf16 = chr(hexdec(substr($chrs, ($i + 2), 2)))
489                           . chr(hexdec(substr($chrs, ($i + 4), 2)));
490                    $utf8 .= self::_utf162utf8($utf16);
barcodes.php https://bitbucket.org/izubizarreta/https-bitbucket.org-bityvip.git | PHP | 1,980 lines
457		$encode = array(
458			chr(0) => chr(131).'U', chr(1) => chr(128).'A', chr(2) => chr(128).'B', chr(3) => chr(128).'C',
459			chr(4) => chr(128).'D', chr(5) => chr(128).'E', chr(6) => chr(128).'F', chr(7) => chr(128).'G',
461			chr(12) => chr(128).'L', chr(13) => chr(128).'M', chr(14) => chr(128).'N', chr(15) => chr(128).'O',
462			chr(16) => chr(128).'P', chr(17) => chr(128).'Q', chr(18) => chr(128).'R', chr(19) => chr(128).'S',
463			chr(20) => chr(128).'T', chr(21) => chr(128).'U', chr(22) => chr(128).'V', chr(23) => chr(128).'W',
463			chr(20) => chr(128).'T', chr(21) => chr(128).'U', chr(22) => chr(128).'V', chr(23) => chr(128).'W',
464			chr(24) => chr(128).'X', chr(25) => chr(128).'Y', chr(26) => chr(128).'Z', chr(27) => chr(131).'A',
465			chr(28) => chr(131).'B', chr(29) => chr(131).'C', chr(30) => chr(131).'D', chr(31) => chr(131).'E',
472			chr(56) => '8', chr(57) => '9', chr(58) => chr(129).'Z', chr(59) => chr(131).'F',
473			chr(60) => chr(131).'G', chr(61) => chr(131).'H', chr(62) => chr(131).'I', chr(63) => chr(131).'J',
474			chr(64) => chr(131).'V', chr(65) => 'A', chr(66) => 'B', chr(67) => 'C',
480			chr(88) => 'X', chr(89) => 'Y', chr(90) => 'Z', chr(91) => chr(131).'K',
481			chr(92) => chr(131).'L', chr(93) => chr(131).'M', chr(94) => chr(131).'N', chr(95) => chr(131).'O',
482			chr(96) => chr(131).'W', chr(97) => chr(130).'A', chr(98) => chr(130).'B', chr(99) => chr(130).'C',
ASN1.php https://bitbucket.org/cbeier/test.git | PHP | 1,131 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4/**
5 * Pure-PHP ASN.1 Parser
6 *
6 *
7 * PHP versions 4 and 5
8 *
36 * @package    File_ASN1
37 * @author     Jim Wigginton <terrafrost@php.net>
38 * @copyright  MMXII Jim Wigginton
40 * @version    $Id$
41 * @link       http://phpseclib.sourceforge.net
42 */
46 */
47require_once('Math/BigInteger.php');
48
db_update.php https://bitbucket.org/gencer/fluxbb.git | PHP | 1,909 lines
34if (!function_exists('version_compare') || version_compare(PHP_VERSION, MIN_PHP_VERSION, '<'))
35	exit('You are running PHP version '.PHP_VERSION.'. FluxBB '.UPDATE_TO.' requires at least PHP '.MIN_PHP_VERSION.' to run properly. You must upgrade your PHP installation before you can continue.');
36
524			<h1><span><?php echo $lang_update['Update'] ?></span></h1>
525			<div id="brddesc"><p><?php echo $lang_update['Update message'] ?></p><p><strong><?php echo $lang_update['Note']; ?></strong> <?php echo $lang_update['Members message']; ?></p></div>
526		</div>
1631
1632<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $lang_common['lang_identifier'] ?>" lang="<?php echo $lang_common['lang_identifier'] ?>" dir="<?php echo $lang_common['lang_direction'] ?>">
1633<head>
1664					<div class="infldset">
1665						<label class="required"><strong><?php echo $lang_update['New username'] ?> <span><?php echo $lang_update['Required'] ?></span></strong><br /><input type="text" name="<?php echo 'dupe_users['.$id.']'; ?>" value="<?php if (isset($_POST['dupe_users'][$id])) echo pun_htmlspecialchars($_POST['dupe_users'][$id]); ?>" size="25" maxlength="25" /><br /></label>
1666					</div>
1868
1869<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $lang_common['lang_identifier'] ?>" lang="<?php echo $lang_common['lang_identifier'] ?>" dir="<?php echo $lang_common['lang_direction'] ?>">
1870<head>
db_update.php https://bitbucket.org/gencer/punbb.git | PHP | 2,244 lines
23if (!function_exists('version_compare') || version_compare(PHP_VERSION, '5.0.0', '<'))
24	exit('You are running PHP version '.PHP_VERSION.'. '.UPDATE_TO.' requires at least PHP 5.0.0 to run properly. You must upgrade your PHP installation before you can continue.');
25
2157				// We rename the old config.php file just in case
2158				if (rename(FORUM_ROOT.'config.php', FORUM_ROOT.'config.old.'.time().'.php'))
2159				{
2209<?php if (isset($new_config) && !$written): ?>
2210			<p>In order to complete the process, you must now update your config.php script. <strong>Copy and paste the text in the text box below into the file called config.php in the root directory of your PunBB installation</strong>. The file already exists, so you must edit/overwrite the contents of the old file. You may then <a href="<?php echo $base_url ?>/index.php">go to the forum index</a> once config.php has been updated.</p>
2211<?php else: ?>
2211<?php else: ?>
2212			<p>You may <a href="<?php echo $base_url ?>/index.php">go to the forum index</a> now.</p>
2213<?php endif; ?>		</div>
2243if ($query_str != '')
2244	exit('<script type="text/javascript">window.location="db_update.php'.$query_str.'"</script><br />JavaScript seems to be disabled. <a href="db_update.php'.$query_str.'">Click here to continue</a>.');
2245
json.lib.php https://bitbucket.org/speedealing/speedealing.git | PHP | 356 lines
28	/**
29	 * Implement json_encode for PHP that does not support it
30	 *
30	 *
31	 * @param	mixed	$elements		PHP Object to json encode
32	 * @return 	string					Json encoded string
269	    // single, escaped unicode character
270	    $utf16 = chr(hexdec($reg[1])) . chr(hexdec($reg[2]));
271	    $utf8  = utf162utf8($utf16);
345	// see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
346	return chr(0x07 & (ord($utf8{0}) >> 2)) . chr((0xC0 & (ord($utf8{0}) << 6)) | (0x3F & ord($utf8{1})));
347
350	// see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
351	return chr((0xF0 & (ord($utf8{0}) << 4)) | (0x0F & (ord($utf8{1}) >> 2))) . chr((0xC0 & (ord($utf8{1}) << 6)) | (0x7F & ord($utf8{2})));
352	}
class.pdf.php https://bitbucket.org/ite/on-track-code-base.git | PHP | 4,969 lines
1637      // figure out the additional paramaters required
1638      $pad =  chr(0x28) .chr(0xBF) .chr(0x4E) .chr(0x5E) .chr(0x4E) .chr(0x75) .chr(0x8A) .chr(0x41)
1639             .chr(0x64) .chr(0x00) .chr(0x4E) .chr(0x56) .chr(0xFF) .chr(0xFA) .chr(0x01) .chr(0x08)
1639             .chr(0x64) .chr(0x00) .chr(0x4E) .chr(0x56) .chr(0xFF) .chr(0xFA) .chr(0x01) .chr(0x08)
1640             .chr(0x2E) .chr(0x2E) .chr(0x00) .chr(0xB6) .chr(0xD0) .chr(0x68) .chr(0x3E) .chr(0x80)
1641             .chr(0x2F) .chr(0x0C) .chr(0xA9) .chr(0xFE) .chr(0x64) .chr(0x53) .chr(0x69) .chr(0x7A);
1668      // now make the u value, phew.
1669      $tmp =  $this->md5_16($user.$ovalue.chr($options['p']) .chr(255) .chr(255) .chr(255) .$this->fileIdentifier);
1670
1721    }
1722    $tmp.=  chr(hexdec(substr($hex, 4, 2))) .chr(hexdec(substr($hex, 2, 2))) .chr(hexdec(substr($hex, 0, 2))) .chr(0) .chr(0);
1723    $key =  $this->md5_16($tmp);
4495      if  (!$error) {
4496        $header =  chr(137) .chr(80) .chr(78) .chr(71) .chr(13) .chr(10) .chr(26) .chr(10);
4497        
RSA.php https://bitbucket.org/acidel/buykoala.git | PHP | 2,119 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
10 * <code>
11 * <?php
12 *    include('Crypt/RSA.php');
28 * <code>
29 * <?php
30 *    include('Crypt/RSA.php');
61 * @package    Crypt_RSA
62 * @author     Jim Wigginton <terrafrost@php.net>
63 * @copyright  MMIX Jim Wigginton
590        $raw = array(
591            'version' => $num_primes == 2 ? chr(0) : chr(1), // two-prime vs. multi
592            'modulus' => $n->toBytes(true),
1619        $ps = $this->_random($this->k - $mLen - 3, true);
1620        $em = chr(0) . chr(2) . $ps . chr(0) . $m;
1621
String.php https://bitbucket.org/georgikirow/ksk.git | PHP | 777 lines
33 * @package    PHPExcel_Shared
34 * @copyright  Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
516	 * Assumes Big-Endian byte order if no BOM is available.
517	 * This function was taken from http://php.net/manual/en/function.utf8-decode.php
518	 * and $bom_be parameter added.
668	 * Set the decimal separator. Only used by PHPExcel_Style_NumberFormat::toFormattedString()
669	 * to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
670	 *
700	 * Set the thousands separator. Only used by PHPExcel_Style_NumberFormat::toFormattedString()
701	 * to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
702	 *
732	 * Set the currency code. Only used by PHPExcel_Style_NumberFormat::toFormattedString()
733	 *		to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
734	 *
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21