PageRenderTime 226ms queryFilters 1ms Sphinxql 27ms app.CodeModel.GetByIds 110ms findMatchingLines 41ms GetByIds 151ms meta 0ms repositoryFilters 8ms languageFilters 0ms sourceFilters 3ms

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

Source

Language

Repository

Hash.php https://github.com/cuijinquan/nextwind.git | PHP | 817 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4/**
5 * Pure-PHP implementations of keyed-hash message authentication codes (HMACs) and various cryptographic hashing functions.
6 *
13 *
14 * PHP versions 4 and 5
15 *
20 * <code>
21 * <?php
22 *    include('Crypt/Hash.php');
48 * @package    Crypt_Hash
49 * @author     Jim Wigginton <terrafrost@php.net>
50 * @copyright  MMVII Jim Wigginton
51 * @license    http://www.gnu.org/licenses/lgpl.txt
52 * @version    $Id: Hash.php 21939 2012-12-17 07:13:16Z long.shi $
53 * @link       http://phpseclib.sourceforge.net
Hash.php https://github.com/sirkubador/wolfcms.git | PHP | 824 lines
1<?php
2/*
4 *
5 * The following code was copied as-is from the phphseclib library version 0.2.1a
6 * apart from the following changes:
6 * apart from the following changes:
7 *     - changed include of BigInteger.php to Wolf CMS specific include.
8 *
12/**
13 * Pure-PHP implementations of keyed-hash message authentication codes (HMACs) and various cryptographic hashing functions.
14 *
21 *
22 * PHP versions 4 and 5
23 *
28 * <code>
29 * <?php
30 *    include('Crypt/Hash.php');
kontrolspor.php https://github.com/nielsrune/saldi.git | PHP | 312 lines
32include("../includes/connect.php");
33include("../includes/online.php");
34include("../includes/std_func.php");
34include("../includes/std_func.php");
35include("../includes/udvaelg.php");
36
155print "<td align=center><b><a href='kontrolspor.php?nysort=id&sort=$sort&valg=$valg$hreftext'>Id</b></td>";
156print "<td align=center><b><a href='kontrolspor.php?nysort=transdate&sort=$sort&valg=$valg$hreftext'>Dato</a></b></td>";
157print "<td align=center><b><a href='kontrolspor.php?nysort=logdate&sort=$sort&valg=$valg$hreftext'>Log. dato</a></b></td>";
206		$fp=fopen("../temp/$db/kontrolspor.csv","w");
207		fwrite($fp,"Id".chr(9)."Dato".chr(9)."Logdato".chr(9)."Logtid".chr(9)."Kladde id".chr(9)."Bilag".chr(9)."Kontonr".chr(9)."Kontonavn".chr(9)."Faktura".chr(9)."Debet".chr(9)."Kredit".chr(9)."Projekt".chr(9)."Beskrivelse\n");
208	}
286				if ($csv) {
287					fwrite($fp,$row['id'].chr(9).$transdato.chr(9).$logdato.chr(9).substr($row['logtime'],0,5).chr(9).$row['kladde_id'].chr(9).$row['bilag'].chr(9).$row['kontonr'].chr(9).utf8_decode(stripslashes($row['kontonavn'])).chr(9).$row['faktura'].chr(9).dkdecimal($row['debet']).chr(9).dkdecimal($row['kredit']).chr(9).$row['projekt'].chr(9).utf8_decode(stripslashes($row['beskrivelse']))."\n");
288				}
unicode.inc https://github.com/jacobSingh/drupal.git | Pascal | 560 lines
51  if (ini_get('mbstring.func_overload') != 0) {
52    return array(UNICODE_ERROR, $t('Multibyte string function overloading in PHP is active and must be disabled. Check the php.ini <em>mbstring.func_overload</em> setting. Please refer to the <a href="@url">PHP mbstring documentation</a> for more information.', array('@url' => 'http://www.php.net/mbstring')));
53  }
54  if (ini_get('mbstring.encoding_translation') != 0) {
55    return array(UNICODE_ERROR, $t('Multibyte string input conversion in PHP is active and must be disabled. Check the php.ini <em>mbstring.encoding_translation</em> setting. Please refer to the <a href="@url">PHP mbstring documentation</a> for more information.', array('@url' => 'http://www.php.net/mbstring')));
56  }
57  if (ini_get('mbstring.http_input') != 'pass') {
58    return array(UNICODE_ERROR, $t('Multibyte string input conversion in PHP is active and must be disabled. Check the php.ini <em>mbstring.http_input</em> setting. Please refer to the <a href="@url">PHP mbstring documentation</a> for more information.', array('@url' => 'http://www.php.net/mbstring')));
59  }
60  if (ini_get('mbstring.http_output') != 'pass') {
61    return array(UNICODE_ERROR, $t('Multibyte string output conversion in PHP is active and must be disabled. Check the php.ini <em>mbstring.http_output</em> setting. Please refer to the <a href="@url">PHP mbstring documentation</a> for more information.', array('@url' => 'http://www.php.net/mbstring')));
62  }
179  else {
180    watchdog('php', 'Unsupported encoding %s. Please install iconv, GNU recode or mbstring for PHP.', array('%s' => $encoding), WATCHDOG_ERROR);
181    return FALSE;
core.php https://github.com/dshafik/wp-lifestream.git | PHP | 2,783 lines
1<?php
2
4{
5	require_once(LIFESTREAM_PATH . '/lib/simplepie.inc.php');
6}
12	$bits = func_get_args();
13	$sep = (in_array(PHP_OS, array("WIN32", "WINNT")) ? '\\' : '/');
14	foreach ($bits as $key=>$value) {
25}
26// Returns the utf string corresponding to the unicode value (from php.net, courtesy - romans@void.lv)
27function lifestream_code2utf($num)
29	if ($num < 128) return chr($num);
30	if ($num < 2048) return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
31	if ($num < 65536) return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
31	if ($num < 65536) return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
32	if ($num < 2097152) return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
33	return '';
core.php https://github.com/barszczmm/wp-lifestream.git | PHP | 2,842 lines
1<?php
2
4{
5	require_once(LIFESTREAM_PATH . '/lib/simplepie.inc.php');
6}
12	$bits = func_get_args();
13	$sep = (in_array(PHP_OS, array("WIN32", "WINNT")) ? '\\' : '/');
14	foreach ($bits as $key=>$value) {
26}
27// Returns the utf string corresponding to the unicode value (from php.net, courtesy - romans@void.lv)
28function lifestream_code2utf($num)
30	if ($num < 128) return chr($num);
31	if ($num < 2048) return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
32	if ($num < 65536) return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
32	if ($num < 65536) return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
33	if ($num < 2097152) return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
34	return '';
core.php https://github.com/idotter/wp-lifestream.git | PHP | 2,982 lines
1<?php
2
4{
5	require_once(LIFESTREAM_PATH . '/lib/simplepie.inc.php');
6}
12	$bits = func_get_args();
13	$sep = (in_array(PHP_OS, array("WIN32", "WINNT")) ? '\\' : '/');
14	foreach ($bits as $key=>$value) {
26}
27// Returns the utf string corresponding to the unicode value (from php.net, courtesy - romans@void.lv)
28function lifestream_code2utf($num)
30	if ($num < 128) return chr($num);
31	if ($num < 2048) return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
32	if ($num < 65536) return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
32	if ($num < 65536) return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
33	if ($num < 2097152) return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
34	return '';
String.inc.php https://github.com/michaeljoyce/pkp-lib.git | PHP | 808 lines
26 * Thanks to the PEAR Validation package (Tomas V.V.Cox <cox@idecnet.com>,
27 * Pierre-Alain Joye <pajoye@php.net>, Amir Mohammad Saied <amir@php.net>)
28 *
193	/**
194	 * @see http://ca.php.net/manual/en/function.strtoupper.php
195	 */
546		if ($num < 65536) return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
547		if ($num < 2097152) return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
548		return '';
614	 * Required to support HTML functions without objects in PHP4/PHP5
615	 * From php.net: function.get-html-translation-table.php
616	 * @return string
712	 * Wrapper around fputcsv for systems that may or may not support it
713	 * (i.e. PHP before 5.1.0); see PHP documentation for fputcsv.
714	 */
unicode.inc https://github.com/ayappan/drupal.git | Pascal | 665 lines
109  if (ini_get('mbstring.func_overload') != 0) {
110    return array(UNICODE_ERROR, $t('Multibyte string function overloading in PHP is active and must be disabled. Check the php.ini <em>mbstring.func_overload</em> setting. Please refer to the <a href="@url">PHP mbstring documentation</a> for more information.', array('@url' => 'http://www.php.net/mbstring')));
111  }
112  if (ini_get('mbstring.encoding_translation') != 0) {
113    return array(UNICODE_ERROR, $t('Multibyte string input conversion in PHP is active and must be disabled. Check the php.ini <em>mbstring.encoding_translation</em> setting. Please refer to the <a href="@url">PHP mbstring documentation</a> for more information.', array('@url' => 'http://www.php.net/mbstring')));
114  }
115  if (ini_get('mbstring.http_input') != 'pass') {
116    return array(UNICODE_ERROR, $t('Multibyte string input conversion in PHP is active and must be disabled. Check the php.ini <em>mbstring.http_input</em> setting. Please refer to the <a href="@url">PHP mbstring documentation</a> for more information.', array('@url' => 'http://www.php.net/mbstring')));
117  }
118  if (ini_get('mbstring.http_output') != 'pass') {
119    return array(UNICODE_ERROR, $t('Multibyte string output conversion in PHP is active and must be disabled. Check the php.ini <em>mbstring.http_output</em> setting. Please refer to the <a href="@url">PHP mbstring documentation</a> for more information.', array('@url' => 'http://www.php.net/mbstring')));
120  }
237  else {
238    watchdog('php', 'Unsupported encoding %s. Please install iconv, GNU recode or mbstring for PHP.', array('%s' => $encoding), WATCHDOG_ERROR);
239    return FALSE;
goutte.phar https://github.com/ornicar/Goutte.git | Unknown | 5,308 lines
292__HALT_COMPILER(); ?>
293ç?GoutteLICENSE!^˝sL!Xň3Ůśsrc/autoload.phpf^˝sLfuö"rśAsrc/vendor/symfony/src/Symfony/Framework/UniversalClassLoader.php^˝sL“F˝4ś*src/vendor/zend/library/Zend/Exception.php=^˝sL=ŒÜrś(src/vendor/zend/library/Zend/Uri/Uri.phpu^˝sLuÜČŞś4src/vendor/zend/library/Zend/Validator/Validator.php€^˝sL€˘Ţ’ś<src/vendor/zend/library/Zend/Validator/AbstractValidator.phpÄ^˝sLÄ.Pîś3src/vendor/zend/library/Zend/Validator/Hostname.php{[^˝sL{[糌üś-src/vendor/zend/library/Zend/Validator/Ip.php^˝sL+‰Ěiś7src/vendor/zend/library/Zend/Validator/Hostname/Com.php‹1^˝sL‹1AQĺ2ś6src/vendor/zend/library/Zend/Validator/Hostname/Jp.phpŰđ^˝sLŰđÁeRśsrc/Goutte/Client.php’^˝sL’r*G	śsrc/Goutte/Compiler.phpT
294^˝sLT
294^˝sLT
295^‰Áŕś>src/vendor/symfony/src/Symfony/Component/BrowserKit/Client.php^˝sLWӟ^ś>src/vendor/symfony/src/Symfony/Component/BrowserKit/Cookie.php†^˝sL†ÖćŻvśAsrc/vendor/symfony/src/Symfony/Component/BrowserKit/CookieJar.php•^˝sL•L>5Aś?src/vendor/symfony/src/Symfony/Component/BrowserKit/History.phpĄ^˝sLĄ;çÖś?src/vendor/symfony/src/Symfony/Component/BrowserKit/Request.phpź^˝sLźT˜łÎś@src/vendor/symfony/src/Symfony/Component/BrowserKit/Response.phpż^˝sLż-Œ2Yś?src/vendor/symfony/src/Symfony/Component/DomCrawler/Crawler.php<%^˝sL<%ƒťĺśMsrc/vendor/symfony/src/Symfony/Component/DomCrawler/Field/ChoiceFormField.phpV^˝sLV9vŃśKsrc/vendor/symfony/src/Symfony/Component/DomCrawler/Field/FileFormField.php^˝sL°Í׎śGsrc/vendor/symfony/src/Symfony/Component/DomCrawler/Field/FormField.phpĎ^˝sLĎ/>ŐÓśLsrc/vendor/symfony/src/Symfony/Component/DomCrawler/Field/InputFormField.phpš^˝sLš›{Y'śOsrc/vendor/symfony/src/Symfony/Component/DomCrawler/Field/TextareaFormField.phpâ^˝sLâ餗mś<src/vendor/symfony/src/Symfony/Component/DomCrawler/Form.php^˝sLëyŸś<src/vendor/symfony/src/Symfony/Component/DomCrawler/Link.php^˝sLaP}śHsrc/vendor/symfony/src/Symfony/Component/CssSelector/Node/AttribNode.phpŒ^˝sLŒŐ	)\śGsrc/vendor/symfony/src/Symfony/Component/CssSelector/Node/ClassNode.phpÄ^˝sLÄÄWśRsrc/vendor/symfony/src/Symfony/Component/CssSelector/Node/CombinedSelectorNode.php;^˝sL;1ăşpśIsrc/vendor/symfony/src/Symfony/Component/CssSelector/Node/ElementNode.phpj^˝sLj*ŤŻśJsrc/vendor/symfony/src/Symfony/Component/CssSelector/Node/FunctionNode.php÷^˝sL÷^&ŢXśFsrc/vendor/symfony/src/Symfony/Component/CssSelector/Node/HashNode.phpV^˝sLV|0śKsrc/vendor/symfony/src/Symfony/Component/CssSelector/Node/NodeInterface.php‘^˝sL‘˝‘ĐśDsrc/vendor/symfony/src/Symfony/Component/CssSelector/Node/OrNode.php^˝sL"Żś'śHsrc/vendor/symfony/src/Symfony/Component/CssSelector/Node/PseudoNode.php^˝sLđ'›>ś?src/vendor/symfony/src/Symfony/Component/CssSelector/Parser.php^˝sLސ™ĄśDsrc/vendor/symfony/src/Symfony/Component/CssSelector/SyntaxError.php]^˝sL]iR*ś>src/vendor/symfony/src/Symfony/Component/CssSelector/Token.phpţ^˝sLţŁ5śBsrc/vendor/symfony/src/Symfony/Component/CssSelector/Tokenizer.phpú^˝sLún“ěśDsrc/vendor/symfony/src/Symfony/Component/CssSelector/TokenStream.php#^˝sL#'łSüśBsrc/vendor/symfony/src/Symfony/Component/CssSelector/XPathExpr.php\^˝sL\÷1ÄrśDsrc/vendor/symfony/src/Symfony/Component/CssSelector/XPathExprOr.php˛^˝sL˛Ě{zˇś?src/vendor/symfony/src/Symfony/Component/Process/PhpProcess.phpĚ^˝sLĚŇ7[/ś<src/vendor/symfony/src/Symfony/Component/Process/Process.php^˝sLW
ú€ś.src/vendor/zend/library/Zend/Uri/Exception.phpF^˝sLFU^˛ś(src/vendor/zend/library/Zend/Uri/Url.php¤,^˝sL¤,7ECś9src/vendor/zend/library/Zend/Http/Client/Adapter/Curl.phpŇ&^˝sLŇ&rů'Lś>src/vendor/zend/library/Zend/Http/Client/Adapter/Exception.php^˝sL¸Gҕś:src/vendor/zend/library/Zend/Http/Client/Adapter/Proxy.phpS^˝sLSń×Ôś;src/vendor/zend/library/Zend/Http/Client/Adapter/Socket.phpf*^˝sLf*5ň=ś;src/vendor/zend/library/Zend/Http/Client/Adapter/Stream.phpf^˝sLf*Śu›ś9src/vendor/zend/library/Zend/Http/Client/Adapter/Test.phpT
296^˝sLT
296^˝sLT
297Ő>ą–ś4src/vendor/zend/library/Zend/Http/Client/Adapter.phpA^˝sLAŇvěťś6src/vendor/zend/library/Zend/Http/Client/Exception.phpR^˝sLRŠJ-îś,src/vendor/zend/library/Zend/Http/Client.php:^^˝sL:^xŹćś,src/vendor/zend/library/Zend/Http/Cookie.phpň^˝sLň_)VÂś/src/vendor/zend/library/Zend/Http/CookieJar.php^^˝sL^ĺ…N˜ś/src/vendor/zend/library/Zend/Http/Exception.phpF^˝sLFşY6ś5src/vendor/zend/library/Zend/Http/Response/Stream.php„^˝sL„[9Ľś.src/vendor/zend/library/Zend/Http/Response.phpŽ%^˝sLŽ%™:e7ś
_cli_stub.phpK^˝sLK˘—hYś
_web_stub.phpd^˝sLdáĎUśCopyright (c) 2010 Fabien Potencier
298Permission is hereby granted, free of charge, to any person obtaining a copy
3376            if (!is_executable($php = getenv('PHP_PATH'))) {
3377                throw new \RuntimeException('The defined PHP_PATH environment variable is not a valid PHP executable.'); }
3378            return $php; }
3380        foreach ($suffixes as $suffix) {
3381            if (is_executable($php = PHP_BINDIR.DIRECTORY_SEPARATOR.'php'.$suffix)) {
3382                return $php; } }
core.php https://github.com/jonathandong/wp-lifestream.git | PHP | 3,026 lines
1<?php
2
4{
5	require_once(ABSPATH . WPINC . '/class-simplepie.php');
6}
12	$bits = func_get_args();
13	$sep = (in_array(PHP_OS, array("WIN32", "WINNT")) ? '\\' : '/');
14	foreach ($bits as $key=>$value) {
26}
27// Returns the utf string corresponding to the unicode value (from php.net, courtesy - romans@void.lv)
28function lifestream_code2utf($num)
30	if ($num < 128) return chr($num);
31	if ($num < 2048) return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
32	if ($num < 65536) return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
32	if ($num < 65536) return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
33	if ($num < 2097152) return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
34	return '';
unicode.inc https://github.com/jianingy/guild-web.git | Pascal | 685 lines
109  if (ini_get('mbstring.func_overload') != 0) {
110    return array(UNICODE_ERROR, $t('Multibyte string function overloading in PHP is active and must be disabled. Check the php.ini <em>mbstring.func_overload</em> setting. Please refer to the <a href="@url">PHP mbstring documentation</a> for more information.', array('@url' => 'http://www.php.net/mbstring')));
111  }
112  if (ini_get('mbstring.encoding_translation') != 0) {
113    return array(UNICODE_ERROR, $t('Multibyte string input conversion in PHP is active and must be disabled. Check the php.ini <em>mbstring.encoding_translation</em> setting. Please refer to the <a href="@url">PHP mbstring documentation</a> for more information.', array('@url' => 'http://www.php.net/mbstring')));
114  }
115  if (ini_get('mbstring.http_input') != 'pass') {
116    return array(UNICODE_ERROR, $t('Multibyte string input conversion in PHP is active and must be disabled. Check the php.ini <em>mbstring.http_input</em> setting. Please refer to the <a href="@url">PHP mbstring documentation</a> for more information.', array('@url' => 'http://www.php.net/mbstring')));
117  }
118  if (ini_get('mbstring.http_output') != 'pass') {
119    return array(UNICODE_ERROR, $t('Multibyte string output conversion in PHP is active and must be disabled. Check the php.ini <em>mbstring.http_output</em> setting. Please refer to the <a href="@url">PHP mbstring documentation</a> for more information.', array('@url' => 'http://www.php.net/mbstring')));
120  }
239  else {
240    watchdog('php', 'Unsupported encoding %s. Please install iconv, GNU recode or mbstring for PHP.', array('%s' => $encoding), WATCHDOG_ERROR);
241    return FALSE;
googlebase.php https://github.com/tisoft/xtcmodified.git | PHP | 482 lines
84    $module_directory = DIR_FS_CATALOG_MODULES . 'payment/';
85    $module_file_extension = substr($_SERVER['PHP_SELF'], strrpos($_SERVER['PHP_SELF'], '.'));
86    $directory_array = array();
121
122    $schema_txt_de = "beschreibung".chr(9)."id".chr(9)."link".chr(9)."preis".chr(9)."w".chr(228)."hrung".chr(9)."titel".chr(9)."zustand".chr(9)."bild_url".chr(9)."ean".chr(9)."gewicht".chr(9)."marke".chr(9)."versand".chr(9)."zahlungsmethode".chr(9)."zahlungsrichtlinien".chr(13);
123    
138      $americanexpress_modules = array('cc', 'moneybookers_cc', 'amoneybookers', 'ipayment');
139      $lastschrift_modules = array('banktransfer', 'uos_lastschrift_modul', 'uos_lastschrift_de_modul', 'uos_lastschrift_at_modul', 'uos_utdirekt_ls_modul', 'ipaymentelv', 'paymentpartner_dd');
140      $ueberweisung_modules = array('moneyorder', 'sofortueberweisungvorkasse', 'eustandardtransfer', 'uos_vorkasse_modul', 'uos_utdirekt_vk_modul');
170      if ($ae == true) { $americanexpress = 'AmericanExpress,'; } else { $americanexpress = ''; }
171      if ($la == true) { $lastschrift = 'Lastschrift,'; } else { $lastschrift = ''; }
172      if ($uw == true) { $ueberweisung = chr(220).'berweisung,'; } else { $ueberweisung = ''; }
329      $schema_xml_de .= "\t"."\t".'<item>'."\n".
330                        "\t"."\t"."\t".'<beschreibung>'.$products_description.'</beschreibung>'."\n".
331                        "\t"."\t"."\t".'<g:id>'.$products['products_id'].'</g:id>'."\n".
Json.php https://gitlab.com/winiceo/levengit.git | PHP | 898 lines
497                        
498                        $substr_chrs_c_2 = substr($chrs, $c, 2);
499                        $ord_chrs_c = ord($chrs{$c});
631                        
632                        if (($c == $strlen_chrs) || (($chrs{$c} == ',') && ($top['what'] == self::SLICE))) {
633                            // found a comma that is not inside a string, array, etc.,
687                        
688                        } elseif ((($chrs{$c} == '"') || ($chrs{$c} == "'")) && ($top['what'] != self::IN_STR)) {
689                            // found a quote, and we are not inside a string
694                                 ($top['what'] == self::IN_STR) &&
695                                 ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) {
696                            // found a quote, we're in a string, and it's not escaped
738                            for ($i = $top['where']; $i <= $c; ++$i)
739                                $chrs = substr_replace($chrs, ' ', $i, 1);
740                            
Hash.php https://gitlab.com/windigo-gs/windigos-gnu-social.git | PHP | 823 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4/**
5 * Pure-PHP implementations of keyed-hash message authentication codes (HMACs) and various cryptographic hashing functions.
6 *
13 *
14 * PHP versions 4 and 5
15 *
20 * <code>
21 * <?php
22 *    include('Crypt/Hash.php');
51 * @package    Crypt_Hash
52 * @author     Jim Wigginton <terrafrost@php.net>
53 * @copyright  MMVII Jim Wigginton
54 * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
55 * @link       http://phpseclib.sourceforge.net
56 */
Hash.php https://gitlab.com/intersango/witcoin.git | PHP | 816 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4/**
5 * Pure-PHP implementations of keyed-hash message authentication codes (HMACs) and various cryptographic hashing functions.
6 *
13 *
14 * PHP versions 4 and 5
15 *
20 * <code>
21 * <?php
22 *    include('Crypt/Hash.php');
48 * @package    Crypt_Hash
49 * @author     Jim Wigginton <terrafrost@php.net>
50 * @copyright  MMVII Jim Wigginton
51 * @license    http://www.gnu.org/licenses/lgpl.txt
52 * @version    $Id: Hash.php,v 1.6 2009/11/23 23:37:07 terrafrost Exp $
53 * @link       http://phpseclib.sourceforge.net
getid3.lib.php git://github.com/wordpress/wordpress.git | PHP | 1,786 lines
112			if (!$hasINT64 && !defined('PHP_INT_MIN')) {
113				define('PHP_INT_MIN', ~PHP_INT_MAX);
114			}
116		// if integers are 64-bit - no other check required
117		if ($hasINT64 || (($num <= PHP_INT_MAX) && ($num >= PHP_INT_MIN))) { // phpcs:ignore PHPCompatibility.Constants.NewConstants.php_int_minFound
118			return true;
506		// written by kcØhireability*com
507		// taken from http://www.php.net/manual/en/function.array-merge-recursive.php
508		if (!is_array($array1) || !is_array($array2)) {
1722		if (GETID3_OS_ISWINDOWS) {
1723			if (class_exists('COM')) { // From PHP 5.3.15 and 5.4.5, COM and DOTNET is no longer built into the php core.you have to add COM support in php.ini:
1724				$filesystem = new COM('Scripting.FileSystemObject');
1773	/**
1774	 * Workaround for Bug #37268 (https://bugs.php.net/bug.php?id=37268)
1775	 *
Hash.php https://bitbucket.org/openemr/openemr.git | PHP | 825 lines
1<?php
2
3/**
4 * Pure-PHP implementations of keyed-hash message authentication codes (HMACs) and various cryptographic hashing functions.
5 *
12 *
13 * PHP version 5
14 *
19 * <code>
20 * <?php
21 *    include 'vendor/autoload.php';
22 *
23 *    $hash = new \phpseclib\Crypt\Hash('sha1');
24 *
32 * @package   Hash
33 * @author    Jim Wigginton <terrafrost@php.net>
34 * @copyright 2007 Jim Wigginton
BigInteger.php https://bitbucket.org/openemr/openemr.git | PHP | 3,755 lines
570                    $temp = bcmod($current, '16777216');
571                    $value = chr($temp >> 16) . chr($temp >> 8) . chr($temp) . $value;
572                    $current = bcdiv($current, '16777216', 0);
755     * Although you can call BigInteger::__toString() directly in PHP5, you cannot call BigInteger::__clone() directly
756     * in PHP5.  You can in PHP4 since it's not a magic method, but in PHP5, you have to call it by using the PHP5
757     * only syntax of $y = clone $x.  As such, if you're trying to write an application that works on both PHP4 and
2919        // generate as many leading 1's as we need to.
2920        $leading_ones = chr((1 << ($new_bits & 0x7)) - 1) . str_repeat(chr(0xFF), $new_bits >> 3);
2921        $this->_base256_lshift($leading_ones, $current_bits);
3029            $precision = 8 * strlen($bits) - 8 + $i;
3030            $mask = chr((1 << ($precision & 0x7)) - 1) . str_repeat(chr(0xFF), $precision >> 3);
3031        }
3224
3225        // gmp_nextprime() requires PHP 5 >= 5.2.0 per <http://php.net/gmp-nextprime>.
3226        if (MATH_BIGINTEGER_MODE == self::MODE_GMP && extension_loaded('gmp')) {
Hash.php https://bitbucket.org/norvin/mingen_dts | PHP | 816 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4/**
5 * Pure-PHP implementations of keyed-hash message authentication codes (HMACs) and various cryptographic hashing functions.
6 *
13 *
14 * PHP versions 4 and 5
15 *
20 * <code>
21 * <?php
22 *    include('Crypt/Hash.php');
48 * @package    Crypt_Hash
49 * @author     Jim Wigginton <terrafrost@php.net>
50 * @copyright  MMVII Jim Wigginton
51 * @license    http://www.gnu.org/licenses/lgpl.txt
52 * @version    $Id: Hash.php,v 1.6 2009/11/23 23:37:07 terrafrost Exp $
53 * @link       http://phpseclib.sourceforge.net
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21