100+ results results for 'php hexdec repo:westeast/xwdede' (235 ms)
1<?php 2 143 case 'object': 144 if (empty($objRefs[$h = $zval['object_handle'] ?: ($hashMask ^ hexdec(substr(spl_object_hash($v), $hashOffset, PHP_INT_SIZE)))])) { 145 $stub = new Stub(); 159 } else { 160 $h = $hashMask ^ hexdec(substr(spl_object_hash($stub->value), $hashOffset, PHP_INT_SIZE)); 161 } 276 $obj = (object) array(); 277 self::$hashOffset = 16 - PHP_INT_SIZE; 278 self::$hashMask = -1; 284 $obFuncs = array('ob_clean', 'ob_end_clean', 'ob_flush', 'ob_end_flush', 'ob_get_contents', 'ob_get_flush'); 285 foreach (debug_backtrace(PHP_VERSION_ID >= 50400 ? DEBUG_BACKTRACE_IGNORE_ARGS : false) as $frame) { 286 if (isset($frame['function'][0]) && !isset($frame['class']) && 'o' === $frame['function'][0] && in_array($frame['function'], $obFuncs)) { 297 298 self::$hashMask ^= hexdec(substr(spl_object_hash($obj), self::$hashOffset, PHP_INT_SIZE)); 299 }image.class.php https://github.com/konfirm/konsolidate.git | PHP | 442 lines
1<?php 2 297 298 $nDec = hexdec( $sColor ); 299 return imagecolorallocate( $mImage, 0xFF & ( $nDec >> 0x10 ), 0xFF & ( $nDec >> 0x8 ), 0xFF & $nDec );php.js https://gitlab.com/juanito.abelo/nlmobile | JavaScript | 132 lines
23 atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__"), 24 builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport echo print global static exit array empty eval isset unset die include require include_once require_once"), 25 multiLineStrings: true, 54 var htmlMode = CodeMirror.getMode(config, "text/html"); 55 var phpMode = CodeMirror.getMode(config, phpConfig); 56 82 return style; 83 } else if (isPHP && state.php.tokenize == null && stream.match("?>")) { 84 state.curMode = htmlMode; 103 var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html), 104 php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur; 105 if (state.curMode == htmlMode) cur = htmlNew; 130 CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true}); 131 CodeMirror.defineMIME("text/x-php", phpConfig); 132})();UuidValidator.php https://gitlab.com/jeisoncg/personal_collection_mv | PHP | 249 lines
1<?php 2 241 // = 0b1000 (8) 242 if ((hexdec($value{self::STRICT_VARIANT_POSITION}) & 12) !== 8) { 243 $this->context->buildViolation($constraint->message)Helper.php https://github.com/bluelovers/Scophp.git | PHP | 560 lines
13 /** 14 * @see http://www.php.net/manual/en/function.preg-replace.php#87816 15 */ 18 /* 19 http://www.php.net/manual/en/function.preg-replace.php#87816 20 481 /** 482 * @see http://tw2.php.net/manual/en/function.urldecode.php#62707 483 */ 494 /** 495 * @see http://tw2.php.net/manual/en/function.urldecode.php#62707 496 */ 547 /** 548 * @see http://tw2.php.net/manual/en/function.urldecode.php#29272 549 * For compatibility of new and old brousers:Abstract.php https://github.com/lamminpaa/iBooker.git | PHP | 389 lines
1<?php 2/** 167 }else{ 168 require_once 'Zend/Matrixcode/Exception.php'; 169 throw new Zend_Matrixcode_Exception( 195 if (preg_match('`\#[0-9A-Fa-f]{6}`', $value)) { 196 $this->_fr_color = hexdec($value); 197 } elseif (is_numeric($value) && $value >= 0 && $value <= 16777125) { 199 } else { 200 require_once 'Zend/Matrixcode/Exception.php'; 201 throw new Zend_Matrixcode_Exception( 225 if (preg_match('`\#[0-9A-F]{6}`', $value)) { 226 $this->_bg_color = hexdec($value); 227 } elseif (is_numeric($value) && $value >= 0 && $value <= 16777125) { 229 } else { 230 require_once 'Zend/Matrixcode/Exception.php'; 231 throw new Zend_Matrixcode_Exception(mdl.magickwand.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 439 lines
1<?php 2/** 5 * @package 6 * @version $Id: mdl.magickwand.php 1867 2008-04-23 04:00:24Z hujianxin $ 7 * @copyright 2003-2007 ShopEx 229 { 230 $red = hexdec($color[1]); 231 $green = hexdec($color[2]); 231 $green = hexdec($color[2]); 232 $blue = hexdec($color[3]); 233 PixelSetColor($pixel_wand,"rgb($red,$green,$blue)");color.php https://gitlab.com/OnBlox/OnBlox-Template | PHP | 306 lines
1<?php 2/** 121 $key = $keys[$nr]; 122 $color->$key = hexdec( $hexValue ) % 256; 123 }zkuser.php https://gitlab.com/zubair_xenomorph/zubair_zklib | PHP | 269 lines
1<?php 2 function getSizeUser($self) { 7 $u = unpack('H2h1/H2h2/H2h3/H2h4/H2h5/H2h6/H2h7/H2h8', substr( $self->data_recv, 0, 8 ) ); 8 $command = hexdec( $u['h2'].$u['h1'] ); 9 11 $u = unpack('H2h1/H2h2/H2h3/H2h4', substr( $self->data_recv, 8, 4 ) ); 12 $size = hexdec($u['h4'].$u['h3'].$u['h2'].$u['h1']); 13 return $size; 39 $u = unpack('H2h1/H2h2/H2h3/H2h4/H2h5/H2h6/H2h7/H2h8', substr( $self->data_recv, 0, 8) ); 40 $reply_id = 00;//hexdec( $u['h3'].$u['h7'] )+1; 41 51 52 $self->session_id = hexdec( $u['h6'].$u['h5'] ); 53 return substr( $self->data_recv, 8 ); 76//echo substr( $self->data_recv, 0, 8); 77 $reply_id = hexdec( $u['h8'].$u['h7'] ); 78echo "reply_id = ".$reply_id."<br>";VarCloner.php https://gitlab.com/Sigpot/AirSpot | PHP | 324 lines
1<?php 2 148 case 'object': 149 if (empty($objRefs[$h = $zval['object_handle'] ?: ($hashMask ^ hexdec(substr(spl_object_hash($v), $hashOffset, PHP_INT_SIZE)))])) { 150 $stub = new Stub(); 164 } else { 165 $h = $hashMask ^ hexdec(substr(spl_object_hash($stub->value), $hashOffset, PHP_INT_SIZE)); 166 } 300 $obj = (object) array(); 301 self::$hashOffset = 16 - PHP_INT_SIZE; 302 self::$hashMask = -1; 321 322 self::$hashMask ^= hexdec(substr(spl_object_hash($obj), self::$hashOffset, PHP_INT_SIZE)); 323 }gps.php https://github.com/anqh/anqh.git | PHP | 218 lines
1<?php //================================================================================================ 2//================================================================================================ 8 Copyright © 2003 Jake Olefsky 9 http://www.offsky.com/software/exif/index.php 10 jake@olefsky.com 11 12 Please see exif.php for the complete information about this software. 13 119 if($tag=="0000") { // VersionID 120 $data = hexdec(substr($data,0,2)) . 121 ".". hexdec(substr($data,2,2)) . 121 ".". hexdec(substr($data,2,2)) . 122 ".". hexdec(substr($data,4,2)) . 123 ".". hexdec(substr($data,6,2)); 156 if($intel==1) $num = intel2Moto($num); 157 $num=hexdec($num); 158 $result['GPS']['NumTags'] = $num;Mail.class.php https://gitlab.com/prenaud76/tuleap.git | PHP | 278 lines
1<?php 2/* 5 6require_once('common/dao/UserDao.class.php'); 7require_once('common/dao/CodendiDataAccess.class.php'); 7require_once('common/dao/CodendiDataAccess.class.php'); 8require_once('Codendi_Mail_Interface.class.php'); 9 100 foreach($matches[1] as $value) 101 $text = str_replace('='.$value, chr(hexdec($value)), $text); 102 break;upload.class.php https://github.com/isold/longyu.git | PHP | 378 lines
1<?php 2 147/* 148 php缩略图函数: 149 等比例无损压缩,可填充补充色 author: 华仔 161 // 中文件名乱码 162 if ( PHP_OS == 'WINNT' ) { 163 $srcimage = iconv('UTF-8', 'GBK', $srcimage); 168 $color = imagecolorallocate($dstimg 169 , hexdec(substr($backgroundcolor, 1, 2)) 170 , hexdec(substr($backgroundcolor, 3, 2)) 170 , hexdec(substr($backgroundcolor, 3, 2)) 171 , hexdec(substr($backgroundcolor, 5, 2)) 172 ); 258 259// BMP 创建函数 php本身无 260function imagecreatefrombmp($filename)downloadalbum.php https://github.com/wrlee/gallery3-contrib.git | PHP | 300 lines
1<?php defined("SYSPATH") or die("No direct script access."); 2/** 72 $f_mtime = $this->unix2dostime(filemtime($f_path)); 73 $f_crc32 = $this->fixBug45028(hexdec(hash_file('crc32b', $f_path, false))); 74 214 /** 215 * See system/helpers/download.php 216 */ 224 /** 225 * See system/helpers/download.php 226 */ 287 /** 288 * See http://bugs.php.net/bug.php?id=45028 289 */ 292 293 if( version_compare(PHP_VERSION, '5.2.7', '<') ) { 294 $str = str_pad(dechex($hash), 8, '0', STR_PAD_LEFT);Converter.php https://gitlab.com/devtoannh/cafe | PHP | 397 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Converter.php 24354 2011-08-05 07:36:38Z sgehrig $ 20 */ 38 * 39 * @see Net_LDAP2_Util::asc2hex32() from Benedikt Hallinger <beni@php.net> 40 * @link http://pear.php.net/package/Net_LDAP2 40 * @link http://pear.php.net/package/Net_LDAP2 41 * @author Benedikt Hallinger <beni@php.net> 42 * 61 * 62 * @see Net_LDAP2_Util::hex2asc() from Benedikt Hallinger <beni@php.net>, 63 * heavily based on work from DavidSmith@byu.net 63 * heavily based on work from DavidSmith@byu.net 64 * @link http://pear.php.net/package/Net_LDAP2 65 * @author Benedikt Hallinger <beni@php.net>, heavily based on work from DavidSmith@byu.netConverter.php https://github.com/basdog22/Qool.git | PHP | 397 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Converter.php 24594 2012-01-05 21:27:01Z matthew $ 20 */ 38 * 39 * @see Net_LDAP2_Util::asc2hex32() from Benedikt Hallinger <beni@php.net> 40 * @link http://pear.php.net/package/Net_LDAP2 40 * @link http://pear.php.net/package/Net_LDAP2 41 * @author Benedikt Hallinger <beni@php.net> 42 * 61 * 62 * @see Net_LDAP2_Util::hex2asc() from Benedikt Hallinger <beni@php.net>, 63 * heavily based on work from DavidSmith@byu.net 63 * heavily based on work from DavidSmith@byu.net 64 * @link http://pear.php.net/package/Net_LDAP2 65 * @author Benedikt Hallinger <beni@php.net>, heavily based on work from DavidSmith@byu.nettcpdf_filters.php https://github.com/vivid-planet/library.git | PHP | 477 lines
1<?php 2//============================================================+ 2//============================================================+ 3// File name : tcpdf_filters.php 4// Version : 1.0.000 30// 31// Description : This is a PHP class for decoding common PDF filters (PDF 32000-2008 - 7.4 Filters). 32// 36 * @file 37 * This is a PHP class for decoding common PDF filters (PDF 32000-2008 - 7.4 Filters).<br> 38 * @package com.tecnick.tcpdf 44 * @class TCPDF_FILTERS 45 * This is a PHP class for decoding common PDF filters (PDF 32000-2008 - 7.4 Filters).<br> 46 * @package com.tecnick.tcpdf 46 * @package com.tecnick.tcpdf 47 * @brief This is a PHP class for decoding common PDF filters. 48 * @version 1.0.000ref.math.html https://bitbucket.org/stillzhl/manuals.git | HTML | 411 lines
11 <div class="up"><a href="book.math.html">Math</a></div> 12 <div class="home"><a href="index.html">PHP Manual</a></div> 13</div><hr /><div id="ref.math" class="reference"> 403 404<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="function.abs.html">abs</a> — 绝对值</li><li><a href="function.acos.html">acos</a> — 反余弦</li><li><a href="function.acosh.html">acosh</a> — 反双曲余弦</li><li><a href="function.asin.html">asin</a> — 反正弦</li><li><a href="function.asinh.html">asinh</a> — 反双曲正弦</li><li><a href="function.atan2.html">atan2</a> — 两个参数的反正切</li><li><a href="function.atan.html">atan</a> — 反正切</li><li><a href="function.atanh.html">atanh</a> — 反双曲正切</li><li><a href="function.base-convert.html">base_convert</a> — 在任意进制之间转换数字</li><li><a href="function.bindec.html">bindec</a> — 二进制转换为十进制</li><li><a href="function.ceil.html">ceil</a> — 进一法取整</li><li><a href="function.cos.html">cos</a> — 余弦</li><li><a href="function.cosh.html">cosh</a> — 双曲余弦</li><li><a href="function.decbin.html">decbin</a> — 十进制转换为二进制</li><li><a href="function.dechex.html">dechex</a> — 十进制转换为十六进制</li><li><a href="function.decoct.html">decoct</a> — 十进制转换为八进制</li><li><a href="function.deg2rad.html">deg2rad</a> — 将角度转换为弧度</li><li><a href="function.exp.html">exp</a> — 计算 e 的指数</li><li><a href="function.expm1.html">expm1</a> — 返回 exp(number) - 1,甚至当 number 的值接近零也能计算出准确结果</li><li><a href="function.floor.html">floor</a> — 舍去法取整</li><li><a href="function.fmod.html">fmod</a> — 返回除法的浮点数余数</li><li><a href="function.getrandmax.html">getrandmax</a> — 显示随机数最大的可能值</li><li><a href="function.hexdec.html">hexdec</a> — 十六进制转换为十进制</li><li><a href="function.hypot.html">hypot</a> — 计算一直角三角形的斜边长度</li><li><a href="function.is-finite.html">is_finite</a> — 判断是否为有限值</li><li><a href="function.is-infinite.html">is_infinite</a> — 判断是否为无限值</li><li><a href="function.is-nan.html">is_nan</a> — 判断是否为合法数值</li><li><a href="function.lcg-value.html">lcg_value</a> — 组合线性同余发生器</li><li><a href="function.log10.html">log10</a> — 以 10 为底的对数</li><li><a href="function.log1p.html">log1p</a> — 返回 log(1 + number),甚至当 number 的值接近零也能计算出准确结果</li><li><a href="function.log.html">log</a> — 自然对数</li><li><a href="function.max.html">max</a> — 找出最大值</li><li><a href="function.min.html">min</a> — 找出最小值</li><li><a href="function.mt-getrandmax.html">mt_getrandmax</a> — 显示随机数的最大可能值</li><li><a href="function.mt-rand.html">mt_rand</a> — 生成更好的随机数</li><li><a href="function.mt-srand.html">mt_srand</a> — 播下一个更好的随机数发生器种子</li><li><a href="function.octdec.html">octdec</a> — 八进制转换为十进制</li><li><a href="function.pi.html">pi</a> — 得到圆周率值</li><li><a href="function.pow.html">pow</a> — 指数表达式</li><li><a href="function.rad2deg.html">rad2deg</a> — 将弧度数转换为相应的角度数</li><li><a href="function.rand.html">rand</a> — 产生一个随机整数</li><li><a href="function.round.html">round</a> — 对浮点数进行四舍五入</li><li><a href="function.sin.html">sin</a> — 正弦</li><li><a href="function.sinh.html">sinh</a> — 双曲正弦</li><li><a href="function.sqrt.html">sqrt</a> — 平方根</li><li><a href="function.srand.html">srand</a> — 播下随机数发生器种子</li><li><a href="function.tan.html">tan</a> — 正切</li><li><a href="function.tanh.html">tanh</a> — 双曲正切</li></ul> 405</div> 409 <div class="up"><a href="book.math.html">Math</a></div> 410 <div class="home"><a href="index.html">PHP Manual</a></div> 411</div></body></html>lb.php https://github.com/Bigjoos/U-232-V2.git | PHP | 158 lines
1<?php 2/************************************************************************************* 2/************************************************************************************* 3 * lb.php 4 * -------- 74 'abs', 'acs', 'asc', 'asn', 'atn', 'chr$', 'cos', 'date$', 75 'dechex$', 'eof', 'eval', 'eval$', 'exp', 'hbmp', 'hexdec', 'hwnd', 76 'inp', 'input$', 'inputto$', 'instr', 'int', 'left$', 'len', 'lof',Converter.php https://gitlab.com/imamul68e/137619_PHP31 | PHP | 278 lines
1<?php 2/** 2/** 3 * This file is part of PHPWord - A pure PHP library for reading and writing 4 * word processing documents. 5 * 6 * PHPWord is free software distributed under the terms of the GNU Lesser 7 * General Public License version 3 as published by the Free Software Foundation. 10 * file that was distributed with this source code. For the full list of 11 * contributors, visit https://github.com/PHPOffice/PHPWord/contributors. 12 * 12 * 13 * @link https://github.com/PHPOffice/PHPWord 14 * @copyright 2010-2016 PHPWord contributors 17 18namespace PhpOffice\PhpWord\Shared; 19IP.php https://code.google.com/p/alfresco-php-sdk/ | PHP | 261 lines
1<?php 2/* 43 * i.e. not RFC 1918 or similar 44 * Comes from ProxyTools.php 45 */ 115 * Like ip2long() except that it actually works and has a consistent error return value. 116 * Comes from ProxyTools.php 117 * @param $ip Quad dotted IP address. 123 $n = ip2long( $ip ); 124 if ( $n == -1 || $n === false ) { # Return value on error depends on PHP version 125 $n = false; 225 226 $start = hexdec($start); 227 $end = hexdec($end); 253 if ( preg_match( '/^' . RE_IPV6_V4_PREFIX . RE_IPV6_WORD . ':' . RE_IPV6_WORD . '$/i', $addr, $m ) ) 254 return long2ip( ( hexdec( $m[1] ) << 16 ) + hexdec( $m[2] ) ); 255class.image.php https://gitlab.com/ppapadatis/Videolearn | PHP | 162 lines
1<?php 2 88 $hex_color = strtolower(trim($bg,'#;&Hh')); 89 $bg = array_map('hexdec',explode('.',wordwrap($hex_color, ceil(strlen($hex_color)/3),'.',1))); 90 $bgColorR = $bg[0]; 107 $hex_color = strtolower(trim($bg,'#;&Hh')); 108 $bg = array_map('hexdec',explode('.',wordwrap($hex_color, ceil(strlen($hex_color)/3),'.',1))); 109 // creating colorHttpSocketResponse.php https://bitbucket.org/ManiAdil/jardinorient.git | PHP | 445 lines
1<?php 2/** 4 * 5 * PHP 5 6 * 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @since CakePHP(tm) v 2.0.0 15 * @since CakePHP(tm) v 2.0.0 16 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 17 */ 240 $body = substr($body, strlen($chunkSize)); 241 $chunkLength = hexdec($hexLength); 242 $chunk = substr($body, 0, $chunkLength);class-Shoestrap_Color.php https://gitlab.com/aristath/shoestrap-3 | PHP | 481 lines
1<?php 2 55 56 $red = hexdec( substr( $hex, 0, 2 ) ); 57 $green = hexdec( substr( $hex, 2, 2 ) ); 57 $green = hexdec( substr( $hex, 2, 2 ) ); 58 $blue = hexdec( substr( $hex, 4, 2 ) ); 59 114 115 $red = hexdec( substr( $hex, 0, 2 ) ); 116 $green = hexdec( substr( $hex, 2, 2 ) ); 116 $green = hexdec( substr( $hex, 2, 2 ) ); 117 $blue = hexdec( substr( $hex, 4, 2 ) ); 118 136 // Get decimal values 137 $red = hexdec( substr( $hex, 0, 2 ) ); 138 $green = hexdec( substr( $hex, 2, 2 ) );makefont.php https://bitbucket.org/mstetson/obiblio/ | PHP | 417 lines
1<?php 2/******************************************************************************* 20 $e=preg_split('/[ \\t]+/',rtrim($l)); 21 $cc=hexdec(substr($e[0],1)); 22 $gn=$e[2]; 335 //Start generation 336 $s='<?php'."\n"; 337 $s.='$type=\''.$type."';\n"; 412 $s.="?>\n"; 413 SaveToFile($basename.'.php',$s); 414 echo 'Font definition file generated ('.$basename.'.php'.')<BR>';JSON.php https://github.com/magwai/zkernel.git | PHP | 595 lines
1<?php 2/** 2/** 3 * $Id: JSON.php 149 2007-11-06 11:24:58Z spocke $ 4 * 223 case 'u': 224 $output .= $this->_int2utf8(hexdec($this->read(4))); 225 break; 430 431 // This method was needed since PHP is crapy and doesn't have pointers/references 432 function addArray($key) {functions_styles.php https://gitlab.com/bulwye/reliquerunt | PHP | 324 lines
1<?php 2/*************************************************************************** 2/*************************************************************************** 3 * Module : PNphpBB2 (The forum for Postnuke) 4 * Filename : functions_styles.php 6 * Original file by : Carl Slaughter 7 * Copyright : (C) 2003 The PNphpBB Group 8 * Contact : support@pnphpbb.com 8 * Contact : support@pnphpbb.com 9 * : http://www.pnphpbb.com 10 * 10 * 11 * $Id: functions_styles.php,v 1.6 2004/10/18 19:47:28 carls Exp $ 12 * 23 24if ( !defined('IN_PHPBB') ) 25{GIS_Linestring.class.php https://bitbucket.org/hrayrpapikyan/stahlbaum.git | PHP | 298 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 5 * 6 * @package PhpMyAdmin-GIS 7 */ 8 9if (! defined('PHPMYADMIN')) { 10 exit; 15 * 16 * @package PhpMyAdmin-GIS 17 */ 79 $black = imagecolorallocate($image, 0, 0, 0); 80 $red = hexdec(substr($line_color, 1, 2)); 81 $green = hexdec(substr($line_color, 3, 2)); 81 $green = hexdec(substr($line_color, 3, 2)); 82 $blue = hexdec(substr($line_color, 4, 2)); 83 $color = imagecolorallocate($image, $red, $green, $blue);SqlBagOStuff.php https://github.com/daevid/MWFork.git | PHP | 424 lines
1<?php 2 97 if ( $this->shards > 1 ) { 98 $hash = hexdec( substr( md5( $key ), 0, 8 ) ) & 0x7fffffff; 99 return $this->getTableByShard( $hash % $this->shards ); 398 /** 399 * Create shard tables. For use from eval.php. 400 */wfWAFUserIPRange.php https://gitlab.com/edgarze188/sunrise | PHP | 239 lines
1<?php 2 69 if (preg_match('/^\[([a-f0-9]+)\-([a-f0-9]+)\]$/i', $whiteParts[$i], $m)) { 70 $ip_group = hexdec($IPparts[$i]); 71 $range_group_from = hexdec($m[1]); 71 $range_group_from = hexdec($m[1]); 72 $range_group_to = hexdec($m[2]); 73 if ($ip_group < $range_group_from || $ip_group > $range_group_to) { 131 if (preg_match('/^\[([a-f0-9]+)\-([a-f0-9]+)\]$/i', $whiteParts[$i], $m)) { 132 $sql .= $wpdb->prepare("$conv >> $j & 0xFFFF BETWEEN 0x%x AND 0x%x", hexdec($m[1]), hexdec($m[2])); 133 } else { 133 } else { 134 $sql .= $wpdb->prepare("$conv >> $j & 0xFFFF = 0x%x", hexdec($whiteParts[$i])); 135 }Block.php https://gitlab.com/gregtyka/SiberianCMS | PHP | 127 lines
1<?php 2 109 if (strlen($hexStr) == 6) { 110 $colorVal = hexdec($hexStr); 111 $rgbArray['red'] = 0xFF & ($colorVal >> 0x10); 115 elseif (strlen($hexStr) == 3) { 116 $rgbArray['red'] = hexdec(str_repeat(substr($hexStr, 0, 1), 2)); 117 $rgbArray['green'] = hexdec(str_repeat(substr($hexStr, 1, 1), 2)); 117 $rgbArray['green'] = hexdec(str_repeat(substr($hexStr, 1, 1), 2)); 118 $rgbArray['blue'] = hexdec(str_repeat(substr($hexStr, 2, 1), 2)); 119 }CHAP.php https://github.com/200896596/moodle.git | PHP | 464 lines
1<?php 2/* 34 35require_once 'PEAR.php'; 36 103 $this->$varname = ''; 104 mt_srand(hexdec(substr(md5(microtime()), -8)) & 0x7fffffff); 105 for ($i = 0; $i < $size; $i++) {class_SHA1Library.php https://github.com/sigmonky/LivingRoom.git | PHP | 264 lines
10 * 11 * A PHP implementation of the Secure Hash Algorithm, SHA-1, as defined in 12 * FIPS PUB 180-1. This is used by Centova only when using PHP 107 /* 108 * Joror: PHP does not have the java(script) >>> operator, so this is a 109 * replacement function. Credits to Terium. 112 { 113 $z = hexdec(80000000); 114 if ($z & $a) 141 * Determine the appropriate additive constant for the current iteration 142 * Silly php does not understand the inline-if operator well when nested, 143 * so that's why it's ()ed now.Color.php https://github.com/real-chocopanda/PHPExcel.git | PHP | 476 lines
22 * @package PHPExcel_Style 23 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel_Style 34 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_Style_Color implements PHPExcel_IComparable 37{ 126 * 127 * @return PHPExcel_Style_Color 128 */ 206 * <code> 207 * $objPHPExcel->getActiveSheet()->getStyle('B2')->getFont()->getColor()->applyFromArray( array('rgb' => '808080') ); 208 * </code>storefront-functions.php https://gitlab.com/campus-academy/krowkaramel | PHP | 226 lines
1<?php 2/** 136 // Get decimal values. 137 $r = hexdec( substr( $hex, 0, 2 ) ); 138 $g = hexdec( substr( $hex, 2, 2 ) ); 138 $g = hexdec( substr( $hex, 2, 2 ) ); 139 $b = hexdec( substr( $hex, 4, 2 ) ); 140XmlUtils.php https://github.com/nattaphat/hgis.git | PHP | 222 lines
1<?php 2 99 /** 100 * Converts a \DomElement object to a PHP array. 101 * 116 * 117 * @return array A PHP array 118 */ 127 } 128 $config[$name] = static::phpize($node->value); 129 $empty = false; 158 if (false !== $nodeValue) { 159 $value = static::phpize($nodeValue); 160 if (count($config)) { 170 /** 171 * Converts an xml value to a php type. 172 *text.php https://github.com/yamamoto123/Ushahidi_Web.git | PHP | 420 lines
1<?php defined('SYSPATH') OR die('No direct access allowed.'); 2/** 4 * 5 * $Id: text.php 3917 2009-01-21 03:06:22Z zombor $ 6 * 9 * @copyright (c) 2007-2008 Kohana Team 10 * @license http://kohanaphp.com/license.html 11 */ 99 * @tutorial alpha alphabetical characters 100 * @tutorial hexdec hexadecimal characters, 0-9 plus a-f 101 * @tutorial numeric digit characters, 0-9 116 break; 117 case 'hexdec': 118 $pool = '0123456789abcdef'; 363 * @see Based on original functions written by: 364 * @see Aidan Lister: http://aidanlister.com/repos/v/function.size_readable.php 365 * @see Quentin Zervaas: http://www.phpriot.com/d/code/strings/filesize-format/Encoding.php https://github.com/jellydoughnut/phergie.git | PHP | 182 lines
1<?php 2/** 4 * 5 * PHP version 5 6 * 38 * @var array 39 * @link http://us.php.net/manual/en/function.get-html-translation-table.php#73409 40 * @link http://us.php.net/manual/en/function.get-html-translation-table.php#73410 109 array('/�*([0-9]+);/me', '/�*([a-f0-9]+);/mei'), 110 array('$this->codeToUtf(\\1)', '$this->codeToUtf(hexdec(\\1))'), 111 $string 166 { 167 // @link http://pecl.php.net/package/translit 168 if (function_exists('transliterate')) { 172 } else { 173 // @link http://stackoverflow.com/questions/1284535/php-transliteration/1285491#1285491 174 $string = preg_replace(TextTest.php https://bitbucket.org/seyar/kinda.local.git | PHP | 596 lines
1<?php defined('SYSPATH') OR die('Kohana bootstrap needs to be included before tests run'); 2 136 array('…', 'BOO!', -42, NULL, FALSE), 137 array('making php bet…', 'making php better for the sane', 14, NULL, FALSE), 138 array('Garçon! Un café s.v.p.', 'Garçon! Un café s.v.p.', 50, '__', FALSE), 140 // @issue 3238 141 array('making php…', 'making php better for the sane', 14, NULL, TRUE), 142 array('Garçon!__', 'Garçon! Un café s.v.p.', 9, '__', TRUE), 201 array('/', '//'), 202 array('/google/php/kohana/', '//google/php//kohana//'), 203 ); 228 array("A donkey is also an ***", 'A donkey is also an ass', array('ass'), '*', TRUE), 229 array("Cake### isn't nearly as good as kohana###", "CakePHP isn't nearly as good as kohanaphp", array('php'), '#', TRUE), 230 // If it's > 1 then it's just replaced straight out 257 array('alpha', 10), 258 array('hexdec', 20), 259 array('nozero', 5),autoload_classmap.php https://gitlab.com/ranjudhk/seid-128727 | PHP | 41 lines
9 'CGIF' => $vendorDir . '/mpdf/mpdf/classes/gif.php', 10 'CGIFCOLORTABLE' => $vendorDir . '/mpdf/mpdf/classes/gif.php', 11 'CGIFFILEHEADER' => $vendorDir . '/mpdf/mpdf/classes/gif.php', 11 'CGIFFILEHEADER' => $vendorDir . '/mpdf/mpdf/classes/gif.php', 12 'CGIFIMAGE' => $vendorDir . '/mpdf/mpdf/classes/gif.php', 13 'CGIFIMAGEHEADER' => $vendorDir . '/mpdf/mpdf/classes/gif.php', 14 'CGIFLZW' => $vendorDir . '/mpdf/mpdf/classes/gif.php', 15 'FPDF_TPL' => $vendorDir . '/setasign/fpdi/fpdf_tpl.php', 16 'FPDI' => $vendorDir . '/setasign/fpdi/fpdi.php', 17 'FilterASCII85' => $vendorDir . '/setasign/fpdi/filters/FilterASCII85.php', 18 'FilterASCIIHexDecode' => $vendorDir . '/setasign/fpdi/filters/FilterASCIIHexDecode.php', 19 'FilterLZW' => $vendorDir . '/setasign/fpdi/filters/FilterLZW.php', 22 'OTLdump' => $vendorDir . '/mpdf/mpdf/classes/otl_dump.php', 23 'PDFBarcode' => $vendorDir . '/mpdf/mpdf/classes/barcode.php', 24 'SEA' => $vendorDir . '/mpdf/mpdf/classes/sea.php',GisLineString.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 333 lines
1<?php 2/** 7 8namespace PhpMyAdmin\Gis; 9 9 10use PhpMyAdmin\Image\ImageWrapper; 11use TCPDF; 13use function count; 14use function hexdec; 15use function json_encode; 86 $black = $image->colorAllocate(0, 0, 0); 87 $red = (int) hexdec(mb_substr($line_color, 1, 2)); 88 $green = (int) hexdec(mb_substr($line_color, 3, 2)); 88 $green = (int) hexdec(mb_substr($line_color, 3, 2)); 89 $blue = (int) hexdec(mb_substr($line_color, 4, 2)); 90 $color = $image->colorAllocate($red, $green, $blue);zktime.php https://gitlab.com/zubair_xenomorph/zubair_zklib | PHP | 67 lines
1<?php 2 function reverseHex($hexstr) { 19 $u = unpack('H2h1/H2h2/H2h3/H2h4/H2h5/H2h6/H2h7/H2h8', substr( $self->data_recv, 0, 8) ); 20 $reply_id = hexdec( $u['h8'].$u['h7'] ); 21 30 31 $self->session_id = hexdec( $u['h6'].$u['h5'] ); 32 return substr( $self->data_recv, 8 ); 46 $u = unpack('H2h1/H2h2/H2h3/H2h4/H2h5/H2h6/H2h7/H2h8', substr( $self->data_recv, 0, 8) ); 47 $reply_id = hexdec( $u['h8'].$u['h7'] ); 48 57 58 $self->session_id = hexdec( $u['h6'].$u['h5'] ); 59 return decode_time( hexdec( reverseHex( bin2hex( substr( $self->data_recv, 8 ) ) ) ) );php.js https://gitlab.com/Blueprint-Marketing/cdnjs | JavaScript | 132 lines
23 atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"), 24 builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once"), 25 multiLineStrings: true, 54 var htmlMode = CodeMirror.getMode(config, "text/html"); 55 var phpMode = CodeMirror.getMode(config, phpConfig); 56 82 return style; 83 } else if (isPHP && state.php.tokenize == null && stream.match("?>")) { 84 state.curMode = htmlMode; 103 var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html), 104 php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur; 105 if (state.curMode == htmlMode) cur = htmlNew; 130 CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true}); 131 CodeMirror.defineMIME("text/x-php", phpConfig); 132})();Color.php https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | PHP | 507 lines
22 * @package PHPExcel_Style 23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel_Style 34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_Style_Color implements PHPExcel_IComparable 37{ 128 * 129 * @return PHPExcel_Style_Color 130 */ 208 * <code> 209 * $objPHPExcel->getActiveSheet()->getStyle('B2')->getFont()->getColor()->applyFromArray( array('rgb' => '808080') ); 210 * </code>googlespell.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 170 lines
1<?php 2/** 119 protected function _unhtmlentities($string) { 120 $string = preg_replace('~&#x([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', $string); 121 $string = preg_replace('~&#([0-9]+);~e', 'chr(\\1)', $string);Math.php https://github.com/necrogami/zf2.git | PHP | 136 lines
1<?php 2/** 50 // PHP bug #55169 51 // @see https://bugs.php.net/bug.php?id=55169 52 if (strtoupper(substr(PHP_OS, 0, 3)) ==! 'WIN' || 52 if (strtoupper(substr(PHP_OS, 0, 3)) ==! 'WIN' || 53 version_compare(PHP_VERSION, '5.3.7') >= 0) { 54 $rand = mcrypt_create_iv($length, MCRYPT_DEV_URANDOM); 61 throw new Exception\RuntimeException( 62 'This PHP environment doesn\'t support secure random number generation. ' . 63 'Please consider to install the OpenSSL and/or Mcrypt extensions' 89 return $max; 90 } elseif ($range > PHP_INT_MAX || is_float($range)) { 91 throw new Exception\InvalidArgumentException( 95 $bytes = (int) max(log($range,2) / 8, 1); 96 $rnd = hexdec(bin2hex(self::randBytes($bytes, $strong))); 97 return $min + $rnd % ($range+1);utilities.class.php https://bitbucket.org/cesarmedrano/cesarmedrano.git | PHP | 399 lines
1<?php 2/* 26 * @copyright See the included NOTICE.md file for more information. 27 * @link http://aws.amazon.com/php/ PHP Developer Center 28 */ 101 { 102 $raw .= chr(hexdec(substr($str, $i, 2))); 103 } 195 * @author Ryan Parman <ryan@getcloudfusion.com> 196 * @license http://www.php.net/license/3_01.txt PHP License 197 * @param integer $size (Required) Filesize in bytes. 334 * 335 * @license http://us.php.net/manual/en/function.base64-decode.php#81425 PHP License 336 * @param string $s (Required) The string to test. 380 * 381 * @author Alix Axel <http://www.php.net/manual/en/function.com-create-guid.php#99425> 382 * @license http://www.php.net/license/3_01.txt PHP LicenseString_.php https://gitlab.com/paulgav/PHP-Parser | PHP | 153 lines
1<?php 2 2 3namespace PhpParser\Node\Scalar; 4 4 5use PhpParser\Error; 6use PhpParser\Node\Scalar; 50 * @param string $str String token content 51 * @param bool $parseUnicodeEscape Whether to parse PHP 7 \u escapes 52 * 80 * @param null|string $quote Quote type 81 * @param bool $parseUnicodeEscape Whether to parse PHP 7 \u escapes 82 * 102 } elseif ('x' === $str[0] || 'X' === $str[0]) { 103 return chr(hexdec($str)); 104 } elseif ('u' === $str[0]) {header-img.php https://github.com/localshred/dtraders.git | PHP | 77 lines
1<?php 2 17 if ( $length == 1 ) $v = '' . $v . $v; 18 $$subvar = hexdec( $v ); 19 if ( $$subvar < 0 || $$subvar > 255 )Scrypt.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 341 lines
1<?php 2/** 36 } 37 if ($n > PHP_INT_MAX / 128 / $r) { 38 throw new Exception\InvalidArgumentException("Parameter n is too large"); 39 } 40 if ($r > PHP_INT_MAX / 128 / $p) { 41 throw new Exception\InvalidArgumentException("Parameter r is too large"); 101 for ($i = 0; $i < $len; $i++) { 102 if (PHP_INT_SIZE === 4) { 103 $x = self::salsa208Core32($x ^ substr($b, 64 * $i, 64)); 315 $v = 'v'; 316 if (PHP_INT_SIZE === 8) { 317 $v = 'V'; 330 { 331 if (version_compare(PHP_VERSION, '5.4') >= 0) { 332 return hex2bin($hex);palette.php https://github.com/mrahmadt/PHP_Word_Cloud.git | PHP | 66 lines
1<?php 2/** 2/** 3 * This file is part of the PHP_Word_Cloud project. 4 * http://github.com/sixty-nine/PHP_Word_Cloud 48 $palette[] = imagecolorallocate($im, 49 hexdec(substr($hex, 0, 2)), 50 hexdec(substr($hex, 2, 2)), 50 hexdec(substr($hex, 2, 2)), 51 hexdec(substr($hex, 4, 2))); 52 }swatch.php https://github.com/dannyrealfox/Fu-Chi--Future-Chinatown.git | PHP | 111 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 4 * 5 * PHP version 5 6 * LICENSE: This source file is subject to LGPL license 65 66 $mc_red = hexdec(substr($main_color, 0, 2)); 67 $mc_green = hexdec(substr($main_color, 2, 2)); 67 $mc_green = hexdec(substr($main_color, 2, 2)); 68 $mc_blue = hexdec(substr($main_color, 4, 2)); 69 69 70 $bc_red = hexdec(substr($brdr_color, 0, 2)); 71 $bc_green = hexdec(substr($brdr_color, 2, 2)); 71 $bc_green = hexdec(substr($brdr_color, 2, 2)); 72 $bc_blue = hexdec(substr($brdr_color, 4, 2)); 73graphics.php https://github.com/huckfinnaafb/leviatha.git | PHP | 365 lines
1<?php 2 3/** 4 Graphics plugin for the PHP Fat-Free Framework 5 52 foreach ($color as &$hue) 53 $hue=hexdec(str_repeat($hue,6/$len)); 54 return $color; 119 // Send output as PNG image 120 if (PHP_SAPI!='cli') 121 header(self::HTTP_Content.': image/png'); 135 imagefilter($img,IMG_FILTER_NEGATE); 136 if (PHP_SAPI!='cli') 137 header(self::HTTP_Content.': image/'.$ext[1]); 152 imagefilter($img,IMG_FILTER_GRAYSCALE); 153 if (PHP_SAPI!='cli') 154 header(self::HTTP_Content.': image/'.$ext[1]);html2pdf.php https://github.com/addien-sarmag/mdis.git | PHP | 279 lines
1<?php 2 2 3require_once('fpdf.php'); 4 6 $R = substr($couleur, 1, 2); 7 $rouge = hexdec($R); 8 $V = substr($couleur, 3, 2); 8 $V = substr($couleur, 3, 2); 9 $vert = hexdec($V); 10 $B = substr($couleur, 5, 2); 10 $B = substr($couleur, 5, 2); 11 $bleu = hexdec($B); 12 $tbl_couleur = array();generate_utf_confusables.php https://github.com/naderman/phpbb-orchestra.git | PHP | 244 lines
6* @copyright (c) 2005 phpBB Group 7* @license http://opensource.org/licenses/gpl-license.php GNU Public License 8* 122{ 123 $temp_hold = implode(array_map('utf8_chr', array_map('hexdec', explode(' ', trim($value[2]))))); 124 127 $num = ''; 128 $string = utf8_chr(hexdec((string)$value[1])); 129 for ($i = 0; $i < strlen($string); $i++) 158 159 $uniarray[utf8_chr(hexdec((string)$value[1]))] = $temp_hold; 160} 163 164$fp = fopen($phpbb_root_path . 'includes/utf/data/confusables.' . $phpEx, 'wb'); 165fwrite($fp, '<?php return ' . my_var_export($uniarray) . ';');simple-php-captcha.php https://gitlab.com/hoanghung.dev/aloads | PHP | 172 lines
1<?php 2// 2// 3// A simple PHP CAPTCHA script 4// 8// 9function simple_php_captcha($config = array()) { 10 95 if( strlen($hex_str) == 6 ) { 96 $color_val = hexdec($hex_str); 97 $rgb_array['r'] = 0xFF & ($color_val >> 0x10); 100 } elseif( strlen($hex_str) == 3 ) { 101 $rgb_array['r'] = hexdec(str_repeat(substr($hex_str, 0, 1), 2)); 102 $rgb_array['g'] = hexdec(str_repeat(substr($hex_str, 1, 1), 2)); 102 $rgb_array['g'] = hexdec(str_repeat(substr($hex_str, 1, 1), 2)); 103 $rgb_array['b'] = hexdec(str_repeat(substr($hex_str, 2, 1), 2)); 104 } else {AssetsHelper.php https://github.com/ad2joe/php-framework-benchmarks.git | PHP | 180 lines
1<?php 2 19 * <code> 20 * <img src="<?php echo $this->assets->getUrl('foo.png') ?>" /> 21 * </code> 112 113 return $this->baseURLs[fmod(hexdec(substr(md5($path), 0, 10)), $count)]; 114Encoding.php https://github.com/zburnham/phergie.git | PHP | 190 lines
1<?php 2/** 4 * 5 * PHP version 5 6 * 38 * @var array 39 * @link http://php.net/get_html_translation_table#73409 40 * @link http://php.net/get_html_translation_table#73410 109 array('/�*([0-9]+);/me', '/�*([a-f0-9]+);/mei'), 110 array('$this->codeToUtf(\\1)', '$this->codeToUtf(hexdec(\\1))'), 111 $string 168 ) { 169 // @link http://pecl.php.net/package/translit 170 if (function_exists('transliterate')) { 179 } else { 180 // @link http://stackoverflow.com/questions/1284535/php-transliteration/1285491#1285491 181 $string = preg_replace(UUID.php https://github.com/mako-framework/framework.git | PHP | 202 lines
1<?php 2 16use function hex2bin; 17use function hexdec; 18use function md5; 102 { 103 $binary .= chr(hexdec("{$hex[$i]}{$hex[$i + 1]}")); 104 } 140 substr($hash, 8, 4), 141 (hexdec(substr($hash, 12, 4)) & 0x0fff) | 0x3000, 142 (hexdec(substr($hash, 16, 4)) & 0x3fff) | 0x8000, 178 substr($hash, 8, 4), 179 (hexdec(substr($hash, 12, 4)) & 0x0fff) | 0x5000, 180 (hexdec(substr($hash, 16, 4)) & 0x3fff) | 0x8000,TimeLimitedToken.php https://bitbucket.org/sahkoinenaanestys/sahkoinenaanestys.git | PHP | 86 lines
1<?php 2 74 $splittedtoken = explode('-', $token); 75 $offset = hexdec($splittedtoken[0]); 76 $value = $splittedtoken[1];Number.php https://github.com/grjones/qframe.git | PHP | 420 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Number.php 20096 2010-01-06 02:05:09Z bkarwin $ 20 */ 24 */ 25require_once 'Zend/Measure/Abstract.php'; 26require_once 'Zend/Locale.php'; 157 if (!Zend_Locale::isLocale($locale, true, false)) { 158 require_once 'Zend/Measure/Exception.php'; 159 throw new Zend_Measure_Exception("Language (" . (string) $locale . ") is unknown"); 171 if (isset($this->_units[$type]) === false) { 172 require_once 'Zend/Measure/Exception.php'; 173 throw new Zend_Measure_Exception("Type ($type) is unknown"); 193 if (empty($this->_units[$type])) { 194 require_once 'Zend/Measure/Exception.php'; 195 throw new Zend_Measure_Exception('unknown type of number:' . $type);class.avatar.php https://gitlab.com/billyprice1/osTicket | PHP | 239 lines
1<?php 2/********************************************************************* 2/********************************************************************* 3 class.avatar.php 4 126 127 return ROOT_PATH . 'avatar.php?'.Http::build_query(array('uid'=>$uid, 128 'mode' => $this->mode)); 170 for ($i=0, $k=$height; $i<$k; $i++) { 171 $idx = hexdec($uid[$i]) % $width; 172 imagecopy($avatar, $source, 0, 0, $idx*$grid, $i*$grid, $grid, $grid); 229 * @return String containing either just a URL or a complete image tag 230 * @source http://gravatar.com/site/implement/images/php/ 231 */Socket.php https://github.com/bhaumik25/zend-framework.git | PHP | 285 lines
1<?php 2 23 24require_once 'Zend/Uri/Http.php'; 25require_once 'Zend/Http/Client/Adapter/Interface.php'; 25require_once 'Zend/Http/Client/Adapter/Interface.php'; 26require_once 'Zend/Http/Client/Adapter/Exception.php'; 27 29 * A sockets based (fsockopen) adapter class for Zend_Http_Client. Can be used 30 * on almost every PHP environment, and does not require any special extensions. 31 * 221 222 $chunksize = hexdec(chop($line)); 223 if (dechex($chunksize) != $hexchunksize) {Captcha.php https://bitbucket.org/mustangostang/zfast | PHP | 312 lines
1<?php 2 2 3require_once '__Field.php'; 4 64 65require_once 'Zend/Session/Namespace.php'; 66 189 private function addColor($color, $opacity = 100) { 190 $colorRed = hexdec(substr($color, 0, 2)); 191 $colorGreen = hexdec(substr($color, 2, 2)); 191 $colorGreen = hexdec(substr($color, 2, 2)); 192 $colorBlue = hexdec(substr($color, 4, 2)); 193Number.php https://gitlab.com/rsilveira1987/Expresso | PHP | 420 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Number.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $ 20 */ 24 */ 25require_once 'Zend/Measure/Abstract.php'; 26require_once 'Zend/Locale.php'; 157 if (!Zend_Locale::isLocale($locale, true, false)) { 158 require_once 'Zend/Measure/Exception.php'; 159 throw new Zend_Measure_Exception("Language (" . (string) $locale . ") is unknown"); 171 if (isset($this->_units[$type]) === false) { 172 require_once 'Zend/Measure/Exception.php'; 173 throw new Zend_Measure_Exception("Type ($type) is unknown"); 193 if (empty($this->_units[$type])) { 194 require_once 'Zend/Measure/Exception.php'; 195 throw new Zend_Measure_Exception('unknown type of number:' . $type);login.php https://bitbucket.org/ke2083/transfans.co.uk-website.git | PHP | 139 lines
102<!DOCTYPE html> 103<html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>"> 104<head> 115 <?php if ($loginLogoFile = $this->params->get('loginLogoFile')) : ?> 116 <img src="<?php echo JUri::root() . $loginLogoFile; ?>" alt="<?php echo $sitename; ?>" /> 117 <?php else: ?> 117 <?php else: ?> 118 <img src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/images/joomla.png" alt="<?php echo $sitename; ?>" /> 119 <?php endif; ?> 131 <p class="pull-right"> 132 © <?php echo date('Y'); ?> <?php echo $sitename; ?> 133 </p> 134 <a class="login-joomla hasTooltip" href="https://www.joomla.org" target="_blank" rel="noopener noreferrer" title="<?php echo JHtml::_('tooltipText', 'TPL_ISIS_ISFREESOFTWARE'); ?>"><span class="icon-joomla"></span></a> 135 <a href="<?php echo $frontEndUri->toString(); ?>" target="_blank" class="pull-left"><span class="icon-out-2"></span><?php echo JText::_('COM_LOGIN_RETURN_TO_SITE_HOME_PAGE'); ?></a> 136 </div>HMAC.php https://github.com/duaiwe/php-openid.git | PHP | 117 lines
1<?php 2 6 * 7 * PHP versions 4 and 5 8 * 16 17require_once 'Auth/OpenID/HMAC.php'; 18require_once 'Tests/Auth/OpenID/TestSuite.php'; 18require_once 'Tests/Auth/OpenID/TestSuite.php'; 19require_once 'Tests/Auth/OpenID/TestUtil.php'; 20 31 32abstract class Auth_OpenID_HMAC_TestCase extends PHPUnit_Framework_TestCase { 33 37 if (preg_match($repeat_pat, $s, $match)) { 38 $c = chr(hexdec($match[1])); 39 $n = $match[2];tcpdf_filters.php https://bitbucket.org/cwtaylor/airtight-fig.git | PHP | 481 lines
1<?php 2//============================================================+ 2//============================================================+ 3// File name : tcpdf_filters.php 4// Version : 1.0.001 30// 31// Description : This is a PHP class for decoding common PDF filters (PDF 32000-2008 - 7.4 Filters). 32// 36 * @file 37 * This is a PHP class for decoding common PDF filters (PDF 32000-2008 - 7.4 Filters).<br> 38 * @package com.tecnick.tcpdf 44 * @class TCPDF_FILTERS 45 * This is a PHP class for decoding common PDF filters (PDF 32000-2008 - 7.4 Filters).<br> 46 * @package com.tecnick.tcpdf 46 * @package com.tecnick.tcpdf 47 * @brief This is a PHP class for decoding common PDF filters. 48 * @version 1.0.001Number.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 420 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Number.php 24593 2012-01-05 20:35:02Z matthew $ 20 */ 24 */ 25require_once 'Zend/Measure/Abstract.php'; 26require_once 'Zend/Locale.php'; 157 if (!Zend_Locale::isLocale($locale, true, false)) { 158 require_once 'Zend/Measure/Exception.php'; 159 throw new Zend_Measure_Exception("Language (" . (string) $locale . ") is unknown"); 171 if (isset($this->_units[$type]) === false) { 172 require_once 'Zend/Measure/Exception.php'; 173 throw new Zend_Measure_Exception("Type ($type) is unknown"); 193 if (empty($this->_units[$type])) { 194 require_once 'Zend/Measure/Exception.php'; 195 throw new Zend_Measure_Exception('unknown type of number:' . $type);Number.php https://github.com/StefanRHRO/SCRM.git | PHP | 420 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Number.php 23775 2011-03-01 17:25:24Z ralph $ 20 */ 24 */ 25require_once 'Zend/Measure/Abstract.php'; 26require_once 'Zend/Locale.php'; 157 if (!Zend_Locale::isLocale($locale, true, false)) { 158 require_once 'Zend/Measure/Exception.php'; 159 throw new Zend_Measure_Exception("Language (" . (string) $locale . ") is unknown"); 171 if (isset($this->_units[$type]) === false) { 172 require_once 'Zend/Measure/Exception.php'; 173 throw new Zend_Measure_Exception("Type ($type) is unknown"); 193 if (empty($this->_units[$type])) { 194 require_once 'Zend/Measure/Exception.php'; 195 throw new Zend_Measure_Exception('unknown type of number:' . $type);Stream.php https://bitbucket.org/brunoMaurice/youfood.git | PHP | 410 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Stream.php 16541 2009-07-07 06:59:03Z bkarwin $ 20 */ 23/** Zend_Pdf_Element_Object */ 24require_once 'Zend/Pdf/Element/Object.php'; 25 26/** Zend_Pdf_Element_Stream */ 27require_once 'Zend/Pdf/Element/Stream.php'; 28 29/** Zend_Pdf_Filter_Ascii85 */ 30require_once 'Zend/Pdf/Filter/Ascii85.php'; 31 32/** Zend_Pdf_Filter_AsciiHex */ 33require_once 'Zend/Pdf/Filter/AsciiHex.php'; 34makefont.php https://github.com/nadavkav/MoodleTAO.git | PHP | 416 lines
1<?php 2/******************************************************************************* 20 $e=preg_split('/[ \\t]+/',rtrim($l)); 21 $cc=hexdec(substr($e[0],1)); 22 $gn=$e[2]; 335 //Start generation 336 $s='<?php'."\n"; 337 $s.='$type=\''.$type."';\n"; 412 $s.="?>\n"; 413 SaveToFile($basename.'.php',$s); 414 echo 'Font definition file generated ('.$basename.'.php'.')<BR>';image.php https://github.com/patadejaguar/S.A.F.E.-Open-Source-Microfinance-Suite.git | PHP | 616 lines
1<?php 2 61 if (is_string($color)) 62 $color=hexdec($color); 63 $hex=str_pad($hex=dechex($color),$color<4096?3:6,'0',STR_PAD_LEFT); 67 foreach ($color as &$hue) { 68 $hue=hexdec(str_repeat($hue,6/$len)); 69 unset($hue); 364 $this->data=imagecreatetruecolor($size,$size); 365 list($r,$g,$b)=$this->rgb(hexdec(substr($hash,-3))); 366 $fg=imagecolorallocate($this->data,$r,$g,$b); 373 imagefill($sprite,0,0,IMG_COLOR_TRANSPARENT); 374 $block=$sprites[hexdec($hash[($j*$blocks+$i)*2])%$ctr]; 375 for ($k=0,$pts=count($block);$k<$pts;$k++) 480 $format=$args?array_shift($args):'png'; 481 if (PHP_SAPI!='cli') { 482 header('Content-Type: image/'.$format);Char_Image.php https://github.com/Billiam/Minecraft-Overviewer-Addons.git | PHP | 388 lines
1<?php 2/** 383 384 $r = hexdec($r); $g = hexdec($g); $b = hexdec($b); 385_utilities.class.php https://github.com/tinypay/KO3-Fusion.git | PHP | 475 lines
1<?php 2/** 65 { 66 $raw .= chr(hexdec(substr($str, $i, 2))); 67 } 85 * Examples: 86 * example::utilities/to_query_string.phpt: 87 */ 106 * Examples: 107 * example::utilities/to_signable_string.phpt: 108 */ 291 * example::utilities/try_these4.phpt: 292 * example::utilities/try_these5.phpt: 293 */ 354 * Author: 355 * http://us2.php.net/manual/en/function.json-encode.php#82904 356 *Number.php https://github.com/oveach/tuto-zf-doctrine2.git | PHP | 420 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Number.php 24594 2012-01-05 21:27:01Z matthew $ 20 */ 24 */ 25require_once 'Zend/Measure/Abstract.php'; 26require_once 'Zend/Locale.php'; 157 if (!Zend_Locale::isLocale($locale, true, false)) { 158 require_once 'Zend/Measure/Exception.php'; 159 throw new Zend_Measure_Exception("Language (" . (string) $locale . ") is unknown"); 171 if (isset($this->_units[$type]) === false) { 172 require_once 'Zend/Measure/Exception.php'; 173 throw new Zend_Measure_Exception("Type ($type) is unknown"); 193 if (empty($this->_units[$type])) { 194 require_once 'Zend/Measure/Exception.php'; 195 throw new Zend_Measure_Exception('unknown type of number:' . $type);create_counted_firmware.php https://github.com/meriac/openbeacon.git | PHP | 192 lines
1#!/usr/bin/php 2<?php 9 * 10 * This PHP shell scrip takes precompiled intel hex file, increments 11 * id, stores random seed and XXTEA key and creates output 46 '_oid' => (is_readable(COUNT_FILE))?intval(trim(file_get_contents(COUNT_FILE))):100, 47 '_seed' => hexdec(substr(md5(microtime().implode('-',$tea_key).rand()),0,8)), 48 '_xxtea_key' => $tea_key, 84 85 $offset = hexdec($symbol[1])*2; 86 if($offset) 128 foreach(array( 1=>'count', 2=>'address', 3=>'type', 5=>'checksum') as $offset=>$name ) 129 $rec[$name]=hexdec($matches[$offset]); 130 137 foreach(explode(',',trim(chunk_split($matches[4],2,','),',')) as $byte) 138 $memory[$address++]=hexdec($byte); 139 }treebuilder.class.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 48 lines
1<?php 2// $Header: /cvsroot/html2ps/treebuilder.class.php,v 1.16 2006/11/11 13:43:53 Konstantin Exp $ 4require_once(HTML2PS_DIR.'dom.activelink.inc.php'); 5require_once(HTML2PS_DIR.'dom.php5.inc.php'); 6 12 function build($xmlstring) { 13 // Detect if we're using PHP 4 (DOM XML extension) 14 // or PHP 5 (DOM extension) 16 // Second - object-oriented interface 17 // Third - pure PHP XML parser 18 if (function_exists('domxml_open_mem')) { return domxml_open_mem($xmlstring); }; 19 if (class_exists('DOMDocument')) { return DOMTree::from_DOMDocument(DOMDocument::loadXML($xmlstring)); }; 20 if (file_exists(HTML2PS_DIR.'/classes/include.php')) { 21 require_once(HTML2PS_DIR.'classes/include.php'); 37 while (preg_match("@&#x(\d+);@i",$xmlstring, $matches)) { 38 $xmlstring = preg_replace("@&#x".$matches[1].";@i",code_to_utf8(hexdec($matches[1])),$xmlstring); 39 };Color.php https://bitbucket.org/moodle/moodle.git | PHP | 433 lines
1<?php 2 2 3namespace PhpOffice\PhpSpreadsheet\Style; 4 233 234 return ($hex) ? $colour : (int) hexdec($colour); 235 }gradientgd.php https://github.com/grandison/budo16.git | PHP | 145 lines
1<?php 2 139 $s = strlen($color) / 3; 140 $rgb[]=hexdec(str_repeat(substr($color,0,$s),2/$s)); 141 $rgb[]=hexdec(str_repeat(substr($color,$s,$s),2/$s)); 141 $rgb[]=hexdec(str_repeat(substr($color,$s,$s),2/$s)); 142 $rgb[]=hexdec(str_repeat(substr($color,2*$s,$s),2/$s)); 143 return $rgb;Rand.php https://gitlab.com/merial/WETE_Ryhma3 | PHP | 212 lines
1<?php 2/** 27 * Generate random bytes using different approaches 28 * If PHP 7 is running we use the random_bytes() function 29 * 42 43 if (function_exists('random_bytes')) { // available in PHP 7 44 return random_bytes($length); 55 throw new Exception\RuntimeException( 56 'This PHP environment doesn\'t support secure random number generation. ' . 57 'Please consider either installing ext/mcrypt or upgrading to PHP 7' 116 } 117 if (function_exists('random_int')) { // available in PHP 7 118 return random_int($min, $max); 122 return $max; 123 } elseif ($range > PHP_INT_MAX || is_float($range)) { 124 throw new Exception\DomainException(normalizer_test.php https://github.com/naderman/phpbb-orchestra.git | PHP | 320 lines
1<?php 2/** 4* @package testing 5* @copyright (c) 2011 phpBB Group 6* @license http://opensource.org/licenses/gpl-license.php GNU Public License 9 10require_once dirname(__FILE__) . '/../../phpBB/includes/utf/utf_normalizer.php'; 11 14*/ 15class phpbb_utf_normalizer_test extends phpbb_test_case 16{ 259 { 260 return $this->cp_to_utf(hexdec($hex)); 261 }image.php https://bitbucket.org/rusbal/club4causes.git | PHP | 220 lines
1<?php 2/*------------------------------------------------------------------------------ 202 203 $r = hexdec($r); 204 $g = hexdec($g); 204 $g = hexdec($g); 205 $b = hexdec($b); 206syncinclude.php https://github.com/siekiera-media/jtlwawi_connector.git | PHP | 413 lines
1<?php 2/** 2/** 3 * jtlwawi_connector/dbeS/syncinclude.php 4 * Tools für Sync 5 * 6 * Es gelten die Nutzungs- und Lizenzhinweise unter http://www.jtl-software.de/jtlwawi.php 7 * 9 * @copyright 2006, JTL-Software 10 * @link http://jtl-software.de/jtlwawi.php 11 * @version v1.05 / 06.06.07 22// include server parameters 23require_once(DOCROOT_PATH.'admin/includes/configure.php'); 24 98 // replace numeric entities 99 $string = preg_replace('~&#x([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', $string); 100 $string = preg_replace('~&#([0-9]+);~e', 'chr("\\1")', $string);StreamObject.php https://github.com/giorgiosironi/zf2.git | PHP | 413 lines
1<?php 2/** 198 switch ($filterName) { 199 case 'ASCIIHexDecode': 200 $valueRef = StreamFilter\ASCIIHex::decode($valueRef); 250 switch ($filterName) { 251 case 'ASCIIHexDecode': 252 $valueRef = StreamFilter\ASCIIHex::encode($valueRef);ext_math.h https://github.com/diegoIta/hiphop-php.git | C Header | 106 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com) | 6 | Copyright (c) 1997-2010 The PHP Group | 7 +----------------------------------------------------------------------+ 7 +----------------------------------------------------------------------+ 8 | This source file is subject to version 3.01 of the PHP license, | 9 | that is bundled with this package in the file LICENSE, and is | 10 | available through the world-wide-web at the following url: | 11 | http://www.php.net/license/3_01.txt | 12 | If you did not receive a copy of the PHP license and are unable to | 13 | obtain it through the world-wide-web, please send a note to | 14 | license@php.net so we can mail you a copy immediately. | 15 +----------------------------------------------------------------------+class-kirki-color.php https://gitlab.com/ebrjose/comcebu | PHP | 342 lines
1<?php 2/** 13 14// phpcs:ignoreFile 15 170 // Returns brightness value from 0 to 255. 171 return intval( ( ( hexdec( substr( $hex, 0, 2 ) ) * 299 ) + ( hexdec( substr( $hex, 2, 2 ) ) * 587 ) + ( hexdec( substr( $hex, 4, 2 ) ) * 114 ) ) / 1000 ); 172 } 187 // Adjust number of steps and keep it inside 0 to 255. 188 $red = max( 0, min( 255, hexdec( substr( $hex, 0, 2 ) ) + $steps ) ); 189 $green = max( 0, min( 255, hexdec( substr( $hex, 2, 2 ) ) + $steps ) ); 212 $hex2 = self::sanitize_hex( $hex2, false ); 213 $red = ( $percentage * hexdec( substr( $hex1, 0, 2 ) ) + ( 100 - $percentage ) * hexdec( substr( $hex2, 0, 2 ) ) ) / 100; 214 $green = ( $percentage * hexdec( substr( $hex1, 2, 2 ) ) + ( 100 - $percentage ) * hexdec( substr( $hex2, 2, 2 ) ) ) / 100; 214 $green = ( $percentage * hexdec( substr( $hex1, 2, 2 ) ) + ( 100 - $percentage ) * hexdec( substr( $hex2, 2, 2 ) ) ) / 100; 215 $blue = ( $percentage * hexdec( substr( $hex1, 4, 2 ) ) + ( 100 - $percentage ) * hexdec( substr( $hex2, 4, 2 ) ) ) / 100; 216 $red_hex = str_pad( dechex( $red ), 2, '0', STR_PAD_LEFT );icon.php https://github.com/strandls/augmentedmaps.git | PHP | 112 lines
1<?php 2 74$image = imageCreateFromPNG($iconDirectoryPath . $iconName); 75$phpFillIndex = imageColorClosest($image,$existingFill['r'],$existingFill['g'],$existingFill['b']); 76imageColorSet($image,$phpFillIndex,$fill['r'],$fill['g'],$fill['b']); 76imageColorSet($image,$phpFillIndex,$fill['r'],$fill['g'],$fill['b']); 77$phpDarkBorderIndex = imageColorClosest($image,$existingDarkBorder['r'],$existingDarkBorder['g'],$existingDarkBorder['b']); 78imageColorSet($image,$phpDarkBorderIndex,$darkBorder['r'],$darkBorder['g'],$darkBorder['b']); 78imageColorSet($image,$phpDarkBorderIndex,$darkBorder['r'],$darkBorder['g'],$darkBorder['b']); 79$phpLightBorderIndex = imageColorClosest($image,$existingLightBorder['r'],$existingLightBorder['g'],$existingLightBorder['b']); 80imageColorSet($image,$phpLightBorderIndex,$lightBorder['r'],$lightBorder['g'],$lightBorder['b']); 93function hex2int($hex) { 94 return array( 'r' => hexdec(substr($hex, 0, 2)), // 1st pair of digits 95 'g' => hexdec(substr($hex, 2, 2)), // 2nd pair 95 'g' => hexdec(substr($hex, 2, 2)), // 2nd pair 96 'b' => hexdec(substr($hex, 4, 2)) // 3rd pair 97 );chor.php https://github.com/mkweb/NabServ.git | PHP | 162 lines
1<?php 2namespace tests\pages; 66 67 if(hexdec($type) > 0) { 68 72 73 $data = hexdec(array_shift($hex)); 74 $block['data'] = $data; 78 $block['type'] = 'led'; 79 $block['wait'] = hexdec($wait); 80 82 83 $led = hexdec(array_shift($data)); 84 $block['led'] = $led; 93 $block['type'] = 'ear'; 94 $block['wait'] = hexdec($wait); 95class.phpdocpdf.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 353 lines
32 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL 33 * @version CVS: $Id: class.phpdocpdf.php,v 1.4 2006/04/30 22:18:14 cellog Exp $ 34 * @filesource 35 * @link http://www.phpdoc.org 36 * @link http://pear.php.net/PhpDocumentor 37 * @since 1.2 40/** ezPdf libraries */ 41include_once 'phpDocumentor/Converters/PDF/default/class.ezpdf.php'; 42include_once 'phpDocumentor/Converters/PDF/default/ParserPDF.inc'; 93 } 94 $red = hexdec($color[1]) / hexdec('FF'); 95 $green = hexdec($color[2]) / hexdec('FF'); 95 $green = hexdec($color[2]) / hexdec('FF'); 96 $blue = hexdec($color[3]) / hexdec('FF'); 97 return array('r' => $red, 'g' => $green, 'b' => $blue);lmbAbstractImageFilter.class.php https://github.com/syfisher/limb.git | PHP | 87 lines
1<?php 2/* 2/* 3 * Limb PHP Framework 4 * 9 10lmb_require('limb/imagekit/src/lmbAbstractImageContainer.class.php'); 11 15 * @package imagekit 16 * @version $Id: lmbAbstractImageFilter.class.php 8065 2010-01-20 04:18:19Z korchasa $ 17 */ 29 $length = strlen($hex); 30 $color['red'] = hexdec(substr($hex, $length - 6, 2)); 31 $color['green'] = hexdec(substr($hex, $length - 4, 2)); 31 $color['green'] = hexdec(substr($hex, $length - 4, 2)); 32 $color['blue'] = hexdec(substr($hex, $length - 2, 2)); 33 return $color;Image.class.php https://github.com/chuckmitchell/Squall.ca.git | PHP | 253 lines
1<?php 2 159 imagealphablending($this->resource, false); 160 $red = hexdec(substr($bgcolor, 0, 2)); 161 $green = hexdec(substr($bgcolor, 2, 2)); 161 $green = hexdec(substr($bgcolor, 2, 2)); 162 $blue = hexdec(substr($bgcolor, 4, 2)); 163 $alpha = (strlen($bgcolor)>6 ? ((255/hexdec(substr($bgcolor, 4, 2)))*127) : false);class.eloquaLookup.php https://github.com/j-lee/Eloqua-Lookup.git | PHP | 147 lines
1<?php 2/*************************************************************************************************** 80 foreach ($matches as $match) { 81 $value = preg_replace("#(\\\x[0-9A-F]{2})#e", "chr(hexdec('\\1'))", $match[3]); // converts utf-8 back to its printable character 82 $data[$match[1]] = $value;Request.php https://github.com/lox/facade.git | PHP | 192 lines
1<?php 2 52 53 /* (non-phpdoc) 54 * @see Facade_Request::setStream() 61 62 /* (non-phpdoc) 63 * @see Facade_Request::setStream() 70 71 /* (non-phpdoc) 72 * @see Facade_Request::setStream() 78 79 /* (non-phpdoc) 80 * @see Facade_Request::reset() 168 /** 169 * @see http://pear.php.net/package/Crypt_HMAC/ 170 */bootup.patchwork.php https://github.com/nicolas-grekas/Patchwork-sandbox.git | PHP | 154 lines
1<?php // vi: set fenc=utf-8 ts=4 sw=4 et: 2/* 14/**/$a = 0; 15/**/for ($b = 0; $b <= PATCHWORK_PATH_LEVEL; ++$b) $a += filemtime($patchwork_path[$b] . 'config.patchwork.php'); 16 79 $private = substr($a, 17, 1); 80 $maxage = hexdec(substr($a, 18, 8)); 81 101 102// PHP session mechanism overloading 103imagick.php https://github.com/joshuarubin/fuel_core.git | PHP | 249 lines
1<?php 2 3/** 4 * Fuel is a fast, lightweight, community driven PHP5 framework. 5 * 11 * @copyright 2010 - 2011 Fuel Development Team 12 * @link http://fuelphp.com 13 */ 234 { 235 $red = hexdec(substr($hex, 0, 2)); 236 $green = hexdec(substr($hex, 2, 2)); 236 $green = hexdec(substr($hex, 2, 2)); 237 $blue = hexdec(substr($hex, 4, 2)); 238 } 240 { 241 $red = hexdec(substr($hex, 0, 1).substr($hex, 0, 1)); 242 $green = hexdec(substr($hex, 1, 1).substr($hex, 1, 1));UrlPackage.php https://github.com/Exercise/symfony.git | PHP | 77 lines
1<?php 2 73 default: 74 return $this->baseUrls[fmod(hexdec(substr(md5($path), 0, 10)), $count)]; 75 }color.php https://github.com/kerenbe4/PoP-AS-Visualization.git | PHP | 171 lines
1<?php 2/* 57 { 58 $this->red = hexdec(substr($webf,0,2)); 59 $this->green = hexdec(substr($webf,2,2)); 59 $this->green = hexdec(substr($webf,2,2)); 60 $this->blue = hexdec(substr($webf,4,2)); 61 $this->Dec2Hex(); 129 foreach ($c as $z) { 130 $r = hexdec($x); 131 $g = hexdec($y); 131 $g = hexdec($y); 132 $b = hexdec($z); 133 $color = new Color($r,$g,$b);pma_gis_multilinestring.php https://bitbucket.org/pavolve/masterskayaludmila.git | PHP | 348 lines
1<?php 2/** 4 * 5 * @package PhpMyAdmin-GIS 6 */ 71 $black = imagecolorallocate($image, 0, 0, 0); 72 $red = hexdec(substr($line_color, 1, 2)); 73 $green = hexdec(substr($line_color, 3, 2)); 73 $green = hexdec(substr($line_color, 3, 2)); 74 $blue = hexdec(substr($line_color, 4, 2)); 75 $color = imagecolorallocate($image, $red, $green, $blue); 117 // allocate colors 118 $red = hexdec(substr($line_color, 1, 2)); 119 $green = hexdec(substr($line_color, 3, 2)); 119 $green = hexdec(substr($line_color, 3, 2)); 120 $blue = hexdec(substr($line_color, 4, 2)); 121 $line = array('width' => 1.5, 'color' => array($red, $green, $blue));WindConvert.php https://gitlab.com/wuhang2003/phpwind | PHP | 206 lines
1<?php 2/** 12 * @author Qiong Wu <papa0924@gmail.com> 2011-10-19 13 * @copyright ©2003-2103 phpwind.com 14 * @license http://www.windframework.com 14 * @license http://www.windframework.com 15 * @version $Id: WindConvert.php 3829 2012-11-19 11:13:22Z yishuo $ 16 * @package utility 77 $this->TableEncode[$this->EncodeLang][$h][$l] = $this->UNICODEtoUTF8( 78 hexdec(bin2hex(fread($this->TableHandle, 2)))); 79 }str.php https://github.com/joshuarubin/fuel_core.git | PHP | 256 lines
1<?php 2/** 2/** 3 * Fuel is a fast, lightweight, community driven PHP5 framework. 4 * 9 * @copyright 2010 - 2011 Fuel Development Team 10 * @link http://fuelphp.com 11 */ 17 * 18 * PHP needs to be compiled with --enable-mbstring 19 * or a fallback without encoding support is used 188 case 'distinct': 189 case 'hexdec': 190 switch ($type) 212 213 case 'hexdec': 214 $pool = '0123456789abcdef';Number.php https://github.com/albertobraschi/NFS.git | PHP | 420 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Number.php 12514 2008-11-10 16:30:24Z matthew $ 20 */ 24 */ 25#require_once 'Zend/Measure/Abstract.php'; 26#require_once 'Zend/Locale.php'; 157 if (!Zend_Locale::isLocale($locale, true, false)) { 158 #require_once 'Zend/Measure/Exception.php'; 159 throw new Zend_Measure_Exception("Language (" . (string) $locale . ") is unknown"); 171 if (isset($this->_units[$type]) === false) { 172 #require_once 'Zend/Measure/Exception.php'; 173 throw new Zend_Measure_Exception("Type ($type) is unknown"); 193 if (empty($this->_units[$type])) { 194 #require_once 'Zend/Measure/Exception.php'; 195 throw new Zend_Measure_Exception('unknown type of number:' . $type);PhpStringTokenParser.php https://gitlab.com/IR31121994/quizbd-master | PHP | 136 lines
1<?php 2 14/* 15 * The following is derived from code at http://github.com/nikic/PHP-Parser 16 * 49 50class PhpStringTokenParser 51{ 111 } elseif ('x' === $str[0] || 'X' === $str[0]) { 112 return \chr(hexdec($str)); 113 } else {generate_utf_confusables.php https://github.com/VSEphpbb/phpbb.git | PHP | 245 lines
1<?php 2/** 5* 6* @copyright (c) phpBB Limited <https://www.phpbb.com> 7* @license GNU General Public License, version 2 (GPL-2.0) 29 30define('IN_PHPBB', true); 31$phpbb_root_path = '../'; 31$phpbb_root_path = '../'; 32$phpEx = substr(strrchr(__FILE__, '.'), 1); 33 130 $num = ''; 131 $string = utf8_chr(hexdec((string)$value[1])); 132 for ($i = 0; $i < strlen($string); $i++) 166 167$fp = fopen($phpbb_root_path . 'includes/utf/data/confusables.' . $phpEx, 'wb'); 168fwrite($fp, '<?php return ' . my_var_export($uniarray) . ';');render_image.php https://github.com/mcr/racktables.git | PHP | 228 lines
1<?php 2 5try { 6require 'inc/init.php'; 7 62 return $colorcache[$hex]; 63 $r = hexdec ('0x' . substr ($hex, 0, 2)); 64 $g = hexdec ('0x' . substr ($hex, 2, 2)); 64 $g = hexdec ('0x' . substr ($hex, 2, 2)); 65 $b = hexdec ('0x' . substr ($hex, 4, 2)); 66 $c = imagecolorallocate ($image, $r, $g, $b);ctrl_usuario.control.op.php https://gitlab.com/talueses/SIPVE | PHP | 254 lines
1<?php 2/*******************************************************************************\ 37?> 38<?php 39define("CATEGORIA", "CTRLUSR"); //Categoria del modulo 39define("CATEGORIA", "CTRLUSR"); //Categoria del modulo 40require_once "ctrl_usuario.control.php";// Class CONTROL ControlCtrlUsuario() 41 94 // Comparacion de codigo identificador generado, convertido de hexadecimal a decimal 95 if (sprintf('%010d',hexdec($codigo_id)) != sprintf('%010d',$_REQUEST["codigo_id"])){ 96 $this->mensaje = "Existe un error de codificación en la tarjeta.";class_gd.php https://github.com/mydesignivan/guerraguerrero.git | PHP | 381 lines
1<?php 2 9 * @copyright 2010 KCFinder Project 10 * @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2 11 * @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2 282 list($r, $g, $b) = explode(" ", preg_replace($expr_hex1, "$1 $2 $3", $args[0])); 283 $r = hexdec($r); 284 $g = hexdec($g); 284 $g = hexdec($g); 285 $b = hexdec($b); 286 288 list($r, $g, $b) = explode(" ", preg_replace($expr_hex2, "$1$1 $2$2 $3$3", $args[0])); 289 $r = hexdec($r); 290 $g = hexdec($g); 290 $g = hexdec($g); 291 $b = hexdec($b); 292Image.php https://github.com/deadeyes/torrentflux.git | PHP | 494 lines
1<?php 2 119 /** 120 * check image support of PHP + GD 121 * 141 /** 142 * check image-type support of PHP + GD 143 * 168 if (preg_match('/[0-9a-fA-F]{6}/', $color)) { 169 $retVal['r'] = hexdec(substr($color, 0, 2)); 170 $retVal['g'] = hexdec(substr($color, 2, 2)); 170 $retVal['g'] = hexdec(substr($color, 2, 2)); 171 $retVal['b'] = hexdec(substr($color, 4, 2)); 172 } else {actions.class.php https://github.com/digibib/reaktorcms.git | PHP | 220 lines
1<?php 2 10 */ 11require_once(dirname(__FILE__).'/../lib/BasesfTransUnitActions.class.php'); 12 92 $r=''; 93 for ($a=0; $a<strlen($h); $a+=2) { $r.=chr(hexdec($h{$a}.$h{($a+1)})); } 94 return $r;makefont.php https://github.com/karthikprashanth/mayalabs.git | PHP | 400 lines
1<?php 2/******************************************************************************* 20 $e=preg_split('/[ \\t]+/',chop($l)); 21 $cc=hexdec(substr($e[0],1)); 22 $gn=$e[2]; 330 //Start generation 331 $s='<?php'."\n"; 332 $s.='$type=\''.$type."';\n"; 396 $s.="?>\n"; 397 SaveToFile($basename.'.php',$s); 398 echo 'Font definition file generated ('.$basename.'.php'.')<BR>';posts.php https://gitlab.com/mybbpl/merge-1.6-pl | PHP | 156 lines
1<?php 2/** 21 22class PHPBB2_Converter_Module_Posts extends Converter_Module_Posts { 23 50 51 // phpBB 2 values 52 $insert_data['import_pid'] = $data['post_id']; 54 55 // Check the last post for any NULL's, converted by phpBB's parser to a default topic 56 if($data['post_subject'] === 'NULL') 57 { 58 $data['post_subject'] = 'Welcome to phpBB 2'; 59 } 136 $hex_ip = explode('.', chunk_split($ip, 2, '.')); 137 return hexdec($hex_ip[0]). '.' . hexdec($hex_ip[1]) . '.' . hexdec($hex_ip[2]) . '.' . hexdec($hex_ip[3]); 138 }makefont.php https://gitlab.com/devdoblea/factutextil.local | PHP | 447 lines
1<?php 2/******************************************************************************* 9 10require('ttfparser.php'); 11 13{ 14 if(PHP_SAPI=='cli') 15 { 53 $e = explode(' ', rtrim($line)); 54 $c = hexdec(substr($e[0],1)); 55 $uv = hexdec(substr($e[1],2)); 352{ 353 $s = "<?php\n"; 354 $s .= '$type = \''.$type."';\n"; 430 if($argc==1) 431 die("Usage: php makefont.php fontfile [encoding] [embed] [subset]\n"); 432 $fontfile = $argv[1];Image.php https://github.com/andrew-kandels/PHPMapper.git | PHP | 262 lines
19 /** 20 * Creates a PHPMapper_Map class object. 21 * 83 84 return array(hexdec($r), hexdec($g), hexdec($b)); 85 } 130 * @param integer Width in pixels 131 * @return PHPMapper_Image 132 */ 139 } 140 else if ($width < PHPMapper::MIN_WIDTH) 141 { 245 { 246 throw new PHPMapper_Exception_BadColorValue( 247 "Alpha percentage should be 0 - 1, not $pct."Converter.php https://gitlab.com/Ltaimao/wecenter | PHP | 410 lines
1<?php 2/** 38 * 39 * @see Net_LDAP2_Util::asc2hex32() from Benedikt Hallinger <beni@php.net> 40 * @link http://pear.php.net/package/Net_LDAP2 40 * @link http://pear.php.net/package/Net_LDAP2 41 * @author Benedikt Hallinger <beni@php.net> 42 * 61 * 62 * @see Net_LDAP2_Util::hex2asc() from Benedikt Hallinger <beni@php.net>, 63 * heavily based on work from DavidSmith@byu.net 63 * heavily based on work from DavidSmith@byu.net 64 * @link http://pear.php.net/package/Net_LDAP2 65 * @author Benedikt Hallinger <beni@php.net>, heavily based on work from DavidSmith@byu.net 71 { 72 // Using a callback, since PHP 5.5 has deprecated the /e modifier in preg_replace. 73 $string = preg_replace_callback("/\\\([0-9A-Fa-f]{2})/", array('Zend_Ldap_Converter', '_charHex32ToAsc'), $string);makefont.php https://bitbucket.org/glaucomunsberg/kenobi.git | PHP | 373 lines
1<?php 2/******************************************************************************* 9 10require('ttfparser.php'); 11 13{ 14 if(PHP_SAPI=='cli') 15 { 53 $e = explode(' ', rtrim($line)); 54 $c = hexdec(substr($e[0],1)); 55 $uv = hexdec(substr($e[1],2)); 285{ 286 $s = "<?php\n"; 287 $s .= '$type = \''.$type."';\n"; 360 if($argc==1) 361 die("Usage: php makefont.php fontfile [enc] [embed]\n"); 362 $fontfile = $argv[1];Number.php https://github.com/bhaumik25/zend-framework.git | PHP | 391 lines
1<?php 2/** 25 */ 26require_once 'Zend/Measure/Abstract.php'; 27require_once 'Zend/Locale.php'; 150 if (!$this->_Locale = Zend_Locale::isLocale($locale, true)) { 151 require_once 'Zend/Measure/Exception.php'; 152 throw new Zend_Measure_Exception("Language ($locale) is unknown"); 161 if (!array_key_exists($type, $this->_UNITS)) { 162 require_once 'Zend/Measure/Exception.php'; 163 throw new Zend_Measure_Exception("Type ($type) is unknown"); 183 if (empty($this->_UNITS[$type])) { 184 require_once 'Zend/Measure/Exception.php'; 185 throw new Zend_Measure_Exception('unknown type of number:' . $type); 236 } catch (Exception $e) { 237 require_once 'Zend/Measure/Exception.php'; 238 throw new Zend_Measure_Exception($e->getMessage());index.php https://gitlab.com/ricardosanchez/prueba | PHP | 344 lines
100<!DOCTYPE html> 101<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>"> 102<head> 169 <li class="dropdown"> 170 <a class="<?php echo ($hidden ? ' disabled' : 'dropdown-toggle'); ?>" data-toggle="<?php echo ($hidden ? '' : 'dropdown'); ?>" <?php echo ($hidden ? '' : 'href="#"'); ?>><span class="icon-cog"></span> 171 <span class="caret"></span></a> 181 <li> 182 <a href="index.php?option=com_admin&task=profile.edit&id=<?php echo $user->id; ?>"><?php echo JText::_('TPL_ISIS_EDIT_ACCOUNT'); ?></a> 183 </li> 185 <li class=""> 186 <a href="<?php echo JRoute::_('index.php?option=com_login&task=logout&' . JSession::getFormToken() . '=1'); ?>"><?php echo JText::_('TPL_ISIS_LOGOUT'); ?></a> 187 </li> 191 </ul> 192 <a class="brand visible-desktop visible-tablet" href="<?php echo JUri::root(); ?>" title="<?php echo JText::sprintf('TPL_ISIS_PREVIEW', $sitename); ?>" target="_blank"><?php echo JHtml::_('string.truncate', $sitename, 14, false, false); ?> 193 <span class="icon-out-2 small"></span></a>Image.php https://github.com/wrobel/horde.git | PHP | 241 lines
1<?php 2/** 129 return array( 130 hexdec(substr($color, 0, 2)), 131 hexdec(substr($color, 2, 2)), 131 hexdec(substr($color, 2, 2)), 132 hexdec(substr($color, 4, 2)) 133 ); 144 { 145 require_once dirname(__FILE__) . '/Image/rgb.php'; 146 return isset($GLOBALS['horde_image_rgb_colors'][$colorname]) ? 159 { 160 require_once dirname(__FILE__) . '/Image/rgb.php'; 161 if (isset($GLOBALS['horde_image_rgb_colors'][$colorname])) {Protection.php https://gitlab.com/devdoblea/factutextil.local | PHP | 360 lines
1<?php 2 69 'Unable to set PDF file protection, CSPRNG Functions are not available. ' 70 . 'Use paragonie/random_compat polyfill or upgrade to PHP 7.' 71 ); 354 for ($i = 0; $i < $len; $i += 2) { 355 $s .= chr(hexdec($hs{$i} . $hs{($i + 1)})); 356 }Emitter.class.php https://github.com/thekid/xp-experiments.git | PHP | 200 lines
1<?php 2/* This class is part of the XP framework's experiments 121 $length= min(strspn($node, '0123456789abdefABCDEF', $i+ 2), 2); 122 $value.= chr(hexdec(substr($node, $i+ 2, $length))); 123 $i+= $length;