PageRenderTime 844ms queryFilters 0ms Sphinxql 725ms GetByIds 83ms meta 0ms repositoryFilters 7ms languageFilters 0ms sourceFilters 1ms

84,481 results for 'php chr repo:teplitsa/easy-digital-downloads' (844 ms)

Source

Language

Repository

PdfNFePHP.class.php https://github.com/trsanabio/nfephp.git | PHP | 856 lines
1<?php
2/**
2/**
3 * Este arquivo Ă© parte do projeto NFePHP - Nota Fiscal eletrĂ´nica em PHP.
4 *
24 * @package     NFePHP
25 * @name        PdfNFePHP.class.php
26 * @version     1.0.4
28 * @license     http://www.gnu.org/licenses/lgpl.html GNU/LGPL v.3
29 * @copyright   2009-2011 &copy; NFePHP
30 * @link        http://www.nfephp.org/
37 */
38require_once('FPDF/fpdf.php');
39
240       $check %= 103;
241       $crypt .= chr($check) . chr(106) . chr(107);
242       $i = (strlen($crypt) * 11) - 8;
import.php https://github.com/Chicago/metalicious.git | PHP | 444 lines
7    //converts smart quotes / dashes to normal quotes / dashes.
8    $search = array(chr(145), chr(146), chr(147), chr(148), chr(150), chr(151), chr(152));
9    $replace = array("'", "'", '"', '"', '-', '-', '-');
423            ?>
424            <a href="../database_info.php?database_id=<?php echo $database['Database_ID']; ?>"><i class="icon-th-large"></i> <?php echo $database['Database_Name']; ?></a> (database)<br />
425            <?php
428            ?>
429            <a href="../table_info.php?table_id=<?php echo $table['Table_ID']; ?>"><i class="icon-th"></i> <?php echo $table['Table_Name']; ?></a> (table)<br />
430            <?php
433            ?>
434            <a href="../variable_info.php?variable_id=<?php echo $variable['Variable_ID']; ?>"><i class="icon-asterisk"></i> <?php echo $variable['Variable_Name']; ?></a> (variable)<br />
435            <?php
442
443<?php include 'include/footer.php'; ?>
444
Ntriples.php https://github.com/andywer/easyrdf.git | PHP | 199 lines
1<?php
2
34 * @copyright  Copyright (c) 2009-2013 Nicholas J Humfrey
35 * @license    http://www.opensource.org/licenses/bsd-license.php
36 */
38/**
39 * A pure-php class to parse N-Triples with no dependancies.
40 *
42 * @copyright  Copyright (c) 2009-2013 Nicholas J Humfrey
43 * @license    http://www.opensource.org/licenses/bsd-license.php
44 */
60        $mappings = array(
61            't' => chr(0x09),
62            'b' => chr(0x08),
62            'b' => chr(0x08),
63            'n' => chr(0x0A),
64            'r' => chr(0x0D),
unicode.php https://github.com/dianaprajescu/joomla-framework.git | PHP | 266 lines
1<?php
2/**
8* the Initial Developer. All Rights Reserved.
9* Ported to PHP by Henri Sivonen (http://hsivonen.iki.fi)
10* Slight modifications to fit with phputf8 library by Harry Fuecks (hfuecks gmail com)
12* @see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/nsUnicodeToUTF8.cpp
13* @see http://hsivonen.iki.fi/php-utf8/
14* @package utf8
23* Returns false if the input string isn't a valid UTF-8 octet sequence
24* and raises a PHP error at level E_USER_WARNING
25* Note: this function has been modified slightly in this library to
30* @see utf8_from_unicode
31* @see http://hsivonen.iki.fi/php-utf8/
32* @package utf8
83                * (b) outside the Unicode range of 0-0x10FFFF.
84                * Rather than trying to resynchronize, we will carry on until the end
85                * of the sequence and let the later error handling code catch it.
app.function.php https://github.com/nigelbaor/TeamToy.git | PHP | 825 lines
1<?php
2if( !defined('SAE_TMP_PATH') )
333	require_once( AROOT . 'controller' . DS . 'api.class.php' );
334    require_once( AROOT . 'model' . DS . 'api.function.php' );
335    $GLOBALS['API_EMBED_MODE'] = 1;
511        if($_num>0 && $_num<160 ){
512                return chr($_num);
513        }elseif($_num<-20319 || $_num>-10247){
526        }elseif($_c < 0x800) { 
527                $_string .= chr(0xc0 | $_c>>6); 
528                $_string .= chr(0x80 | $_c & 0x3f); 
529        }elseif($_c < 0x10000){ 
530                $_string .= chr(0xe0 | $_c>>12); 
531                $_string .= chr(0x80 | $_c>>6 & 0x3f); 
783    {
784        include_once( AROOT . 'lib' . DS . 'phpmailer.class.php' );
785        $GLOBALS['LP_MAILER'] = new PHPMailer();
app.function.php https://github.com/cnhans/TeamToy.git | PHP | 787 lines
1<?php
2if( !defined('SAE_TMP_PATH') )
327	require_once( AROOT . 'controller' . DS . 'api.class.php' );
328    require_once( AROOT . 'model' . DS . 'api.function.php' );
329    $GLOBALS['API_EMBED_MODE'] = 1;
505        if($_num>0 && $_num<160 ){
506                return chr($_num);
507        }elseif($_num<-20319 || $_num>-10247){
520        }elseif($_c < 0x800) { 
521                $_string .= chr(0xc0 | $_c>>6); 
522                $_string .= chr(0x80 | $_c & 0x3f); 
523        }elseif($_c < 0x10000){ 
524                $_string .= chr(0xe0 | $_c>>12); 
525                $_string .= chr(0x80 | $_c>>6 & 0x3f); 
746    {
747        include_once( AROOT . 'lib' . DS . 'phpmailer.class.php' );
748        $GLOBALS['LP_MAILER'] = new PHPMailer();
app.function.php https://github.com/echan85/TeamToy.git | PHP | 782 lines
1<?php
2if( !defined('SAE_TMP_PATH') )
327	require_once( AROOT . 'controller' . DS . 'api.class.php' );
328    require_once( AROOT . 'model' . DS . 'api.function.php' );
329    $GLOBALS['API_EMBED_MODE'] = 1;
505        if($_num>0 && $_num<160 ){
506                return chr($_num);
507        }elseif($_num<-20319 || $_num>-10247){
520        }elseif($_c < 0x800) { 
521                $_string .= chr(0xc0 | $_c>>6); 
522                $_string .= chr(0x80 | $_c & 0x3f); 
523        }elseif($_c < 0x10000){ 
524                $_string .= chr(0xe0 | $_c>>12); 
525                $_string .= chr(0x80 | $_c>>6 & 0x3f); 
741    {
742        include_once( AROOT . 'lib' . DS . 'phpmailer.class.php' );
743        $GLOBALS['LP_MAILER'] = new PHPMailer();
markdownify.php https://github.com/Arantor/Elkarte.git | PHP | 1,494 lines
45 */
46require_once dirname(__FILE__) . '/parsehtml.php';
47
1338	 *
1339	 * @author derernst@gmx.ch <http://www.php.net/manual/en/function.html-entity-decode.php#68536>
1340	 * @author Milian Wolff <http://milianw.de>
1392	/**
1393	 * UTF-8 chr() which supports numeric entities
1394	 *
1394	 *
1395	 * @author grey - greywyvern - com <http://www.php.net/manual/en/function.chr.php#55978>
1396	 * @param array $matches
1424	 *
1425	 * @author dtorop 932 at hotmail dot com <http://www.php.net/manual/en/function.strlen.php#37975>
1426	 * @author Milian Wolff <http://milianw.de>
pudlExcel.php https://github.com/darkain/pudl.git | PHP | 213 lines
49		} else {
50			$cell = chr(64 + floor($key / 26)) . chr(65 + ($key % 26)) . $x;
51		}		
65			} else {
66				$cell = chr(64 + floor($key / 26)) . chr(65 + ($key % 26)) . $x;
67			}				
132	require_once('PHPExcel/Autoloader.php');
133	require_once('PHPExcel/PHPExcel.php');
134	require_once('PHPExcel/Writer/Excel2007.php');
171			} else {
172				$cell = chr(64 + floor($i / 26)) . chr(65 + ($i % 26)) . $row;
173			}
196		} else {
197			$cell = chr(64 + floor($i / 26)) . chr(65 + ($i % 26));
198		}
SSH1.php https://github.com/kea/phpseclib.git | PHP | 1,335 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
11 * <?php
12 *    include('Net/SSH1.php');
13 *
24 * <code>
25 * <?php
26 *    include('Net/SSH1.php');
853     *
854     * Will be called, automatically, if you're supporting just PHP5.  If you're supporting PHP4, you'll need to call
855     * disconnect().
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])];
1149        // ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-1/pkcs-1v2-1.pdf
1150        $temp = chr(0) . chr(2);
1151        $modulus = $key[1]->toBytes();
CJSON.php https://github.com/ktbartholomew/generator-craft.git | PHP | 710 lines
48* @license	 http://www.opensource.org/licenses/bsd-license.php
49* @link		http://pear.php.net/pepr/pepr-proposal-show.php?id=198
50*/
406								// single, escaped unicode character
407								$utf16 = chr(hexdec(substr($chrs, ($c+2), 2)))
408									   . chr(hexdec(substr($chrs, ($c+4), 2)));
585							for ($i = $top['where']; $i <= $c; ++$i)
586								$chrs = substr_replace($chrs, ' ', $i, 1);
587
611	 * @author Scott Michael Reynen <scott@randomchaos.com>
612	 * @link   http://www.randomchaos.com/document.php?source=php_and_unicode
613	 * @see	unicodeToUTF8()
649	 * @author Scott Michael Reynen <scott@randomchaos.com>
650	 * @link   http://www.randomchaos.com/document.php?source=php_and_unicode
651	 * @see	utf8ToUnicode()
TripleDES.php https://github.com/gyyinzjut/EduSoho.git | PHP | 691 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
12 * <code>
13 * <?php
14 *    include('Crypt/TripleDES.php');
46 * @package    Crypt_TripleDES
47 * @author     Jim Wigginton <terrafrost@php.net>
48 * @copyright  MMVII Jim Wigginton
49 * @license    http://www.gnu.org/licenses/lgpl.txt
50 * @version    $Id: TripleDES.php 21939 2012-12-17 07:13:16Z long.shi $
51 * @link       http://phpseclib.sourceforge.net
400
401        // we pad with chr(0) since that's what mcrypt_generic does.  to quote from http://php.net/function.mcrypt-generic :
402        // "The data is padded with "\0" to make sure the length of the data is n * blocksize."
463
464        // we pad with chr(0) since that's what mcrypt_generic does.  to quote from http://php.net/function.mcrypt-generic :
465        // "The data is padded with "\0" to make sure the length of the data is n * blocksize."
Header.php https://bitbucket.org/IrrVoi/dropbox.git | PHP | 283 lines
46 * @version   SVN: $Id: Header.php 198 2013-05-26 05:05:22Z mike.pultz $
47 * @link      http://pear.php.net/package/Net_DNS2
48 * @since     File available since Release 0.6.0
80 * @license  http://www.opensource.org/licenses/bsd-license.php  BSD License
81 * @link     http://pear.php.net/package/Net_DNS2
82 *
256        $data = pack('n', $this->id) . 
257            chr(
258                ($this->qr << 7) | ($this->opcode << 3) | 
264            chr($this->qdcount << 8) . chr($this->qdcount) .
265            chr($this->ancount << 8) . chr($this->ancount) . 
266            chr($this->nscount << 8) . chr($this->nscount) .
266            chr($this->nscount << 8) . chr($this->nscount) .
267            chr($this->arcount << 8) . chr($this->arcount);
268
ManageMaintenance.php https://github.com/dekoza/openshift-smf-2.0.7.git | PHP | 1,727 lines
1<?php
2
8 * @copyright 2011 Simple Machines
9 * @license http://www.simplemachines.org/about/smf/license.php BSD
10 *
301
302	require_once($sourcedir . '/RepairBoards.php');
303	RepairBoards();
711
712	// Store it in Settings.php too because it's needed before db connection.
713	require_once($sourcedir . '/Subs-Admin.php');
716	// The conversion might have messed up some serialized strings. Fix them!
717	require_once($sourcedir . '/Subs-Charset.php');
718	fix_serialized_columns();
783		$num = substr($string, 0, 1) === \'x\' ? hexdec(substr($string, 1)) : (int) $string;
784		return $num < 0x20 || $num > 0x10FFFF || ($num >= 0xD800 && $num <= 0xDFFF) ? \'\' : ($num < 0x80 ? \'&#\' . $num . \';\' : ($num < 0x800 ? chr(192 | $num >> 6) . chr(128 | $num & 63) : ($num < 0x10000 ? chr(224 | $num >> 12) . chr(128 | $num >> 6 & 63) . chr(128 | $num & 63) : chr(240 | $num >> 18) . chr(128 | $num >> 12 & 63) . chr(128 | $num >> 6 & 63) . chr(128 | $num & 63))));');
785
Subs-Members.php https://github.com/dekoza/openshift-smf-2.0.7.git | PHP | 1,392 lines
1<?php
2
8 * @copyright 2011 Simple Machines
9 * @license http://www.simplemachines.org/about/smf/license.php BSD
10 *
365	// Delete personal messages.
366	require_once($sourcedir . '/PersonalMessage.php');
367	deleteMessages(null, null, $users);
388	// Delete avatar.
389	require_once($sourcedir . '/ManageAttachments.php');
390	removeAttachments(array('id_member' => $users));
466	// We'll need some external functions.
467	require_once($sourcedir . '/Subs-Auth.php');
468	require_once($sourcedir . '/Subs-Post.php');
906		(empty($context['utf8']) ? 'return $num < 0x20 ? \'\' : ($num < 0x80 ? chr($num) : \'&#\' . $string . \';\');' : '
907		return $num < 0x20 || $num > 0x10FFFF || ($num >= 0xD800 && $num <= 0xDFFF) ? \'\' : ($num < 0x80 ? chr($num) : ($num < 0x800 ? chr(192 | $num >> 6) . chr(128 | $num & 63) : ($num < 0x10000 ? chr(224 | $num >> 12) . chr(128 | $num >> 6 & 63) . chr(128 | $num & 63) : chr(240 | $num >> 18) . chr(128 | $num >> 12 & 63) . chr(128 | $num >> 6 & 63) . chr(128 | $num & 63))));')
908	);
http.php https://github.com/abiggerhammer/pat-twitter.git | PHP | 2,122 lines
148
149	Function SetPHPError($error, &$php_error_message, $error_code = HTTP_CLIENT_ERROR_UNSPECIFIED_ERROR)
150	{
453						$user = '';
454						if(!fputs($this->connection, chr($version).chr($command).pack('nN', $host_port, ip2long($host_ip)).$user.Chr(0)))
455							$error = $this->SetDataAccessError($send_error);
480						$method = 0;
481						if(!fputs($this->connection, chr($version).chr($methods).chr($method)))
482							$error = $this->SetDataAccessError($send_error);
495								$address_type = 1;
496								if(!fputs($this->connection, chr($version).chr($command)."\x00".chr($address_type).pack('Nn', ip2long($host_ip), $host_port)))
497									$error = $this->SetDataAccessError($send_error);
2018			{
2019				$error = $this->SetPHPError('could not write to the temporary file to save the response', $php_errormsg, HTTP_CLIENT_ERROR_CANNOT_ACCESS_LOCAL_FILE);
2020				fclose($file);
http_class.php https://github.com/costinu/cms.git | PHP | 1,884 lines
142
143    public Function SetPHPError($error, &$php_error_message, $error_code = HTTP_CLIENT_ERROR_UNSPECIFIED_ERROR)
144    {
412                        $user = '';
413                        if(!fputs($this->connection, chr($version).chr($command).pack('nN', $host_port, ip2long($host_ip)).$user.Chr(0)))
414                            $error = $this->SetDataAccessError($send_error);
437                        $method = 0;
438                        if(!fputs($this->connection, chr($version).chr($methods).chr($method)))
439                            $error = $this->SetDataAccessError($send_error);
450                                $address_type = 1;
451                                if(!fputs($this->connection, chr($version).chr($command)."\x00".chr($address_type).pack('Nn', ip2long($host_ip), $host_port)))
452                                    $error = $this->SetDataAccessError($send_error);
658                    else {
659                        $version=explode(".",function_exists("phpversion") ? phpversion() : "3.0.7");
660                        $php_version=intval($version[0])*1000000+intval($version[1])*1000+intval($version[2]);
global.func.php https://github.com/sinfey69/cms.git | PHP | 1,701 lines
116function trim_unsafe_control_chars($str) {
117	$rule = '/[' . chr ( 1 ) . '-' . chr ( 8 ) . chr ( 11 ) . '-' . chr ( 12 ) . chr ( 14 ) . '-' . chr ( 31 ) . ']*/';
118	return str_replace ( chr ( 0 ), '', preg_replace ( $rule, '', $str ) );
166	$sys_protocal = isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443' ? 'https://' : 'http://';
167	$php_self = $_SERVER['PHP_SELF'] ? safe_replace($_SERVER['PHP_SELF']) : safe_replace($_SERVER['SCRIPT_NAME']);
168	$path_info = isset($_SERVER['PATH_INFO']) ? safe_replace($_SERVER['PATH_INFO']) : '';
906	define('APPID', pc_base::load_config('system', 'phpsso_appid'));
907	$phpsso_api_url = pc_base::load_config('system', 'phpsso_api_url');
908	$phpsso_auth_key = pc_base::load_config('system', 'phpsso_auth_key');
908	$phpsso_auth_key = pc_base::load_config('system', 'phpsso_auth_key');
909	$client = new client($phpsso_api_url, $phpsso_auth_key);
910	$avatar = $client->ps_getavatar($uid);
1603	$template_cache = pc_base::load_sys_class('template_cache');
1604	$compiledtplfile = PHPCMS_PATH.'caches'.DIRECTORY_SEPARATOR.'caches_template'.DIRECTORY_SEPARATOR.$style.DIRECTORY_SEPARATOR.'plugin'.DIRECTORY_SEPARATOR.$plugin.DIRECTORY_SEPARATOR.$template.'.php';
1605
global.func.php https://github.com/sinfey69/cms.git | PHP | 818 lines
73function trim_unsafe_control_chars($str) {
74	$rule = '/[' . chr ( 1 ) . '-' . chr ( 8 ) . chr ( 11 ) . '-' . chr ( 12 ) . chr ( 14 ) . '-' . chr ( 31 ) . ']*/';
75	return str_replace ( chr ( 0 ), '', preg_replace ( $rule, '', $str ) );
117	$sys_protocal = isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443' ? 'https://' : 'http://';
118	$php_self = $_SERVER['PHP_SELF'] ? safe_replace($_SERVER['PHP_SELF']) : safe_replace($_SERVER['SCRIPT_NAME']);
119	$path_info = isset($_SERVER['PATH_INFO']) ? safe_replace($_SERVER['PATH_INFO']) : '';
314		if(defined('IN_ADMIN')) require_once PC_PATH.'languages'.DIRECTORY_SEPARATOR.$lang.DIRECTORY_SEPARATOR.'system_menu.lang.php';
315		if(file_exists(PC_PATH.'languages'.DIRECTORY_SEPARATOR.$lang.DIRECTORY_SEPARATOR.ROUTE_M.'.lang.php')) require PC_PATH.'languages'.DIRECTORY_SEPARATOR.$lang.DIRECTORY_SEPARATOR.ROUTE_M.'.lang.php';
316		if(!empty($modules)) {
346	
347	$compiledtplfile = PHPCMS_PATH.'caches'.DIRECTORY_SEPARATOR.'caches_template'.DIRECTORY_SEPARATOR.$style.DIRECTORY_SEPARATOR.$module.DIRECTORY_SEPARATOR.$template.'.php';
348	
353	} else {
354		$compiledtplfile = PHPCMS_PATH.'caches'.DIRECTORY_SEPARATOR.'caches_template'.DIRECTORY_SEPARATOR.$module.DIRECTORY_SEPARATOR.$template.'.default.php';
355		if(file_exists(PC_PATH.'templates'.DIRECTORY_SEPARATOR.'default'.DIRECTORY_SEPARATOR.$module.DIRECTORY_SEPARATOR.$template.'.html') && filemtime(PC_PATH.'templates'.DIRECTORY_SEPARATOR.'default'.DIRECTORY_SEPARATOR.$module.DIRECTORY_SEPARATOR.$template.'.html') > filemtime($compiledtplfile)) {
mbstring.php https://github.com/redpinata-dev/contao.git | PHP | 583 lines
1<?php
2
60 */
61function utf8_chr($dec)
62{
63	if ($dec < 128)
64		return chr($dec);
65
66    if ($dec < 2048)
67    	return chr(($dec >> 6) + 192) . chr(($dec & 63) + 128);
68
69    if ($dec < 65536)
70    	return chr(($dec >> 12) + 224) . chr((($dec >> 6) & 63) + 128) . chr(($dec & 63) + 128);
71
72    if ($dec < 2097152)
73    	return chr(($dec >> 18) + 240) . chr((($dec >> 12) & 63) + 128) . chr((($dec >> 6) & 63) + 128) . chr(($dec & 63) + 128);
74
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21