PageRenderTime 2177ms queryFilters 1ms Sphinxql 468ms GetByIds 1136ms meta 0ms repositoryFilters 264ms languageFilters 3ms sourceFilters 94ms

56,310 results for 'php chr repo:yourilima/yii-bootstrap' (2177 ms)

Source

Language

Repository

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
CJSON.php https://github.com/yiiexperts/yiiexperts.github.io.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/cuijinquan/nextwind.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."
exporter_variantvarer.php https://github.com/nielsrune/saldi.git | PHP | 146 lines
1<?php
2// ---------/systemdata/exporter_variantvarer.php---lap 3.4.1--2014-05-26------------------------
33include("../includes/connect.php");
34include("../includes/online.php");
35include("../includes/std_func.php");
36
37$returside="../diverse.php";
38
77else $fp=fopen($filnavn,"a");
78$overskrift="varenr".chr(9)."beskrivelse".chr(9)."stregkode".chr(9)."kostpris".chr(9)."salgspris".chr(9)."vejl.pris";
79for ($x=0;$x<count($varianter_id);$x++) {
79for ($x=0;$x<count($varianter_id);$x++) {
80	$overskrift.=chr(9).$varianter_beskrivelse[$x];
81}
96#			$variant_lager=$r['lager'];
97			$linje='"'.$varenr.'"'.chr(9).'"'.$beskrivelse.'"'.chr(9).'"'.$variant_stregkode.'"'.chr(9).dkdecimal($r['variant_kostpris']).chr(9).dkdecimal($r['variant_salgspris']).chr(9).dkdecimal($r['variant_vejlpris']);
98			for ($x=0;$x<count($varianter_id);$x++) {
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);
docubizzexport.php https://github.com/nielsrune/saldi.git | PHP | 127 lines
51		else $EUmoms="N";
52		fwrite ($fp, "$r[kontonr]".chr(9)."$r[firmanavn]".chr(9)."".chr(9)."$cvrnr".chr(9)."$aktiv".chr(9)."$r[betalingsbet] $r[betalingsdage]".chr(9)."$r[addr1]".chr(9)."$r[addr2]".chr(9)."$r[postnr]".chr(9)."$r[bynavn]".chr(9)."$r[land]".chr(9)."$r[tlf]".chr(9)."$r[web]".chr(9)."$r[email]".chr(9)."$r[valuta]".chr(9)."$spćrret".chr(9)."$EUmoms\n");
53	}
61	while ($r = db_fetch_array($q)){
62		fwrite ($fp, "$r[kodenr]".chr(9)."$r[beskrivelse]".chr(9)."J".chr(9)."".chr(9)."\n");
63	}
74		else $aktiv='J';
75		fwrite ($fp, "$r[kontonr]".chr(9)."$r[beskrivelse]".chr(9)."$aktiv".chr(9)."".chr(9)."$r[genvej]".chr(9)."$r[moms]\n");
76	}
87		else $aktiv="J";
88		fwrite ($fp, "$r[initialer]".chr(9)."$r[navn]".chr(9)."$aktiv\n");
89	}
96	while ($r = db_fetch_array($q)){
97		fwrite ($fp, "$r[kodenr]".chr(9)."$r[beskrivelse]".chr(9)."J\n");
98	}
ConvertCharset.class.php https://github.com/nielsrune/saldi.git | PHP | 603 lines
24 * displayed correctly.
25 * If you want to see what I mean, go to demo.php and demo1.php
26 * 
30 * For good understanding this class you shouls read all this stuff first :) but if you are
31 * in a hurry just start the demo.php and see what's inside.
32 * 1. That I'm not good in english at 03:45 :) - so forgive me all mistakes
33 * 2. This class is a BETA version because I haven't tested it enough
34 * 3. Feel free to contact me with questions, bug reports and mistakes in PHP and this documentation (email below)
35 * 
272		if($UtfCharInDec<128) $OutputChar .= chr($UtfCharInDec);
273    else if($UtfCharInDec<2048)$OutputChar .= chr(($UtfCharInDec>>6)+192).chr(($UtfCharInDec&63)+128);
274    else if($UtfCharInDec<65536)$OutputChar .= chr(($UtfCharInDec>>12)+224).chr((($UtfCharInDec>>6)&63)+128).chr(($UtfCharInDec&63)+128);
274    else if($UtfCharInDec<65536)$OutputChar .= chr(($UtfCharInDec>>12)+224).chr((($UtfCharInDec>>6)&63)+128).chr(($UtfCharInDec&63)+128);
275    else if($UtfCharInDec<2097152)$OutputChar .= chr($UtfCharInDec>>18+240).chr((($UtfCharInDec>>12)&63)+128).chr(($UtfCharInDec>>6)&63+128). chr($UtfCharInDec&63+128);
276	return $OutputChar;
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}
singleupdate.php https://github.com/nielsrune/saldi.git | PHP | 61 lines
1<?php
2// #----------------- soapserver/singleupdate.php -----ver 3.2.4---- 2011.10.25 ----------
27
28	list($s_id,$tmp)=explode(chr(9),$string);
29	if (!$s_id) return('1'.chr(9)."Missing session ID");
29	if (!$s_id) return('1'.chr(9)."Missing session ID");
30#	include("../includes/select.php");
31	include ("../includes/connect.php");
31	include ("../includes/connect.php");
32	include ("../includes/online.php");
33
36	$singleupdate=str_replace($s_id,"",$string);
37	$singleupdate=str_replace(chr(9),"",$singleupdate);
38	$singleupdate=str_replace(chr(10),"",$singleupdate);
38	$singleupdate=str_replace(chr(10),"",$singleupdate);
39	$singleupdate=str_replace(chr(13),"",$singleupdate);
40#	$singleupdate=str_replace(" ","",$singleupdate);
getid3.putid3.php http://nukeviet-music.googlecode.com/svn/trunk/ | PHP | 1,647 lines
14		// %abcd0000
15		$flag .= Bool2IntString($Unsynchronisation); // a - Unsynchronisation
16		$flag .= Bool2IntString($ExtendedHeader);    // b - Extended header
21		// %abc00000
22		$flag .= Bool2IntString($Unsynchronisation); // a - Unsynchronisation
23		$flag .= Bool2IntString($ExtendedHeader);    // b - Extended header
52		$flag2 .= Bool2IntString($Encryption);          // m - Encryption (TRUE == encrypted)
53		$flag2 .= Bool2IntString($Unsynchronisation);   // n - Unsynchronisation (TRUE == unsynchronised)
54		$flag2 .= Bool2IntString($DataLengthIndicator); // p - Data length indicator (TRUE == data length indicator added)
166				} else {
167					$framedata .= str_replace(chr(0), '', $frame_data['ownerid']).chr(0);
168					$framedata .= substr($frame_data['data'], 0, 64); // max 64 bytes - truncate anything longer
853				// The private data      <binary data>
854				$framedata .= str_replace(chr(0), '', $frame_data['ownerid']).chr(0);
855				$framedata .= $frame_data['data'];
demo.mp3header.php https://bitbucket.org/chamilo/chamilo/ | PHP | 2,890 lines
552	function DeUnSynchronise($data) {
553		return str_replace(chr(0xFF).chr(0x00), chr(0xFF), $data);
554	}
570
571		$data = str_replace(chr(0xFF).chr(0x00), chr(0xFF).chr(0x00).chr(0x00), $data);
572		$unsyncheddata = '';
697				$asciidata = $rawdata;
698				if (substr($asciidata, strlen($asciidata) - 2, 2) == chr(0).chr(0)) {
699					$asciidata = substr($asciidata, 0, strlen($asciidata) - 2); // remove terminator, only if present (it should be, but...)
716				$asciidata = $rawdata;
717				if (substr($asciidata, strlen($asciidata) - 2, 2) == chr(0).chr(0)) {
718					$asciidata = substr($asciidata, 0, strlen($asciidata) - 2); // remove terminator, only if present (it should be, but...)
939	function utf8_decode($utf8text) {
940		// http://www.php.net/manual/en/function.utf8-encode.php
941		// bytes  bits  representation
demo.mp3header.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 3,672 lines
743    {
744        return str_replace(chr(0xFF) . chr(0x00), chr(0xFF), $data);
745    }
765
766        $data = str_replace(chr(0xFF) . chr(0x00), chr(0xFF) . chr(0x00) . chr(0x00), $data);
767        $unsyncheddata = '';
938                $asciidata = $rawdata;
939                if (substr($asciidata, strlen($asciidata) - 2, 2) == chr(0) . chr(0))
940                {
962                $asciidata = $rawdata;
963                if (substr($asciidata, strlen($asciidata) - 2, 2) == chr(0) . chr(0))
964                {
1244    {
1245        // http://www.php.net/manual/en/function.utf8-encode.php
1246        // bytes  bits  representation
reinstall.php http://litepublisher.googlecode.com/svn/trunk/ | PHP | 933 lines
225        $this->tar_file = $s;
226        if($this->tar_file[0] == chr(31) && $this->tar_file[1] == chr(139) && $this->tar_file[2] == chr(8)) {
227            $this->isGzipped = TRUE;
257                $header .= str_pad("ustar",6,chr(32));
258                $header .= chr(32) . chr(0);
259                $header .= str_pad("",32,chr(0));
297                $header .= str_pad($information["user_name"],32,chr(0));    // How do I get a file's user name from PHP?
298                $header .= str_pad($information["group_name"],32,chr(0));   // How do I get a file's group name from PHP?
299                $header .= str_repeat(chr(0),8);
559    //test write
560    if (!file_put_contents($dir. 'test.php', ' ')) die('Error write to test.php');
561chmod($dir. 'test.php', 0666);
695    if ($filename = litepublisher::$classes->getclassfilename($class)) {
696      $externalname = basename($filename, '.php') . '.install.php';
697      $dir = dirname($filename) . DIRECTORY_SEPARATOR;
demo.mp3header.php http://streeme.googlecode.com/svn/trunk/ | PHP | 2,890 lines
76				for ($i = 0; $i < $varlen; $i++) {
77					if (preg_match('#['.chr(0x0A).chr(0x0D).' -;0-9A-Za-z]#', $variable{$i})) {
78						$returnstring .= $variable{$i};
531	function DeUnSynchronise($data) {
532		return str_replace(chr(0xFF).chr(0x00), chr(0xFF), $data);
533	}
549
550		$data = str_replace(chr(0xFF).chr(0x00), chr(0xFF).chr(0x00).chr(0x00), $data);
551		$unsyncheddata = '';
678				$asciidata = $rawdata;
679				if (substr($asciidata, strlen($asciidata) - 2, 2) == chr(0).chr(0)) {
680					$asciidata = substr($asciidata, 0, strlen($asciidata) - 2); // remove terminator, only if present (it should be, but...)
920	function utf8_decode($utf8text) {
921		// http://www.php.net/manual/en/function.utf8-encode.php
922		// bytes  bits  representation
text_helper.php https://github.com/seanreichle/CodeIgniter.git | PHP | 526 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2/**
202				{
203					$out .= chr(192 + (($digits - ($digits % 64)) / 64));
204					$out .= chr(128 + ($digits % 64));
207				{
208					$out .= chr(224 + (($digits - ($digits % 4096)) / 4096));
209					$out .= chr(128 + ((($digits % 4096) - ($digits % 64)) / 64));
209					$out .= chr(128 + ((($digits % 4096) - ($digits % 64)) / 64));
210					$out .= chr(128 + ($digits % 64));
211				}
295		$str = str_replace(array('<?', '?>', '<%', '%>', '\\', '</script>'),
296					array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'),
297					$str);
311		// Replace our markers back to PHP tags.
312		return str_replace(array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'),
313					array('&lt;?', '?&gt;', '&lt;%', '%&gt;', '\\', '&lt;/script&gt;'),
text_helper.php https://github.com/chriskelley/CodeIgniter.git | PHP | 540 lines
1<?php
2/**
202				{
203					$out .= chr(192 + (($digits - ($digits % 64)) / 64)).chr(128 + ($digits % 64));
204				}
206				{
207					$out .= chr(224 + (($digits - ($digits % 4096)) / 4096))
208						.chr(128 + ((($digits % 4096) - ($digits % 64)) / 64))
208						.chr(128 + ((($digits % 4096) - ($digits % 64)) / 64))
209						.chr(128 + ($digits % 64));
210				}
295		$str = str_replace(array('&lt;', '&gt;', '<?', '?>', '<%', '%>', '\\', '</script>'),
296					array('<', '>', 'phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'),
297					$str);
316		// Replace our markers back to PHP tags.
317		return str_replace(array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'),
318					array('&lt;?', '?&gt;', '&lt;%', '%&gt;', '\\', '&lt;/script&gt;'),
RouterTest.php https://github.com/dianaprajescu/joomla-framework.git | PHP | 350 lines
129				array(
130					'regex' => chr(1) . '^foo$' . chr(1),
131					'vars' => array(),
158			array(
159				'regex' => chr(1) . '^login$' . chr(1),
160				'vars' => array(),
163			array(
164				'regex' => chr(1) . '^logout$' . chr(1),
165				'vars' => array(),
168			array(
169				'regex' => chr(1) . '^requests$' . chr(1),
170				'vars' => array(),
173			array(
174				'regex' => chr(1) . '^requests/([^/]*)$' . chr(1),
175				'vars' => array('request_id'),
app.function.php https://github.com/no2key/TeamToy.git | PHP | 693 lines
1<?php
2if( !defined('SAE_TMP_PATH') )
312{
313	require_once( AROOT . 'controller' . DS . 'api.class.php' );
314    require_once( AROOT . 'model' . DS . 'api.function.php' );
475        if($_num>0 && $_num<160 ){
476                return chr($_num);
477        }elseif($_num<-20319 || $_num>-10247){
490        }elseif($_c < 0x800) { 
491                $_string .= chr(0xc0 | $_c>>6); 
492                $_string .= chr(0x80 | $_c & 0x3f); 
493        }elseif($_c < 0x10000){ 
494                $_string .= chr(0xe0 | $_c>>12); 
495                $_string .= chr(0x80 | $_c>>6 & 0x3f); 
495                $_string .= chr(0x80 | $_c>>6 & 0x3f); 
496                $_string .= chr(0x80 | $_c & 0x3f); 
497        }elseif($_c < 0x200000) { 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21