PageRenderTime 970ms queryFilters 1ms Sphinxql 57ms app.CodeModel.GetByIds 839ms findMatchingLines 48ms GetByIds 887ms meta 0ms repositoryFilters 79ms languageFilters 1ms sourceFilters 3ms

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

Source

Language

Repository

usr.php https://github.com/phpfalcon/Kleeja-2.0.0-alpha.git | PHP | 596 lines
143				}
144				else if(($phppass != $row['password'] && $hashed) || ($this->kleeja_hash_password($phppass, $row['password']) != true && $hashed == false))
145				{
334	{
335		include_once('phpass.php');
336
568		else if($c<0x800) // 2 bytes
569			$char = (chr(0xC0 | $c>>6) . chr(0x80 | $c & 0x3F));
570		else if($c<0x10000) // 3 bytes
570		else if($c<0x10000) // 3 bytes
571			$char = (chr(0xE0 | $c>>12) . chr(0x80 | $c>>6 & 0x3F) . chr(0x80 | $c & 0x3F));
572		else if($c<0x200000) // 4 bytes
572		else if($c<0x200000) // 4 bytes
573			$char = (chr(0xF0 | $c>>18) . chr(0x80 | $c>>12 & 0x3F) . chr(0x80 | $c>>6 & 0x3F) . chr(0x80 | $c & 0x3F));
574	}
ezcodepage.php https://github.com/aurelienRT1/ezpublish.git | PHP | 849 lines
216                else
217                    $text .= chr( ( $code >> 8 ) & 0xff ) . chr( $code & 0xff );
218            }
300            else
301                return chr( ( $code >> 8 ) & 0xff ) . chr( $code & 0xff );
302        }
413        $file = basename( $filename );
414        $php = new eZPHPCreator( $dir, $file );
415
434            {
435                $php->addCodePiece( "\$utf8map[0] = chr(0);\n" );
436            }
460            {
461                $php->addVariable( "utf8cmap[chr(0)]", 0 );
462            }
text.php https://github.com/dongsheng/moodle.git | PHP | 710 lines
99            define('PATH_site', str_replace('\\','/',$CFG->tempdir.'/'));
100            define('TYPO3_OS', stristr(PHP_OS,'win')&&!stristr(PHP_OS,'darwin')?'WIN':'');
101        }
526     * Original from laurynas dot butkus at gmail at:
527     * http://php.net/manual/en/function.html-entity-decode.php#75153
528     * with some custom mods to provide more functionality
634        if ($num < 2048) {
635            return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
636        }
637        if ($num < 65536) {
638            return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
639        }
640        if ($num < 2097152) {
641            return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
642        }
textlib.php https://github.com/danmarsden/moodle-plagiarism_crot.git | PHP | 1,325 lines
1<?php
2/*
42// 
43// thanks to DonRamon http://habrahabr.ru/blogs/php/70119/
44
216                else
217                    $output .= chr($codeHigh * 16 + $code);
218
227    if($isOdd)
228        $output .= chr($codeHigh * 16);
229
896        } elseif ($check) { 
897            while (($i = strpos($in, chr(0x13).chr(0))) !== false) { 
898                $j = strpos($in, chr(0x15).chr(0), $i + 1); 
903            } 
904            $in = str_replace(chr(0).chr(0), "", $in); 
905        } 
json.php https://github.com/groovyobject/ChoicePoolsv1.git | PHP | 820 lines
55 * @license     http://www.opensource.org/licenses/bsd-license.php
56 * @link        http://pear.php.net/pepr/pepr-proposal-show.php?id=198
57 */
533
534                        $substr_chrs_c_2 = substr($chrs, $c, 2);
535                        $ord_chrs_c = ord($chrs{$c});
661                        $top = end($stk);
662                        $substr_chrs_c_2 = substr($chrs, $c, 2);
663
712                                 ($top['what'] == SERVICES_JSON_IN_STR) &&
713                                 ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) {
714                            // found a quote, we're in a string, and it's not escaped
754                            for ($i = $top['where']; $i <= $c; ++$i)
755                                $chrs = substr_replace($chrs, ' ', $i, 1);
756
Properties.php https://github.com/gatewaytestcase/NUCRI-Science-Gateway-Test-Case.git | PHP | 1,091 lines
1<?php
2// +----------------------------------------------------------------------+
33//
34// $Id: Properties.php,v 1.1 2005/11/27 16:39:23 cmanley Exp $
35
44 * @author	Craig Manley
45 * @since	PHP 5.0
46 * @date	$Date: 2005/11/27 16:39:23 $
48 *
49 * This is a near implementation of the java.util.Properties API for PHP 5.
50 * The Properties class has an interface that is very similar to it's Java counterpart.
131 * @ignore Create "Standard PHP Library" compatible exception classes if the SPL extension isn't available.
132 * @ignore The SPL extension exists in PHP 5.0, but is only installed by default since PHP 5.1.
133 */
151 * This is the class that you need to use for parsing and writing Java style property files.
152 * It makes use of exception classes from the "Standard PHP Library" extension (http://www.php.net/spl)
153 * that is installed per default since PHP 5.1, however it is not required to use this class.
JSON.php https://github.com/DigitalCityMechanics/PeopleAggregator.git | PHP | 818 lines
67 * @license     http://www.opensource.org/licenses/bsd-license.php
68 * @link        http://pear.php.net/pepr/pepr-proposal-show.php?id=198
69 */
529                    $utf8 = '';
530                    $strlen_chrs = strlen($chrs);
531
705
706                        } elseif ((($chrs{$c} == '"') || ($chrs{$c} == "'")) && ($top['what'] != SERVICES_JSON_IN_STR)) {
707                            // found a quote, and we are not inside a string
713                                 (($chrs{$c - 1} != '\\') ||
714                                 ($chrs{$c - 1} == '\\' && $chrs{$c - 2} == '\\'))) {
715                            // found a quote, we're in a string, and it's not escaped
753                            for ($i = $top['where']; $i <= $c; ++$i)
754                                $chrs = substr_replace($chrs, ' ', $i, 1);
755
JSON.php https://github.com/DigitalCityMechanics/PeopleAggregator.git | PHP | 819 lines
67 * @license     http://www.opensource.org/licenses/bsd-license.php
68 * @link        http://pear.php.net/pepr/pepr-proposal-show.php?id=198
69 */
529                    $utf8 = '';
530                    $strlen_chrs = strlen($chrs);
531
656
657                    $strlen_chrs = strlen($chrs);
658
712                                 ($top['what'] == SERVICES_JSON_IN_STR) &&
713                                 ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) {
714                            // found a quote, we're in a string, and it's not escaped
754                            for ($i = $top['where']; $i <= $c; ++$i)
755                                $chrs = substr_replace($chrs, ' ', $i, 1);
756
Memory.php https://github.com/shopaholiccompany/shopaholic.git | PHP | 607 lines
1<?php
2/**
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: Memory.php 16971 2009-07-22 18:05:45Z mikaelkael $
21 */
23/** Zend_Search_Lucene_Storage_File */
24// require_once 'Zend/Search/Lucene/Storage/File.php';
25
202
203        $this->_data .= chr($byte);
204        $this->_position = strlen($this->_data);
274        settype($value, 'integer');
275        $this->_data .= chr($value>>24 & 0xFF) .
276                        chr($value>>16 & 0xFF) .
276                        chr($value>>16 & 0xFF) .
277                        chr($value>>8  & 0xFF) .
278                        chr($value     & 0xFF);
Utf8.php https://gitlab.com/MualnuamSolutions/book-library.git | PHP | 614 lines
214    {
215/**/    if (50418 > PHP_VERSION_ID || 50500 == PHP_VERSION_ID)
216/**/    {
230    {
231/**/    if (50418 > PHP_VERSION_ID || 50500 == PHP_VERSION_ID)
232/**/    {
252    static function strrchr ($s, $needle, $before_needle = false) {return mb_strrchr ($s, $needle, $before_needle, 'UTF-8');}
253    static function strrichr($s, $needle, $before_needle = false) {return mb_strrichr($s, $needle, $before_needle, 'UTF-8');}
254
323        if (0x80 > $c %= 0x200000) return chr($c);
324        if (0x800 > $c) return chr(0xC0 | $c>>6) . chr(0x80 | $c & 0x3F);
325        if (0x10000 > $c) return chr(0xE0 | $c>>12) . chr(0x80 | $c>>6 & 0x3F) . chr(0x80 | $c & 0x3F);
325        if (0x10000 > $c) return chr(0xE0 | $c>>12) . chr(0x80 | $c>>6 & 0x3F) . chr(0x80 | $c & 0x3F);
326        return chr(0xF0 | $c>>18) . chr(0x80 | $c>>12 & 0x3F) . chr(0x80 | $c>>6 & 0x3F) . chr(0x80 | $c & 0x3F);
327    }
font_binary_stream.cls.php https://gitlab.com/imron02/sppone.git | PHP | 681 lines
7 * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
8 * @version $Id: font_binary_stream.cls.php 42 2012-02-05 10:49:20Z fabien.menager $
9 */
13 * 
14 * @package php-font-lib
15 */
337  public function convertUInt32ToStr($uint32) {
338    return chr(($uint32 >> 24) & 0xFF).chr(($uint32 >> 16) & 0xFF).chr(($uint32 >> 8) & 0xFF).chr($uint32 & 0xFF);
339  }
341=======
342<?php
343/**
677  public function convertUInt32ToStr($uint32) {
678    return chr(($uint32 >> 24) & 0xFF).chr(($uint32 >> 16) & 0xFF).chr(($uint32 >> 8) & 0xFF).chr($uint32 & 0xFF);
679  }
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');
SSH1.php https://bitbucket.org/norvin/mingen_dts | PHP | 1,160 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
11 * <?php
12 *    include('Net/SSH1.php');
13 *
32 * <code>
33 * <?php
34 *    include('Net/SSH1.php');
777     *
778     * Will be called, automatically, if you're supporting just PHP5.  If you're supporting PHP4, you'll need to call
779     * disconnect().
977            // yields 0xFF800000 - not 0x00800000.  The following link elaborates:
978            // http://www.php.net/manual/en/language.operators.bitwise.php#57281
979            $crc = (($crc >> 8) & 0x00FFFFFF) ^ $crc_lookup_table[($crc & 0xFF) ^ ord($data[$i])];
1042        // ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-1/pkcs-1v2-1.pdf
1043        $temp = chr(0) . chr(2);
1044        $modulus = $key[1]->toBytes();
JSON.php https://bitbucket.org/MelFlynn/zarafa | PHP | 885 lines
106 * @license     http://www.opensource.org/licenses/bsd-license.php
107 * @link        http://pear.php.net/pepr/pepr-proposal-show.php?id=198
108 */
568                    $utf8 = '';
569                    $strlen_chrs = strlen($chrs);
570
695
696                    $strlen_chrs = strlen($chrs);
697
751                                 ($top['what'] == SERVICES_JSON_IN_STR) &&
752                                 ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) {
753                            // found a quote, we're in a string, and it's not escaped
793                            for ($i = $top['where']; $i <= $c; ++$i)
794                                $chrs = substr_replace($chrs, ' ', $i, 1);
795
SSH1.php https://bitbucket.org/arkross/venus | PHP | 1,131 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
12 * <code>
13 * <?php
14 *    include('Net/SSH1.php');
34 * <code>
35 * <?php
36 *    include('Net/SSH1.php');
747     *
748     * Will be called, automatically, if you're supporting just PHP5.  If you're supporting PHP4, you'll need to call
749     * disconnect().
947            // yields 0xFF800000 - not 0x00800000.  The following link elaborates:
948            // http://www.php.net/manual/en/language.operators.bitwise.php#57281
949            $crc = (($crc >> 8) & 0x00FFFFFF) ^ $crc_lookup_table[($crc & 0xFF) ^ ord($data[$i])];
1012        // ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-1/pkcs-1v2-1.pdf
1013        $temp = chr(0) . chr(2);
1014        $modulus = $key[1]->toBytes();
fsource_PHPExcel_Shared__PHPExcelSharedString.php.html git://github.com/shimondoodkin/node_spreadsheet.git | HTML | 750 lines
60<h1 align="center">Source for file String.php</h1>
61<p>Documentation is available at <a href="../PHPExcel_Shared/_PHPExcel---Shared---String.php.html">String.php</a></p>
62<div class="src-code">
371<li><div class="src-line"><a name="a311"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;CUSTOM:&nbsp;IBM&nbsp;AIX&nbsp;iconv()&nbsp;does&nbsp;not&nbsp;work</span></div></li>
372<li><div class="src-line"><a name="a312"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;</span><a href="http://www.php.net/defined">defined</a><span class="src-sym">(</span><span class="src-str">'PHP_OS'</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/stristr">stristr</a><span class="src-sym">(</span><span class="src-id">PHP_OS</span><span class="src-sym">,&nbsp;</span><span class="src-str">'AIX'</span><span class="src-sym">)</span></div></li>
373<li><div class="src-line"><a name="a313"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<a href="http://www.php.net/defined">defined</a><span class="src-sym">(</span><span class="src-str">'ICONV_IMPL'</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-sym">@</span><a href="http://www.php.net/strcasecmp">strcasecmp</a><span class="src-sym">(</span><span class="src-id">ICONV_IMPL</span><span class="src-sym">,&nbsp;</span><span class="src-str">'unknown'</span><span class="src-sym">)&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
398<li><div class="src-line"><a name="a338"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
399<li><div class="src-line"><a name="a339"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">public&nbsp;</span><span class="src-key">static&nbsp;</span><span class="src-key">function&nbsp;</span><a href="../PHPExcel_Shared/PHPExcel_Shared_String.html#methodControlCharacterOOXML2PHP">ControlCharacterOOXML2PHP</a><span class="src-sym">(</span><span class="src-var">$value&nbsp;</span>=&nbsp;<span class="src-str">''</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
400<li><div class="src-line"><a name="a340"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if</span><span class="src-sym">(</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$_controlCharacters</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
420<li><div class="src-line"><a name="a360"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
421<li><div class="src-line"><a name="a361"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">public&nbsp;</span><span class="src-key">static&nbsp;</span><span class="src-key">function&nbsp;</span><a href="../PHPExcel_Shared/PHPExcel_Shared_String.html#methodControlCharacterPHP2OOXML">ControlCharacterPHP2OOXML</a><span class="src-sym">(</span><span class="src-var">$value&nbsp;</span>=&nbsp;<span class="src-str">''</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
422<li><div class="src-line"><a name="a362"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if</span><span class="src-sym">(</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$_controlCharacters</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
646<li><div class="src-line"><a name="a586"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$fractionFormula&nbsp;</span>=&nbsp;<span class="src-str">'='</span>.<span class="src-var">$sign</span>.<span class="src-var">$match</span><span class="src-sym">[</span><span class="src-num">2</span><span class="src-sym">]</span>.<span class="src-var">$sign</span>.<span class="src-var">$match</span><span class="src-sym">[</span><span class="src-num">3</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
647<li><div class="src-line"><a name="a587"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$operand&nbsp;</span>=&nbsp;<span class="src-id"><a href="../PHPExcel_Calculation/PHPExcel_Calculation.html">PHPExcel_Calculation</a></span><span class="src-sym">::</span><a href="../PHPExcel_Calculation/PHPExcel_Calculation.html#methodgetInstance">getInstance</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><span class="src-id">_calculateFormulaValue</span><span class="src-sym">(</span><span class="src-var">$fractionFormula</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
648<li><div class="src-line"><a name="a588"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-id">true</span><span class="src-sym">;</span></div></li>
OpenId.php https://bitbucket.org/mercysam/zfs.git | PHP | 753 lines
1<?php
2
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: OpenId.php 12972 2008-12-01 13:26:36Z dmitry $
21 */
25 */
26require_once "Zend/OpenId/Exception.php";
27
30 */
31require_once "Zend/Controller/Response/Abstract.php";
32
64    /**
65     * Allows enable/disable stoping execution of PHP script after redirect()
66     */
144            $url .= $_SERVER['REDIRECT_URL'];
145        } else if (isset($_SERVER['PHP_SELF'])) {
146            $url .= $_SERVER['PHP_SELF'];
BigInteger.php https://bitbucket.org/pandaos/kaltura.git | PHP | 1,972 lines
75
76// array_fill requires PHP 4.2.0+, per http://php.net/function.array_fill
77// see http://www.frostjedi.com/terra/scripts/pear/array_fill.phps
383                    $temp = bcmod($current, 0x1000000);
384                    $value = chr($temp >> 16) . chr($temp >> 8) . chr($temp) . $value;
385                    $current = bcdiv($current, 0x1000000);
1608     *
1609     * PHP5 passes objects by reference while PHP4 passes by value.  As such, we need a function to guarantee
1610     * that all objects are passed by value, when appropriate.  More information can be found here:
1611     *
1612     * {@link http://www.php.net/manual/en/language.oop5.basic.php#51624}
1613     *
1754        // generate as many leading 1's as we need to.
1755        $leading_ones = chr((1 << ($new_bits & 0x7)) - 1) . str_repeat(chr(0xFF), $new_bits >> 3);
1756        $this->_base256_lshift($leading_ones, $current_bits);
ASN1.php https://bitbucket.org/jgabrielsinner/phpseclibbundle.git | PHP | 1,163 lines
1<?php
2
2
3namespace Sinner\Phpseclib\File;
4
4
5use Sinner\Phpseclib\Math\BigInteger;
6use Sinner\Phpseclib\File\File_ASN1_Element;
11/**
12 * Pure-PHP ASN.1 Parser
13 *
13 *
14 * PHP versions 4 and 5
15 *
43 * @package    File_ASN1
44 * @author     Jim Wigginton <terrafrost@php.net>
45 * @copyright  MMXII Jim Wigginton
Hostname.php https://bitbucket.org/dbaltas/zend-framework-1.x-on-git.git | PHP | 788 lines
1<?php
2/**
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
19 * @version    $Id: Hostname.php 25060 2012-11-02 21:23:09Z rob $
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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21