PageRenderTime 2268ms queryFilters 12ms Sphinxql 376ms GetByIds 1133ms meta 0ms repositoryFilters 199ms languageFilters 15ms sourceFilters 65ms

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

Source

Language

Repository

test.PHPCLI.php https://github.com/costinu/cms.git | PHP | 136 lines
30{
31    public function PHPCLI() { parent::AbstractTest("PHP Command Line", "Testing PHP command line (default is php)"); }
32    public function doTest()
39        }
40        $windows = (PHP_OS == "WIN32" || PHP_OS == "WINNT" || PHP_OS == "Windows");
41
72        $testScript = AJXP_CACHE_DIR."/cli_test.php";
73        file_put_contents($testScript, "<?php file_put_contents('".$robustCacheDir.DIRECTORY_SEPARATOR."cli_result.php', 'cli'); ?>");
74
78            /* Next 2 lines modified by rmeske: Need to wrap the folder and file paths in double quotes.  */
79            $cmd = $defaultCli." ". chr(34).$robustCacheDir .DIRECTORY_SEPARATOR."cli_test.php".chr(34);
80            $cmd .= " > ".chr(34).$logFile.chr(34);
87                $tmpBat = implode(DIRECTORY_SEPARATOR, array(str_replace("/", DIRECTORY_SEPARATOR, AJXP_INSTALL_PATH), "data","tmp", md5(time()).".bat"));
88                $cmd .= "\n DEL ".chr(34).$tmpBat.chr(34);
89                file_put_contents($tmpBat, $cmd);
TokenizerTest.php https://github.com/prateeksachan/search-api-sandbox.git | PHP | 308 lines
195  /**
196   * Like PHP chr() function, but for unicode characters.
197   *
197   *
198   * chr() only works for ASCII characters up to character 255. This function
199   * converts a number to the corresponding unicode character. Adapted from
207    if ($num < 2048) {
208      return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
209    }
211    if ($num < 65536) {
212      return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
213    }
215    if ($num < 2097152) {
216      return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
217    }
class.AJXP_Controller.php https://github.com/costinu/cms.git | PHP | 580 lines
328        $robustInstallPath = str_replace("/", DIRECTORY_SEPARATOR, AJXP_INSTALL_PATH);
329        $cmd = ConfService::getCoreConf("CLI_PHP")." ".$robustInstallPath.DIRECTORY_SEPARATOR."cmd.php -u=$user -t=$token -a=$actionName -r=$currentRepositoryId";
330        /* Inserted next 3 lines to quote the command if in windows - rmeske*/
331        if (PHP_OS == "WIN32" || PHP_OS == "WINNT" || PHP_OS == "Windows") {
332            $cmd = ConfService::getCoreConf("CLI_PHP")." ".chr(34).$robustInstallPath.DIRECTORY_SEPARATOR."cmd.php".chr(34)." -u=$user -t=$token -a=$actionName -r=$currentRepositoryId";
333        }
351        /*
352        if (PHP_OS == "WIN32" || PHP_OS == "WINNT" || PHP_OS == "Windows") {
353            if(AJXP_SERVER_DEBUG) $cmd .= " > ".$logFile;
358                $tmpBat = implode(DIRECTORY_SEPARATOR, array( $robustInstallPath, "data","tmp", md5(time()).".bat"));
359                $cmd .= "\n DEL ".chr(34).$tmpBat.chr(34);
360                AJXP_Logger::debug("Writing file $cmd to $tmpBat");
378    {
379        if (PHP_OS == "WIN32" || PHP_OS == "WINNT" || PHP_OS == "Windows") {
380              if(AJXP_SERVER_DEBUG) $cmd .= " > ".$logFile;
stripslashes_variation2.php git://github.com/facebook/hiphop-php.git | PHP | 103 lines
49                    'he said, ""he will be on leave"',
50                    '"""PHP"""',
51                    "",
65                    'hello'.chr(0).'world',
66                    chr(0).'hello'.chr(0),
67                    chr(0).chr(0).'hello',
67                    chr(0).chr(0).'hello',
68                    chr(0),
69
72                    "'\\0.0.0.0'".chr(0),
73                    chr(0)."'c:\php\'",
74                    '"\\0.0.0.0"',
74                    '"\\0.0.0.0"',
75                    '"c:\php\"'.chr(0)."'",
76                    '"hello"'."'world'".chr(0).'//',
addslashes_variation2.php git://github.com/facebook/hiphop-php.git | PHP | 85 lines
38                    'he said, ""he will be on leave"',
39                    '"""PHP"""',
40                    "",
52                    'hello'.chr(0).'world',
53                    chr(0).'hello'.chr(0),
54                    chr(0).chr(0).'hello',
54                    chr(0).chr(0).'hello',
55                    chr(0),
56
59                    "'\\0.0.0.0'".chr(0),
60                    chr(0)."'c:\php\'",
61                    '"\\0.0.0.0"',
61                    '"\\0.0.0.0"',
62                    '"c:\php\"'.chr(0)."'",
63                    '"hello"'."'world'".chr(0).'//',
phpToJS.php git://github.com/phpnode/YiiJS.git | PHP | 1,640 lines
3 * A woefully naive, context unaware PHP to JavaScript token transformer.
4 * Relies on php.js for a lot of the built in PHP functions.
5 * HERE BE DRAGONS!
202		'addslashes' => 'php.addslashes',
203		'chr' => 'php.chr',
204		'crc32' => 'php.crc32',
1414 */
1415class phpClass extends phpBase {
1416	
1512 */
1513class phpProperty extends phpBase {
1514	/**
1547 */
1548class phpMethod extends phpBase {
1549	/**
SearchTokenizerTest.php git://github.com/drupal/drupal.git | PHP | 152 lines
124  /**
125   * Like PHP chr() function, but for unicode characters.
126   *
126   *
127   * chr() only works for ASCII characters up to character 255. This function
128   * converts a number to the corresponding unicode character. Adapted from
136    if ($num < 2048) {
137      return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
138    }
140    if ($num < 65536) {
141      return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
142    }
144    if ($num < 2097152) {
145      return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
146    }
php-strings.el git://github.com/ejmr/php-mode.git | Lisp | 769 lines
20
21;; http://php.net/manual/en/ref.strings.php
22;; file:///usr/share/doc/php-doc/html/ref.strings.html
36
37(define-skeleton php-bin2hex
38  "Insert a bin2hex statement"
48
49(define-skeleton php-chr
50  "Insert a chr statement. Returns a specific character from ascii code"
77
78(define-skeleton php-convert_uuencode
79  "Insert a bin2hex statement"
587
588(define-skeleton php-strrchr
589  "Insert a strrchr statement. Find the last occurrence of a character in a string"
SQLiteDialect.class.php git://github.com/xp-framework/xp-framework.git | PHP | 243 lines
50        'datediff_3'   => 'datediff_not_implemented',
51        'datename_2'   => 'php("strval", php("idate", %t, php("strtotime", %s)))',
52        'datepart_2'   => 'php("idate", %t, php("strtotime", %s))',
57        'getdate_0'    => 'php("date", "Y-m-d H:i:s", php("time"))',
58        'hour_1'       => 'php("idate", "H", php("strtotime", %s))',
59        'len_1'        => 'php("strlen", %s)',
68        'minute_1'     => 'php("idate", "i", php("strtotime", %s))',
69        'month_1'      => 'php("idate", "m", php("strtotime", %s))',
70        'nullif_2'     => 'nullif(%s, %s)',
78        'rtrim_2'      => 'php("rtrim", %s, %s)',
79        'second_1'     => 'php("idate", "s", php("strtotime", %s))',
80        'sign_1'       => 'sign(%d)',
91        'upper_1'      => 'php("strtoupper", %s)',
92        'year_1'       => 'php("idate", "Y", php("strtotime", %s))',
93      );
SQLFunctionTest.class.php git://github.com/xp-framework/xp-framework.git | PHP | 395 lines
164      '(\'aa\' || str(getdate()) || \'cc\') as "concatTest"',
165      '\'aa\' || php(\'strval\', php(\'date\', \'Y-m-d H:i:s\', php(\'time\'))) || \'cc\' as \'concatTest\'',
166      create(new \rdbms\Criteria())->setProjection(SQLFunctions::concat('aa', SQLFunctions::str(SQLFunctions::getdate()), 'cc'), 'concatTest')
201      'datename(hour, getdate())',
202      'php(\'strval\', php(\'idate\', "H", php(\'strtotime\', php(\'date\', \'Y-m-d H:i:s\', php(\'time\')))))',
203      create(new \rdbms\Criteria())->setProjection(SQLFunctions::datename('hour', SQLFunctions::getdate()))
261      'round(1.5, 0) as "roundtest1", round(1.49, 0) as "roundtest2", round(1.49, 1) as "roundtest3"',
262      'php(\'round\', 1.5, 0) as \'roundtest1\', php(\'round\', 1.49, 0) as \'roundtest2\', php(\'round\', 1.49, 1) as \'roundtest3\'',
263      create(new \rdbms\Criteria())->setProjection(\rdbms\criterion\Projections::ProjectionList()
383      'where job_id = ceil(asin(sin(0.125)))',
384      'where job_id = php(\'ceil\', php(\'asin\', php(\'sin\', 0.125)))',
385      create(new \rdbms\Criteria())->add(Restrictions::equal('job_id', SQLFunctions::ceil(SQLFunctions::asin(SQLFunctions::sin(0.125)))))
390      'where job_id = ceil(asin(sin(0.125)))',
391      'where job_id = php(\'ceil\', php(\'asin\', php(\'sin\', 0.125)))',
392      create(new \rdbms\Criteria())->add(Restrictions::equal(Job::column('job_id'), SQLFunctions::ceil(SQLFunctions::asin(SQLFunctions::sin(0.125)))))
class.csv-to-api.php https://github.com/jmmnn/csv-to-api.git | PHP | 1,342 lines
1143        .chr(159).chr(162).chr(165).chr(181).chr(192).chr(193).chr(194)
1144        .chr(195).chr(196).chr(197).chr(199).chr(200).chr(201).chr(202)
1145        .chr(203).chr(204).chr(205).chr(206).chr(207).chr(209).chr(210)
1145        .chr(203).chr(204).chr(205).chr(206).chr(207).chr(209).chr(210)
1146        .chr(211).chr(212).chr(213).chr(214).chr(216).chr(217).chr(218)
1147        .chr(219).chr(220).chr(221).chr(224).chr(225).chr(226).chr(227)
1147        .chr(219).chr(220).chr(221).chr(224).chr(225).chr(226).chr(227)
1148        .chr(228).chr(229).chr(231).chr(232).chr(233).chr(234).chr(235)
1149        .chr(236).chr(237).chr(238).chr(239).chr(241).chr(242).chr(243)
1149        .chr(236).chr(237).chr(238).chr(239).chr(241).chr(242).chr(243)
1150        .chr(244).chr(245).chr(246).chr(248).chr(249).chr(250).chr(251)
1151        .chr(252).chr(253).chr(255);
1155      $string = strtr($string, $chars['in'], $chars['out']);
1156      $double_chars['in'] = array(chr(140), chr(156), chr(198), chr(208), chr(222), chr(223), chr(230), chr(240), chr(254));
1157      $double_chars['out'] = array('OE', 'oe', 'AE', 'DH', 'TH', 'ss', 'ae', 'dh', 'th');
index.php https://github.com/michael-cannon/typo3-extensions.git | PHP | 1,247 lines
1<?php
2/***************************************************************
89unset($MCONF);
90require ('conf.php');
91require ($BACK_PATH.'init.php');
91require ($BACK_PATH.'init.php');
92require ($BACK_PATH.'template.php');
93$LANG->includeLLFile('EXT:kb_tv_migrate/mod1/locallang.php');
93$LANG->includeLLFile('EXT:kb_tv_migrate/mod1/locallang.php');
94#include ('locallang.php');
95require_once (PATH_t3lib.'class.t3lib_scbase.php');
95require_once (PATH_t3lib.'class.t3lib_scbase.php');
96require_once (PATH_t3lib.'class.t3lib_treeview.php');
97require_once (PATH_t3lib.'class.t3lib_tceforms.php');
97require_once (PATH_t3lib.'class.t3lib_tceforms.php');
98require_once (PATH_t3lib.'class.t3lib_tcemain.php');
99require_once (t3lib_extMgm::extPath('templavoila').'class.tx_templavoila_xmlrelhndl.php');
util.php https://github.com/ISVGitHub/bolt.git | PHP | 2,207 lines
1139                     .chr(159).chr(162).chr(165).chr(181).chr(192).chr(193).chr(194)
1140                     .chr(195).chr(196).chr(197).chr(199).chr(200).chr(201).chr(202)
1141                     .chr(203).chr(204).chr(205).chr(206).chr(207).chr(209).chr(210)
1141                     .chr(203).chr(204).chr(205).chr(206).chr(207).chr(209).chr(210)
1142                     .chr(211).chr(212).chr(213).chr(214).chr(216).chr(217).chr(218)
1143                     .chr(219).chr(220).chr(221).chr(224).chr(225).chr(226).chr(227)
1143                     .chr(219).chr(220).chr(221).chr(224).chr(225).chr(226).chr(227)
1144                     .chr(228).chr(229).chr(231).chr(232).chr(233).chr(234).chr(235)
1145                     .chr(236).chr(237).chr(238).chr(239).chr(241).chr(242).chr(243)
1145                     .chr(236).chr(237).chr(238).chr(239).chr(241).chr(242).chr(243)
1146                     .chr(244).chr(245).chr(246).chr(248).chr(249).chr(250).chr(251)
1147                     .chr(252).chr(253).chr(255);
1151                $string = strtr( $string, $chars['in'], $chars['out'] );
1152                $double_chars['in'] = array( chr(140), chr(156), chr(198), chr(208), chr(222), chr(223), chr(230), chr(240), chr(254) );
1153                $double_chars['out'] = array( 'OE', 'oe', 'AE', 'DH', 'TH', 'ss', 'ae', 'dh', 'th' );
BasicIPP.php https://github.com/nethesis/nethserver-cups.git | PHP | 2,001 lines
2/* vim: set expandtab tabstop=2 shiftwidth=2 foldmethod=marker: */
3/* @(#) $Header: /sources/phpprintipp/phpprintipp/php_classes/BasicIPP.php,v 1.6 2010/08/22 15:45:17 harding Exp $
4 *
383  $this->meta->copies = chr(0x21) // integer type | value-tag
384   . chr(0x00) . chr(0x06) //             name-length
385   . "copies" // copies    |             name
1830     _("Values must be between -2147483648 and 2147483647: assuming '0'") , E_USER_WARNING);
1831   return chr(0x00) . chr(0x00) . chr(0x00) . chr(0x00);
1832  }
1843  $int4 = $value & 0xFF; //64bits
1844  if ($initial_value < 0) $int4 = chr($int4) | chr(0x80);
1845  else $int4 = chr($int4);
1845  else $int4 = chr($int4);
1846  $value = $int4 . chr($int3) . chr($int2) . chr($int1);
1847  return $value;
pdfest.php https://github.com/paanblogger/sacl.git | PHP | 4,114 lines
570					$cw = array(
571						chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
572						chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584,
576						'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556,
577						chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
578						chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
578						chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
579						chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,
580						chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
580						chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
581						chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556,
582						chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
1558		//Check signature
1559		if(fread($f,8)!=chr(137).'PNG'.chr(13).chr(10).chr(26).chr(10))
1560			$this->Error('Not a PNG file: '.$file);
util.php https://github.com/adoweb/utilphp.git | PHP | 2,003 lines
927                     .chr(159).chr(162).chr(165).chr(181).chr(192).chr(193).chr(194)
928                     .chr(195).chr(196).chr(197).chr(199).chr(200).chr(201).chr(202)
929                     .chr(203).chr(204).chr(205).chr(206).chr(207).chr(209).chr(210)
929                     .chr(203).chr(204).chr(205).chr(206).chr(207).chr(209).chr(210)
930                     .chr(211).chr(212).chr(213).chr(214).chr(216).chr(217).chr(218)
931                     .chr(219).chr(220).chr(221).chr(224).chr(225).chr(226).chr(227)
931                     .chr(219).chr(220).chr(221).chr(224).chr(225).chr(226).chr(227)
932                     .chr(228).chr(229).chr(231).chr(232).chr(233).chr(234).chr(235)
933                     .chr(236).chr(237).chr(238).chr(239).chr(241).chr(242).chr(243)
933                     .chr(236).chr(237).chr(238).chr(239).chr(241).chr(242).chr(243)
934                     .chr(244).chr(245).chr(246).chr(248).chr(249).chr(250).chr(251)
935                     .chr(252).chr(253).chr(255);
939                $string = strtr( $string, $chars['in'], $chars['out'] );
940                $double_chars['in'] = array( chr(140), chr(156), chr(198), chr(208), chr(222), chr(223), chr(230), chr(240), chr(254) );
941                $double_chars['out'] = array( 'OE', 'oe', 'AE', 'DH', 'TH', 'ss', 'ae', 'dh', 'th' );
jsonrpc.inc.php https://github.com/usrio/php-mmcfe-ng.git | PHP | 1,584 lines
73			case 'ISO-8859-1_US-ASCII':
74				$escaped_data = str_replace(array('\\', '"', '/', "\t", "\n", "\r", chr(8), chr(11), chr(12)), array('\\\\', '\"', '\/', '\t', '\n', '\r', '\b', '\v', '\f'), $data);
75				$escaped_data = str_replace($GLOBALS['ecma262_iso88591_Entities']['in'], $GLOBALS['ecma262_iso88591_Entities']['out'], $escaped_data);
77			case 'ISO-8859-1_UTF-8':
78				$escaped_data = str_replace(array('\\', '"', '/', "\t", "\n", "\r", chr(8), chr(11), chr(12)), array('\\\\', '\"', '\/', '\t', '\n', '\r', '\b', '\v', '\f'), $data);
79				$escaped_data = utf8_encode($escaped_data);
86			case 'UTF-8_UTF-8':
87				$escaped_data = str_replace(array('\\', '"', '/', "\t", "\n", "\r", chr(8), chr(11), chr(12)), array('\\\\', '\"', '\/', '\t', '\n', '\r', '\b', '\v', '\f'), $data);
88				break;
347											{
348												$outdata .= chr(0xf0 | $ii >> 20) . chr(0x80 | ($ii >> 12 & 0x3f)) . chr(0x80 | ($ii >> 6 & 0x3f)) . chr(0x80 | ($ii & 0x3f));
349											}
379											{
380												$outdata .= chr(0xf0 | $ii >> 20) . chr(0x80 | ($ii >> 12 & 0x3f)) . chr(0x80 | ($ii >> 6 & 0x3f)) . chr(0x80 | ($ii & 0x3f));
381											}
util.php https://github.com/schwarzmedia/bolt.git | PHP | 2,107 lines
1038                     .chr(159).chr(162).chr(165).chr(181).chr(192).chr(193).chr(194)
1039                     .chr(195).chr(196).chr(197).chr(199).chr(200).chr(201).chr(202)
1040                     .chr(203).chr(204).chr(205).chr(206).chr(207).chr(209).chr(210)
1040                     .chr(203).chr(204).chr(205).chr(206).chr(207).chr(209).chr(210)
1041                     .chr(211).chr(212).chr(213).chr(214).chr(216).chr(217).chr(218)
1042                     .chr(219).chr(220).chr(221).chr(224).chr(225).chr(226).chr(227)
1042                     .chr(219).chr(220).chr(221).chr(224).chr(225).chr(226).chr(227)
1043                     .chr(228).chr(229).chr(231).chr(232).chr(233).chr(234).chr(235)
1044                     .chr(236).chr(237).chr(238).chr(239).chr(241).chr(242).chr(243)
1044                     .chr(236).chr(237).chr(238).chr(239).chr(241).chr(242).chr(243)
1045                     .chr(244).chr(245).chr(246).chr(248).chr(249).chr(250).chr(251)
1046                     .chr(252).chr(253).chr(255);
1050                $string = strtr( $string, $chars['in'], $chars['out'] );
1051                $double_chars['in'] = array( chr(140), chr(156), chr(198), chr(208), chr(222), chr(223), chr(230), chr(240), chr(254) );
1052                $double_chars['out'] = array( 'OE', 'oe', 'AE', 'DH', 'TH', 'ss', 'ae', 'dh', 'th' );
lancheck.php https://github.com/CasperGemini/e107.git | PHP | 1,833 lines
572		$message = "<div style='text-align:left'><br />";
573		$input .= chr(60)."?php\n";
574		if ($old_kom == "")
1247		/*
1248		* @see http://hsivonen.iki.fi/php-utf8/   validation.php
1249		*/
1328					$bomkey = str_replace(".php","",$k_check);
1329					$bom_error = ($check['bom'][$bomkey]) ? "<span class='error'><em>".str_replace("[php]", "<?php", LAN_CHECK_15)."</em></span><br />" : ""; // illegal chars
1330	
1338						if($sk == "LC_ALL"){
1339							$check[$k][$sk] = str_replace(chr(34).chr(34),"",$check[$k][$sk]);
1340						}
1781	function is_utf8($str) {
1782		// @see http://hsivonen.iki.fi/php-utf8/   validation.php
1783	
lizardbot.php https://github.com/revi/LizardBot-PHP.git | PHP | 2,210 lines
333                    '/fail bot[!?.]*$/i' => '%n: Fail human.',
334                    '/good bot[!?.]*$/i' => chr(1).'ACTION purrs at %n'.chr(1),
335                    '/^ping$/i' => 'pong',
1058
1059	if($d[3] == chr(001) . "FINGER" . chr(001)) {
1060		$ctcpcount++;
1107/*		fwrite($ircc, "PRIVMSG $c :$target2: Hello!  I am LizardBot-1, FastLizard4's PHP bot.  I am written 
1108in PHP 5 Procedural.  I work on both Windows and *Nix systems with PHP installed.  I am run from the command line.  These are the commands you can run (the trigger is {$setTrigger}):\r\n");
1109		sleep(2);
1704		$php_os = PHP_OS;
1705		$data = "I am bot {$nick}. Software: LizardBot for PHP v{$version} (http://fastlizard4.org/wiki/LizardBot) on OS {$php_os}; Uptime: {$uptime['current']}; I have been used a total of {$totalcount} times (Commands: {$cmdcount} [Of which, {$insultcount} were insult commands], Server pings: {$pingcount}, Recognized CTCPs: {$ctcpcount}, AI calls: {$aicount}, Fishbot calls: {$fishcount}).";
1706		$target = explode("!", $d[0]);
1783			if(!$apiPipeSetoptSuccess) { // Uhoh, it looks like that, for some reason, configuration of the pipe failed.
1784				$data = "For some reason, curl_setopt_array() configuration failed.  Perhaps you're running an obsolete version of PHP-cURL?  Or perhaps your version of PHP is outdated?";
1785			} else { // Configuration worked, so we're free to continue.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21