PageRenderTime 179ms queryFilters 1ms Sphinxql 34ms app.CodeModel.GetByIds 61ms findMatchingLines 37ms GetByIds 98ms meta 0ms repositoryFilters 12ms languageFilters 8ms sourceFilters 6ms

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

Source

Language

Repository

Hostname.php https://bitbucket.org/vmihailenco/vladimirwebdev | PHP | 735 lines
1<?php
2/**
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
19 * @version    $Id: Hostname.php 20096 2010-01-06 02:05:09Z bkarwin $
20 */
24 */
25require_once 'Zend/Validate/Abstract.php';
26
29 */
30require_once 'Zend/Validate/Ip.php';
31
35 *
36 * The first is tests/Zend/Validate/HostnameTestStandalone.php which is designed to be run on
37 * the command line.
38 *
39 * The second is tests/Zend/Validate/HostnameTestForm.php which is designed to be run via HTML
40 * to allow users to test entering UTF-8 characters in a form.
db_update.php https://bitbucket.org/delroth/fluxbb-djangofr | PHP | 1,693 lines
1<?php
2
34if (!function_exists('version_compare') || version_compare(PHP_VERSION, MIN_PHP_VERSION, '<'))
35	exit('You are running PHP version '.PHP_VERSION.'. FluxBB '.UPDATE_TO.' requires at least PHP '.MIN_PHP_VERSION.' to run properly. You must upgrade your PHP installation before you can continue.');
36
39// Attempt to load the configuration file config.php
40if (file_exists(PUN_ROOT.'config.php'))
41	include PUN_ROOT.'config.php';
1450					<div class="infldset">
1451						<label class="required"><strong>New username <span>(required)</span></strong><br /><input type="text" name="<?php echo 'dupe_users['.$id.']'; ?>" value="<?php if (isset($_POST['dupe_users'][$id])) echo pun_htmlspecialchars($_POST['dupe_users'][$id]); ?>" size="25" maxlength="25" /><br /></label>
1452					</div>
1669				<div class="forminfo">
1670					<p style="font-size: 1.1em">Your forum database was successfully updated. You may now <a href="<?php echo PUN_ROOT ?>index.php">go to the forum index</a>.</p>
1671				</div>
1691if ($query_str != '')
1692	exit('<script type="text/javascript">window.location="db_update.php'.$query_str.'"</script><noscript>JavaScript seems to be disabled. <a href="db_update.php'.$query_str.'">Click here to continue</a>.</noscript>');
1693
Hostname.php https://bitbucket.org/pfernandez/testlink1.9.6 | PHP | 741 lines
1<?php
2/**
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
19 * @version    $Id: Hostname.php,v 1.1 2010/05/02 16:27:51 franciscom Exp $
20 */
24 */
25require_once 'Zend/Validate/Abstract.php';
26
29 */
30require_once 'Zend/Validate/Ip.php';
31
35 *
36 * The first is tests/Zend/Validate/HostnameTestStandalone.php which is designed to be run on
37 * the command line.
38 *
39 * The second is tests/Zend/Validate/HostnameTestForm.php which is designed to be run via HTML
40 * to allow users to test entering UTF-8 characters in a form.
Misc.php https://bitbucket.org/moodle/moodle.git | PHP | 2,262 lines
405	 *
406	 * To generate it, run `php create.php` on the command line, and copy the
407	 * output to replace this function.
1987		{
1988			return chr(0xc0 | ($codepoint >> 6)) . chr(0x80 | ($codepoint & 0x3f));
1989		}
1991		{
1992			return chr(0xe0 | ($codepoint >> 12)) . chr(0x80 | (($codepoint >> 6) & 0x3f)) . chr(0x80 | ($codepoint & 0x3f));
1993		}
1995		{
1996			return chr(0xf0 | ($codepoint >> 18)) . chr(0x80 | (($codepoint >> 12) & 0x3f)) . chr(0x80 | (($codepoint >> 6) & 0x3f)) . chr(0x80 | ($codepoint & 0x3f));
1997		}
2213		$info = 'SimplePie ' . SIMPLEPIE_VERSION . ' Build ' . SIMPLEPIE_BUILD . "\n";
2214		$info .= 'PHP ' . PHP_VERSION . "\n";
2215		if ($sp->error() !== null)
ch25s02.html https://code.google.com/p/kplian/ | HTML | 478 lines
32</span><span class="hl-var">$backend</span><span class="hl-code">-&gt;</span><span class="hl-identifier">Stroke</span><span class="hl-brackets">(</span><span class="hl-var">$data</span><span class="hl-brackets">)</span><span class="hl-code">;
33</span><span class="hl-inlinetags">?&gt;</span></pre></td></tr></table></div></div></div><p><br class="example-break">  </p><div class="figure"><a name="fig.datamatrix_ex00"></a><p class="title"><b>Figure�25.5.�The simplest possible datamatrix script <code class="uri"><a class="uri" href="example_src/datamatrix_ex00.html" target="_top">(<code class="filename">datamatrix_ex00.php</code>)</a></code> </b></p><div class="figure-contents"><span class="inlinemediaobject"><img src="images/datamatrix_ex00.png" alt="The simplest possible datamatrix script (datamatrix_ex00.php)"></span></div></div><p><br class="figure-break">
34            </p><p>(As can be seen this follows the same principles as the creation of PDF417
81</span><span class="hl-brackets">}</span><span class="hl-code">
82</span><span class="hl-inlinetags">?&gt;</span></pre></td></tr></table></div></div></div><p><br class="example-break">  </p><div class="figure"><a name="fig.datamatrix_ex0"></a><p class="title"><b>Figure�25.7.�Datamatrix with basic error handling <code class="uri"><a class="uri" href="example_src/datamatrix_ex0.html" target="_top">(<code class="filename">datamatrix_ex0.php</code>)</a></code> </b></p><div class="figure-contents"><span class="inlinemediaobject"><img src="images/datamatrix_ex0.png" alt="Datamatrix with basic error handling (datamatrix_ex0.php)"></span></div></div><p><br class="figure-break">
83            </p><p>In contrast to the PDF417 encodation process there is no option to select an level
122 
123</span><span class="hl-inlinetags">?&gt;</span></pre></td></tr></table></div></div></div><p><br class="example-break">  </p><div class="figure"><a name="fig.datamatrix_ex1"></a><p class="title"><b>Figure�25.8.�Datamatrix with modified module width <code class="uri"><a class="uri" href="example_src/datamatrix_ex1.html" target="_top">(<code class="filename">datamatrix_ex1.php</code>)</a></code> </b></p><div class="figure-contents"><span class="inlinemediaobject"><img src="images/datamatrix_ex1.png" alt="Datamatrix with modified module width (datamatrix_ex1.php)"></span></div></div><p><br class="figure-break">
124            </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2614675"></a>25.2.2.Error handling</h3></div></div></div><p>As in other parts of the library the Datamatrix module throws an exception when an
292                                <p>Macro 05 is translated by the barcode reader to : Symbol
293                                    prefix: chr(30) chr(05) chr(29) Symbol postfix: chr(30) chr(04)
294                                    Macro 06 is translated by the barcode reader to : Symbol prefix:
294                                    Macro 06 is translated by the barcode reader to : Symbol prefix:
295                                    chr(30) chr(06) chr(29 Symbol postfix: chr(30) chr(04)</p>
296                            </td></tr><tr><td>~7nnnnnn</td><td>
keitai.ini.php https://bitbucket.org/kumagi/fluxflex_pukiwiki | PHP | 388 lines
271	// Face marks
272	'\s(\:\))'	=>	chr(27).'$Gv'.chr(15),	// '&#57430;',	// smile
273	'\s(\:D)'	=>	chr(27).'$Gv'.chr(15),	// '&#57430;',	// bigsmile => smile
277	'\s(X\()'	=>	chr(27).'$Gx'.chr(15),	// '&#57432;',	// oh
278	'\s(;\))'	=>	chr(27).'$E&'.chr(15),	// '&#57606;',	// winkじゃないけどね(^^; (※目がハート)
279	'\s(;\()'	=>	chr(27).'$E&'.chr(15),	// '&#57606;',	// sad
313	'&amp;(man);'	=>	chr(27).'$G!'.chr(15),
314	'&amp;(clock);'	=>	chr(27).'$GF'.chr(15),	// '&#xE026;',
315	'&amp;(mail);'	=>	chr(27).'$Fv'.chr(15),
315	'&amp;(mail);'	=>	chr(27).'$Fv'.chr(15),
316	'&amp;(mailto);'=>	chr(27).'$E#'.chr(15),
317	'&amp;(phone);'	=>	chr(27).'$G)'.chr(15),
317	'&amp;(phone);'	=>	chr(27).'$G)'.chr(15),
318	'&amp;(phoneto);'=>	chr(27).'$E$'.chr(15),
319	'&amp;(faxto);'	=>	chr(27).'$G+'.chr(15),
Converter.php https://bitbucket.org/syahzul/blog | PHP | 770 lines
1<?php
2
7 *
8 * Copyright (c) 2008 PHPIDS group (http://php-ids.org)
9 *
22 *
23 * PHP version 5.1.6+
24 *
369        $search = array(
370            chr(0), chr(1), chr(2), chr(3), chr(4), chr(5),
371            chr(6), chr(7), chr(8), chr(11), chr(12), chr(14),
371            chr(6), chr(7), chr(8), chr(11), chr(12), chr(14),
372            chr(15), chr(16), chr(17), chr(18), chr(19), chr(24), 
373            chr(25), chr(192), chr(193), chr(238), chr(255)
491            foreach ($matches[0] as $match) {
492                $chr = chr(hexdec(substr($match, 2, 4))); 
493                $value = str_replace($match, $chr, $value);
fUTF8.php https://bitbucket.org/thanhtungnguyenphp/monitos | PHP | 1,623 lines
1<?php
2/**
5 * This class is implemented to provide a UTF-8 version of almost every built-in
6 * PHP string function. For more information about UTF-8, please visit
7 * http://flourishlib.com/docs/UTF-8.
16 * @version    1.0.0b11
17 * @changes    1.0.0b11  Updated the class to not using phpinfo() to determine the iconv implementation [wb, 2010-11-04]
18 * @changes    1.0.0b10  Fixed a bug with capitalizing a lowercase i resulting in a dotted upper-case I [wb, 2010-11-01]
21 * @changes    1.0.0b7   Added the methods ::trim(), ::rtrim() and ::ltrim() [wb, 2010-05-11]
22 * @changes    1.0.0b6   Fixed ::clean() to work with PHP installs that use an iconv library that doesn't support //IGNORE [wb, 2010-03-02]
23 * @changes    1.0.0b5   Changed ::ucwords() to also uppercase words right after various punctuation [wb, 2009-09-18]
32	const ascii    = 'fUTF8::ascii';
33	const chr      = 'fUTF8::chr';
34	const clean    = 'fUTF8::clean';
193	/**
194	 * All lowercase UTF-8 characters not properly handled by [http://php.net/mb_strtoupper mb_strtoupper()] mapped to uppercase characters
195	 * 
upgrade.php https://bitbucket.org/DennisSchulmeister/www-wikiberd | PHP | 1,595 lines
1<?php
2/*
21     may strip this paragraph and turn it all into GPL, BSD, GNU LGPL,
22     Artistic, MPL, PHP license, M$ EULA, or whatever you like best)
23   
23   
24   Get update notes via "http://freshmeat.net/projects/upgradephp" or
25   google for it. Any contribution is appreciated. <milky*users新f搖et>
154if (!defined("PHP_EOL")) {
155   define("PHP_EOL", ( (DIRECTORY_SEPARATOR == "\\") ?"\015\012" :(strncmp(PHP_OS,"D",1)?"\012":"\015") )  ); #"
156}
584if (!function_exists("php_real_logo_guid")) {
585   function php_real_logo_guid() { return php_logo_guid(); }
586   function php_egg_logo_guid() { return zend_logo_guid(); }
1167if (!defined("PHP_SAPI")) {
1168   define("PHP_SAPI", php_sapi_name());
1169}
Hostname.php https://github.com/bertrandom/zf.git | PHP | 789 lines
1<?php
2/**
24 */
25// require_once 'Zend/Validate/Abstract.php';
26
29 */
30// require_once 'Zend/Validate/Ip.php';
31
35 *
36 * The first is tests/Zend/Validate/HostnameTestStandalone.php which is designed to be run on
37 * the command line.
38 *
39 * The second is tests/Zend/Validate/HostnameTestForm.php which is designed to be run via HTML
40 * to allow users to test entering UTF-8 characters in a form.
158     * (.DE) Germany http://www.denic.de/en/domains/idns/liste.html
159     * (.DK) Danmark http://www.dk-hostmaster.dk/index.php?id=151
160     * (.ES) Spain https://www.nic.es/media/2008-05/1210147705287.pdf
utf8.php https://github.com/npisenti/folders2web.git | PHP | 1,619 lines
57     * @author <bmorel@ssi.fr>
58     * @link   http://www.php.net/manual/en/function.utf8-encode.php
59     */
104     * @author Harry Fuecks <hfuecks@gmail.com>
105     * @author Chris Smith <chris@jalakai.co.uk>
106     * @param string
134        // cast parameters to appropriate types to avoid multiple notices/warnings
135        $str = (string)$str;                          // generates E_NOTICE for PHP4 objects, but not PHP5 objects
136        $offset = (int)$offset;
462     * @author <vpribish at shopping dot com>
463     * @link   http://www.php.net/manual/en/function.utf8-decode.php
464     */
899     *
900     * @author       chris smith <chris@jalakai.co.uk>
901     */
wp-minify.php https://github.com/gregoryo/nycga2.git | PHP | 933 lines
174    if (strlen(trim($wpm_new_options['js_include'])) > 0)
175      $wpm_new_options['js_include'] = $this->array_trim(split(chr(10), str_replace(chr(13), '', $wpm_new_options['js_include'])));
176    else
179    if (strlen(trim($wpm_new_options['js_exclude'])) > 0)
180      $wpm_new_options['js_exclude'] = $this->array_trim(split(chr(10), str_replace(chr(13), '', $wpm_new_options['js_exclude'])));
181    else
184    if (strlen(trim($wpm_new_options['css_include'])) > 0)
185      $wpm_new_options['css_include'] = $this->array_trim(split(chr(10), str_replace(chr(13), '', $wpm_new_options['css_include'])));
186    else
189    if (strlen(trim($wpm_new_options['css_exclude'])) > 0)
190      $wpm_new_options['css_exclude'] = $this->array_trim(split(chr(10), str_replace(chr(13), '', $wpm_new_options['css_exclude'])));
191    else
194    if ( strlen(trim($wpm_new_options['uri_exclude'])) > 0 )
195      $wpm_new_options['uri_exclude'] = $this->array_trim(split(chr(10), str_replace(chr(13), '', $wpm_new_options['uri_exclude'])));
196    else
Hostname.php https://github.com/selfchief/zf2.git | PHP | 792 lines
1<?php
2/**
29 *
30 * The first is tests/Zend/Validator/HostnameTestStandalone.php which is designed to be run on
31 * the command line.
32 *
33 * The second is tests/Zend/Validator/HostnameTestForm.php which is designed to be run via HTML
34 * to allow users to test entering UTF-8 characters in a form.
154     * (.DE) Germany http://www.denic.de/en/domains/idns/liste.html
155     * (.DK) Danmark http://www.dk-hostmaster.dk/index.php?id=151
156     * (.ES) Spain https://www.nic.es/media/2008-05/1210147705287.pdf
162     * (.IR) Iran http://www.nic.ir/Allowable_Characters_dot-iran
163     * (.IS) Iceland http://www.isnic.is/domain/rules.php
164     * (.KR) Korea http://www.iana.org/domains/idn-tables/tables/kr_ko-kr_1.0.html
171     * (.NU) Niue http://www.worldnames.net/
172     * (.ORG) International http://www.pir.org/index.php?db=content/FAQs&tbl=FAQs_Registrant&id=2
173     * (.PE) Peru https://www.nic.pe/nuevas_politicas_faq_2.php
utf8.php https://github.com/gbby/folders2web.git | PHP | 1,625 lines
57     * @author <bmorel@ssi.fr>
58     * @link   http://www.php.net/manual/en/function.utf8-encode.php
59     */
104     * @author Harry Fuecks <hfuecks@gmail.com>
105     * @author Chris Smith <chris@jalakai.co.uk>
106     * @param string
134        // cast parameters to appropriate types to avoid multiple notices/warnings
135        $str = (string)$str;                          // generates E_NOTICE for PHP4 objects, but not PHP5 objects
136        $offset = (int)$offset;
462     * @author <vpribish at shopping dot com>
463     * @link   http://www.php.net/manual/en/function.utf8-decode.php
464     */
899     *
900     * @author       chris smith <chris@jalakai.co.uk>
901     */
Hostname.php https://github.com/wmakend/zf2.git | PHP | 723 lines
1<?php
2/**
18 *
19 * The first is tests/Zend/Validator/HostnameTestStandalone.php which is designed to be run on
20 * the command line.
21 *
22 * The second is tests/Zend/Validator/HostnameTestForm.php which is designed to be run via HTML
23 * to allow users to test entering UTF-8 characters in a form.
112     * (.DE) Germany http://www.denic.de/en/domains/idns/liste.html
113     * (.DK) Danmark http://www.dk-hostmaster.dk/index.php?id=151
114     * (.ES) Spain https://www.nic.es/media/2008-05/1210147705287.pdf
120     * (.IR) Iran http://www.nic.ir/Allowable_Characters_dot-iran
121     * (.IS) Iceland http://www.isnic.is/domain/rules.php
122     * (.KR) Korea http://www.iana.org/domains/idn-tables/tables/kr_ko-kr_1.0.html
129     * (.NU) Niue http://www.worldnames.net/
130     * (.ORG) International http://www.pir.org/index.php?db=content/FAQs&tbl=FAQs_Registrant&id=2
131     * (.PE) Peru https://www.nic.pe/nuevas_politicas_faq_2.php
ref.php https://github.com/firejdl/php-ref.git | PHP | 2,179 lines
334   *
335   * @link    http://pear.php.net/manual/en/standards.sample.php
336   * @param   string $comment    DocBlock comment (must start with /**)
581              }else{
582                $output[] = $closing ? array('chr' => '-') : array('chr-range' => '-');
583              }
1495
1496        // @see: http://php.net/manual/en/resource.php
1497        // need to add more...
1840
1841        // work-around for https://bugs.php.net/bug.php?id=49154
1842        // @see http://stackoverflow.com/questions/15672287/strange-behavior-of-reflectiongetproperties-with-numeric-keys
1981            }catch(\Exception $e){
1982              // @see https://bugs.php.net/bug.php?id=32177&edit=1
1983            }
class.tx_mthfeedit.php https://github.com/michael-cannon/typo3-extensions.git | PHP | 1,647 lines
1<?php
2/***************************************************************
36require_once(PATH_tslib.'class.tslib_pibase.php');
37require_once(PATH_site.TYPO3_mainDir.'sysext/lang/lang.php');
38require_once(PATH_t3lib.'class.t3lib_parsehtml_proc.php');
38require_once(PATH_t3lib.'class.t3lib_parsehtml_proc.php');
39define(PATH_typo3,PATH_site.TYPO3_mainDir); // used in template.php
40require_once(PATH_site.TYPO3_mainDir.'template.php');
40require_once(PATH_site.TYPO3_mainDir.'template.php');
41if(t3lib_extmgm::isLoaded('rtehtmlarea')) require_once(t3lib_extMgm::extPath('rtehtmlarea').'pi2/class.tx_rtehtmlarea_pi2.php');
42if(t3lib_extmgm::isLoaded('rlmp_dateselectlib')) require_once(t3lib_extMgm::extPath('rlmp_dateselectlib').'class.tx_rlmpdateselectlib.php');
428      if(!$withHTML) {
429	$result[] = $label.chr(10).$fieldCode.chr(10);
430      } else {
1498    return 
1499  '<script type="text/javascript">'.implode(chr(10), $this->additionalJS_post).'</script>'.chr(10).
1500  '<script type="text/javascript">'.implode(chr(10), $this->additionalJS_end).'</script>';
class.pdf.php https://github.com/dwagner2301/dompdf.git | PHP | 4,608 lines
1644      $pad = chr(0x28) .chr(0xBF) .chr(0x4E) .chr(0x5E) .chr(0x4E) .chr(0x75) .chr(0x8A) .chr(0x41)
1645             .chr(0x64) .chr(0x00) .chr(0x4E) .chr(0x56) .chr(0xFF) .chr(0xFA) .chr(0x01) .chr(0x08)
1646             .chr(0x2E) .chr(0x2E) .chr(0x00) .chr(0xB6) .chr(0xD0) .chr(0x68) .chr(0x3E) .chr(0x80)
1646             .chr(0x2E) .chr(0x2E) .chr(0x00) .chr(0xB6) .chr(0xD0) .chr(0x68) .chr(0x3E) .chr(0x80)
1647             .chr(0x2F) .chr(0x0C) .chr(0xA9) .chr(0xFE) .chr(0x64) .chr(0x53) .chr(0x69) .chr(0x7A);
1648
1674      // now make the u value, phew.
1675      $tmp = $this->md5_16($user.$ovalue.chr($options['p']) .chr(255) .chr(255) .chr(255) .$this->fileIdentifier);
1676
1727    }
1728    $tmp.= chr(hexdec(substr($hex, 4, 2))) .chr(hexdec(substr($hex, 2, 2))) .chr(hexdec(substr($hex, 0, 2))) .chr(0) .chr(0);
1729    $key = $this->md5_16($tmp);
4132      if (!$error) {
4133        $header = chr(137) .chr(80) .chr(78) .chr(71) .chr(13) .chr(10) .chr(26) .chr(10);
4134
tfpdf.php https://github.com/mjlassila/plugin-PDFOutput.git | PHP | 2,303 lines
1<?php
2/*******************************************************************************
435			if (isset($cw[$char])) { $w += (ord($cw[2*$char])<<8) + ord($cw[2*$char+1]); }
436			else if($char>0 && $char<128 && isset($cw[chr($char)])) { $w += $cw[chr($char)]; }
437			else if(isset($this->CurrentFont['desc']['MissingWidth'])) { $w += $this->CurrentFont['desc']['MissingWidth']; }
501		$ttfstat = stat($ttffilename);
502		if (file_exists($unifilename.'.mtx.php')) {
503			include($unifilename.'.mtx.php');
506			$ttffile = $ttffilename;
507			require_once($this->_getfontpath().'unifont/ttfonts.php');
508			$ttf = new TTFontFile();
524			$type = 'TTF';
525			// Generate metrics .php file
526			$s='<?php'."\n";
1453	// Check signature
1454	if($this->_readstream($f,8)!=chr(137).'PNG'.chr(13).chr(10).chr(26).chr(10))
1455		$this->Error('Not a PNG file: '.$file);
string.rb https://github.com/yb66/hash-utils.git | Ruby | 907 lines
100            length.times do
101                result << characters[Kernel.rand(max)].chr
102            end
148    # @return [String] string with applied replacements
149    # @see http://www.php.net/strtr
150    # @since 0.4.0
270    # means, it gives to block not only whole match, but submatches too.
271    # In fact, emulates PHP's +preg_replace_callback()+ function. 
272    # In other ways emulates standard +#gsub+.
277    # @return [String] resultant string
278    # @see http://www.php.net/preg_replace_callback
279    # @since 0.8.0
514                end
515                buffer << chr.chr
516            end
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21