PageRenderTime 2310ms queryFilters 0ms Sphinxql 191ms GetByIds 1339ms meta 0ms repositoryFilters 277ms languageFilters 1ms sourceFilters 51ms

20,915 results for 'php ord repo:baruffaldi/website-2008-computer-shopping-3' (2310 ms)

Source

Language

Repository

ASN1.php https://github.com/DaveBenNoah/PrestaShop-modules.git | PHP | 1,274 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4/**
5 * Pure-PHP ASN.1 Parser
6 *
6 *
7 * PHP versions 4 and 5
8 *
36 * @package    File_ASN1
37 * @author     Jim Wigginton <terrafrost@php.net>
38 * @copyright  MMXII Jim Wigginton
40 * @version    $Id$
41 * @link       http://phpseclib.sourceforge.net
42 */
47if (!class_exists('Math_BigInteger')) {
48    require_once(dirname(__FILE__).'/../Math/BigInteger.php');
49}
ASN1.php https://github.com/AmaniYunge/greenWeb.git | PHP | 1,320 lines
1<?php
2
3/**
4 * Pure-PHP ASN.1 Parser
5 *
5 *
6 * PHP versions 4 and 5
7 *
35 * @package   File_ASN1
36 * @author    Jim Wigginton <terrafrost@php.net>
37 * @copyright MMXII Jim Wigginton
38 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
39 * @link      http://phpseclib.sourceforge.net
40 */
113 * @package File_ASN1
114 * @author  Jim Wigginton <terrafrost@php.net>
115 * @version 0.3.0
ASN1.php https://github.com/floviolleau/Raspcontrol.git | PHP | 1,294 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4/**
5 * Pure-PHP ASN.1 Parser
6 *
6 *
7 * PHP versions 4 and 5
8 *
36 * @package    File_ASN1
37 * @author     Jim Wigginton <terrafrost@php.net>
38 * @copyright  MMXII Jim Wigginton
39 * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
40 * @link       http://phpseclib.sourceforge.net
41 */
113 *
114 * @author  Jim Wigginton <terrafrost@php.net>
115 * @version 0.3.0
RSA.php https://github.com/KenjiOhtsuka/core.git | PHP | 2,942 lines
426     * For use with parsing XML formatted keys.  PHP's XML Parser functions use utilized - instead of PHP's DOM functions -
427     * because PHP's XML Parser functions work on PHP4 whereas PHP's DOM functions - although surperior - don't.
428     *
1148                            $crypto = new Crypt_DES();
1149                            $crypto->setPassword($this->password, 'pbkdf1', 'md5', $salt, $iterationCount);
1150                            $key = $crypto->decrypt($key);
1582     * Private keys can be encrypted with a password.  To unset the password, pass in the empty string or false.
1583     * Or rather, pass in $password such that empty($password) && !is_string($password) is true.
1584     *
1589     */
1590    function setPassword($password = false)
1591    {
1591    {
1592        $this->password = $password;
1593    }
mbstring.php https://github.com/redpinata-dev/contao.git | PHP | 583 lines
95	if (ord($str{0}) >= 224 && ord($str{0}) <= 239)
96		return (ord($str{0})-224)*4096 + (ord($str{1})-128)*64 + (ord($str{2})-128);
97
98	if (ord($str{0}) >= 240 && ord($str{0}) <= 247)
99		return (ord($str{0})-240)*262144 + (ord($str{1})-128)*4096 + (ord($str{2})-128)*64 + (ord($str{3})-128);
100
101	if (ord($str{0}) >= 248 && ord($str{0}) <= 251)
102		return (ord($str{0})-248)*16777216 + (ord($str{1})-128)*262144 + (ord($str{2})-128)*4096 + (ord($str{3})-128)*64 + (ord($str{4})-128);
103
104	if (ord($str{0}) >= 252 && ord($str{0}) <= 253)
105		return (ord($str{0})-252)*1073741824 + (ord($str{1})-128)*16777216 + (ord($str{2})-128)*262144 + (ord($str{3})-128)*4096 + (ord($str{4})-128)*64 + (ord($str{5})-128);
106
106
107	if (ord($str{0}) >= 254 && ord($str{0}) <= 255) //error
108		return false;
ASN1.php https://github.com/dsawardekar/worker.git | PHP | 1,301 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4/**
5 * Pure-PHP ASN.1 Parser
6 * PHP versions 4 and 5
29 * @package    File_ASN1
30 * @author     Jim Wigginton <terrafrost@php.net>
31 * @copyright  MMXII Jim Wigginton
32 * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
33 * @link       http://phpseclib.sourceforge.net
34 */
104 *
105 * @author  Jim Wigginton <terrafrost@php.net>
106 * @version 0.3.0
134/**
135 * Pure-PHP ASN.1 Parser
136 *
class-json.php https://github.com/mikeonthebike/gitwordpress.git | PHP | 937 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 */
318
319                    $ord_var_c = ord($var{$c});
320
358                            
359                            $char = pack('C*', $ord_var_c, ord($var{$c + 1}));
360                            $c += 1;
621                        $substr_chrs_c_2 = $this->substr8($chrs, $c, 2);
622                        $ord_chrs_c = ord($chrs{$c});
623
663
664                            case ($ord_chrs_c >= 0x20) && ($ord_chrs_c <= 0x7F):
665                                $utf8 .= $chrs{$c};
json.php https://github.com/alugo/Goteo.git | PHP | 906 lines
54 * @license     http://www.opensource.org/licenses/bsd-license.php
55 * @link        http://pear.php.net/pepr/pepr-proposal-show.php?id=198
56 */
294
295                    $ord_var_c = ord($var{$c});
296
334                            
335                            $char = pack('C*', $ord_var_c, ord($var{$c + 1}));
336                            $c += 1;
603                        $substr_chrs_c_2 = substr($chrs, $c, 2);
604                        $ord_chrs_c = ord($chrs{$c});
605
645
646                            case ($ord_chrs_c >= 0x20) && ($ord_chrs_c <= 0x7F):
647                                $utf8 .= $chrs{$c};
utf8.php https://github.com/navyuginfo/libphutil.git | PHP | 791 lines
1<?php
2
64  // OS X). This is apparently because the internal implementation is recursive
65  // and it blows the stack. See <https://bugs.php.net/bug.php?id=45735> for
66  // some discussion. Since the input limit is extremely low (less than 50KB on
88      }
89      $chr = ord($string[$ii]);
90      if ($chr >= 0x80 && $chr <= 0xBF) {
428  // characters, just break at the maximum character length.
429  if ($word_boundary === null || $word_boundary === 0) {
430    $word_boundary = $terminal_area;
621  $ord_a = ord('a');
622  $ord_z = ord('z');
623  foreach ($v as $c) {
626      $o = ord($c[0]);
627      if ($o >= $ord_a && $o <= $ord_z) {
628        $convert = true;
FX.php https://github.com/APD183/fxphp.git | PHP | 1,012 lines
18
19require_once('FX_Error.php');                                           // FX.php includes object based error handling.  See FX_Error.php for more info.
20
490    // The functions below are those which are intended for general use by developers (i.e. public functions).
491    // Once I'm quite sure that most people are using PHP5, I'll release a version using the improved object model of PHP5.
492
522
523    function SetDBPassword ($DBPassword, $DBUser='FX') { // Note that for historical reasons, password is the FIRST parameter for this function
524        if ($DBUser == '') {
775    function SetRecordID ($recordID) {
776        if (! is_numeric($recordID) || (intval($recordID) != $recordID)) {
777            if ((defined("DEBUG") and DEBUG) or DEBUG_FUZZY) {
824            $this->sortParams[$performOrder]["field"] = $field;
825            $this->sortParams[$performOrder]["sortOrder"] = $sortOrder;
826        } else {
CertTest.class.php https://github.com/nemiah/projectMankind.git | PHP | 344 lines
1<?php
2/**
4 *
5 * The PHP openssl functionality is severely limited by the lack of a stable
6 * api and documentation that might as well have been encrypted itself.
12 * which should stay fairly stable.  The ASN parsing code snippets were mostly
13 * borrowed from the horde project's smime.php.
14 *
16 * @copyright Copyright (c) 2010, Mike Green, "classified" by Rainer Furtmeier, 2011
17 * @license http://opensource.org/licenses/gpl-2.0.php GPLv2
18 */
62		while (strlen($der) > 1) {
63			$class = ord($der[0]);
64			$classHex = dechex($class);
67				case 0x03:
68					$len = ord($der[1]);
69					$bytes = 0;
module.tag.id3v2.php https://github.com/michael-cannon/typo3-extensions.git | PHP | 3,045 lines
1<?php
2/////////////////////////////////////////////////////////////////
9///                                                            //
10// module.tag.id3v2.php                                        //
11// module for analyzing ID3v2 tags                             //
11// module for analyzing ID3v2 tags                             //
12// dependencies: module.tag.id3v1.php                          //
13//                                                            ///
15
16getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'module.tag.id3v1.php', __FILE__, true);
17
54
55			$thisfile_id3v2['majorversion'] = ord($header{3});
56			$thisfile_id3v2['minorversion'] = ord($header{4});
74
75		$id3_flags = ord($header{5});
76		switch ($id3v2_majorversion) {
jCryption.php https://github.com/madhavvyas/jCryption.git | PHP | 707 lines
20	* @copyright  2010 Daniel Griesser
21	* @license    http://www.php.net/license/3_0.txt  PHP License 3.0
22	* @version    1.1
559					} else if ($hex[$i] >= 'A' && $hex[$i] <= 'F') {
560							$result = bcadd($result, '1'.('0' + (ord($hex[$i]) - ord('A'))));
561						}
577				if ($hex[$i] >= '0' && $hex[$i] <= '9') {
578					$result += ord($hex[$i]) - ord('0');
579				} else if ($hex[$i] >= 'a' && $hex[$i] <= 'f') {
579				} else if ($hex[$i] >= 'a' && $hex[$i] <= 'f') {
580						$result += 10 + (ord($hex[$i]) - ord('a'));
581					} else if ($hex[$i] >= 'A' && $hex[$i] <= 'F') {
581					} else if ($hex[$i] >= 'A' && $hex[$i] <= 'F') {
582							$result += 10 + (ord($hex[$i]) - ord('A'));
583						}
securimage.php https://github.com/cipiceuca25/webid.git | PHP | 955 lines
26 *
27 * @link http://www.phpcaptcha.org Securimage PHP CAPTCHA
28 * @link http://www.phpcaptcha.org/latest.zip Download Latest Version
127	 */
128	var $wordlist_file = '../words/words.txt';
129
459		<a tabindex="-1" style="border-style: none" href="' . $system->SETTINGS['siteurl'] . 'captcha_play.php" title="Audible Version of CAPTCHA"><img src="' . $system->SETTINGS['siteurl'] . 'includes/captcha/images/audio_icon.gif" alt="Audio Version" align="top" border="0" onclick="this.blur()" /></a><br /> 
460		<a tabindex="-1" style="border-style: none" href="#" title="Refresh Image" onclick="document.getElementById(\'siimage\').src = \'' . $system->SETTINGS['siteurl'] . 'captcha.php?sid=\' + Math.random(); return false"><img src="' . $system->SETTINGS['siteurl'] . 'includes/captcha/images/refresh.gif" alt="Reload Image" border="0" onclick="this.blur()" align="bottom" /></a>
461	</div>
930			if ($i == 0) { // output header
931				$out_data .= pack('C4VC8', ord('R'), ord('I'), ord('F'), ord('F'), $data_len + 36, ord('W'), ord('A'), ord('V'), ord('E'), ord('f'), ord('m'), ord('t'), ord(' '));
932
941
942				$out_data .= pack('C4', ord('d'), ord('a'), ord('t'), ord('a'));
943
git.class.php https://github.com/phybros/git-center.git | PHP | 467 lines
1<?php
2/*
20
21require_once('binary.class.php');
22require_once('git_object.class.php');
22require_once('git_object.class.php');
23require_once('git_blob.class.php');
24require_once('git_commit.class.php');
24require_once('git_commit.class.php');
25require_once('git_commit_stamp.class.php');
26require_once('git_tree.class.php');
125        {
126            fseek($f, $offset + (ord($object_name{0}) - 1)*4);
127            $cur = Binary::fuint32($f);
205                        /* packfile > 2 GB. Gee, you really want to handle this
206                         * much data with PHP?
207                         */
supporting_functions.php https://github.com/benblank/ureddit.git | PHP | 914 lines
36  else
37    return array('title' => "Install WordPress or remove this box.", 'url' => "http://wordpress.com");
38}
771  $password = md5crypt ($pw, $salt);
772  $password = escape_string ($password);
773  return $password;
859    $passwd = "";
860    $passwd .= to64 (((ord ($final[0]) << 16) | (ord ($final[6]) << 8) | (ord ($final[12]))), 4);
861    $passwd .= to64 (((ord ($final[1]) << 16) | (ord ($final[7]) << 8) | (ord ($final[13]))), 4);
861    $passwd .= to64 (((ord ($final[1]) << 16) | (ord ($final[7]) << 8) | (ord ($final[13]))), 4);
862    $passwd .= to64 (((ord ($final[2]) << 16) | (ord ($final[8]) << 8) | (ord ($final[14]))), 4);
863    $passwd .= to64 (((ord ($final[3]) << 16) | (ord ($final[9]) << 8) | (ord ($final[15]))), 4);
863    $passwd .= to64 (((ord ($final[3]) << 16) | (ord ($final[9]) << 8) | (ord ($final[15]))), 4);
864    $passwd .= to64 (((ord ($final[4]) << 16) | (ord ($final[10]) << 8) | (ord ($final[5]))), 4);
865    $passwd .= to64 (ord ($final[11]), 2);
RSA.php https://github.com/phocode/my_reddit.git | PHP | 2,991 lines
438     * For use with parsing XML formatted keys.  PHP's XML Parser functions use utilized - instead of PHP's DOM functions -
439     * because PHP's XML Parser functions work on PHP4 whereas PHP's DOM functions - although surperior - don't.
440     *
1194                            $crypto = new Crypt_DES();
1195                            $crypto->setPassword($this->password, 'pbkdf1', 'md5', $salt, $iterationCount);
1196                            $key = $crypto->decrypt($key);
1631     * Private keys can be encrypted with a password.  To unset the password, pass in the empty string or false.
1632     * Or rather, pass in $password such that empty($password) && !is_string($password) is true.
1633     *
1638     */
1639    function setPassword($password = false)
1640    {
1640    {
1641        $this->password = $password;
1642    }
class.t3lib_cs.php https://github.com/ndenmeade/moodle.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
682					$ord2 = ord($str{$a + 1});
683					$ord = $ord << 8 | $ord2; // assume big endian
684
695							$ord2 = ord(substr($str, $a, 1));
696							$ord = $ord * 256 + $ord2;
697						}
783			$chr = substr($str, $a, 1);
784			$ord = ord($chr);
785			if ($ord > 127) { // This means multibyte! (first byte!)
1393			// add the ASCII case table
1394		for ($i = ord('a'); $i <= ord('z'); $i++) {
1395			$this->caseFolding[$charset]['toUpper'][chr($i)] = chr($i - 32);
RSA.php https://bitbucket.org/davide_grobberio/laravel-angular.git | PHP | 2,989 lines
438     * For use with parsing XML formatted keys.  PHP's XML Parser functions use utilized - instead of PHP's DOM functions -
439     * because PHP's XML Parser functions work on PHP4 whereas PHP's DOM functions - although surperior - don't.
440     *
1192                            $crypto = new Crypt_DES();
1193                            $crypto->setPassword($this->password, 'pbkdf1', 'md5', $salt, $iterationCount);
1194                            $key = $crypto->decrypt($key);
1629     * Private keys can be encrypted with a password.  To unset the password, pass in the empty string or false.
1630     * Or rather, pass in $password such that empty($password) && !is_string($password) is true.
1631     *
1636     */
1637    function setPassword($password = false)
1638    {
1638    {
1639        $this->password = $password;
1640    }
ASN1.php https://bitbucket.org/Kamor/nexway.git | PHP | 1,352 lines
1<?php
2
3/**
4 * Pure-PHP ASN.1 Parser
5 *
5 *
6 * PHP versions 4 and 5
7 *
35 * @package   File_ASN1
36 * @author    Jim Wigginton <terrafrost@php.net>
37 * @copyright MMXII Jim Wigginton
38 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
39 * @link      http://phpseclib.sourceforge.net
40 */
113 * @package File_ASN1
114 * @author  Jim Wigginton <terrafrost@php.net>
115 * @access  public
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21