PageRenderTime 1113ms queryFilters 2ms Sphinxql 50ms app.CodeModel.GetByIds 780ms findMatchingLines 211ms GetByIds 991ms meta 0ms repositoryFilters 4ms languageFilters 2ms sourceFilters 3ms

21,207 results for 'php chr repo:thomashii/vtigercrm-6-for-postgresql' (1113 ms)

Source

Language

Repository

ordre2csv.php https://github.com/nielsrune/saldi.git | PHP | 72 lines
1<?php
2// -------------kreditor/ordre2csv.php----------lap 2.0.5------2009-02-24----
3// LICENS
24
25include("../includes/connect.php");
26include("../includes/online.php");
34print "<table width=\"100%\" align=\"center\" border=\"0\" cellspacing=\"2\" cellpadding=\"0\"><tbody>"; #B1
35print "<td width=\"10%\" $top_bund><font face=\"Helvetica, Arial, sans-serif\" color=\"#000066\"><a href=../includes/luk.php accesskey=L>Luk</a></td>";
36print "<td width=\"80%\" $top_bund><font face=\"Helvetica, Arial, sans-serif\" color=\"#000066\">$title</td>";
45
46fwrite($fp,"Pos".chr(9)."Vores varenummer".chr(9)."Deres varenummer".chr(9)."Beskrivelse".chr(9)."Antal".chr(9)."Pris".chr(9)."Rabat".chr(9)."I alt".chr(9)."\n");
47$q=db_select("select * from ordrelinjer where ordre_id = $ordre_id order by posnr");
61	
62	fwrite($fp,$r[posnr].chr(9).$varenr.chr(9).$lev_vnr.chr(9).$beskrivelse.chr(9).$antal.chr(9).$pris.chr(9).$rabat.chr(9).$ialt."\n");
63}
class.pdf.php https://github.com/muchael/expressolivre.git | PHP | 5,635 lines
2055      // figure out the additional paramaters required
2056      $pad =  chr(0x28) .chr(0xBF) .chr(0x4E) .chr(0x5E) .chr(0x4E) .chr(0x75) .chr(0x8A) .chr(0x41) .chr(0x64) .chr(0x00) .chr(0x4E) .chr(0x56) .chr(0xFF) .chr(0xFA) .chr(0x01) .chr(0x08) .chr(0x2E) .chr(0x2E) .chr(0x00) .chr(0xB6) .chr(0xD0) .chr(0x68) .chr(0x3E) .chr(0x80) .chr(0x2F) .chr(0x0C) .chr(0xA9) .chr(0xFE) .chr(0x64) .chr(0x53) .chr(0x69) .chr(0x7A);
2057
2094      // now make the u value, phew.
2095      $tmp =  $this->md5_16($user.$ovalue.chr($options['p']) .chr(255) .chr(255) .chr(255) .$this->fileIdentifier);
2096
2182
2183    $tmp.=  chr(hexdec(substr($hex, 4, 2))) .chr(hexdec(substr($hex, 2, 2))) .chr(hexdec(substr($hex, 0, 2))) .chr(0) .chr(0);
2184
3713  function  utf8toCodePointsArray(&$text) {
3714    $length = mb_strlen($text,'8bit'); // http://www.php.net/manual/en/function.mb-strlen.php#77040
3715    $unicode = array(); // array containing unicode values
4982
4983      $header =  chr(137) .chr(80) .chr(78) .chr(71) .chr(13) .chr(10) .chr(26) .chr(10);
4984
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.inc.php https://github.com/TechGemIN/DomPDF-Boilerplate.git | PHP | 1,055 lines
812  else if ($c <= 0x7FF) {
813    return chr(0xC0 | $c >>  6) . chr(0x80 | $c & 0x3F);
814  }
815  else if ($c <= 0xFFFF) {
816    return chr(0xE0 | $c >> 12) . chr(0x80 | $c >> 6 & 0x3F)
817                                . chr(0x80 | $c & 0x3F);
819  else if ($c <= 0x10FFFF) {
820    return chr(0xF0 | $c >> 18) . chr(0x80 | $c >> 12 & 0x3F)
821                                . chr(0x80 | $c >> 6 & 0x3F)
842 * PDF streaming is impossible.
843 * @see http://www.php.net/manual/en/function.set-error_handler.php
844 *
968 *
969 * @link http://us.php.net/manual/en/function.sys-get-temp-dir.php#85261
970 */
JSON.php https://bitbucket.org/bontiv/insomnia | PHP | 807 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 */
521
522                        $substr_chrs_c_2 = substr($chrs, $c, 2);
523                        $ord_chrs_c = ord($chrs{$c});
649                        $top = end($stk);
650                        $substr_chrs_c_2 = substr($chrs, $c, 2);
651
700                        ($top['what'] == SERVICES_JSON_IN_STR) &&
701                        ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) {
702                            // found a quote, we're in a string, and it's not escaped
742                            for ($i = $top['where']; $i <= $c; ++$i)
743                            $chrs = substr_replace($chrs, ' ', $i, 1);
744
JSON.php https://bitbucket.org/narara/seezoo | PHP | 868 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 */
583
584                        $substr_chrs_c_2 = substr($chrs, $c, 2);
585                        $ord_chrs_c = ord($chrs{$c});
711                        $top = end($stk);
712                        $substr_chrs_c_2 = substr($chrs, $c, 2);
713
762                                 ($top['what'] == SERVICES_JSON_IN_STR) &&
763                                 ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) {
764                            // found a quote, we're in a string, and it's not escaped
804                            for ($i = $top['where']; $i <= $c; ++$i)
805                                $chrs = substr_replace($chrs, ' ', $i, 1);
806
format.php https://bitbucket.org/ceu/moodle_demo | PHP | 719 lines
1<?PHP // $Id: format.php,v 1.12.4.18 2012/05/19 11:04:54 moodlerobot Exp $
2////////////////////////////////////////////////////////////////////////////
9
10// Based on default.php, included by ../import.php
11/**
663function hotpot_charcode_to_utf8($charcode) {
664    // thanks to Miguel Perez: http://jp2.php.net/chr (19-Sep-2007)
665    if ($charcode <= 0x7F) {
670        // 2-byte char
671        return chr(($charcode >> 0x06) + 0xC0).chr(($charcode & 0x3F) + 0x80);
672    }
674        // 3-byte char
675        return chr(($charcode >> 0x0C) + 0xE0).chr((($charcode >> 0x06) & 0x3F) + 0x80).chr(($charcode & 0x3F) + 0x80);
676    }
678        // 4-byte char
679        return chr(($charcode >> 0x12) + 0xF0).chr((($charcode >> 0x0C) & 0x3F) + 0x80).chr((($charcode >> 0x06) & 0x3F) + 0x80).chr(($charcode & 0x3F) + 0x80);
680    }
textlib.class.php https://bitbucket.org/ceu/moodle_demo | PHP | 453 lines
1<?php  // $Id: textlib.class.php,v 1.25 2007/10/10 05:25:15 nicolasconnault Exp $
2
62    define ('PATH_site', str_replace('\\','/',$CFG->dataroot.'/temp/'));
63    define ('TYPO3_OS', stristr(PHP_OS,'win')&&!stristr(PHP_OS,'darwin')?'WIN':'');
64
304     * Original from laurynas dot butkus at gmail at:
305     * http://php.net/manual/en/function.html-entity-decode.php#75153
306     * with some custom mods to provide more functionality
405        if ($num < 2048) {
406            return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
407        }
408        if ($num < 65536) {
409            return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
410        }
411        if ($num < 2097152) {
412            return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
413        }
text.php https://bitbucket.org/synergylearning/campusconnect.git | PHP | 728 lines
99            define('PATH_site', str_replace('\\','/',$CFG->tempdir.'/'));
100            define('TYPO3_OS', stristr(PHP_OS,'win')&&!stristr(PHP_OS,'darwin')?'WIN':'');
101        }
526     * Original from laurynas dot butkus at gmail at:
527     * http://php.net/manual/en/function.html-entity-decode.php#75153
528     * with some custom mods to provide more functionality
634        if ($num < 2048) {
635            return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
636        }
637        if ($num < 65536) {
638            return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
639        }
640        if ($num < 2097152) {
641            return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
642        }
tcpdf_filters.php https://bitbucket.org/synergylearning/campusconnect.git | PHP | 482 lines
1<?php
2//============================================================+
46 * @package com.tecnick.tcpdf
47 * @brief This is a PHP class for decoding common PDF filters.
48 * @version 1.0.001
212		// z sequence
213		$zseq = chr(0).chr(0).chr(0).chr(0);
214		// position inside a group of 4 bytes (0-3)
232				if ($group_pos == 4) {
233					$decoded .= chr($tuple >> 24).chr($tuple >> 16).chr($tuple >> 8).chr($tuple);
234					$tuple = 0;
246			case 4: {
247				$decoded .= chr($tuple >> 24).chr($tuple >> 16).chr($tuple >> 8);
248				break;
250			case 3: {
251				$decoded .= chr($tuple >> 24).chr($tuple >> 16);
252				break;
JSON.php https://github.com/apinstein/phocoa.git | PHP | 806 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*/
521
522                        $substr_chrs_c_2 = substr($chrs, $c, 2);
523                        $ord_chrs_c = ord($chrs{$c});
649                        $top = end($stk);
650                        $substr_chrs_c_2 = substr($chrs, $c, 2);
651
700                                 ($top['what'] == SERVICES_JSON_IN_STR) &&
701                                 ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) {
702                            // found a quote, we're in a string, and it's not escaped
742                            for ($i = $top['where']; $i <= $c; ++$i)
743                                $chrs = substr_replace($chrs, ' ', $i, 1);
744
Inflector.php https://github.com/ostric/e-learning.git | PHP | 259 lines
215      		$chars['in'] = chr(128).chr(131).chr(138).chr(142).chr(154).chr(158)
216      			.chr(159).chr(162).chr(165).chr(181).chr(192).chr(193).chr(194)
217      			.chr(195).chr(196).chr(197).chr(199).chr(200).chr(201).chr(202)
217      			.chr(195).chr(196).chr(197).chr(199).chr(200).chr(201).chr(202)
218      			.chr(203).chr(204).chr(205).chr(206).chr(207).chr(209).chr(210)
219      			.chr(211).chr(212).chr(213).chr(214).chr(216).chr(217).chr(218)
219      			.chr(211).chr(212).chr(213).chr(214).chr(216).chr(217).chr(218)
220      			.chr(219).chr(220).chr(221).chr(224).chr(225).chr(226).chr(227)
221      			.chr(228).chr(229).chr(231).chr(232).chr(233).chr(234).chr(235)
221      			.chr(228).chr(229).chr(231).chr(232).chr(233).chr(234).chr(235)
222      			.chr(236).chr(237).chr(238).chr(239).chr(241).chr(242).chr(243)
223      			.chr(244).chr(245).chr(246).chr(248).chr(249).chr(250).chr(251)
228      		$string = strtr($string, $chars['in'], $chars['out']);
229      		$doubleChars['in'] = array(chr(140), chr(156), chr(198), chr(208), chr(222), chr(223), chr(230), chr(240), chr(254));
230      		$doubleChars['out'] = array('OE', 'oe', 'AE', 'DH', 'TH', 'ss', 'ae', 'dh', 'th');
Level1.cpp https://github.com/Aion/caldari.git | C++ | 1,462 lines
177
178        chr->SetRecallPosition(chr->GetMapId(),chr->GetPositionX(),chr->GetPositionY(),chr->GetPositionZ(),chr->GetOrientation());
179
223            if ( (MapManager::Instance().GetMap(_player->GetMapId(), _player)->Instanceable()) &&
224                (MapManager::Instance().GetMap(chr->GetMapId(), chr)->GetInstanceId() != 
225                  MapManager::Instance().GetMap(_player->GetMapId(), _player)->GetInstanceId()) )
254            // bind us to the players instance
255            BoundInstancesMap::iterator i = chr->m_BoundInstances.find(chr->GetMapId());
256            if (i == chr->m_BoundInstances.end()) return true; // error, the player has no instance bound!!!
278
279        _player->TeleportTo(chr->GetMapId(), x, y, z, _player->GetAngle( chr ), true, true, true);
280        return true;
348
349    chr->TeleportTo(chr->m_recallMap, chr->m_recallX, chr->m_recallY, chr->m_recallZ, chr->m_recallO);
350    return true;
Level1.cpp https://github.com/fanatix/fanatix-core.git | C++ | 2,561 lines
405            // remember current position as entry point for return at bg end teleportation
406            chr->SetBattleGroundEntryPoint(chr->GetMapId(),chr->GetPositionX(),chr->GetPositionY(),chr->GetPositionZ(),chr->GetOrientation());
407        }
447        m_session->GetPlayer()->GetClosePoint(x,y,z,chr->GetObjectSize());
448        chr->TeleportTo(m_session->GetPlayer()->GetMapId(),x,y,z,chr->GetOrientation());
449    }
682
683    chr->TeleportTo(chr->m_recallMap, chr->m_recallX, chr->m_recallY, chr->m_recallZ, chr->m_recallO);
684    return true;
1278
1279    std::string chrNameLink = GetNameLink(chr);
1280
1323
1324    std::string chrNameLink = GetNameLink(chr);
1325
mimeDecode.php https://github.com/Br3nda/laconica.git | PHP | 849 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>
JSON.php https://github.com/chregu/fluxcms.git | PHP | 822 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 */
532                    $utf8 = '';
533                    $strlen_chrs = strlen($chrs);
534
659
660                    $strlen_chrs = strlen($chrs);
661
715                                 ($top['what'] == SERVICES_JSON_IN_STR) &&
716                                 ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) {
717                            // found a quote, we're in a string, and it's not escaped
757                            for ($i = $top['where']; $i <= $c; ++$i)
758                                $chrs = substr_replace($chrs, ' ', $i, 1);
759
FX.php https://github.com/nojimage/FileMaker-Todo-App.git | PHP | 2,057 lines
575                fclose($fp);
576                $pos = strpos($data, chr(13) . chr(10) . chr(13) . chr(10)); // the separation code
577                $data = substr($data, $pos + 4) . "\r\n";
702                fclose($fp);
703                $pos = strpos($data, chr(13) . chr(10) . chr(13) . chr(10)); // the separation code
704                $data = substr($data, $pos + 4) . "\r\n";
1252        }
1253        $CAFEphp_res = new COM('CAFEphp.Application'); // although username and password are optional for this function, FX.php expects them to be set
1254        if ($CAFEphp_res == false) {
1785				}
1786            	$convedValue .= str_repeat( mb_convert_encoding(chr(0xE3).chr(0x80).chr(0x80), $this->dataParamsEncoding, 'UTF-8'), $count );
1787 			}
2049			$convSeq[0] = (($topDigit >> 2) & 0x07) | 0xF0;
2050			$c = chr( $convSeq[0] ).chr( $convSeq[1] ).chr( $convSeq[2] ).chr( $convSeq[3] );
2051			$i += 5;
Subs-Package.php https://github.com/leftnode/nooges.com.git | PHP | 2,950 lines
348	// Find the central whosamawhatsit at the end; if there's a comment it's a pain.
349	if (substr($data, -22, 4) == 'PK' . chr(5) . chr(6))
350		$p = -22;
355		{
356			if (substr($data, $p, 4) == 'PK' . chr(5) . chr(6))
357				break;
369		// Make sure this is a file entry...
370		if (substr($data, $p, 4) != 'PK' . chr(1) . chr(2))
371			return false;
399		// Check that the data is there and does exist.
400		if (substr($data, $file_info['offset'], 4) != 'PK' . chr(3) . chr(4))
401			return false;
2658
2659	$base_files = array('index.php', 'SSI.php', 'agreement.txt', 'ssi_examples.php', 'ssi_examples.shtml');
2660	foreach ($base_files as $file)
json.php https://github.com/kondrats/Pagetest.git | PHP | 708 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 */
422
423                        $substr_chrs_c_2 = substr($chrs, $c, 2);
424                        $ord_chrs_c = ord($chrs{$c});
550                        $top = end($stk);
551                        $substr_chrs_c_2 = substr($chrs, $c, 2);
552
601                                 ($top['what'] == SERVICES_JSON_IN_STR) &&
602                                 ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) {
603                            // found a quote, we're in a string, and it's not escaped
643                            for ($i = $top['where']; $i <= $c; ++$i)
644                                $chrs = substr_replace($chrs, ' ', $i, 1);
645
JSON.php https://github.com/vmei/MIT-Mobile-Web.git | PHP | 868 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 */
579                    $utf8 = '';
580                    $strlen_chrs = strlen($chrs);
581
711                        $top = end($stk);
712                        $substr_chrs_c_2 = substr($chrs, $c, 2);
713
762                                 ($top['what'] == SERVICES_JSON_IN_STR) &&
763                                 ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) {
764                            // found a quote, we're in a string, and it's not escaped
804                            for ($i = $top['where']; $i <= $c; ++$i)
805                                $chrs = substr_replace($chrs, ' ', $i, 1);
806
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21