PageRenderTime 1417ms queryFilters 0ms Sphinxql 262ms GetByIds 871ms meta 0ms repositoryFilters 90ms languageFilters 2ms sourceFilters 74ms

20,915 results for 'php ord' (1417 ms)

Source

Language

Repository

module.graphic.pcd.php https://github.com/guruz/3rdparty.git | PHP | 133 lines
1<?php
2/////////////////////////////////////////////////////////////////
9//                                                             //
10// module.graphic.pcd.php                                      //
11// module for analyzing PhotoCD (PCD) Image files              //
31		$PCDflags = fread($this->getid3->fp, 1);
32		$PCDisVertical = ((ord($PCDflags) & 0x01) ? true : false);
33
74					if ($PCDisVertical) {
75						$info['pcd']['data'][$PCD_width - $x][$y]     = $this->YCbCr2RGB(ord($PCD_data_Y1{$x}), ord($PCD_data_Cb{floor($x / 2)}), ord($PCD_data_Cr{floor($x / 2)}));
76						$info['pcd']['data'][$PCD_width - $x][$y + 1] = $this->YCbCr2RGB(ord($PCD_data_Y2{$x}), ord($PCD_data_Cb{floor($x / 2)}), ord($PCD_data_Cr{floor($x / 2)}));
78						$info['pcd']['data'][$y][$x]                  = $this->YCbCr2RGB(ord($PCD_data_Y1{$x}), ord($PCD_data_Cb{floor($x / 2)}), ord($PCD_data_Cr{floor($x / 2)}));
79						$info['pcd']['data'][$y + 1][$x]              = $this->YCbCr2RGB(ord($PCD_data_Y2{$x}), ord($PCD_data_Cb{floor($x / 2)}), ord($PCD_data_Cr{floor($x / 2)}));
80					}
84			// Example for plotting extracted data
85			//getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'module.audio.ac3.php', __FILE__, true);
86			//if ($PCDisVertical) {
ord.php https://github.com/dianaprajescu/joomla-framework.git | PHP | 91 lines
12* @see http://www.php.net/ord
13* @see http://www.php.net/manual/en/function.ord.php#46267
14*/
37    }
38    $ord2 = ord($chr{2});
39    if ( $ord0 >= 224 && $ord0 <= 239 ) {
62    $ord4 = ord($chr{4});
63    if ($ord0>=248 && $ord0<=251) {
64        return ($ord0-248)*16777216
74    }
75    if ($ord0>=252 && $ord0<=253) {
76        return ($ord0-252) * 1073741824
84    if ( $ord0 >= 254 && $ord0 <= 255 ) {
85        trigger_error('Invalid UTF-8 with surrogate ordinal '.$ord0);
86        return FALSE;
admin-lang-norwegian.php https://github.com/aravindc/pixelpost.git | PHP | 531 lines
93$admin_lang_pw_text_7           				= "Denne e-posten er sendt automatisk fra Innloggingen av din fotoblog.\nNoen har forespurt ett nytt passord for Administrasjons Delen.\n\nDu burde logge inn p&aring; din Fotoblog\n\nat ";
94$admin_lang_pw_text_8           				= "\n\nog logge inn med ditt nye passordet for &aring; resette dette automatisk genererte passordet\n\n&oslash;yeblikkelig!";
95
292$admin_lang_optn_dateformat          = "Dato format";
293$admin_lang_optn_dateformat_txt      = "Dato formatet for visning av bilder og kommentarer. Denne syntaxen brukt er identisk med PHP <a href='http://www.php.net/date' target='_blank'>dato()</a> funksjonen. Dette er eksempler for hva som vil erstatte noen vanlige paramenterer: Y:&aring;r m:m&aring;ned d:dag H:time i:minutt s:sekund";
294$admin_lang_optn_gmt                 = "Vennligst noter at dette ikke st&oslash;tter sommer/vinter tid automatisk og at du m&aring; forandre dette manuelt.<br />Sjekk <a href='http://www.worldtimeserver.com/current_time_in_UTC.aspx' target='__blank'> GMT Current time </a> om du er usikker p&aring; ditt land/bys lokale tids avvik fra GMT.<br />";
324$admin_lang_optn_pass_chngd_txt      = "Passordet er forandret.";
325$admin_lang_optn_pass_notchngd_txt   = "Passordet er ikke forandret. Skriv inn det samme passordet i gjennta feltet.";
326$admin_lang_optn_title_url_text      = "Sjekk eller forandre sidens tittel og URL for din installasjon";
339$admin_lang_pp_forum                 = "S&oslash;ker etter hjelp, eller &oslash;nsker &aring; gi en tilbakemelding? Vennligst bes&oslash;k pixelpost forum.";
340$admin_lang_pp_min_php               = "Pixelpost's minimumskrav: PHP version";
341$admin_lang_pp_min_mysql             = "Pixelpost's minimumskrav: MySQL";
421$admin_lang_spam_ban        = "Bannlyst Lister";
422$admin_lang_spam_content    = "	Legg til lister over bannlyste ord/IPer/navn i tekstboksen under, ett ord per linje.<br/>\n
423				Alle kommentarer med ett ord, en IP, eller navn i moderasjons listen vil bli sendt til moderasjons k&oslash;en.<br/>\n
RdfParser.php https://github.com/koja13/DSi2.0.git | PHP | 2,365 lines
14 * The parser is based on the PHP version of repat
15 * (http://phpxmlclasses.sourceforge.net/show_doc.php?class=class_rdf_parser.html)
16 * by Luis Argerich (lrargerich@yahoo.com).
67			/* 1110#### 10###### 10###### = 224+x 128+x 128+x */
68			$nr=((ord($utf8_char[0])-224)*4096) + ((ord($utf8_char[1])-128)*64) + (ord($utf8_char[2])-128);
69		}
71			/* 1111#### 10###### 10###### 10###### = 240+x 128+x 128+x 128+x */
72			$nr=((ord($utf8_char[0])-240)*262144) + ((ord($utf8_char[1])-128)*4096) + ((ord($utf8_char[2])-128)*64) + (ord($utf8_char[3])-128);
73		}
956            }
957            else if( ( $ordinal = $this->_is_rdf_ordinal( $attribute_local_name ) ) != 0 )
958            {
1331
1332        $this->rdf_parser['top']['ordinal']=$this->rdf_parser['top']['ordinal'];
1333
qrcode.php https://github.com/felipegirotti/2D-3D-Barcodes-Generator.git | PHP | 2,785 lines
1086				if (($x > 0) AND ($y > 0)) {
1087					$b22 = ord($frameY[$x]) & ord($frameY[$x-1]) & ord($frameYM[$x]) & ord($frameYM[$x-1]);
1088					$w22 = ord($frameY[$x]) | ord($frameY[$x-1]) | ord($frameYM[$x]) | ord($frameYM[$x-1]);
1182		}
1183		return ((ord($str[$pos]) >= ord('0'))&&(ord($str[$pos]) <= ord('9')));
1184	}
1216				$word = (ord($c) << 8) | ord($d);
1217				if (($word >= 0x8140 && $word <= 0x9ffc) OR ($word >= 0xe040 && $word <= 0xebbf)) {
1218					return QR_MODE_KJ;
1409			} else {
1410				if ((ord($this->dataStr[$p]) >= ord('a')) AND (ord($this->dataStr[$p]) <= ord('z'))) {
1411					$this->dataStr[$p] = chr(ord($this->dataStr[$p]) - 32);
1667		for ($i=0; $i<$size; ++$i) {
1668			if ((ord($data[$i]) < ord('0')) OR (ord($data[$i]) > ord('9'))){
1669				return false;
PrintIPP.php https://github.com/nethesis/nethserver-cups.git | PHP | 1,890 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker: */
2/* vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker: */
3 /* @(#) $Header: /sources/phpprintipp/phpprintipp/php_classes/PrintIPP.php,v 1.3 2010/09/06 22:41:41 harding Exp $
4 *
45            
46            require_once("BasicIPP.php");
47            
400            self::_errorLog(date("Y-m-d H:i:s : ")
401                        .basename($_SERVER['PHP_SELF'])
402                        .sprintf(_("getting printer's attributes of %s : OPERATION FAILED"),
454        if ($which_jobs == 'completed')
455                $this->meta->which_jobs = chr(0x44) // keyword
456                                        . self::_giveMeStringLength('which-jobs')
485           $this->stringjob .=
486                          chr(0x44) // keyword
487                         . self::_giveMeStringLength('requested-attributes')
qrsplit.php https://github.com/iarna/Tiny-Tiny-RSS.git | PHP | 312 lines
9 *
10 * PHP QR Code is distributed under LGPL 3
11 * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
52            
53            return ((ord($str[$pos]) >= ord('0'))&&(ord($str[$pos]) <= ord('9')));
54        }
61                
62            return (QRinput::lookAnTable(ord($str[$pos])) >= 0);
63        }
82                    $word = (ord($c) << 8) | ord($d);
83                    if(($word >= 0x8140 && $word <= 0x9ffc) || ($word >= 0xe040 && $word <= 0xebbf)) {
84                        return QR_MODE_KANJI;
286                } else {
287                    if (ord($this->dataStr[$p]) >= ord('a') && ord($this->dataStr[$p]) <= ord('z')) {
288                        $this->dataStr[$p] = chr(ord($this->dataStr[$p]) - 32);
Graphics.subs.php https://github.com/Arantor/Elkarte.git | PHP | 1,010 lines
1<?php
2
217
218	require_once(SUBSDIR . '/Package.subs.php');
219
484		{
485			$b = ord($palettedata{$j++});
486			$g = ord($palettedata{$j++});
486			$g = ord($palettedata{$j++});
487			$r = ord($palettedata{$j++});
488
507				{
508					$b = ord($scan_line{$j++});
509					$g = ord($scan_line{$j++});
873				if ($can_do_ttf)
874					$cur_x = max($fontcord[2], $fontcord[4]) + ($angle == 0 ? 0 : 3);
875			}
Minify_js.php https://github.com/k1ng440/CodeIgniter-Minify.git | PHP | 414 lines
41/**
42 * jsmin.php - PHP implementation of Douglas Crockford's JSMin.
43 *
204                  $this->a       = $this->get();
205                } elseif (ord($this->a) <= self::ORD_LF) {
206                  throw new JSMinException('Unterminated regular expression set in regex literal.');
213              $this->a       = $this->get();
214            } elseif (ord($this->a) <= self::ORD_LF) {
215              throw new JSMinException('Unterminated regular expression literal.');
247
248    if ($c === null || $c === "\n" || ord($c) >= self::ORD_SPACE) {
249      return $c;
369
370            if (ord($c) <= self::ORD_LF) {
371              return $c;
function_core.php https://github.com/kuaileshike/upload.git | PHP | 2,018 lines
1<?php
2
149	for($i = 0; $i <= 255; $i++) {
150		$rndkey[$i] = ord($cryptkey[$i % $key_length]);
151	}
165		$box[$j] = $tmp;
166		$result .= chr(ord($string[$i]) ^ ($box[($box[$a] + $box[$j]) % 256]));
167	}
209		} else {
210			if(PHP_VERSION < '5.4.0') {
211				$string = htmlspecialchars($string, $flags);
246	$string = str_replace(array("\r", "\n"), array('', ''), $string);
247	if(empty($http_response_code) || PHP_VERSION < '4.3' ) {
248		@header($string, $replace);
400	if(!$staticavatar && !$static) {
401		return $returnsrc ? $ucenterurl.'/avatar.php?uid='.$uid.'&size='.$size : '<img src="'.$ucenterurl.'/avatar.php?uid='.$uid.'&size='.$size.($real ? '&type=real' : '').'" />';
402	} else {
Cell.php https://github.com/jcplat/console-seolan.git | PHP | 817 lines
37/** PHPExcel_Cell_DataType */
38require_once PHPEXCEL_ROOT . 'PHPExcel/Cell/DataType.php';
39
49/** PHPExcel_Calculation */
50require_once PHPEXCEL_ROOT . 'PHPExcel/Calculation.php';
51
52/** PHPExcel_Cell_IValueBinder */
53require_once PHPEXCEL_ROOT . 'PHPExcel/Cell/IValueBinder.php';
54
55/** PHPExcel_Cell_DefaultValueBinder */
56require_once PHPEXCEL_ROOT . 'PHPExcel/Cell/DefaultValueBinder.php';
57
58/** PHPExcel_Shared_String */
59require_once PHPEXCEL_ROOT . 'PHPExcel/Shared/String.php';
60
PunyCode.class.php https://github.com/xp-forge/punycode.git | PHP | 365 lines
1<?php
2/* This class is part of the XP framework
30   *
31   * This is PHP code implementing Punycode (RFC 3492).
32   *
130    protected function _flagged($bcp) {
131      return ord($bcp) - 65 < 26;
132    }
162      for ($b= $j= 0; $j < $in_len; ++$j) {
163        if (PUNYCODE_DELIMITER == ord($input[$j])) $b = $j;
164      }
167        if ($flags !== NULL) $flags[$out] = $this->_flagged($input[$j]);
168        if (ord($input[$j]) >= 0x80) {
169          throw new IllegalArgumentException('Input is not valid punycode');
280          // (not needed for Punycode)
281          if ((ord($input[$j]) >= $n) && (ord($input[$j]) < $m)) $m = ord($input[$j]);
282        }
SSH1.php https://github.com/kea/phpseclib.git | PHP | 1,335 lines
611
612        $data = pack('CNa*', self::CMSG_AUTH_PASSWORD, strlen($password), $password);
613
619        if (defined('NET_SSH1_LOGGING') && NET_SSH1_LOGGING == self::LOG_COMPLEX) {
620            $data = pack('CNa*', self::CMSG_AUTH_PASSWORD, strlen('password'), 'password');
621            $this->message_log[count($this->message_log) - 1] = $data; // zzzzz
853     *
854     * Will be called, automatically, if you're supporting just PHP5.  If you're supporting PHP4, you'll need to call
855     * disconnect().
965        if (defined('NET_SSH1_LOGGING')) {
966            $temp = isset($this->protocol_flags[ord($data[0])]) ? $this->protocol_flags[ord($data[0])] : 'UNKNOWN';
967            $this->protocol_flags_log[] = '-> ' . $temp .
1088            // yields 0xFF800000 - not 0x00800000.  The following link elaborates:
1089            // http://www.php.net/manual/en/language.operators.bitwise.php#57281
1090            $crc = (($crc >> 8) & 0x00FFFFFF) ^ $crc_lookup_table[($crc & 0xFF) ^ ord($data[$i])];
whatsapp.class.php https://github.com/satup/WhatsAPI.git | PHP | 322 lines
1<?php
2require "func.php";
2require "func.php";
3require "decode.php";
4
21
22	function __construct($Number, $Password){
23		$this->_number = $Number;
23		$this->_number = $Number;
24		$this->_password = $Password;
25	}
92		$length = substr($msg,0,1);
93		$message['length'] = ord($length);		 // PACKET EXCLUDING 00 AND FIRST HEX SHOULD EQUAL THIS NUMBER
94		$msg = substr($msg,2); 		// Remove Length & F8
222		
223		$password = md5($password);
224		
function_core.php https://github.com/jinbo51/DiscuzX.git | PHP | 2,070 lines
1<?php
2
149	for($i = 0; $i <= 255; $i++) {
150		$rndkey[$i] = ord($cryptkey[$i % $key_length]);
151	}
165		$box[$j] = $tmp;
166		$result .= chr(ord($string[$i]) ^ ($box[($box[$a] + $box[$j]) % 256]));
167	}
209		} else {
210			if(PHP_VERSION < '5.4.0') {
211				$string = htmlspecialchars($string, $flags);
246	$string = str_replace(array("\r", "\n"), array('', ''), $string);
247	if(empty($http_response_code) || PHP_VERSION < '4.3' ) {
248		@header($string, $replace);
408	if(!$staticavatar && !$static) {
409		return $returnsrc ? $ucenterurl.'/avatar.php?uid='.$uid.'&size='.$size : '<img src="'.$ucenterurl.'/avatar.php?uid='.$uid.'&size='.$size.($real ? '&type=real' : '').'" />';
410	} else {
SSH1.php https://github.com/sezuan/core.git | PHP | 1,577 lines
700
701        $data = pack('CNa*', NET_SSH1_CMSG_AUTH_PASSWORD, strlen($password), $password);
702
709        if (defined('NET_SSH1_LOGGING') && NET_SSH1_LOGGING == NET_SSH1_LOG_COMPLEX) {
710            $data = pack('CNa*', NET_SSH1_CMSG_AUTH_PASSWORD, strlen('password'), 'password');
711            $this->message_log[count($this->message_log) - 1] = $data;
981     *
982     * Will be called, automatically, if you're supporting just PHP5.  If you're supporting PHP4, you'll need to call
983     * disconnect().
1137        if (defined('NET_SSH1_LOGGING')) {
1138            $temp = isset($this->protocol_flags[ord($orig[0])]) ? $this->protocol_flags[ord($orig[0])] : 'UNKNOWN';
1139            $temp = '-> ' . $temp .
1237            // yields 0xFF800000 - not 0x00800000.  The following link elaborates:
1238            // http://www.php.net/manual/en/language.operators.bitwise.php#57281
1239            $crc = (($crc >> 8) & 0x00FFFFFF) ^ $crc_lookup_table[($crc & 0xFF) ^ ord($data[$i])];
module.graphic.pcd.php https://bitbucket.org/Sanek_OS9/dcms-24.git | PHP | 134 lines
1<?php
2/////////////////////////////////////////////////////////////////
10//                                                             //
11// module.graphic.pcd.php                                      //
12// module for analyzing PhotoCD (PCD) Image files              //
32		$PCDflags = $this->fread(1);
33		$PCDisVertical = ((ord($PCDflags) & 0x01) ? true : false);
34
75					if ($PCDisVertical) {
76						$info['pcd']['data'][$PCD_width - $x][$y]     = $this->YCbCr2RGB(ord($PCD_data_Y1{$x}), ord($PCD_data_Cb{floor($x / 2)}), ord($PCD_data_Cr{floor($x / 2)}));
77						$info['pcd']['data'][$PCD_width - $x][$y + 1] = $this->YCbCr2RGB(ord($PCD_data_Y2{$x}), ord($PCD_data_Cb{floor($x / 2)}), ord($PCD_data_Cr{floor($x / 2)}));
79						$info['pcd']['data'][$y][$x]                  = $this->YCbCr2RGB(ord($PCD_data_Y1{$x}), ord($PCD_data_Cb{floor($x / 2)}), ord($PCD_data_Cr{floor($x / 2)}));
80						$info['pcd']['data'][$y + 1][$x]              = $this->YCbCr2RGB(ord($PCD_data_Y2{$x}), ord($PCD_data_Cb{floor($x / 2)}), ord($PCD_data_Cr{floor($x / 2)}));
81					}
85			// Example for plotting extracted data
86			//getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'module.audio.ac3.php', __FILE__, true);
87			//if ($PCDisVertical) {
SSH1.php https://github.com/AmaniYunge/greenWeb.git | PHP | 1,583 lines
344        NET_SSH1_AUTH_RSA        => 'pure RSA authentication',
345        NET_SSH1_AUTH_PASSWORD   => 'password authentication',
346        NET_SSH1_AUTH_RHOSTS_RSA => '.rhosts with RSA host authentication'
699
700        $data = pack('CNa*', NET_SSH1_CMSG_AUTH_PASSWORD, strlen($password), $password);
701
708        if (defined('NET_SSH1_LOGGING') && NET_SSH1_LOGGING == NET_SSH1_LOG_COMPLEX) {
709            $data = pack('CNa*', NET_SSH1_CMSG_AUTH_PASSWORD, strlen('password'), 'password');
710            $this->message_log[count($this->message_log) - 1] = $data;
1136        if (defined('NET_SSH1_LOGGING')) {
1137            $temp = isset($this->protocol_flags[ord($orig[0])]) ? $this->protocol_flags[ord($orig[0])] : 'UNKNOWN';
1138            $temp = '-> ' . $temp .
1236            // yields 0xFF800000 - not 0x00800000.  The following link elaborates:
1237            // http://www.php.net/manual/en/language.operators.bitwise.php#57281
1238            $crc = (($crc >> 8) & 0x00FFFFFF) ^ $crc_lookup_table[($crc & 0xFF) ^ ord($data[$i])];
SSH1.php https://github.com/floviolleau/Raspcontrol.git | PHP | 1,553 lines
344        NET_SSH1_AUTH_RSA        => 'pure RSA authentication',
345        NET_SSH1_AUTH_PASSWORD   => 'password authentication',
346        NET_SSH1_AUTH_RHOSTS_RSA => '.rhosts with RSA host authentication'
675
676        $data = pack('CNa*', NET_SSH1_CMSG_AUTH_PASSWORD, strlen($password), $password);
677
684        if (defined('NET_SSH1_LOGGING') && NET_SSH1_LOGGING == NET_SSH1_LOG_COMPLEX) {
685            $data = pack('CNa*', NET_SSH1_CMSG_AUTH_PASSWORD, strlen('password'), 'password');
686            $this->message_log[count($this->message_log) - 1] = $data;
1112        if (defined('NET_SSH1_LOGGING')) {
1113            $temp = isset($this->protocol_flags[ord($orig[0])]) ? $this->protocol_flags[ord($orig[0])] : 'UNKNOWN';
1114            $temp = '-> ' . $temp .
1212            // yields 0xFF800000 - not 0x00800000.  The following link elaborates:
1213            // http://www.php.net/manual/en/language.operators.bitwise.php#57281
1214            $crc = (($crc >> 8) & 0x00FFFFFF) ^ $crc_lookup_table[($crc & 0xFF) ^ ord($data[$i])];
class.jmail.php https://github.com/viollarr/alab.git | PHP | 1,365 lines
1<?php
2defined('_JEXEC') OR defined('_VALID_MOS') OR die('...Direct Access to this location is not allowed...');
86
87		$confirmlink = '.php?option=com_jnewsletter&act=confirm&listid=' . $listId . '&cle=' . md5($subscriber->email) . '&subscriber=' . $subscriber->id.'&Itemid='.$Itemid;
88		compa::completeLink($confirmlink,false,$GLOBALS[ACA.'use_sef']);
136
137  				if($html) $content .= '<img src="' . ACA_JPATH_LIVE_NO_HTTPS . '/index.php?option=com_jnewsletter&Itemid='.$Itemid.'&act=log&listid=' . $listId . '&mailingid=' . $mailingId . '&subscriber=' . $subscriber->id . '" border="0" width="1" height="1" />';
138			} else {
139
140  				if ($html)	$content .=  '<img src="' . ACA_JPATH_LIVE_NO_HTTPS . '/index.php?option=com_jnewsletter&Itemid='.$Itemid.'&act=log&listid=' . $listId . '&mailingid=' . $mailingId . '" border="0" width="1" height="1" />';
141			}
192			jimport('joomla.mail.mail');
193			$phpmailerPath = JPATH_LIBRARIES.DS.'phpmailer'.DS;
194			$mail = new JMail();
240					$mail->SMTPAuth = $GLOBALS[ACA.'smtp_auth_required'];
241					$mail->Password = $GLOBALS[ACA.'smtp_password'];
242					$mail->Username = $GLOBALS[ACA.'smtp_username'];
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21