PageRenderTime 4028ms queryFilters 192ms Sphinxql 695ms GetByIds 637ms meta 0ms repositoryFilters 1084ms languageFilters 3ms sourceFilters 129ms

56,310 results for 'php chr repo:thomasvandiepen/uva-searchengines' (4028 ms)

Source

Language

Repository

MessageController.php https://github.com/lucianobaraglia/yii2.git | PHP | 553 lines
1<?php
2/**
30 * 1. Create a configuration file using the 'message/config' command:
31 *    yii message/config /path/to/myapp/messages/config.php
32 * 2. Edit the created config file, adjusting it for your web application needs.
33 * 3. Run the 'message/extract' command, using created config:
34 *    yii message /path/to/myapp/messages/config.php
35 *
65        }
66        copy(Yii::getAlias('@yii/views/messageConfig.php'), $filePath);
67        echo "Configuration file template created at '{$filePath}'.\n\n";
92            'sort' => false,
93            'format' => 'php',
94        ], require($configFile));
517                foreach ($existingMessages as $message => $translation) {
518                    if (!isset($merged[$category . chr(4) . $message]) && !isset($todos[$category . chr(4) . $message]) && !$removeUnused) {
519                        if (!empty($translation) && substr($translation, 0, 2) === '@@' && substr($translation, -2) === '@@') {
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    }
sticker.php https://github.com/ivanbogomoloff/open_bx.git | PHP | 1,713 lines
860
861		$text = str_replace(array("\001", "\002", chr(11), chr(12), chr(34), chr(39)), array("", "", "", "", chr(11), chr(12)), $text);
862
1617		{
1618			$text = str_replace(array(chr(11), chr(12), chr(34), chr(39)), array("", "", chr(11), chr(12)), $text);
1619			$text = preg_replace("/(?<=^|\>)([^\<]+)(?=\<|$)/ies".FX_UTF_PCRE_MODIFIER, "\$this->part_long_words('\\1')", $text);
1630			$str = str_replace(
1631				array(chr(1), chr(2), chr(3), chr(4), chr(5), chr(6), chr(7), chr(8),
1632					"&amp;", "&lt;", "&gt;", "&quot;", "&nbsp;", "&copy;", "&reg;", "&trade;",
1634				array("", "", "", "", "", "", "", "",
1635					chr(1), "<", ">", chr(2), chr(3), chr(4), chr(5), chr(6),
1636					chr(7), chr(8)),
1641			$str = str_replace(
1642				array(chr(1), "<", ">", chr(2), chr(3), chr(4), chr(5), chr(6), chr(7), chr(8), "&lt;WBR/&gt;", "&lt;WBR&gt;", "&amp;shy;"),
1643				array("&amp;", "&lt;", "&gt;", "&quot;", "&nbsp;", "&copy;", "&reg;", "&trade;", chr(34), chr(39), "<WBR/>", "<WBR/>", "&shy;"),
snippets.php https://github.com/ivanbogomoloff/open_bx.git | PHP | 433 lines
19			$arSNIPPETS = Array();
20			$arTemplateKeys = Array(); //Array contain keys of snippets for each template for correct writing .content.php
21
143
144		if (file_exists($path."/.content.php"))
145		{
145		{
146			@include($path."/.content.php");
147			$arK = array_keys($SNIPPETS);
229			$contentSrc = '<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>'.chr(10);
230			$contentSrc .= '<?'.chr(10).'$SNIPPETS = Array();'.chr(10);
231			foreach ($SNIPPETS as $k=>$_arSn)
305			$contentSrc = '<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>'.chr(10);
306			$contentSrc .= '<?'.chr(10).'$SNIPPETS = Array();'.chr(10);
307			foreach ($SNIPPETS as $k=>$_arSn)
Utf8.php https://github.com/rlopezn/ISW_PCC.git | PHP | 603 lines
214    {
215/**/    if (50418 > PHP_VERSION_ID || 50500 == PHP_VERSION_ID)
216/**/    {
230    {
231/**/    if (50418 > PHP_VERSION_ID || 50500 == PHP_VERSION_ID)
232/**/    {
252    static function strrchr ($s, $needle, $before_needle = false) {return mb_strrchr ($s, $needle, $before_needle, 'UTF-8');}
253    static function strrichr($s, $needle, $before_needle = false) {return mb_strrichr($s, $needle, $before_needle, 'UTF-8');}
254
312        if (0x80 > $c %= 0x200000) return chr($c);
313        if (0x800 > $c) return chr(0xC0 | $c>>6) . chr(0x80 | $c & 0x3F);
314        if (0x10000 > $c) return chr(0xE0 | $c>>12) . chr(0x80 | $c>>6 & 0x3F) . chr(0x80 | $c & 0x3F);
314        if (0x10000 > $c) return chr(0xE0 | $c>>12) . chr(0x80 | $c>>6 & 0x3F) . chr(0x80 | $c & 0x3F);
315        return chr(0xF0 | $c>>18) . chr(0x80 | $c>>12 & 0x3F) . chr(0x80 | $c>>6 & 0x3F) . chr(0x80 | $c & 0x3F);
316    }
OverviewController.php https://github.com/dkd/tc_beuser.git | PHP | 517 lines
1<?php
2namespace dkd\TcBeuser\Controller;
161		$this->returnUrl = GeneralUtility::_GP('returnUrl');
162		$this->retUrl    = $this->returnUrl ? $this->returnUrl : 'dummy.php';
163
364				.'<input type="checkbox" value="1" name="compareFlags['.$key.']"'.($this->compareFlags[$key]?' checked="checked"':'').' />'
365				.'&nbsp;'.$label.'</span> '.chr(10);
366
368			if($i == 4) {
369				$content .= chr(10).'<br />'.chr(10);
370				$i = 0;
454				'<a href="'.GeneralUtility::linkThisScript(array('SwitchUser'=>$userRecord['uid'], 'switchBackUser' => 1)).'" target="_top"><img '.IconUtility::skinImg($this->backPath,'gfx/su_back.gif').' border="0" align="top" title="'.htmlspecialchars('Switch user to: '.$userRecord['username']).' [switch-back mode]" alt="" /></a>'
455				.chr(10).chr(10);
456		}
467	 *
468	 * @param	string		$params is parameters sent along to alt_doc.php. This requires a much more details description which you must seek in Inside TYPO3s documentation of the alt_doc.php API. And example could be '&edit[pages][123]=edit' which will show edit form for page record 123.
469	 * @param	string		$requestUri is an optional returnUrl you can set - automatically set to REQUEST_URI.
singleinsert.php https://github.com/nielsrune/saldi.git | PHP | 116 lines
1<?php
2// // #----------------- soapserver/singleinsert.php -----ver 3.2.8---- 2014.01.06 ----------
30
31	list($s_id,$tmp)=explode(chr(9),$string);
32	if (!$s_id) return('1'.chr(9)."Missing session ID");
32	if (!$s_id) return('1'.chr(9)."Missing session ID");
33#	include("../includes/select.php");
34	include ("../includes/connect.php");
34	include ("../includes/connect.php");
35	include ("../includes/online.php");
36
40	$singleinsert=str_replace($s_id,"",$string);
41	$singleinsert=str_replace(chr(9),"",$singleinsert);
42	$singleinsert=str_replace(chr(10),"",$singleinsert);
42	$singleinsert=str_replace(chr(10),"",$singleinsert);
43	$singleinsert=str_replace(chr(13),"",$singleinsert);
44#	$singleinsert=str_replace(" ","",$singleinsert);
mimeDecode.php https://github.com/muchael/expressolivre.git | PHP | 1,060 lines
1<?php
2/**
9 *  +----------------------------- IMPORTANT ------------------------------+
10 *  | Usage of this class compared to native php extensions such as        |
11 *  | mailparse or imap, is slow and may be feature deficient. If available|
11 *  | mailparse or imap, is slow and may be feature deficient. If available|
12 *  | you are STRONGLY recommended to use the php extensions.              |
13 *  +----------------------------------------------------------------------+
14 *
15 * Compatible with PHP versions 4 and 5
16 *
17 * LICENSE: This LICENSE is in the BSD license style.
18 * Copyright (c) 2002-2003, Richard Heyes <richard@phpguru.org>
19 * Copyright (c) 2003-2006, PEAR <pear-group@php.net>
48 * @package    Mail_Mime
49 * @author     Richard Heyes  <richard@phpguru.org>
50 * @author     George Schlossnagle <george@omniti.com>
mimeDecode.php https://github.com/muchael/expressolivre.git | PHP | 1,015 lines
1<?php
2/**
9 *  +----------------------------- IMPORTANT ------------------------------+
10 *  | Usage of this class compared to native php extensions such as        |
11 *  | mailparse or imap, is slow and may be feature deficient. If available|
11 *  | mailparse or imap, is slow and may be feature deficient. If available|
12 *  | you are STRONGLY recommended to use the php extensions.              |
13 *  +----------------------------------------------------------------------+
14 *
15 * Compatible with PHP versions 4 and 5
16 *
17 * LICENSE: This LICENSE is in the BSD license style.
18 * Copyright (c) 2002-2003, Richard Heyes <richard@phpguru.org>
19 * Copyright (c) 2003-2006, PEAR <pear-group@php.net>
48 * @package    Mail_Mime
49 * @author     Richard Heyes  <richard@phpguru.org>
50 * @author     George Schlossnagle <george@omniti.com>
functions.php http://novaboard.googlecode.com/svn/trunk/ | PHP | 1,566 lines
34			$charCheck		=	array(
35									chr(195).chr(128) => 'A', chr(195).chr(129) => 'A',
36									chr(195).chr(130) => 'A', chr(195).chr(131) => 'A',
36									chr(195).chr(130) => 'A', chr(195).chr(131) => 'A',
37									chr(195).chr(132) => 'A', chr(195).chr(133) => 'A',
38									chr(195).chr(135) => 'C', chr(195).chr(136) => 'E',
120									chr(197).chr(178) => 'U', chr(197).chr(179) => 'u',
121									chr(197).chr(180) => 'W', chr(197).chr(181) => 'w',
122									chr(197).chr(182) => 'Y', chr(197).chr(183) => 'y',
123									chr(197).chr(184) => 'Y', chr(197).chr(185) => 'Z',
124									chr(197).chr(186) => 'z', chr(197).chr(187) => 'Z',
125									chr(197).chr(188) => 'z', chr(197).chr(189) => 'Z',
125									chr(197).chr(188) => 'z', chr(197).chr(189) => 'Z',
126									chr(197).chr(190) => 'z', chr(197).chr(191) => 's',
127									chr(226).chr(130).chr(172) => 'E',
fsource_PHPExcel_Shared__PHPExcelSharedString.php.html git://github.com/shimondoodkin/node_spreadsheet.git | HTML | 750 lines
60<h1 align="center">Source for file String.php</h1>
61<p>Documentation is available at <a href="../PHPExcel_Shared/_PHPExcel---Shared---String.php.html">String.php</a></p>
62<div class="src-code">
371<li><div class="src-line"><a name="a311"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;CUSTOM:&nbsp;IBM&nbsp;AIX&nbsp;iconv()&nbsp;does&nbsp;not&nbsp;work</span></div></li>
372<li><div class="src-line"><a name="a312"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;</span><a href="http://www.php.net/defined">defined</a><span class="src-sym">(</span><span class="src-str">'PHP_OS'</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/stristr">stristr</a><span class="src-sym">(</span><span class="src-id">PHP_OS</span><span class="src-sym">,&nbsp;</span><span class="src-str">'AIX'</span><span class="src-sym">)</span></div></li>
373<li><div class="src-line"><a name="a313"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<a href="http://www.php.net/defined">defined</a><span class="src-sym">(</span><span class="src-str">'ICONV_IMPL'</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-sym">@</span><a href="http://www.php.net/strcasecmp">strcasecmp</a><span class="src-sym">(</span><span class="src-id">ICONV_IMPL</span><span class="src-sym">,&nbsp;</span><span class="src-str">'unknown'</span><span class="src-sym">)&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
398<li><div class="src-line"><a name="a338"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
399<li><div class="src-line"><a name="a339"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">public&nbsp;</span><span class="src-key">static&nbsp;</span><span class="src-key">function&nbsp;</span><a href="../PHPExcel_Shared/PHPExcel_Shared_String.html#methodControlCharacterOOXML2PHP">ControlCharacterOOXML2PHP</a><span class="src-sym">(</span><span class="src-var">$value&nbsp;</span>=&nbsp;<span class="src-str">''</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
400<li><div class="src-line"><a name="a340"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if</span><span class="src-sym">(</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$_controlCharacters</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
420<li><div class="src-line"><a name="a360"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
421<li><div class="src-line"><a name="a361"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">public&nbsp;</span><span class="src-key">static&nbsp;</span><span class="src-key">function&nbsp;</span><a href="../PHPExcel_Shared/PHPExcel_Shared_String.html#methodControlCharacterPHP2OOXML">ControlCharacterPHP2OOXML</a><span class="src-sym">(</span><span class="src-var">$value&nbsp;</span>=&nbsp;<span class="src-str">''</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
422<li><div class="src-line"><a name="a362"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if</span><span class="src-sym">(</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$_controlCharacters</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
646<li><div class="src-line"><a name="a586"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$fractionFormula&nbsp;</span>=&nbsp;<span class="src-str">'='</span>.<span class="src-var">$sign</span>.<span class="src-var">$match</span><span class="src-sym">[</span><span class="src-num">2</span><span class="src-sym">]</span>.<span class="src-var">$sign</span>.<span class="src-var">$match</span><span class="src-sym">[</span><span class="src-num">3</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
647<li><div class="src-line"><a name="a587"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$operand&nbsp;</span>=&nbsp;<span class="src-id"><a href="../PHPExcel_Calculation/PHPExcel_Calculation.html">PHPExcel_Calculation</a></span><span class="src-sym">::</span><a href="../PHPExcel_Calculation/PHPExcel_Calculation.html#methodgetInstance">getInstance</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><span class="src-id">_calculateFormulaValue</span><span class="src-sym">(</span><span class="src-var">$fractionFormula</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
648<li><div class="src-line"><a name="a588"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-id">true</span><span class="src-sym">;</span></div></li>
fsource_PHPExcel_Shared__PHPExcelSharedString.php.html git://github.com/shimondoodkin/node_spreadsheet.git | HTML | 750 lines
60<h1 align="center">Source for file String.php</h1>
61<p>Documentation is available at <a href="../PHPExcel_Shared/_PHPExcel---Shared---String.php.html">String.php</a></p>
62<div class="src-code">
371<li><div class="src-line"><a name="a311"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-comm">//&nbsp;CUSTOM:&nbsp;IBM&nbsp;AIX&nbsp;iconv()&nbsp;does&nbsp;not&nbsp;work</span></div></li>
372<li><div class="src-line"><a name="a312"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if&nbsp;</span><span class="src-sym">(&nbsp;</span><a href="http://www.php.net/defined">defined</a><span class="src-sym">(</span><span class="src-str">'PHP_OS'</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">@</span><a href="http://www.php.net/stristr">stristr</a><span class="src-sym">(</span><span class="src-id">PHP_OS</span><span class="src-sym">,&nbsp;</span><span class="src-str">'AIX'</span><span class="src-sym">)</span></div></li>
373<li><div class="src-line"><a name="a313"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&amp;&nbsp;<a href="http://www.php.net/defined">defined</a><span class="src-sym">(</span><span class="src-str">'ICONV_IMPL'</span><span class="src-sym">)&nbsp;</span>&amp;&amp;&nbsp;<span class="src-sym">(</span><span class="src-sym">@</span><a href="http://www.php.net/strcasecmp">strcasecmp</a><span class="src-sym">(</span><span class="src-id">ICONV_IMPL</span><span class="src-sym">,&nbsp;</span><span class="src-str">'unknown'</span><span class="src-sym">)&nbsp;</span>==&nbsp;<span class="src-num">0</span><span class="src-sym">)</span></div></li>
398<li><div class="src-line"><a name="a338"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
399<li><div class="src-line"><a name="a339"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">public&nbsp;</span><span class="src-key">static&nbsp;</span><span class="src-key">function&nbsp;</span><a href="../PHPExcel_Shared/PHPExcel_Shared_String.html#methodControlCharacterOOXML2PHP">ControlCharacterOOXML2PHP</a><span class="src-sym">(</span><span class="src-var">$value&nbsp;</span>=&nbsp;<span class="src-str">''</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
400<li><div class="src-line"><a name="a340"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if</span><span class="src-sym">(</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$_controlCharacters</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
420<li><div class="src-line"><a name="a360"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
421<li><div class="src-line"><a name="a361"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">public&nbsp;</span><span class="src-key">static&nbsp;</span><span class="src-key">function&nbsp;</span><a href="../PHPExcel_Shared/PHPExcel_Shared_String.html#methodControlCharacterPHP2OOXML">ControlCharacterPHP2OOXML</a><span class="src-sym">(</span><span class="src-var">$value&nbsp;</span>=&nbsp;<span class="src-str">''</span><span class="src-sym">)&nbsp;</span><span class="src-sym">{</span></div></li>
422<li><div class="src-line"><a name="a362"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">if</span><span class="src-sym">(</span><span class="src-key">empty</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$_controlCharacters</span><span class="src-sym">))&nbsp;</span><span class="src-sym">{</span></div></li>
646<li><div class="src-line"><a name="a586"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$fractionFormula&nbsp;</span>=&nbsp;<span class="src-str">'='</span>.<span class="src-var">$sign</span>.<span class="src-var">$match</span><span class="src-sym">[</span><span class="src-num">2</span><span class="src-sym">]</span>.<span class="src-var">$sign</span>.<span class="src-var">$match</span><span class="src-sym">[</span><span class="src-num">3</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
647<li><div class="src-line"><a name="a587"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$operand&nbsp;</span>=&nbsp;<span class="src-id"><a href="../PHPExcel_Calculation/PHPExcel_Calculation.html">PHPExcel_Calculation</a></span><span class="src-sym">::</span><a href="../PHPExcel_Calculation/PHPExcel_Calculation.html#methodgetInstance">getInstance</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><span class="src-id">_calculateFormulaValue</span><span class="src-sym">(</span><span class="src-var">$fractionFormula</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
648<li><div class="src-line"><a name="a588"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-id">true</span><span class="src-sym">;</span></div></li>
common.php https://github.com/paszczus/lms.git | PHP | 912 lines
1<?php
2
89{
90	switch(PHP_OS)
91	{
104		default:
105			$return = trans('unknown OS ($a)', PHP_OS);
106	}
300			// You may wish to include other characters as valid whitespace...
301			if ($char == ' ' || $char == chr(13) || $char == chr(10))
302				$lastWhite = $lastChar; // note the position of the last whitespace
333{
334	// This function has been taken from PHP manual
335
711    if ($data['location_flat']) {
712        $h = $CONFIG['phpui']['house_template'] ? $CONFIG['phpui']['house_template'] : '%h/%f';
713        $h = str_replace('%h', $data['location_house'], $h);
idna_convert.class.php https://github.com/JojoCMS-Plugins/jojo_galleryrss.git | PHP | 991 lines
891            } elseif ($v < (1 << 16)) { // 3 bytes
892                $output .= chr(224 + ($v >> 12)) . chr(128 + (($v >> 6) & 63)) . chr(128 + ($v & 63));
893            } elseif ($v < (1 << 21)) { // 4 bytes
893            } elseif ($v < (1 << 21)) { // 4 bytes
894                $output .= chr(240 + ($v >> 18)) . chr(128 + (($v >> 12) & 63))
895                         . chr(128 + (($v >> 6) & 63)) . chr(128 + ($v & 63));
897                $output .= chr(248 + ($v >> 24)) . chr(128 + (($v >> 18) & 63))
898                         . chr(128 + (($v >> 12) & 63)) . chr(128 + (($v >> 6) & 63))
899                         . chr(128 + ($v & 63));
900            } elseif ($v < (1 << 31)) { // 6 bytes
901                $output .= chr(252 + ($v >> 30)) . chr(128 + (($v >> 24) & 63))
902                         . chr(128 + (($v >> 18) & 63)) . chr(128 + (($v >> 12) & 63))
902                         . chr(128 + (($v >> 18) & 63)) . chr(128 + (($v >> 12) & 63))
903                         . chr(128 + (($v >> 6) & 63)) . chr(128 + ($v & 63));
904            } else {
Util.class.php https://github.com/nemiah/projectMankind.git | PHP | 1,320 lines
1<?php
2/*
65				$CU = Session::currentUser();
66				$uri = $AppServer."/plugins/AppServer/AppServer.php";
67				
107
108		$uri = $host."/$App/ExtConn/ExtConn.php";
109		if($username != null)
169	public static function getRootPath(){
170		return str_replace("classes".DIRECTORY_SEPARATOR."toolbox".DIRECTORY_SEPARATOR."Util.class.php","",__FILE__);
171	}
201	 *
202	 * Kopiert von http://www.php-faq.de/q-code-post.html
203	 * 
243	 * Formatiert eine Zahl $number nach Sprache $language
244	 * Wenn $digits angegeben wird, so wird die Einstellung der Sprache überschrieben
245	 * $digits kann auch das Format "max2" haben. In diesem Fall werden Nullen am Ende
markdownify.php https://github.com/pettazz/php-markdown.git | PHP | 1,191 lines
45 */
46require_once 'parsehtml.php';
47
1070   *
1071   * @author derernst@gmx.ch <http://www.php.net/manual/en/function.html-entity-decode.php#68536>
1072   * @author Milian Wolff <http://milianw.de>
1111  /**
1112   * UTF-8 chr() which supports numeric entities
1113   *
1113   *
1114   * @author grey - greywyvern - com <http://www.php.net/manual/en/function.chr.php#55978>
1115   * @param array $matches
1136   *
1137   * @author dtorop 932 at hotmail dot com <http://www.php.net/manual/en/function.strlen.php#37975>
1138   * @author Milian Wolff <http://milianw.de>
rss.php https://github.com/hrs113355/Maple-XDBBS.git | PHP | 388 lines
194	      if( $author->getElementsByTagName('email')->length )
195		  $description.=chr(27).'[1m'.'      '.iconv('UTF-8','Big5//IGNORE',$author->getElementsByTagName('email')->item(0)->nodeValue).chr(27).'[m'.chr(10);
196	      if($author->getElementsByTagName('uri')->length)
196	      if($author->getElementsByTagName('uri')->length)
197		  $description.=chr(27).'[1m'.shorturl('      ',$author->getElementsByTagName('uri')->item(0)->nodeValue).chr(27).'[m'.chr(10);
198	  }else
275          // 1. <p></p> 詳細判定
276	  $str = str_ireplace(array('<br>','<br/>','<br />','<p>','</p>'),array(chr(10),chr(10),chr(10),chr(10),chr(10)),$str);
277	  vlog(' -> 換行處理 Done ');
316  function texturl($matchs){
317    return chr(10).shorturl('[鏈結] ',$matchs[0]).chr(10);
318  }
329	  substr($matchs[2],0,7)=='mailto:')
330	  return chr(10).shorturl('[鏈結] ',$matchs[1]).chr(10);
331      else{
class.tx_mthfeedit.php.backup_no_tabs https://github.com/michael-cannon/typo3-extensions.git | Unknown | 1,255 lines
1<?php
2/***************************************************************
33require_once(PATH_tslib.'class.tslib_pibase.php');
34require_once(PATH_site.TYPO3_mainDir.'sysext/lang/lang.php');
35if(t3lib_extmgm::isLoaded('rtehtmlarea')) require_once(t3lib_extMgm::extPath('rtehtmlarea').'pi2/class.tx_rtehtmlarea_pi2.php');
35if(t3lib_extmgm::isLoaded('rtehtmlarea')) require_once(t3lib_extMgm::extPath('rtehtmlarea').'pi2/class.tx_rtehtmlarea_pi2.php');
36if(t3lib_extmgm::isLoaded('rlmp_dateselectlib')) require_once(t3lib_extMgm::extPath('rlmp_dateselectlib').'class.tx_rlmpdateselectlib.php');
37
40  var $prefixId = 'tx_mthfeedit';		// Same as class name
41  var $scriptRelPath = 'class.tx_mthfeedit.php';	// Path to this script relative to the extension dir.
42  var $extKey = 'mth_feedit';	// The extension key.
95    // loads default locallang
96    $this->LOCAL_LANG = $GLOBALS['TSFE']->readLLfile(t3lib_extMgm::extPath($this->extKey).'locallang.php');
97    // loads callers locallang
327      if(!$withHTML) {
328	$result[] = $label.chr(10).$fieldCode.chr(10);
329      } else {
markdownify.php https://github.com/ISVGitHub/bolt.git | PHP | 1,184 lines
45 */
46require_once dirname(__FILE__).'/parsehtml.php';
47
1063   *
1064   * @author derernst@gmx.ch <http://www.php.net/manual/en/function.html-entity-decode.php#68536>
1065   * @author Milian Wolff <http://milianw.de>
1104  /**
1105   * UTF-8 chr() which supports numeric entities
1106   *
1106   *
1107   * @author grey - greywyvern - com <http://www.php.net/manual/en/function.chr.php#55978>
1108   * @param array $matches
1129   *
1130   * @author dtorop 932 at hotmail dot com <http://www.php.net/manual/en/function.strlen.php#37975>
1131   * @author Milian Wolff <http://milianw.de>
upgrade.php https://github.com/cxc222/weibo.git | PHP | 538 lines
1<?php
2/**
16
17$config = require 'config.inc.php';
18$dbconfig = array();
44		break;
45	case 'php':
46		dump($result);
152	$text	=	str_ireplace(array("\r\t","\n\l","\r","\n","\t","\l","'",'&nbsp;','&amp;'),'',$text);
153	$text	=	str_ireplace(array(chr('0001'),chr('0002'),chr('0003'),chr('0004'),chr('0005'),chr('0006'),chr('0007'),chr('0008')),'',$text);
154	$text	=	str_ireplace(array(chr('0009'),chr('0010'),chr('0011'),chr('0012'),chr('0013'),chr('0014'),chr('0015'),chr('0016')),'',$text);
155	$text	=	str_ireplace(array(chr('0017'),chr('0018'),chr('0019'),chr('0020'),chr('0021'),chr('0022'),chr('0023'),chr('0024')),'',$text);
156	$text	=	str_ireplace(array(chr('0025'),chr('0026'),chr('0027'),chr('0028'),chr('0029'),chr('0030'),chr('0031'),chr('0032')),'',$text);
157	return $text;
161 +------------------------------------------------------------------------------
162 * ThinkPHP 简洁模式数据库中间层实现类
163 * 只支持mysql
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21