PageRenderTime 189ms queryFilters 1ms Sphinxql 36ms app.CodeModel.GetByIds 23ms findMatchingLines 74ms GetByIds 97ms meta 0ms repositoryFilters 13ms languageFilters 4ms sourceFilters 10ms

21,207 results for 'php chr repo:thomashii/vtigercrm-6-for-postgresql' (189 ms)

Source

Language

Repository

Hash.php https://bitbucket.org/arkross/venus | PHP | 854 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
3
4namespace PHPSecLib;
5
6/**
7 * Pure-PHP implementations of keyed-hash message authentication codes (HMACs) and various cryptographic hashing functions.
8 *
15 *
16 * PHP versions 4 and 5
17 *
22 * <code>
23 * <?php
24 *    include('Crypt/Hash.php');
50 * @package    Crypt_Hash
51 * @author     Jim Wigginton <terrafrost@php.net>
52 * @copyright  MMVII Jim Wigginton
getid3.lib.php https://bitbucket.org/DESURE/dcms.git | PHP | 1,380 lines
85			if (!$hasINT64 && !defined('PHP_INT_MIN')) {
86				define('PHP_INT_MIN', ~PHP_INT_MAX);
87			}
89		// if integers are 64-bit - no other check required
90		if ($hasINT64 || (($num <= PHP_INT_MAX) && ($num >= PHP_INT_MIN))) {
91			return true;
385		// written by kcØhireability*com
386		// taken from http://www.php.net/manual/en/function.array-merge-recursive.php
387		if (!is_array($array1) || !is_array($array2)) {
1346		if (GETID3_OS_ISWINDOWS) {
1347			if (class_exists('COM')) { // From PHP 5.3.15 and 5.4.5, COM and DOTNET is no longer built into the php core.you have to add COM support in php.ini:
1348				$filesystem = new COM('Scripting.FileSystemObject');
1368	/**
1369	* Workaround for Bug #37268 (https://bugs.php.net/bug.php?id=37268)
1370	* @param string $path A path.
Glyphs.php https://bitbucket.org/swergroup/wp-uploadplus.git | PHP | 666 lines
1<?php
2/**
33 *  
34 * Original    Author(s): Khaled Al-Sham'aa <khaled@ar-php.org>
35 *  
48 *
49 * PHP class to render Arabic text by performs Arabic glyph joining on it,
50 * then output a UTF-8 hexadecimals stream gives readable results on PHP
54 * <code>
55 *   include('./I18N/Arabic.php');
56 *   $obj = new I18N_Arabic('Glyphs');
155        // This needs value in getGlyphs function to be 52 instead of 48
156        // $this->_glyphs .= chr(129).chr(141).chr(142).chr(144);
157        // $this->_hex    .= 'FB56FB57FB58FB59FB7AFB7BFB7CFB7DFB8AFB8BFB8AFB8BFB92';
160        // $this->_prevLink .= chr(129).chr(141).chr(142).chr(144);
161        // $this->_nextLink .= chr(129).chr(141).chr(142).chr(144);
162        //
BigInteger.php https://bitbucket.org/ttalov/fgcu_pci.git | PHP | 3,553 lines
524                    $temp = bcmod($current, '16777216');
525                    $value = chr($temp >> 16) . chr($temp >> 8) . chr($temp) . $value;
526                    $current = bcdiv($current, '16777216', 0);
710     * Although you can call Math_BigInteger::__toString() directly in PHP5, you cannot call Math_BigInteger::__clone()
711     * directly in PHP5.  You can in PHP4 since it's not a magic method, but in PHP5, you have to call it by using the PHP5
712     * only syntax of $y = clone $x.  As such, if you're trying to write an application that works on both PHP4 and PHP5,
2801        // generate as many leading 1's as we need to.
2802        $leading_ones = chr((1 << ($new_bits & 0x7)) - 1) . str_repeat(chr(0xFF), $new_bits >> 3);
2803        $this->_base256_lshift($leading_ones, $current_bits);
2910            $precision = 8 * strlen($bits) - 8 + $i;
2911            $mask = chr((1 << ($precision & 0x7)) - 1) . str_repeat(chr(0xFF), $precision >> 3);
2912        }
3047
3048        // gmp_nextprime() requires PHP 5 >= 5.2.0 per <http://php.net/gmp-nextprime>.
3049        if ( MATH_BIGINTEGER_MODE == MATH_BIGINTEGER_MODE_GMP && function_exists('gmp_nextprime') ) {
BigInteger.php https://bitbucket.org/studiobreakfast/sync.git | PHP | 3,551 lines
522                    $temp = bcmod($current, '16777216');
523                    $value = chr($temp >> 16) . chr($temp >> 8) . chr($temp) . $value;
524                    $current = bcdiv($current, '16777216', 0);
708     * Although you can call Math_BigInteger::__toString() directly in PHP5, you cannot call Math_BigInteger::__clone()
709     * directly in PHP5.  You can in PHP4 since it's not a magic method, but in PHP5, you have to call it by using the PHP5
710     * only syntax of $y = clone $x.  As such, if you're trying to write an application that works on both PHP4 and PHP5,
2799        // generate as many leading 1's as we need to.
2800        $leading_ones = chr((1 << ($new_bits & 0x7)) - 1) . str_repeat(chr(0xFF), $new_bits >> 3);
2801        $this->_base256_lshift($leading_ones, $current_bits);
2908            $precision = 8 * strlen($bits) - 8 + $i;
2909            $mask = chr((1 << ($precision & 0x7)) - 1) . str_repeat(chr(0xFF), $precision >> 3);
2910        }
3045
3046        // gmp_nextprime() requires PHP 5 >= 5.2.0 per <http://php.net/gmp-nextprime>.
3047        if ( MATH_BIGINTEGER_MODE == MATH_BIGINTEGER_MODE_GMP && function_exists('gmp_nextprime') ) {
class.pdf.php https://bitbucket.org/astawiarski/openemr.git | PHP | 3,088 lines
1024      // figure out the additional paramaters required
1025      $pad = 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);
1026      $len = strlen($options['owner']);
1047      // now make the u value, phew.
1048      $tmp = $this->md5_16($user.$ovalue.chr($options['p']).chr(255).chr(255).chr(255).$this->fileIdentifier);
1049      $ukey = substr($tmp,0,5);
1103  }
1104  $tmp.= chr(hexdec(substr($hex,4,2))).chr(hexdec(substr($hex,2,2))).chr(hexdec(substr($hex,0,2))).chr(0).chr(0);
1105  $key = $this->md5_16($tmp);
1399    $this->fonts[$font]=$data;
1400    touch($dir.'php_'.$name.'.afm'); // php bug
1401    $fp = fopen($dir.'php_'.$name.'.afm','w');
2668  if (!$error){
2669    $header = chr(137).chr(80).chr(78).chr(71).chr(13).chr(10).chr(26).chr(10);
2670    if (substr($data,0,8)!=$header){
BigInteger.php https://bitbucket.org/cbeier/test.git | PHP | 3,553 lines
524                    $temp = bcmod($current, '16777216');
525                    $value = chr($temp >> 16) . chr($temp >> 8) . chr($temp) . $value;
526                    $current = bcdiv($current, '16777216', 0);
710     * Although you can call Math_BigInteger::__toString() directly in PHP5, you cannot call Math_BigInteger::__clone()
711     * directly in PHP5.  You can in PHP4 since it's not a magic method, but in PHP5, you have to call it by using the PHP5
712     * only syntax of $y = clone $x.  As such, if you're trying to write an application that works on both PHP4 and PHP5,
2801        // generate as many leading 1's as we need to.
2802        $leading_ones = chr((1 << ($new_bits & 0x7)) - 1) . str_repeat(chr(0xFF), $new_bits >> 3);
2803        $this->_base256_lshift($leading_ones, $current_bits);
2910            $precision = 8 * strlen($bits) - 8 + $i;
2911            $mask = chr((1 << ($precision & 0x7)) - 1) . str_repeat(chr(0xFF), $precision >> 3);
2912        }
3047
3048        // gmp_nextprime() requires PHP 5 >= 5.2.0 per <http://php.net/gmp-nextprime>.
3049        if ( MATH_BIGINTEGER_MODE == MATH_BIGINTEGER_MODE_GMP && function_exists('gmp_nextprime') ) {
PythonPickle.php https://bitbucket.org/mkrasuski/magento-ce.git | PHP | 1,478 lines
1<?php
2/**
23/** @see Zend_Serializer_Adapter_AdapterAbstract */
24#require_once 'Zend/Serializer/Adapter/AdapterAbstract.php';
25
186        if ($int < 0 || $int > 3) {
187            #require_once 'Zend/Serializer/Exception.php';
188            throw new Zend_Serializer_Exception('Invalid or unknown protocol version "'.$number.'"');
195    /**
196     * Serialize PHP to PythonPickle format
197     *
258        } else {
259            #require_once 'Zend/Serializer/Exception.php';
260            throw new Zend_Serializer_Exception(
260            throw new Zend_Serializer_Exception(
261                'PHP-Type "'.gettype($value).'" isn\'t serializable with '.get_class($this)
262            );
class.pdf.php https://bitbucket.org/adarshj/convenient_website.git | PHP | 3,075 lines
1024      // figure out the additional paramaters required
1025      $pad = 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);
1026      $len = strlen($options['owner']);
1047      // now make the u value, phew.
1048      $tmp = $this->md5_16($user.$ovalue.chr($options['p']).chr(255).chr(255).chr(255).$this->fileIdentifier);
1049      $ukey = substr($tmp,0,5);
1103  }
1104  $tmp.= chr(hexdec(substr($hex,4,2))).chr(hexdec(substr($hex,2,2))).chr(hexdec(substr($hex,0,2))).chr(0).chr(0);
1105  $key = $this->md5_16($tmp);
1321  if (file_exists($dir.'php_'.$name.'.afm')){
1322    $this->addMessage('openFont: php file exists '.$dir.'php_'.$name.'.afm');
1323    $tmp = file($dir.'php_'.$name.'.afm');
2655  if (!$error){
2656    $header = chr(137).chr(80).chr(78).chr(71).chr(13).chr(10).chr(26).chr(10);
2657    if (substr($data,0,8)!=$header){
BigInteger.php https://bitbucket.org/appstrakt/lib_php_phpseclib.git | PHP | 3,063 lines
488                    $temp = bcmod($current, 0x1000000);
489                    $value = chr($temp >> 16) . chr($temp >> 8) . chr($temp) . $value;
490                    $current = bcdiv($current, 0x1000000);
668     * Although you can call BigInteger::__toString() directly in PHP5, you cannot call BigInteger::__clone()
669     * directly in PHP5.  You can in PHP4 since it's not a magic method, but in PHP5, you have to call it by using the PHP5
670     * only syntax of $y = clone $x.  As such, if you're trying to write an application that works on both PHP4 and PHP5,
2377        // generate as many leading 1's as we need to.
2378        $leading_ones = chr((1 << ($new_bits & 0x7)) - 1) . str_repeat(chr(0xFF), $new_bits >> 3);
2379        $this->_base256_lshift($leading_ones, $current_bits);
2486            $precision = 8 * strlen($bits) - 8 + $i;
2487            $mask = chr((1 << ($precision & 0x7)) - 1) . str_repeat(chr(0xFF), $precision >> 3);
2488        }
2612    {
2613        // gmp_nextprime() requires PHP 5 >= 5.2.0 per <http://php.net/gmp-nextprime>.
2614        if ( MATH_BIGINTEGER_MODE == MATH_BIGINTEGER_MODE_GMP && function_exists('gmp_nextprime') ) {
PythonPickle.php https://bitbucket.org/jfrubiom/zendframework-1.x.git | PHP | 1,494 lines
1<?php
2/**
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: PythonPickle.php 24593 2012-01-05 20:35:02Z matthew $
21 */
23/** @see Zend_Serializer_Adapter_AdapterAbstract */
24require_once 'Zend/Serializer/Adapter/AdapterAbstract.php';
25
102    /**
103     * @var bool Whether or not this is a PHP 6 binary
104     */
104     */
105    protected static $_isPhp6 = null;
106
158        if (self::$_isPhp6 === null) {
159            self::$_isPhp6 = !version_compare(PHP_VERSION, '6.0.0', '<');
160        }
class.t3lib_cs.php https://bitbucket.org/synergylearning/campusconnect.git | PHP | 2,368 lines
195	var $lang_to_script = array(
196			// iso-639-1 language codes, see http://www.loc.gov/standards/iso639-2/php/code_list.php
197		'af' => 'west_european', //Afrikaans
751							if ($mByte > 255) { // If the local number is greater than 255 we will need to split the byte (16bit word assumed) in two chars.
752								$outStr .= chr(($mByte >> 8) & 255) . chr($mByte & 255);
753							} else {
819		// see http://php.net/manual/en/function.get-html-translation-table.php
820		$applyPhpCompatibilityFix = version_compare(phpversion(), '5.3.4', '<');
821
1394		for ($i = ord('a'); $i <= ord('z'); $i++) {
1395			$this->caseFolding[$charset]['toUpper'][chr($i)] = chr($i - 32);
1396		}
1397		for ($i = ord('A'); $i <= ord('Z'); $i++) {
1398			$this->caseFolding[$charset]['toLower'][chr($i)] = chr($i + 32);
1399		}
cpdf.php https://bitbucket.org/kkfd008/simplephp.git | PHP | 4,011 lines
1312				// figure out the additional paramaters required
1313				$pad = 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 );
1314				$len = strlen( $options['owner'] );
1345				// now make the u value, phew.
1346				$tmp = $this->md5_16( $user . $ovalue . chr( $options['p'] ) . chr( 255 ) . chr( 255 ) . chr( 255 ) . $this->fileIdentifier );
1347				$ukey = substr( $tmp, 0, 5 );
1406		}
1407		$tmp .= chr( hexdec( substr( $hex, 4, 2 ) ) ) . chr( hexdec( substr( $hex, 2, 2 ) ) ) . chr( hexdec( substr( $hex, 0, 2 ) ) ) . chr( 0 ) . chr( 0 );
1408		$key = $this->md5_16( $tmp );
1690		{
1691			$this->addMessage( 'openFont: php file exists ' . $dir . 'php_' . $name . '.afm' );
1692			$tmp = file( $dir . 'php_' . $name . '.afm' );
3469		{
3470			$header = chr( 137 ) . chr( 80 ) . chr( 78 ) . chr( 71 ) . chr( 13 ) . chr( 10 ) . chr( 26 ) . chr( 10 );
3471			if ( substr( $data, 0, 8 ) != $header )
class.pdf.php https://bitbucket.org/themattreid/kontrollbase.git | PHP | 4,972 lines
1764      // figure out the additional paramaters required
1765      $pad =  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);
1766
1803      // now make the u value, phew.
1804      $tmp =  $this->md5_16($user.$ovalue.chr($options['p']) .chr(255) .chr(255) .chr(255) .$this->fileIdentifier);
1805
1891
1892    $tmp.=  chr(hexdec(substr($hex, 4, 2))) .chr(hexdec(substr($hex, 2, 2))) .chr(hexdec(substr($hex, 0, 2))) .chr(0) .chr(0);
1893
2214
2215      $this->addMessage('openFont: php file exists ' . $dir . 'php_' . $name.'.afm');
2216
4352
4353      $header =  chr(137) .chr(80) .chr(78) .chr(71) .chr(13) .chr(10) .chr(26) .chr(10);
4354
BigInteger.php https://bitbucket.org/acidel/buykoala.git | PHP | 3,545 lines
519                    $temp = bcmod($current, '16777216');
520                    $value = chr($temp >> 16) . chr($temp >> 8) . chr($temp) . $value;
521                    $current = bcdiv($current, '16777216', 0);
702     * Although you can call Math_BigInteger::__toString() directly in PHP5, you cannot call Math_BigInteger::__clone()
703     * directly in PHP5.  You can in PHP4 since it's not a magic method, but in PHP5, you have to call it by using the PHP5
704     * only syntax of $y = clone $x.  As such, if you're trying to write an application that works on both PHP4 and PHP5,
2793        // generate as many leading 1's as we need to.
2794        $leading_ones = chr((1 << ($new_bits & 0x7)) - 1) . str_repeat(chr(0xFF), $new_bits >> 3);
2795        $this->_base256_lshift($leading_ones, $current_bits);
2902            $precision = 8 * strlen($bits) - 8 + $i;
2903            $mask = chr((1 << ($precision & 0x7)) - 1) . str_repeat(chr(0xFF), $precision >> 3);
2904        }
3039
3040        // gmp_nextprime() requires PHP 5 >= 5.2.0 per <http://php.net/gmp-nextprime>.
3041        if ( MATH_BIGINTEGER_MODE == MATH_BIGINTEGER_MODE_GMP && function_exists('gmp_nextprime') ) {
PythonPickle.php https://bitbucket.org/acidel/buykoala.git | PHP | 1,494 lines
1<?php
2/**
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: PythonPickle.php 21187 2010-02-24 01:22:01Z stas $
21 */
23/** @see Zend_Serializer_Adapter_AdapterAbstract */
24#require_once 'Zend/Serializer/Adapter/AdapterAbstract.php';
25
102    /**
103     * @var bool Whether or not this is a PHP 6 binary
104     */
104     */
105    protected static $_isPhp6 = null;
106
158        if (self::$_isPhp6 === null) {
159            self::$_isPhp6 = !version_compare(PHP_VERSION, '6.0.0', '<');
160        }
getid3.lib.php https://bitbucket.org/nova-atlantis/simple-server-media-player.git | PHP | 1,380 lines
85			if (!$hasINT64 && !defined('PHP_INT_MIN')) {
86				define('PHP_INT_MIN', ~PHP_INT_MAX);
87			}
89		// if integers are 64-bit - no other check required
90		if ($hasINT64 || (($num <= PHP_INT_MAX) && ($num >= PHP_INT_MIN))) {
91			return true;
385		// written by kcØhireability*com
386		// taken from http://www.php.net/manual/en/function.array-merge-recursive.php
387		if (!is_array($array1) || !is_array($array2)) {
1347		if (GETID3_OS_ISWINDOWS) {
1348			if (class_exists('COM')) { // From PHP 5.3.15 and 5.4.5, COM and DOTNET is no longer built into the php core.you have to add COM support in php.ini:
1349				$filesystem = new COM('Scripting.FileSystemObject');
1369	/**
1370	* Workaround for Bug #37268 (https://bugs.php.net/bug.php?id=37268)
1371	* @param string $path A path.
radius.class.php https://bitbucket.org/biadmin/tcexam | PHP | 841 lines
117 *     * In Windows, PHP Sockets can be activated by un-commenting
118 *       extension=php_sockets.dll in php.ini
119 *
600                case 'T': // Text, 1-253 octets containing UTF-8 encoded ISO 10646 characters (RFC 2279).
601                    $temp_attribute = chr($type).chr(2+strlen($value)).$value;
602                    break;
603                case 'S': // String, 1-253 octets containing binary data (values 0 through 255 decimal, inclusive).
604                    $temp_attribute = chr($type).chr(2+strlen($value)).$value;
605                    break;
607                    $ip_array = explode(".", $value);
608                    $temp_attribute = chr($type).chr(6).chr($ip_array[0]).chr($ip_array[1]).chr($ip_array[2]).chr($ip_array[3]);
609                    break;
610                case 'I': // Integer, 32 bit unsigned value, most significant octet first.
611                    $temp_attribute = chr($type).chr(6).chr(($value/(256*256*256))%256).chr(($value/(256*256))%256).chr(($value/(256))%256).chr($value%256);
612                    break;
getid3.lib.php https://bitbucket.org/renaatdemuynck/chamilo | PHP | 1,590 lines
1<?php
2/////////////////////////////////////////////////////////////////
355            $quotient = ($number / ($maskbyte + 1));
356            $intstring = chr(ceil(($quotient - floor($quotient)) * $maskbyte)) . $intstring;
357            $number = floor($quotient);
403        {
404            $string = chr(getid3_lib :: Bin2Dec(strrev(substr($binstringreversed, $i, 8)))) . $string;
405        }
415            {
416                $intstring = $intstring . chr($number & 127);
417                $number >>= 7;
420            {
421                $intstring = $intstring . chr($number & 255);
422                $number >>= 8;
430        // written by kc�hireability*com
431        // taken from http://www.php.net/manual/en/function.array-merge-recursive.php
432        if (! is_array($array1) || ! is_array($array2))
BigInteger.php https://bitbucket.org/devthiagolino/gepro-sistema.git | PHP | 3,734 lines
570                    $temp = bcmod($current, '16777216');
571                    $value = chr($temp >> 16) . chr($temp >> 8) . chr($temp) . $value;
572                    $current = bcdiv($current, '16777216', 0);
762     * Although you can call Math_BigInteger::__toString() directly in PHP5, you cannot call Math_BigInteger::__clone()
763     * directly in PHP5.  You can in PHP4 since it's not a magic method, but in PHP5, you have to call it by using the PHP5
764     * only syntax of $y = clone $x.  As such, if you're trying to write an application that works on both PHP4 and PHP5,
2903        // generate as many leading 1's as we need to.
2904        $leading_ones = chr((1 << ($new_bits & 0x7)) - 1) . str_repeat(chr(0xFF), $new_bits >> 3);
2905        $this->_base256_lshift($leading_ones, $current_bits);
3012            $precision = 8 * strlen($bits) - 8 + $i;
3013            $mask = chr((1 << ($precision & 0x7)) - 1) . str_repeat(chr(0xFF), $precision >> 3);
3014        }
3204
3205        // gmp_nextprime() requires PHP 5 >= 5.2.0 per <http://php.net/gmp-nextprime>.
3206        if ( MATH_BIGINTEGER_MODE == MATH_BIGINTEGER_MODE_GMP && function_exists('gmp_nextprime') ) {
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21