PageRenderTime 26ms queryFilters 15ms Sphinxql 936ms GetByIds 124ms meta 0ms repositoryFilters 3ms languageFilters 1ms sourceFilters 1ms

84,481 results for 'php chr repo:mastermunj/yii-bootstrap' (26 ms)

Source

Language

Repository

ApiFormatJson_json.php https://github.com/tav/confluence.git | PHP | 862 lines
54* @license http://www.opensource.org/licenses/bsd-license.php
55* @see http://pear.php.net/pepr/pepr-proposal-show.php?id=198
56*/
558					$utf8 = '';
559					$strlen_chrs = strlen($chrs);
560
744
745						} elseif ((($chrs{$c} == '"') || ($chrs{$c} == "'")) && ($top['what'] != SERVICES_JSON_IN_STR)) {
746							// found a quote, and we are not inside a string
752								 (($chrs{$c - 1} != '\\') ||
753								 ($chrs{$c - 1} == '\\' && $chrs{$c - 2} == '\\'))) {
754							// found a quote, we're in a string, and it's not escaped
792							for ($i = $top['where']; $i <= $c; ++$i)
793								$chrs = substr_replace($chrs, ' ', $i, 1);
794
Hostname.php https://github.com/vmei/MIT-Mobile-Web.git | PHP | 674 lines
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
19 * @version    $Id: Hostname.php 14556 2009-03-31 10:35:42Z thomas $
20 */
24 */
25require_once 'Zend/Validate/Abstract.php';
26
29 */
30require_once 'Zend/Loader.php';
31
34 */
35require_once 'Zend/Validate/Ip.php';
36
40 *
41 * The first is tests/Zend/Validate/HostnameTestStandalone.php which is designed to be run on
42 * the command line.
Hostname.php https://github.com/cwt137/zf2.git | PHP | 769 lines
1<?php
2/**
29 *
30 * The first is tests/Zend/Validator/HostnameTestStandalone.php which is designed to be run on
31 * the command line.
32 *
33 * The second is tests/Zend/Validator/HostnameTestForm.php which is designed to be run via HTML
34 * to allow users to test entering UTF-8 characters in a form.
154     * (.DE) Germany http://www.denic.de/en/domains/idns/liste.html
155     * (.DK) Danmark http://www.dk-hostmaster.dk/index.php?id=151
156     * (.ES) Spain https://www.nic.es/media/2008-05/1210147705287.pdf
162     * (.IR) Iran http://www.nic.ir/Allowable_Characters_dot-iran
163     * (.IS) Iceland http://www.isnic.is/domain/rules.php
164     * (.KR) Korea http://www.iana.org/domains/idn-tables/tables/kr_ko-kr_1.0.html
171     * (.NU) Niue http://www.worldnames.net/
172     * (.ORG) International http://www.pir.org/index.php?db=content/FAQs&tbl=FAQs_Registrant&id=2
173     * (.PE) Peru https://www.nic.pe/nuevas_politicas_faq_2.php
RSA.php https://github.com/purare/spotweb.git | PHP | 2,142 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
597        $raw = array(
598            'version' => $num_primes == 2 ? chr(0) : chr(1), // two-prime vs. multi
599            'modulus' => $n->toBytes(true),
1642        $ps = $this->_random($this->k - $mLen - 3, true);
1643        $em = chr(0) . chr(2) . $ps . chr(0) . $m;
1644
RSA.php https://gitlab.com/intersango/witcoin.git | PHP | 2,108 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
Misc.php git://github.com/wordpress/wordpress.git | PHP | 2,262 lines
405	 *
406	 * To generate it, run `php create.php` on the command line, and copy the
407	 * output to replace this function.
1987		{
1988			return chr(0xc0 | ($codepoint >> 6)) . chr(0x80 | ($codepoint & 0x3f));
1989		}
1991		{
1992			return chr(0xe0 | ($codepoint >> 12)) . chr(0x80 | (($codepoint >> 6) & 0x3f)) . chr(0x80 | ($codepoint & 0x3f));
1993		}
1995		{
1996			return chr(0xf0 | ($codepoint >> 18)) . chr(0x80 | (($codepoint >> 12) & 0x3f)) . chr(0x80 | (($codepoint >> 6) & 0x3f)) . chr(0x80 | ($codepoint & 0x3f));
1997		}
2213		$info = 'SimplePie ' . SIMPLEPIE_VERSION . ' Build ' . SIMPLEPIE_BUILD . "\n";
2214		$info .= 'PHP ' . PHP_VERSION . "\n";
2215		if ($sp->error() !== null)
db_update.php https://bitbucket.org/samovarchik/fluxbb.pe | PHP | 2,507 lines
49if (!function_exists('version_compare') || version_compare(PHP_VERSION, MIN_PHP_VERSION, '<'))
50	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.');
51
147
148/* TODO: подумать, есть ли смысл завести отдельный конфиг для db_update.php (как для install.php)?
149 * Сейчас склоняюсь, что нет, но тем не менее отдельный файл с некоторыми дефайнами отсюда можно сделать.
602			<h1><span><?php echo $lang_update['Update'] ?></span></h1>
603			<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>
604		</div>
2261					<div class="infldset">
2262						<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>
2263					</div>
2483				<div class="forminfo">
2484					<p style="font-size: 1.1em"><?php printf($lang_update['Successfully updated'], sprintf('<a href="index.php">%s</a>', $lang_update['go to index'])) ?></p>
2485				</div>
ASN1.php https://bitbucket.org/openemr/openemr.git | PHP | 1,309 lines
1<?php
2
3/**
4 * Pure-PHP ASN.1 Parser
5 *
5 *
6 * PHP version 5
7 *
11 *
12 * \phpseclib\File\ASN1 decodes and encodes DER formatted messages and places them in a semantic context.
13 *
17 * @package   ASN1
18 * @author    Jim Wigginton <terrafrost@php.net>
19 * @copyright 2012 Jim Wigginton
20 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
21 * @link      http://phpseclib.sourceforge.net
22 */
Cpdf.php https://bitbucket.org/openemr/openemr.git | PHP | 3,947 lines
412        // set the hardcoded encryption pad
413        $this->encryptionPad = chr(0x28).chr(0xBF).chr(0x4E).chr(0x5E).chr(0x4E).chr(0x75).chr(0x8A).chr(0x41).chr(0x64).chr(0x00).chr(0x4E).chr(0x56).chr(0xFF).chr(0xFA).chr(0x01).chr(0x08).chr(0x2E).chr(0x2E).chr(0x00).chr(0xB6).chr(0xD0).chr(0x68).chr(0x3E).chr(0x80).chr(0x2F).chr(0x0C).chr(0xA9).chr(0xFE).chr(0x64).chr(0x53).chr(0x69).chr(0x7A);
414        
1629        }
1630        $tmp.= chr(hexdec(substr($hex,4,2))).chr(hexdec(substr($hex,2,2))).chr(hexdec(substr($hex,0,2))).chr(0).chr(0);
1631        $key = $this->md5_16($tmp);
2039        $fp = fopen($this->tempPath.'/'.$cachedFile,'w'); // use the temp folder to write cached font data
2040        fwrite($fp,'<?php /* R&OS php pdf class font cache file */ return '.var_export($cachedFont,true).'; ?>');
2041        fclose($fp);
2725        
2726        $text = strtr($text,  array(')' => '\\)', '(' => '\\(', '\\' => '\\\\', chr(8) => '\\b', chr(9) => '\\t', chr(10) => '\\n', chr(12) => '\\f' ,chr(13) => '\\r', '&lt;'=>'<', '&gt;'=>'>', '&amp;'=>'&') );
2727
3564        
3565        $header = chr(137).chr(80).chr(78).chr(71).chr(13).chr(10).chr(26).chr(10);
3566        if (substr($data,0,8)!=$header){
Installer.php https://bitbucket.org/kgrashad/thawrapedia | PHP | 1,512 lines
375	public function doEnvironmentChecks() {
376		$phpVersion = phpversion();
377		if( version_compare( $phpVersion, self::MINIMUM_PHP_VERSION, '>=' ) ) {
380		} else {
381			$this->showMessage( 'config-env-php-toolow', $phpVersion, self::MINIMUM_PHP_VERSION );
382			$good = false;
988		} else if ($c <= 0x7FF) {
989			return chr(0xC0 | $c >> 6) . chr(0x80 | $c & 0x3F);
990		} else if ($c <= 0xFFFF) {
990		} else if ($c <= 0xFFFF) {
991			return chr(0xE0 | $c >> 12) . chr(0x80 | $c >> 6 & 0x3F)
992				. chr(0x80 | $c & 0x3F);
993		} else if ($c <= 0x10FFFF) {
994			return chr(0xF0 | $c >> 18) . chr(0x80 | $c >> 12 & 0x3F)
995				. chr(0x80 | $c >> 6 & 0x3F)
Hostname.php https://bitbucket.org/farouqzaib/precurio | PHP | 735 lines
1<?php
2/**
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
19 * @version    $Id: Hostname.php 20358 2010-01-17 19:03:49Z thomas $
20 */
24 */
25require_once 'Zend/Validate/Abstract.php';
26
29 */
30require_once 'Zend/Validate/Ip.php';
31
35 *
36 * The first is tests/Zend/Validate/HostnameTestStandalone.php which is designed to be run on
37 * the command line.
38 *
39 * The second is tests/Zend/Validate/HostnameTestForm.php which is designed to be run via HTML
40 * to allow users to test entering UTF-8 characters in a form.
Inflector.php https://bitbucket.org/joseph_b/mti-media-plic-redac-intranet | PHP | 269 lines
218          $chars['in'] = chr(128).chr(131).chr(138).chr(142).chr(154).chr(158)
219            .chr(159).chr(162).chr(165).chr(181).chr(192).chr(193).chr(194)
220            .chr(195).chr(196).chr(197).chr(199).chr(200).chr(201).chr(202)
220            .chr(195).chr(196).chr(197).chr(199).chr(200).chr(201).chr(202)
221            .chr(203).chr(204).chr(205).chr(206).chr(207).chr(209).chr(210)
222            .chr(211).chr(212).chr(213).chr(214).chr(216).chr(217).chr(218)
222            .chr(211).chr(212).chr(213).chr(214).chr(216).chr(217).chr(218)
223            .chr(219).chr(220).chr(221).chr(224).chr(225).chr(226).chr(227)
224            .chr(228).chr(229).chr(231).chr(232).chr(233).chr(234).chr(235)
224            .chr(228).chr(229).chr(231).chr(232).chr(233).chr(234).chr(235)
225            .chr(236).chr(237).chr(238).chr(239).chr(241).chr(242).chr(243)
226            .chr(244).chr(245).chr(246).chr(248).chr(249).chr(250).chr(251)
231          $string = strtr($string, $chars['in'], $chars['out']);
232          $doubleChars['in'] = array(chr(140), chr(156), chr(198), chr(208), chr(222), chr(223), chr(230), chr(240), chr(254));
233          $doubleChars['out'] = array('OE', 'oe', 'AE', 'DH', 'TH', 'ss', 'ae', 'dh', 'th');
RSA.php https://bitbucket.org/norvin/mingen_dts | 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
class-snoopy.php https://bitbucket.org/crypticrod/sr_wp_code | PHP | 1,257 lines
1<?php
2
3/**
4 * Deprecated. Use WP_HTTP (http.php, class-http.php) instead.
5 */
5 */
6_deprecated_file( basename( __FILE__ ), '3.0', WPINC . '/http.php' );
7
10
11Snoopy - the PHP net client
12Author: Monte Ohrt <monte@ispi.net>
43
44	var $host			=	"www.php.net";		// host name we are connecting to
45	var $port			=	80;					// port we are connecting to
81	var $read_timeout	=	0;					// timeout on read operations, in seconds
82												// supported only since PHP 4 Beta 4
83												// set to 0 to disallow timeouts
RSA.php https://bitbucket.org/arkross/venus | PHP | 2,122 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/RSA.php');
30 * <code>
31 * <?php
32 *    include('Crypt/RSA.php');
592        $raw = array(
593            'version' => $num_primes == 2 ? chr(0) : chr(1), // two-prime vs. multi
594            'modulus' => $n->toBytes(true),
1621        $ps = $this->_random($this->k - $mLen - 3, true);
1622        $em = chr(0) . chr(2) . $ps . chr(0) . $m;
1623
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);
db_update.php https://bitbucket.org/yoorick/fluxbb.pe | PHP | 2,507 lines
49if (!function_exists('version_compare') || version_compare(PHP_VERSION, MIN_PHP_VERSION, '<'))
50	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.');
51
147
148/* TODO: подумать, есть ли смысл завести отдельный конфиг для db_update.php (как для install.php)?
149 * Сейчас склоняюсь, что нет, но тем не менее отдельный файл с некоторыми дефайнами отсюда можно сделать.
602			<h1><span><?php echo $lang_update['Update'] ?></span></h1>
603			<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>
604		</div>
2261					<div class="infldset">
2262						<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>
2263					</div>
2483				<div class="forminfo">
2484					<p style="font-size: 1.1em"><?php printf($lang_update['Successfully updated'], sprintf('<a href="index.php">%s</a>', $lang_update['go to index'])) ?></p>
2485				</div>
Misc.php https://bitbucket.org/fivefilters/full-text-rss.git | PHP | 2,279 lines
411	 *
412	 * To generate it, run `php create.php` on the command line, and copy the
413	 * output to replace this function.
1999		{
2000			return chr(0xc0 | ($codepoint >> 6)) . chr(0x80 | ($codepoint & 0x3f));
2001		}
2003		{
2004			return chr(0xe0 | ($codepoint >> 12)) . chr(0x80 | (($codepoint >> 6) & 0x3f)) . chr(0x80 | ($codepoint & 0x3f));
2005		}
2007		{
2008			return chr(0xf0 | ($codepoint >> 18)) . chr(0x80 | (($codepoint >> 12) & 0x3f)) . chr(0x80 | (($codepoint >> 6) & 0x3f)) . chr(0x80 | ($codepoint & 0x3f));
2009		}
2229		$info = 'SimplePie ' . SIMPLEPIE_VERSION . ' Build ' . SIMPLEPIE_BUILD . "\n";
2230		$info .= 'PHP ' . PHP_VERSION . "\n";
2231		if ($sp->error() !== null)
Hostname.php https://bitbucket.org/mayorbrain/precurio-v2 | PHP | 735 lines
1<?php
2/**
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
19 * @version    $Id: Hostname.php 20358 2010-01-17 19:03:49Z thomas $
20 */
24 */
25require_once 'Zend/Validate/Abstract.php';
26
29 */
30require_once 'Zend/Validate/Ip.php';
31
35 *
36 * The first is tests/Zend/Validate/HostnameTestStandalone.php which is designed to be run on
37 * the command line.
38 *
39 * The second is tests/Zend/Validate/HostnameTestForm.php which is designed to be run via HTML
40 * to allow users to test entering UTF-8 characters in a form.
Misc.php https://bitbucket.org/wackowiki/wackowiki-dev | PHP | 2,280 lines
411	 *
412	 * To generate it, run `php create.php` on the command line, and copy the
413	 * output to replace this function.
1999		{
2000			return chr(0xc0 | ($codepoint >> 6)) . chr(0x80 | ($codepoint & 0x3f));
2001		}
2003		{
2004			return chr(0xe0 | ($codepoint >> 12)) . chr(0x80 | (($codepoint >> 6) & 0x3f)) . chr(0x80 | ($codepoint & 0x3f));
2005		}
2007		{
2008			return chr(0xf0 | ($codepoint >> 18)) . chr(0x80 | (($codepoint >> 12) & 0x3f)) . chr(0x80 | (($codepoint >> 6) & 0x3f)) . chr(0x80 | ($codepoint & 0x3f));
2009		}
2229		$info = 'SimplePie ' . SIMPLEPIE_VERSION . ' Build ' . SIMPLEPIE_BUILD . "\n";
2230		$info .= 'PHP ' . PHP_VERSION . "\n";
2231		if ($sp->error() !== null)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21