PageRenderTime 1670ms queryFilters 140ms Sphinxql 405ms GetByIds 653ms meta 0ms repositoryFilters 336ms languageFilters 2ms sourceFilters 116ms

20,915 results for 'php ord repo:bertramtruong/b-ipam' (1670 ms)

Source

Language

Repository

FirePHP.class.php https://github.com/ozhehkovski/Open-Ad-Server.git | PHP | 1,528 lines
621        // Simply echo the error out to the page
622        echo '<div style="border: 2px solid red; font-family: Arial; font-size: 12px; background-color: lightgray; padding: 5px;"><span style="color: red; font-weight: bold;">FirePHP ERROR:</span> Headers already sent in <b>'.$filename.'</b> on line <b>'.$linenum.'</b>. Cannot send log data to FirePHP. You must have Output Buffering enabled via ob_start() or output_buffering ini directive.</div>';
623      } else {
727           && (substr($this->_standardizePath($trace[$i]['file']),-18,18)=='FirePHPCore/fb.php'
728               || substr($this->_standardizePath($trace[$i]['file']),-29,29)=='FirePHPCore/FirePHP.class.php')) {
729          /* Skip - FB::trace(), FB::send(), $firephp->trace(), $firephp->fb() */
790             && (substr($this->_standardizePath($trace[$i]['file']),-18,18)=='FirePHPCore/fb.php'
791                 || substr($this->_standardizePath($trace[$i]['file']),-29,29)=='FirePHPCore/FirePHP.class.php')) {
792            /* Skip - FB::trace(), FB::send(), $firephp->trace(), $firephp->fb() */
800          if(isset($trace[$i]['file'])
801             && substr($this->_standardizePath($trace[$i]['file']),-18,18)=='FirePHPCore/fb.php') {
802            /* Skip FB::fb() */
816  	$this->setHeader('X-Wf-Protocol-1','http://meta.wildfirehq.org/Protocol/JsonStream/0.2');
817  	$this->setHeader('X-Wf-1-Plugin-1','http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/'.self::VERSION);
818 
OpenId.php https://github.com/svn2github/efront-lms.git | PHP | 754 lines
232                if ($id[$i] >= '0' && $id[$i] <= '9') {
233                    $c = ord($id[$i]) - ord('0');
234                } else if ($id[$i] >= 'A' && $id[$i] <= 'F') {
236                } else if ($id[$i] >= 'a' && $id[$i] <= 'f') {
237                    $c = ord($id[$i]) - ord('a') + 10;
238                } else {
242                if ($id[$i] >= '0' && $id[$i] <= '9') {
243                    $c = ($c << 4) | (ord($id[$i]) - ord('0'));
244                } else if ($id[$i] >= 'A' && $id[$i] <= 'F') {
244                } else if ($id[$i] >= 'A' && $id[$i] <= 'F') {
245                    $c = ($c << 4) | (ord($id[$i]) - ord('A') + 10);
246                } else if ($id[$i] >= 'a' && $id[$i] <= 'f') {
246                } else if ($id[$i] >= 'a' && $id[$i] <= 'f') {
247                    $c = ($c << 4) | (ord($id[$i]) - ord('a') + 10);
248                } else {
jcryption.php https://github.com/madhavvyas/jCryption.git | PHP | 670 lines
451      if ($i % $Nk == 0) {
452        $temp = self::subWord(self::rotWord($temp));
453        for ($t=0; $t<4; $t++) $temp[$t] ^= self::$rCon[$i/$Nk][$t];
532    
533    // use AES itself to encrypt password to get cipher key (using plain password as source for  
534    // key expansion) - gives us well encrypted key
536    $pwBytes = array();
537    for ($i=0; $i<$nBytes; $i++) $pwBytes[$i] = ord(substr($password,$i,1)) & 0xff;
538    $key = Aes::cipher($pwBytes, Aes::keyExpansion($pwBytes));
593   * @param ciphertext source text to be decrypted
594   * @param password   the password to use to generate a key
595   * @param nBits      number of bits to be used in the key (128, 192, or 256)
605    $pwBytes = array();
606    for ($i=0; $i<$nBytes; $i++) $pwBytes[$i] = ord(substr($password,$i,1)) & 0xff;
607    $key = Aes::cipher($pwBytes, Aes::keyExpansion($pwBytes));
jsmin.class.php https://github.com/sahilbabu/phpb2b.git | PHP | 947 lines
2/**
3* JSMin_lib.php (for PHP 4, 5)
4*
4*
5* PHP adaptation of JSMin, published by Douglas Crockford as jsmin.c, also based
6* on its Java translation by John Reilly.
12*
13* Copyright (c) 2002 Douglas Crockford  (www.crockford.com)
14*
98
99define('ORD_NL', ord("\n"));
100define('ORD_space', ord(' '));
467
468                        if (ord($tmpA) <= ORD_NL) {
469
Transliterator.php https://github.com/m4rkw/env.git | PHP | 428 lines
1<?php
2
40            elseif ((ord($string[$i]) & 0xF8) == 0xF0) $n=3; # 11110bbb
41            elseif ((ord($string[$i]) & 0xFC) == 0xF8) $n=4; # 111110bb
42            elseif ((ord($string[$i]) & 0xFE) == 0xFC) $n=5; # 1111110b
44            for ($j=0; $j<$n; $j++) { # n bytes matching 10bbbbbb follow ?
45                if ((++$i == strlen($string)) || ((ord($string[$i]) & 0xC0) != 0x80))
46
224            if (ord($c{0})>=0 && ord($c{0})<=127) { continue; } // ASCII - next please
225            if (ord($c{0})>=192 && ord($c{0})<=223) { $ord = (ord($c{0})-192)*64 + (ord($c{1})-128); }
226            if (ord($c{0})>=224 && ord($c{0})<=239) { $ord = (ord($c{0})-224)*4096 + (ord($c{1})-128)*64 + (ord($c{2})-128); }
226            if (ord($c{0})>=224 && ord($c{0})<=239) { $ord = (ord($c{0})-224)*4096 + (ord($c{1})-128)*64 + (ord($c{2})-128); }
227            if (ord($c{0})>=240 && ord($c{0})<=247) { $ord = (ord($c{0})-240)*262144 + (ord($c{1})-128)*4096 + (ord($c{2})-128)*64 + (ord($c{3})-128); }
228            if (ord($c{0})>=248 && ord($c{0})<=251) { $ord = (ord($c{0})-248)*16777216 + (ord($c{1})-128)*262144 + (ord($c{2})-128)*4096 + (ord($c{3})-128)*64 + (ord($c{4})-128); }
228            if (ord($c{0})>=248 && ord($c{0})<=251) { $ord = (ord($c{0})-248)*16777216 + (ord($c{1})-128)*262144 + (ord($c{2})-128)*4096 + (ord($c{3})-128)*64 + (ord($c{4})-128); }
229            if (ord($c{0})>=252 && ord($c{0})<=253) { $ord = (ord($c{0})-252)*1073741824 + (ord($c{1})-128)*16777216 + (ord($c{2})-128)*262144 + (ord($c{3})-128)*4096 + (ord($c{4})-128)*64 + (ord($c{5})-128); }
230            if (ord($c{0})>=254 && ord($c{0})<=255) { $chars{$i} = $unknown; continue; } //error
jsonlib.php https://github.com/akadim/igate.git | PHP | 828 lines
11 * Suddenly became relevant again because Linux distros decided not to include
12 * the PHP JSON package with PHP 5.5 due to a stupid licensing cock-up.
13 */
66 * @license     http://www.opensource.org/licenses/bsd-license.php
67 * @link        http://pear.php.net/pepr/pepr-proposal-show.php?id=198
68 */
286
287	                    $ord_var_c = ord($var{$c});
288
545	                        $substr_chrs_c_2 = substr($chrs, $c, 2);
546	                        $ord_chrs_c = ord($chrs{$c});
547
587
588	                            case ($ord_chrs_c >= 0x20) && ($ord_chrs_c <= 0x7F):
589	                                $utf8 .= $chrs{$c};
Urlizer.php https://github.com/mrosiu/DoctrineExtensions.git | PHP | 425 lines
1<?php
2
39            elseif ((ord($string[$i]) & 0xF8) == 0xF0) $n=3; # 11110bbb
40            elseif ((ord($string[$i]) & 0xFC) == 0xF8) $n=4; # 111110bb
41            elseif ((ord($string[$i]) & 0xFE) == 0xFC) $n=5; # 1111110b
43            for ($j=0; $j<$n; $j++) { # n bytes matching 10bbbbbb follow ?
44                if ((++$i == strlen($string)) || ((ord($string[$i]) & 0xC0) != 0x80))
45                return false;
221            if (ord($c{0})>=0 && ord($c{0})<=127) { continue; } // ASCII - next please
222            if (ord($c{0})>=192 && ord($c{0})<=223) { $ord = (ord($c{0})-192)*64 + (ord($c{1})-128); }
223            if (ord($c{0})>=224 && ord($c{0})<=239) { $ord = (ord($c{0})-224)*4096 + (ord($c{1})-128)*64 + (ord($c{2})-128); }
223            if (ord($c{0})>=224 && ord($c{0})<=239) { $ord = (ord($c{0})-224)*4096 + (ord($c{1})-128)*64 + (ord($c{2})-128); }
224            if (ord($c{0})>=240 && ord($c{0})<=247) { $ord = (ord($c{0})-240)*262144 + (ord($c{1})-128)*4096 + (ord($c{2})-128)*64 + (ord($c{3})-128); }
225            if (ord($c{0})>=248 && ord($c{0})<=251) { $ord = (ord($c{0})-248)*16777216 + (ord($c{1})-128)*262144 + (ord($c{2})-128)*4096 + (ord($c{3})-128)*64 + (ord($c{4})-128); }
225            if (ord($c{0})>=248 && ord($c{0})<=251) { $ord = (ord($c{0})-248)*16777216 + (ord($c{1})-128)*262144 + (ord($c{2})-128)*4096 + (ord($c{3})-128)*64 + (ord($c{4})-128); }
226            if (ord($c{0})>=252 && ord($c{0})<=253) { $ord = (ord($c{0})-252)*1073741824 + (ord($c{1})-128)*16777216 + (ord($c{2})-128)*262144 + (ord($c{3})-128)*4096 + (ord($c{4})-128)*64 + (ord($c{5})-128); }
227            if (ord($c{0})>=254 && ord($c{0})<=255) { $chars{$i} = $unknown; continue; } //error
qrcode.php https://github.com/InfectedLan/InfectedAPI.git | PHP | 2,876 lines
1183						$b22 = ord($frameY[$x]) & ord($frameY[$x-1]) & ord($frameYM[$x]) & ord($frameYM[$x-1]);
1184						$w22 = ord($frameY[$x]) | ord($frameY[$x-1]) | ord($frameYM[$x]) | ord($frameYM[$x-1]);
1185						if (($b22 | ($w22 ^ 1)) & 1) {
1278			}
1279			return ((ord($str[$pos]) >= ord('0'))&&(ord($str[$pos]) <= ord('9')));
1280		}
1312					$word = (ord($c) << 8) | ord($d);
1313					if (($word >= 0x8140 && $word <= 0x9ffc) OR ($word >= 0xe040 && $word <= 0xebbf)) {
1314						return QR_MODE_KJ;
1505				} else {
1506					if ((ord($this->dataStr[$p]) >= ord('a')) AND (ord($this->dataStr[$p]) <= ord('z'))) {
1507						$this->dataStr[$p] = chr(ord($this->dataStr[$p]) - 32);
1760			for ($i=0; $i<$size; ++$i) {
1761				if ((ord($data[$i]) < ord('0')) OR (ord($data[$i]) > ord('9'))){
1762					return false;
jsmin.php https://github.com/oat-sa/tao-core.git | PHP | 845 lines
3/**
4* JSMin.php (for PHP 5)
5*
5*
6* PHP adaptation of JSMin, published by Douglas Crockford as jsmin.c, also based
7* on its Java translation by John Reilly.
13*
14* Copyright (c) 2002 Douglas Crockford  (www.crockford.com)
15*
88
89define('ORD_NL', ord("\n"));
90define('ORD_space', ord(' '));
730    echo "JSMin, the JavaScript Minifier, copyright (c) 2002 by Douglas Crockford.\n";
731    echo "PHP translation (for PHP 5) version ".VERSION." by David Holmes, CFD Labs.\n";
732}
JSON.php https://github.com/sahilbabu/phpb2b.git | PHP | 809 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 */
264
265                    $ord_var_c = ord($var{$c});
266
298                            // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
299                            $char = pack('C*', $ord_var_c, ord($var{$c + 1}));
300                            $c += 1;
523                        $substr_chrs_c_2 = substr($chrs, $c, 2);
524                        $ord_chrs_c = ord($chrs{$c});
525
565
566                            case ($ord_chrs_c >= 0x20) && ($ord_chrs_c <= 0x7F):
567                                $utf8 .= $chrs{$c};
tfpdf.php https://github.com/mjlassila/plugin-PDFOutput.git | PHP | 2,303 lines
256
257function SetKeywords($keywords, $isUTF8=false)
258{
943	}
944	if($border && strpos($border,'B')!==false)
945		$b .= 'B';
1504			elseif($ct==2)
1505				$trns = array(ord(substr($t,1,1)), ord(substr($t,3,1)), ord(substr($t,5,1)));
1506			else
2008		if ($font['cw'][$cid*2] == "\00" && $font['cw'][$cid*2+1] == "\00") { continue; }
2009		$width = (ord($font['cw'][$cid*2]) << 8) + ord($font['cw'][$cid*2+1]);
2010		if ($width == 65535) { $width = 0; }
2179	if(!empty($this->keywords))
2180		$this->_out('/Keywords '.$this->_textstring($this->keywords));
2181	if(!empty($this->creator))
ASN1.php https://github.com/kea/phpseclib.git | PHP | 1,267 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 */
43
44namespace phpseclib;
45
compat-json.php https://github.com/wp-plugins/duoshuo.git | PHP | 900 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 */
295
296					$ord_var_c = ord($var[$c]);
297
335
336							$char = pack('C*', $ord_var_c, ord($var[$c + 1]));
337							$c += 1;
579						$substr_chrs_c_2 = substr($chrs, $c, 2);
580						$ord_chrs_c = ord($chrs[$c]);
581
621
622							case ($ord_chrs_c >= 0x20) && ($ord_chrs_c <= 0x7F):
623								$utf8 .= $chrs[$c];
ASN1.php https://github.com/sezuan/core.git | PHP | 1,278 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('Math/BigInteger.php');
49}
class-json.php https://github.com/zkdan/RealScoop.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};
class-json.php https://github.com/LPasslack/frameworks.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};
services_json.php https://bitbucket.org/effectal/ondi.git | PHP | 783 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 */
262
263                    $ord_var_c = ord($var{$c});
264
296                            // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
297                            $char = pack('C*', $ord_var_c, ord($var{$c + 1}));
298                            $c += 1;
521                        $substr_chrs_c_2 = substr($chrs, $c, 2);
522                        $ord_chrs_c = ord($chrs{$c});
523
563
564                            case ($ord_chrs_c >= 0x20) && ($ord_chrs_c <= 0x7F):
565                                $utf8 .= $chrs{$c};
RSA.class.php https://bitbucket.org/ronaldobrandini/framework.git | PHP | 2,653 lines
180     * For use with parsing XML formatted keys.  PHP's XML Parser functions use utilized - instead of PHP's DOM functions -
181     * because PHP's XML Parser functions work on PHP4 whereas PHP's DOM functions - although surperior - don't.
182     *
596                    $RSAPrivateKey = pack('Ca*a*', CRYPT_RSA_ASN1_SEQUENCE, $this->_encodeLength(strlen($RSAPrivateKey)), $RSAPrivateKey);
597                    if(!empty($this->password) || is_string($this->password)){
598                        $salt = crypt_random_string(8);
1341     * Private keys can be encrypted with a password.  To unset the password, pass in the empty string or false.
1342     * Or rather, pass in $password such that empty($password) && !is_string($password) is true.
1343     *
1349    public function setPassword($password = false){
1350        $this->password = $password;
1351    }
1866        for($i = 0; $i < strlen($x); $i++){
1867            $result |= ord($x[$i]) ^ ord($y[$i]);
1868        }
Header.php https://bitbucket.org/IrrVoi/dropbox.git | PHP | 283 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
6 *
7 * PHP Version 5
8 *
44 * @copyright 2010 Mike Pultz <mike@mikepultz.com>
45 * @license   http://www.opensource.org/licenses/bsd-license.php  BSD License
46 * @version   SVN: $Id: Header.php 198 2013-05-26 05:05:22Z mike.pultz $
46 * @version   SVN: $Id: Header.php 198 2013-05-26 05:05:22Z mike.pultz $
47 * @link      http://pear.php.net/package/Net_DNS2
48 * @since     File available since Release 0.6.0
79 * @author   Mike Pultz <mike@mikepultz.com>
80 * @license  http://www.opensource.org/licenses/bsd-license.php  BSD License
81 * @link     http://pear.php.net/package/Net_DNS2
97    public $qdcount;    // 16 bit - entries in the question section
98    public $ancount;    // 16 bit - resource records in the answer section
99    public $nscount;    // 16 bit - name server rr in the authority records section
JSON.php https://github.com/DaveBenNoah/PrestaShop-modules.git | PHP | 807 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 */
263
264                    $ord_var_c = ord($var{$c});
265
297                            // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
298                            $char = pack('C*', $ord_var_c, ord($var{$c + 1}));
299                            $c += 1;
522                        $substr_chrs_c_2 = substr($chrs, $c, 2);
523                        $ord_chrs_c = ord($chrs{$c});
524
564
565                            case ($ord_chrs_c >= 0x20) && ($ord_chrs_c <= 0x7F):
566                                $utf8 .= $chrs{$c};
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21