PageRenderTime 186ms queryFilters 0ms Sphinxql 36ms app.CodeModel.GetByIds 94ms findMatchingLines 28ms GetByIds 122ms meta 0ms repositoryFilters 10ms languageFilters 5ms sourceFilters 4ms

21,207 results for 'php chr repo:yourilima/yii-bootstrap' (186 ms)

Source

Language

Repository

textMateStyler.js https://github.com/tadpolefordbtools/TadpoleForDBTools.git | JavaScript | 1,323 lines
142			for (var i=0; i < len; ) {
143				var chr = str[i];
144				if (!insideCharacterClass && chr === "#") {
145					// skip to eol
146					while (i < len && chr !== "\r" && chr !== "\n") {
147						chr = str[++i];
416 * For example, <pre>.keyword { font-color: blue; }</pre> colors all keywords blue, while
417 * <pre>.keyword-control-php { font-weight: bold; }</pre> bolds only PHP control keywords.
418 *
589			}
590			MatchRule.prototype.valueOf = function() { return this.matchRegex; };
591			return MatchRule;
998				}
999				if (subrule && matchRulesOnly && !(subrule.matchRegex)) {
1000					continue;
compat-json.php https://github.com/wp-plugins/duoshuo.git | PHP | 900 lines
55 * @license		http://www.opensource.org/licenses/bsd-license.php
56 * @link		http://pear.php.net/pepr/pepr-proposal-show.php?id=198
57 */
574					$utf8 = '';
575					$strlen_chrs = strlen($chrs);
576
750
751						} elseif ((($chrs[$c] == '"') || ($chrs[$c] == "'")) && ($top['what'] != SERVICES_JSON_IN_STR)) {
752							// found a quote, and we are not inside a string
757								($top['what'] == SERVICES_JSON_IN_STR) &&
758								((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) {
759							// found a quote, we're in a string, and it's not escaped
799							for ($i = $top['where']; $i <= $c; ++$i)
800								$chrs = substr_replace($chrs, ' ', $i, 1);
801
mg_utils.js https://github.com/gengo/mygengo_node.git | JavaScript | 242 lines
10//an alias of String.fromCharCode
11function chr(code)
12{
21	if (code < 128) return chr(code);
22	if (code < 2048) return chr(192+(code>>6)) + chr(128+(code&63));
23	if (code < 65536) return chr(224+(code>>12)) + chr(128+((code>>6)&63)) + chr(128+(code&63));
23	if (code < 65536) return chr(224+(code>>12)) + chr(128+((code>>6)&63)) + chr(128+(code&63));
24	if (code < 2097152) return chr(240+(code>>18)) + chr(128+((code>>12)&63)) + chr(128+((code>>6)&63)) + chr(128+(code&63));
25}
166    // BEGIN REDUNDANT
167    this.php_js = this.php_js || {};
168    this.php_js.ini = this.php_js.ini || {};
170
171    strictForIn = this.php_js.ini['phpjs.strictForIn'] && this.php_js.ini['phpjs.strictForIn'].local_value && 
172                    this.php_js.ini['phpjs.strictForIn'].local_value !== 'off';
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."
class.graphic.inc https://bitbucket.org/meerdevelopersoffice/bolivia.git | PHP | 1,308 lines
1108    utf8_chr(0x0646) => array (utf8_chr(0xfee6), utf8_chr(0xfee8), utf8_chr(0xfee7)),
1109    utf8_chr(0x0648) => array (utf8_chr(0xfeee), utf8_chr(0xfeee), utf8_chr(0xfeed)),
1110    utf8_chr(0x06cc) => array (utf8_chr(0xfbfd), utf8_chr(0xfbff), utf8_chr(0xfbfe)),
1129global $mp_chars;
1130$mp_chars = array (utf8_chr(0x0622), utf8_chr(0x0627), utf8_chr(0x062f), utf8_chr(0x0630), utf8_chr(0x0631), utf8_chr(0x0632), 
1131	utf8_chr(0x0698), utf8_chr(0x0648), utf8_chr(0x0623), utf8_chr(0x0625), utf8_chr(0x0624));
1133global $ignorelist;
1134$ignorelist = array (utf8_chr(0x0000), utf8_chr(0x064c), utf8_chr(0x064d), utf8_chr(0x064b), utf8_chr(0x064f), utf8_chr(0x0650), 
1135	utf8_chr(0x064e), utf8_chr(0x0651), utf8_chr(0x0653), utf8_chr(0x0670), utf8_chr(0x0654), utf8_chr(0xfe76), utf8_chr(0xfe7a), 
1135	utf8_chr(0x064e), utf8_chr(0x0651), utf8_chr(0x0653), utf8_chr(0x0670), utf8_chr(0x0654), utf8_chr(0xfe76), utf8_chr(0xfe7a), 
1136	utf8_chr(0xfe78), utf8_chr(0xfe7c), utf8_chr(0xfe7e), utf8_chr(0xfe74), utf8_chr(0xfe70), utf8_chr(0xfc5e), utf8_chr(0xfc5f), 
1137	utf8_chr(0xfc60), utf8_chr(0xfc61), utf8_chr(0xfc62), utf8_chr(0xfc63));
1229				$number = array (utf8_chr(0x0660), utf8_chr(0x0661), utf8_chr(0x0662), 
1230					utf8_chr(0x0663), utf8_chr(0x0664), utf8_chr(0x0665), utf8_chr(0x0666), 
1231					utf8_chr(0x0667), utf8_chr(0x0668), utf8_chr(0x0669), utf8_chr(0x06f4), 
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
TripleDES.php https://github.com/DaveBenNoah/PrestaShop-modules.git | PHP | 1,062 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
8 *
9 * PHP versions 4 and 5
10 *
12 * <code>
13 * <?php
14 *    include('Crypt/TripleDES.php');
49 * @package    Crypt_TripleDES
50 * @author     Jim Wigginton <terrafrost@php.net>
51 * @copyright  MMVII Jim Wigginton
52 * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
53 * @version    $Id: TripleDES.php,v 1.13 2010/02/26 03:40:25 terrafrost Exp $
54 * @link       http://phpseclib.sourceforge.net
697        if ($this->paddable) {
698            // we pad with chr(0) since that's what mcrypt_generic does.  to quote from http://php.net/function.mcrypt-generic :
699            // "The data is padded with "\0" to make sure the length of the data is n * blocksize."
tbszip.php https://github.com/ZodiackO/laravel-exam.git | PHP | 1,004 lines
1<?php
2
34		$this->ArchIsNew = true;
35		$bin = 'PK'.chr(05).chr(06).str_repeat(chr(0), 18);
36		$this->CdEndPos = strlen($bin) - 4;
95	function CentralDirRead() {
96		$cd_info = 'PK'.chr(05).chr(06); // signature of the Central Directory
97		$cd_pos = -22;
180		if ($this->DisplayError) {
181			if (PHP_SAPI==='cli') {
182				echo get_class($this).' ERROR with the zip archive: '.$Msg."\r\n";
841		// Header for file in the data section 
842		$b = 'PK'.chr(03).chr(04).str_repeat(' ',26); // signature
843		$this->_PutDec($b,20,4,2); //vers = 20
861		// Information for file in the Central Directory
862		$b = 'PK'.chr(01).chr(02).str_repeat(' ',42); // signature
863		$this->_PutDec($b,20,4,2);  // vers_used = 20
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
JSON.php https://github.com/aet2505/osTicket-1.8.git | PHP | 806 lines
54 * @license     http://www.opensource.org/licenses/bsd-license.php
55 * @link        http://pear.php.net/pepr/pepr-proposal-show.php?id=198
56 */
516                    $utf8 = '';
517                    $strlen_chrs = strlen($chrs);
518
648                        $top = end($stk);
649                        $substr_chrs_c_2 = substr($chrs, $c, 2);
650
699                                 ($top['what'] == SERVICES_JSON_IN_STR) &&
700                                 ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) {
701                            // found a quote, we're in a string, and it's not escaped
741                            for ($i = $top['where']; $i <= $c; ++$i)
742                                $chrs = substr_replace($chrs, ' ', $i, 1);
743
Json.php https://github.com/zihuxinyu/typecho.git | PHP | 546 lines
304                    $utf8 = '';
305                    $strlen_chrs = strlen($chrs);
306
417
418                        if (($c == $strlen_chrs) || (($chrs {$c} == ',') && ($top['what'] == self::SERVICES_JSON_SLICE))) {
419                            $slice = substr($chrs, $top['where'], ($c - $top['where']));
439
440                        } elseif ((($chrs {$c} == '"') || ($chrs{$c} == "'")) && ($top['what'] != self::SERVICES_JSON_IN_STR)) {
441                            array_push($stk, array('what' => self::SERVICES_JSON_IN_STR, 'where' => $c, 'delim' => $chrs{$c}));
444                                 ($top['what'] == self::SERVICES_JSON_IN_STR) &&
445                                 ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) {
446                            array_pop($stk);
465                            for ($i = $top['where']; $i <= $c; ++$i)
466                                $chrs = substr_replace($chrs, ' ', $i, 1);
467                        }
tinyDoc.class.php https://github.com/aInternational/kimai.git | PHP | 1,286 lines
1<?php
2/*
167      case 'pclzip':
168        require_once('pclzip.lib.php');
169        $zip = new PclZip($this->getPathname());
284      case 'pclzip':
285        require_once('pclzip.lib.php');
286        // save the merged result
382        // work-around for EURO caracter
383        $encodeData = str_replace(chr(0xC2).chr(0x80) , chr(0xE2).chr(0x82).chr(0xAC),  $encodeData);
384        break;
394        // work-around for EURO caracter
395        $encodeData = str_replace(chr(0xC2).chr(0x80) , chr(0xE2).chr(0x82).chr(0xAC),  $encodeData);
396        break;
988    {
989      throw new tinyDocException('Zip extension not loaded - check your php settings, PHP 5.2 minimum with zip extension is required');
990    }
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)) {
importer_variantvarer.php https://github.com/nielsrune/saldi.git | PHP | 590 lines
1<?php
2// ------systemdata/importer_variantvarer.php---lap 3.1.3--2013-04-18--------
29
30include("../includes/connect.php");
31include("../includes/online.php");
31include("../includes/online.php");
32include("../includes/std_func.php");
33
38print "<table width=\"100%\" align=\"center\" border=\"0\" cellspacing=\"2\" cellpadding=\"0\"><tbody>\n";
39if ($popup) print "<td width=\"10%\" $top_bund><a href=../includes/luk.php accesskey=L>Luk</a></td>\n"; 
40else print "<td width=\"10%\" $top_bund><a href=diverse.php?sektion=div_io accesskey=L>Luk</a></td>\n";
76
77print "<form enctype=\"multipart/form-data\" action=\"importer_variantvarer.php\" method=\"POST\">\n";
78print "<tr><td width=100% align=center><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tbody>\n";
159}
160$feltnavne.=chr(9)."salgspris".chr(9)."kostpris".chr(9)."vejl.pris";
161$felt_navn=explode(chr(9),$feltnavne);
std_func.php https://github.com/nielsrune/saldi.git | PHP | 538 lines
429			$message=$db." | Ubalance i regnskab: kr: $diff";
430			$headers = 'From: fejl@saldi.dk'."\r\n".'Reply-To: fejl@saldi.dk'."\r\n".'X-Mailer: PHP/' . phpversion();
431			mail('fejl@saldi.dk', 'Ubalance i regnskab:'. $db, $message, $headers);
507		if ($db_encode=='UTF8') {
508			$string=str_replace(chr(195).chr(134),chr(195).chr(166),$string);
509			$string=str_replace(chr(195).chr(152),chr(195).chr(184),$string);
509			$string=str_replace(chr(195).chr(152),chr(195).chr(184),$string);
510			$string=str_replace(chr(195).chr(133),chr(195).chr(165),$string);
511		} else {
522		if ($db_encode=='UTF8') {
523			$string=str_replace(chr(195).chr(166),chr(195).chr(134),$string);
524			$string=str_replace(chr(195).chr(184),chr(195).chr(152),$string);
524			$string=str_replace(chr(195).chr(184),chr(195).chr(152),$string);
525			$string=str_replace(chr(195).chr(165),chr(195).chr(133),$string);
526		} else {
pos_ordre.php https://github.com/nielsrune/saldi.git | PHP | 1,576 lines
1<?php
2// ------------- debitor/pos_ordre.php ---------- lap 3.2.3----2013.05.07-------
39include("../includes/connect.php");
40include("../includes/online.php");
41include("../includes/std_func.php");
41include("../includes/std_func.php");
42include("../includes/ordrefunc.php");
43
55if (!$returside) {
56	if ($popup) $returside="../includes/luk.php";
57	else $returside="../index/menu.php";
670			if ($fokus!="pris_ny" && $fokus!="rabat_ny") $fokus="antal_ny";
671		} else return ("fejl".chr(9)."".chr(9)."Varenr: $varenr_ny eksisterer ikke");
672		if ($variant_type) {
762	}
763	return ($varenr_ny.chr(9).$pris_ny.chr(9).$status);
764}
application.php https://github.com/dprotopopov/tritumana.git | PHP | 882 lines
1<?php
2//////////////////////////////////////////////////////////////////////////////
5/** Include PHPExcel */
6require_once dirname(__FILE__) . '/bower_components/PHPExcel/Classes/PHPExcel.php';
7
8require_once( dirname(__FILE__) . '/defines.php' );
9require_once( dirname(__FILE__) . '/functions.php' );
10require_once( dirname(__FILE__) . '/configuration.php' );
10require_once( dirname(__FILE__) . '/configuration.php' );
11require_once( dirname(__FILE__) . '/database.php' );
12require_once( dirname(__FILE__) . '/insales.php' );
698		//add BOM to fix UTF-8 in Excel
699		fputs($file, $bom =( chr(0xEF) . chr(0xBB) . chr(0xBF) ));
700		// The fputcsv() function formats a line as CSV and writes it to an open file.
805		//add BOM to fix UTF-8 in Excel
806		fputs($file, $bom =( chr(0xEF) . chr(0xBB) . chr(0xBF) ));
807		// The fputcsv() function formats a line as CSV and writes it to an open file.
JsHttpRequest.php https://bitbucket.org/klunwebale/codeigniter-rest-for-frontaccounting-erp | PHP | 548 lines
1<?php
2/**
59     * where <id> is a request ID, <loader> is a loader name, <sid> - a session ID (if present), 
60     * PHPSESSID - session parameter name (by default = "PHPSESSID").
61     * 
108            $file = $line = null;
109            $headersSent = version_compare(PHP_VERSION, "4.3.0") < 0? headers_sent() : headers_sent($file, $line);
110            if ($headersSent) {
193    /**
194     * Convert a PHP scalar, array or hash to JS scalar/array/hash. This function is 
195     * an analog of json_encode(), but it can work with a non-UTF8 input and does not 
211            // All scalars are converted to strings to avoid indeterminism.
212            // PHP's "1" and 1 are equal for all PHP operators, but 
213            // JS's "1" and 1 are not. So if we pass "1" or 1 from the PHP backend,
236            foreach ($a as $k => $v) {
237                $result[] = $this->php2js($k) . ': ' . $this->php2js($v);
238            }
wimpy.php https://github.com/noonchild/rsa.git | PHP | 1,020 lines
1<?php
2if(!@session_id()){
24//
25// Upload wimpy.php and wimpy.swf to the folder that
26// contains your mp3's.
31$myWimpySWFfilename = "wimpy.swf";
32$wimpy_auth = "wimpy_auth.php";
33$media_types = "xml,mp3,m3u,pls";
40//
41// Setting "blockPHPinfo" this value to 'Yes' will prevent anyone
42// to view your phpinfo() page by adding the correct ?request to the URL.
42// to view your phpinfo() page by adding the correct ?request to the URL.
43// viewing the PHP info is only used for troubleshooting first installs.
44$blockPHPinfo = "yes";
61$v103 = false;
62strstr( PHP_OS, "WIN") ? $v81 = "\\" : $v81 = "/";
63strstr( PHP_OS, "WIN") ? $v67 = "win" : $v67 = "unix";
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21