PageRenderTime 1549ms queryFilters 0ms Sphinxql 1072ms GetByIds 313ms meta 0ms repositoryFilters 24ms languageFilters 0ms sourceFilters 52ms

84,481 results for 'php chr repo:teplitsa/easy-digital-downloads' (1549 ms)

Source

Language

Repository

Json.php https://gitlab.com/winiceo/levengit.git | PHP | 898 lines
497                        
498                        $substr_chrs_c_2 = substr($chrs, $c, 2);
499                        $ord_chrs_c = ord($chrs{$c});
631                        
632                        if (($c == $strlen_chrs) || (($chrs{$c} == ',') && ($top['what'] == self::SLICE))) {
633                            // found a comma that is not inside a string, array, etc.,
687                        
688                        } elseif ((($chrs{$c} == '"') || ($chrs{$c} == "'")) && ($top['what'] != self::IN_STR)) {
689                            // found a quote, and we are not inside a string
694                                 ($top['what'] == self::IN_STR) &&
695                                 ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) {
696                            // found a quote, we're in a string, and it's not escaped
738                            for ($i = $top['where']; $i <= $c; ++$i)
739                                $chrs = substr_replace($chrs, ' ', $i, 1);
740                            
Hash.php https://gitlab.com/windigo-gs/windigos-gnu-social.git | PHP | 823 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4/**
5 * Pure-PHP implementations of keyed-hash message authentication codes (HMACs) and various cryptographic hashing functions.
6 *
13 *
14 * PHP versions 4 and 5
15 *
20 * <code>
21 * <?php
22 *    include('Crypt/Hash.php');
51 * @package    Crypt_Hash
52 * @author     Jim Wigginton <terrafrost@php.net>
53 * @copyright  MMVII Jim Wigginton
54 * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
55 * @link       http://phpseclib.sourceforge.net
56 */
Hash.php https://gitlab.com/intersango/witcoin.git | PHP | 816 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4/**
5 * Pure-PHP implementations of keyed-hash message authentication codes (HMACs) and various cryptographic hashing functions.
6 *
13 *
14 * PHP versions 4 and 5
15 *
20 * <code>
21 * <?php
22 *    include('Crypt/Hash.php');
48 * @package    Crypt_Hash
49 * @author     Jim Wigginton <terrafrost@php.net>
50 * @copyright  MMVII Jim Wigginton
51 * @license    http://www.gnu.org/licenses/lgpl.txt
52 * @version    $Id: Hash.php,v 1.6 2009/11/23 23:37:07 terrafrost Exp $
53 * @link       http://phpseclib.sourceforge.net
getid3.lib.php git://github.com/wordpress/wordpress.git | PHP | 1,786 lines
112			if (!$hasINT64 && !defined('PHP_INT_MIN')) {
113				define('PHP_INT_MIN', ~PHP_INT_MAX);
114			}
116		// if integers are 64-bit - no other check required
117		if ($hasINT64 || (($num <= PHP_INT_MAX) && ($num >= PHP_INT_MIN))) { // phpcs:ignore PHPCompatibility.Constants.NewConstants.php_int_minFound
118			return true;
506		// written by kcØhireability*com
507		// taken from http://www.php.net/manual/en/function.array-merge-recursive.php
508		if (!is_array($array1) || !is_array($array2)) {
1722		if (GETID3_OS_ISWINDOWS) {
1723			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:
1724				$filesystem = new COM('Scripting.FileSystemObject');
1773	/**
1774	 * Workaround for Bug #37268 (https://bugs.php.net/bug.php?id=37268)
1775	 *
Hash.php https://bitbucket.org/openemr/openemr.git | PHP | 825 lines
1<?php
2
3/**
4 * Pure-PHP implementations of keyed-hash message authentication codes (HMACs) and various cryptographic hashing functions.
5 *
12 *
13 * PHP version 5
14 *
19 * <code>
20 * <?php
21 *    include 'vendor/autoload.php';
22 *
23 *    $hash = new \phpseclib\Crypt\Hash('sha1');
24 *
32 * @package   Hash
33 * @author    Jim Wigginton <terrafrost@php.net>
34 * @copyright 2007 Jim Wigginton
BigInteger.php https://bitbucket.org/openemr/openemr.git | PHP | 3,755 lines
570                    $temp = bcmod($current, '16777216');
571                    $value = chr($temp >> 16) . chr($temp >> 8) . chr($temp) . $value;
572                    $current = bcdiv($current, '16777216', 0);
755     * Although you can call BigInteger::__toString() directly in PHP5, you cannot call BigInteger::__clone() directly
756     * 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
757     * only syntax of $y = clone $x.  As such, if you're trying to write an application that works on both PHP4 and
2919        // generate as many leading 1's as we need to.
2920        $leading_ones = chr((1 << ($new_bits & 0x7)) - 1) . str_repeat(chr(0xFF), $new_bits >> 3);
2921        $this->_base256_lshift($leading_ones, $current_bits);
3029            $precision = 8 * strlen($bits) - 8 + $i;
3030            $mask = chr((1 << ($precision & 0x7)) - 1) . str_repeat(chr(0xFF), $precision >> 3);
3031        }
3224
3225        // gmp_nextprime() requires PHP 5 >= 5.2.0 per <http://php.net/gmp-nextprime>.
3226        if (MATH_BIGINTEGER_MODE == self::MODE_GMP && extension_loaded('gmp')) {
Services_JSON.php https://bitbucket.org/kgrashad/thawrapedia | 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);
Hash.php https://bitbucket.org/norvin/mingen_dts | PHP | 816 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4/**
5 * Pure-PHP implementations of keyed-hash message authentication codes (HMACs) and various cryptographic hashing functions.
6 *
13 *
14 * PHP versions 4 and 5
15 *
20 * <code>
21 * <?php
22 *    include('Crypt/Hash.php');
48 * @package    Crypt_Hash
49 * @author     Jim Wigginton <terrafrost@php.net>
50 * @copyright  MMVII Jim Wigginton
51 * @license    http://www.gnu.org/licenses/lgpl.txt
52 * @version    $Id: Hash.php,v 1.6 2009/11/23 23:37:07 terrafrost Exp $
53 * @link       http://phpseclib.sourceforge.net
String.php https://bitbucket.org/rlm3/rlm3_staging | PHP | 777 lines
33 * @package    PHPExcel_Shared
34 * @copyright  Copyright (c) 2006 - 2014 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	 *
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
String.php https://bitbucket.org/nochallenge/exlarlistprice | 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	 *
barcodes.php https://bitbucket.org/nochallenge/exlarlistprice | PHP | 2,288 lines
591			chr(0) => chr(131).'U', chr(1) => chr(128).'A', chr(2) => chr(128).'B', chr(3) => chr(128).'C',
592			chr(4) => chr(128).'D', chr(5) => chr(128).'E', chr(6) => chr(128).'F', chr(7) => chr(128).'G',
593			chr(8) => chr(128).'H', chr(9) => chr(128).'I', chr(10) => chr(128).'J', chr(11) => '£K',
600			chr(36) => chr(129).'D', chr(37) => chr(129).'E', chr(38) => chr(129).'F', chr(39) => chr(129).'G',
601			chr(40) => chr(129).'H', chr(41) => chr(129).'I', chr(42) => chr(129).'J', chr(43) => chr(129).'K',
602			chr(44) => chr(129).'L', chr(45) => '-', chr(46) => '.', chr(47) => chr(129).'O',
605			chr(56) => '8', chr(57) => '9', chr(58) => chr(129).'Z', chr(59) => chr(131).'F',
606			chr(60) => chr(131).'G', chr(61) => chr(131).'H', chr(62) => chr(131).'I', chr(63) => chr(131).'J',
607			chr(64) => chr(131).'V', chr(65) => 'A', chr(66) => 'B', chr(67) => 'C',
1050		$keys_a = ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_';
1051		$keys_a .= chr(0).chr(1).chr(2).chr(3).chr(4).chr(5).chr(6).chr(7).chr(8).chr(9);
1052		$keys_a .= chr(10).chr(11).chr(12).chr(13).chr(14).chr(15).chr(16).chr(17).chr(18).chr(19);
1052		$keys_a .= chr(10).chr(11).chr(12).chr(13).chr(14).chr(15).chr(16).chr(17).chr(18).chr(19);
1053		$keys_a .= chr(20).chr(21).chr(22).chr(23).chr(24).chr(25).chr(26).chr(27).chr(28).chr(29);
1054		$keys_a .= chr(30).chr(31);
String.php https://bitbucket.org/tripodreporting/development-to-production-webservice | PHP | 678 lines
33 * @package    PHPExcel_Shared
34 * @copyright  Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
311		// CUSTOM: IBM AIX iconv() does not work
312		if ( defined('PHP_OS') && @stristr(PHP_OS, 'AIX')
313				&& defined('ICONV_IMPL') && (@strcasecmp(ICONV_IMPL, 'unknown') == 0)
499	 * Assumes Big-Endian byte order if no BOM is available.
500	 * This function was taken from http://php.net/manual/en/function.utf8-decode.php
501	 * and $bom_be parameter added.
616	 * Set the decimal separator. Only used by PHPExcel_Style_NumberFormat::toFormattedString()
617	 * to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
618	 *
643	 * Set the thousands separator. Only used by PHPExcel_Style_NumberFormat::toFormattedString()
644	 * to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
645	 *
Hash.php https://bitbucket.org/negge/tlklan2 | PHP | 826 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4/**
5 * Pure-PHP implementations of keyed-hash message authentication codes (HMACs) and various cryptographic hashing functions.
6 *
13 *
14 * PHP versions 4 and 5
15 *
20 * <code>
21 * <?php
22 *    include('Crypt/Hash.php');
51 * @package    Crypt_Hash
52 * @author     Jim Wigginton <terrafrost@php.net>
53 * @copyright  MMVII Jim Wigginton
54 * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
55 * @version    $Id: Hash.php,v 1.6 2009/11/23 23:37:07 terrafrost Exp $
56 * @link       http://phpseclib.sourceforge.net
String.php https://bitbucket.org/lecturer34/hrmis | PHP | 669 lines
33 * @package    PHPExcel_Shared
34 * @copyright  Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
311		// CUSTOM: IBM AIX iconv() does not work
312		if ( defined('PHP_OS') && @stristr(PHP_OS, 'AIX')
313				&& defined('ICONV_IMPL') && (@strcasecmp(ICONV_IMPL, 'unknown') == 0)
500	 * Assumes Big-Endian byte order if no BOM is available.
501	 * This function was taken from http://php.net/manual/en/function.utf8-decode.php
502	 * and $bom_be parameter added.
611	 * Set the decimal separator. Only used by PHPExcel_Style_NumberFormat::toFormattedString()
612	 * to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
613	 *
638	 * Set the thousands separator. Only used by PHPExcel_Style_NumberFormat::toFormattedString()
639	 * to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
640	 *
String.php https://bitbucket.org/lecturer34/hrmis | PHP | 669 lines
33 * @package    PHPExcel_Shared
34 * @copyright  Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
311		// CUSTOM: IBM AIX iconv() does not work
312		if ( defined('PHP_OS') && @stristr(PHP_OS, 'AIX')
313				&& defined('ICONV_IMPL') && (@strcasecmp(ICONV_IMPL, 'unknown') == 0)
500	 * Assumes Big-Endian byte order if no BOM is available.
501	 * This function was taken from http://php.net/manual/en/function.utf8-decode.php
502	 * and $bom_be parameter added.
611	 * Set the decimal separator. Only used by PHPExcel_Style_NumberFormat::toFormattedString()
612	 * to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
613	 *
638	 * Set the thousands separator. Only used by PHPExcel_Style_NumberFormat::toFormattedString()
639	 * to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
640	 *
String.php https://bitbucket.org/lecturer34/hrmis | PHP | 669 lines
33 * @package    PHPExcel_Shared
34 * @copyright  Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
311		// CUSTOM: IBM AIX iconv() does not work
312		if ( defined('PHP_OS') && @stristr(PHP_OS, 'AIX')
313				&& defined('ICONV_IMPL') && (@strcasecmp(ICONV_IMPL, 'unknown') == 0)
500	 * Assumes Big-Endian byte order if no BOM is available.
501	 * This function was taken from http://php.net/manual/en/function.utf8-decode.php
502	 * and $bom_be parameter added.
611	 * Set the decimal separator. Only used by PHPExcel_Style_NumberFormat::toFormattedString()
612	 * to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
613	 *
638	 * Set the thousands separator. Only used by PHPExcel_Style_NumberFormat::toFormattedString()
639	 * to format output by PHPExcel_Writer_HTML and PHPExcel_Writer_PDF
640	 *
getid3.putid3.php http://nukeviet-music.googlecode.com/svn/trunk/ | PHP | 1,647 lines
14		// %abcd0000
15		$flag .= Bool2IntString($Unsynchronisation); // a - Unsynchronisation
16		$flag .= Bool2IntString($ExtendedHeader);    // b - Extended header
21		// %abc00000
22		$flag .= Bool2IntString($Unsynchronisation); // a - Unsynchronisation
23		$flag .= Bool2IntString($ExtendedHeader);    // b - Extended header
52		$flag2 .= Bool2IntString($Encryption);          // m - Encryption (TRUE == encrypted)
53		$flag2 .= Bool2IntString($Unsynchronisation);   // n - Unsynchronisation (TRUE == unsynchronised)
54		$flag2 .= Bool2IntString($DataLengthIndicator); // p - Data length indicator (TRUE == data length indicator added)
166				} else {
167					$framedata .= str_replace(chr(0), '', $frame_data['ownerid']).chr(0);
168					$framedata .= substr($frame_data['data'], 0, 64); // max 64 bytes - truncate anything longer
853				// The private data      <binary data>
854				$framedata .= str_replace(chr(0), '', $frame_data['ownerid']).chr(0);
855				$framedata .= $frame_data['data'];
rdf.php https://code.google.com/p/s3db/ | PHP | 926 lines
187					if(is_array($item_info))
188					$addStat .= chr(9).sprintf(' a '.n3UID("C".$item_info['resource_class_id']).' .').chr(10).chr(10);
189					else {#find a collection for the verbs
427					if($object!='""')
428					$n3 .= sprintf("%s", ' '.$predicate.' '.$object.(($predicate==end(array_keys($objectPredicates)))?' .'.chr(10).chr(10):' ;'.chr(10).chr(9)));
429				}
516					if($object!='""')
517					$n3 .= sprintf("%s", ' '.$predicate.' '.$object.(($predicate==end(array_keys($objectPredicates)))?' .'.chr(10).chr(10):' ;'.chr(10).chr(9)));
518				}
522		$n3 .= sprintf("%s", $objectPredicates['rdf:subject']);
523		$n3 .= chr(9).sprintf("%s", $objectPredicates['rdf:predicate'].' '.(($subClass_info['object_id']!='')?$objectPredicates['rdf:object']:$objectPredicates['rdf:object']).' .').chr(10).chr(10);
524
912			if($object!='""')
913			$n3 .= sprintf("%s", ' '.$predicate.' '.$object.(($predicate==end(array_keys($objectPredicates)))?' .'.chr(10).chr(10):' ;'.chr(10).chr(9)));
914		}
demo.mp3header.php https://bitbucket.org/chamilo/chamilo/ | PHP | 2,890 lines
552	function DeUnSynchronise($data) {
553		return str_replace(chr(0xFF).chr(0x00), chr(0xFF), $data);
554	}
570
571		$data = str_replace(chr(0xFF).chr(0x00), chr(0xFF).chr(0x00).chr(0x00), $data);
572		$unsyncheddata = '';
697				$asciidata = $rawdata;
698				if (substr($asciidata, strlen($asciidata) - 2, 2) == chr(0).chr(0)) {
699					$asciidata = substr($asciidata, 0, strlen($asciidata) - 2); // remove terminator, only if present (it should be, but...)
716				$asciidata = $rawdata;
717				if (substr($asciidata, strlen($asciidata) - 2, 2) == chr(0).chr(0)) {
718					$asciidata = substr($asciidata, 0, strlen($asciidata) - 2); // remove terminator, only if present (it should be, but...)
939	function utf8_decode($utf8text) {
940		// http://www.php.net/manual/en/function.utf8-encode.php
941		// bytes  bits  representation
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21