PageRenderTime 1946ms queryFilters 82ms Sphinxql 801ms GetByIds 872ms meta 0ms repositoryFilters 128ms languageFilters 0ms sourceFilters 77ms

56,310 results for 'php chr repo:rkcbabu/zurmo' (1946 ms)

Source

Language

Repository

protector.php https://github.com/nouphet/momoxo.git | PHP | 1,123 lines
68//	if( preg_match( '/[<>\'";\n ]/' , @$_SERVER['PHP_SELF'] ) ) {
69//		$this->message .= "Invalid PHP_SELF '{$_SERVER['PHP_SELF']}' found.\n" ;
70//		$this->output_log( 'PHP_SELF XSS' ) ;
74	// sanitize against PHP_SELF/PATH_INFO XSS (disabled in 3.33)
75//	$_SERVER['PHP_SELF'] = strtr( @$_SERVER['PHP_SELF'] , array( '<' => '%3C' , '>' => '%3E' , "'" => '%27' , '"' => '%22' ) ) ;
76//	if( ! empty( $_SERVER['PATH_INFO'] ) ) $_SERVER['PATH_INFO'] = strtr( @$_SERVER['PATH_INFO'] , array( '<' => '%3C' , '>' => '%3E' , "'" => '%27' , '"' => '%22' ) ) ;
681	// extensions never uploaded
682	$bad_extensions = array( 'php' , 'phtml' , 'phtm' , 'php3' , 'php4' , 'cgi' , 'pl' , 'asp' ) ;
683	// extensions needed image check (anti-IE Content-Type XSS)
1081		// news admin/index.php
1082		if( substr( @$_SERVER['SCRIPT_NAME'] , -28 ) == 'modules/news/admin/index.php' && ( $_POST['op'] == 'preview' || $_GET['op'] == 'preview' ) && strpos( @$_SERVER['HTTP_REFERER'] , XOOPS_URL.'/modules/news/admin/index.php' ) !== 0 ) {
1083			$HTTP_POST_VARS['nohtml'] = $_POST['nohtml'] = 1 ;
1089		// disable preview of system's blocksadmin
1090		if( substr( @$_SERVER['SCRIPT_NAME'] , -24 ) == 'modules/system/admin.php' && ( $_GET['fct'] == 'blocksadmin' || $_POST['fct'] == 'blocksadmin') && isset( $_POST['previewblock'] ) /* && strpos( $_SERVER['HTTP_REFERER'] , XOOPS_URL.'/modules/system/admin.php' ) !== 0 */ ) {
1091			die( "Danger! don't use this preview. Use 'altsys module' instead.(by Protector)" ) ;
snoopy.class.php https://github.com/zhangv/wechat-php-sdk.git | PHP | 1,275 lines
1<?php
2/*************************************************
3
4Snoopy - the PHP net client
5Author: Monte Ohrt <monte@ispi.net>
36
37	var $host			=	"www.php.net";		// host name we are connecting to
38	var $port			=	80;					// port we are connecting to
74	var $read_timeout	=	0;					// timeout on read operations, in seconds
75	// supported only since PHP 4 Beta 4
76	// set to 0 to disallow timeouts
91	// Snoopy does *not* use the cURL
92	// library functions built into php,
93	// as these functions are not stable
673
674		// I didn't use preg eval (//e) since that is only available in PHP 4.0.
675		// so, list your entities one by one here. I included some of the
text_helper.php https://bitbucket.org/naando_araujo/pagseguro | PHP | 535 lines
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2/**
196				{
197					$out .= chr(192 + (($digits - ($digits % 64)) / 64));
198					$out .= chr(128 + ($digits % 64));
201				{
202					$out .= chr(224 + (($digits - ($digits % 4096)) / 4096));
203					$out .= chr(128 + ((($digits % 4096) - ($digits % 64)) / 64));
203					$out .= chr(128 + ((($digits % 4096) - ($digits % 64)) / 64));
204					$out .= chr(128 + ($digits % 64));
205				}
292		$str = str_replace(array('<?', '?>', '<%', '%>', '\\', '</script>'),
293							array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'), $str);
294
316		// Replace our markers back to PHP tags.
317		$str = str_replace(array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'),
318							array('&lt;?', '?&gt;', '&lt;%', '%&gt;', '\\', '&lt;/script&gt;'), $str);
Snoopy.class.php https://bitbucket.org/tbayen/smallprojects | PHP | 1,251 lines
1<?php
2
4
5Snoopy - the PHP net client
6Author: Monte Ohrt <monte@ispi.net>
37
38	var $host			=	"www.php.net";		// host name we are connecting to
39	var $port			=	80;					// port we are connecting to
75	var $read_timeout	=	0;					// timeout on read operations, in seconds
76												// supported only since PHP 4 Beta 4
77												// set to 0 to disallow timeouts
92												// Snoopy does *not* use the cURL
93												// library functions built into php,
94												// as these functions are not stable
671		
672		// I didn't use preg eval (//e) since that is only available in PHP 4.0.
673		// so, list your entities one by one here. I included some of the
html_entity_decode_php4.php https://github.com/jmathai/photos.git | PHP | 309 lines
32	} elseif ($num <= 0xFFFF) {
33		return chr(($num >> 0x0C) + 0xE0).chr((($num >> 0x06) & 0x3F) + 0x80).chr(($num & 0x3F) + 0x80);
34	} elseif ($num <= 0x1FFFFF) {
34	} elseif ($num <= 0x1FFFFF) {
35		return chr(($num >> 0x12) + 0xF0).chr((($num >> 0x0C) & 0x3F) + 0x80).chr((($num >> 0x06) & 0x3F) + 0x80).chr(($num & 0x3F) + 0x80);
36	}
167		"&middot;" => "".chr(194).chr(183)."",
168		"&minus;" => "".chr(226).chr(136).chr(146)."",
169		"&Mu;" => "".chr(206).chr(156)."",
273		"&uarr;" => "".chr(226).chr(134).chr(145)."",
274		"&uArr;" => "".chr(226).chr(135).chr(145)."",
275		"&Ucirc;" => "".chr(195).chr(155)."",
294		"&zeta;" => "".chr(206).chr(182)."",
295		"&zwj;" => "".chr(226).chr(128).chr(141)."",
296		"&zwnj;" => "".chr(226).chr(128).chr(140)."",
sluggable.php https://github.com/lecterror/neutrinocms.git | PHP | 398 lines
193					chr(128).chr(131).chr(138).chr(142).chr(154).chr(158)
194					.chr(159).chr(162).chr(165).chr(181).chr(192).chr(193).chr(194)
195					.chr(195).chr(196).chr(197).chr(199).chr(200).chr(201).chr(202)
195					.chr(195).chr(196).chr(197).chr(199).chr(200).chr(201).chr(202)
196					.chr(203).chr(204).chr(205).chr(206).chr(207).chr(209).chr(210)
197					.chr(211).chr(212).chr(213).chr(214).chr(216).chr(217).chr(218)
198					.chr(219).chr(220).chr(221).chr(224).chr(225).chr(226).chr(227)
199					.chr(228).chr(229).chr(231).chr(232).chr(233).chr(234).chr(235)
200					.chr(236).chr(237).chr(238).chr(239).chr(241).chr(242).chr(243)
200					.chr(236).chr(237).chr(238).chr(239).chr(241).chr(242).chr(243)
201					.chr(244).chr(245).chr(246).chr(248).chr(249).chr(250).chr(251)
202					.chr(252).chr(253).chr(255),
203					'EfSZsz' . 'YcYuAAA' . 'AAACEEE' . 'EIIIINO' . 'OOOOOUU' . 'UUYaaaa' . 'aaceeee' . 'iiiinoo' . 'oooouuu' . 'uyy',
204					array(chr(140), chr(156), chr(198), chr(208), chr(222), chr(223), chr(230), chr(240), chr(254)),
205					array('OE', 'oe', 'AE', 'DH', 'TH', 'ss', 'ae', 'dh', 'th')
multibyte.php https://github.com/HabariMag/habarimag-old.git | PHP | 785 lines
1<?php
2/*
66	*
67	* @param $int The new library to use. One of the self::USE_* constants, null to simply return, or false to disable and use native non-multibyte-safe PHP methods.
68	*
417	 * 
418	 * @see http://php.net/ucfirst
419	 * @param string $str The string to capitalize.
456	 * 
457	 * @see http://php.net/ucfirst
458	 * @param string $str The string to lowercase.
486			
487			// lcfirst() is php 5.3+ so we'll emulate it
488			$first = substr( $str, 0, 1 );
504	 * 
505	 * @see http://php.net/str_replace
506	 * @param mixed $search A string or an array of strings to search for.
RSA.php https://github.com/phocode/my_reddit.git | PHP | 2,991 lines
66 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
67 * @link      http://phpseclib.sourceforge.net
68 */
438     * For use with parsing XML formatted keys.  PHP's XML Parser functions use utilized - instead of PHP's DOM functions -
439     * because PHP's XML Parser functions work on PHP4 whereas PHP's DOM functions - although surperior - don't.
440     *
502                    break;
503                // openssl_pkey_get_details - which is used in the only place Crypt/RSA.php uses OpenSSL - was introduced in PHP 5.2.0
504                case !function_exists('openssl_pkey_get_details'):
747        $raw = array(
748            'version' => $num_primes == 2 ? chr(0) : chr(1), // two-prime vs. multi
749            'modulus' => $n->toBytes($signed),
2439        }
2440        $em = chr(0) . chr($type) . $ps . chr(0) . $m;
2441
RSA.php https://bitbucket.org/davide_grobberio/laravel-angular.git | PHP | 2,989 lines
66 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
67 * @link      http://phpseclib.sourceforge.net
68 */
438     * For use with parsing XML formatted keys.  PHP's XML Parser functions use utilized - instead of PHP's DOM functions -
439     * because PHP's XML Parser functions work on PHP4 whereas PHP's DOM functions - although surperior - don't.
440     *
503            switch ( !defined('CRYPT_RSA_MODE') ) { // ie. only run this if the above didn't set CRYPT_RSA_MODE already
504                // openssl_pkey_get_details - which is used in the only place Crypt/RSA.php uses OpenSSL - was introduced in PHP 5.2.0
505                case !function_exists('openssl_pkey_get_details'):
747        $raw = array(
748            'version' => $num_primes == 2 ? chr(0) : chr(1), // two-prime vs. multi
749            'modulus' => $n->toBytes(true),
2437        }
2438        $em = chr(0) . chr($type) . $ps . chr(0) . $m;
2439
books_generate_post - copia.php https://bitbucket.org/meerdevelopersoffice/bolivia.git | PHP | 234 lines
12
13include_once($path_to_root .'/control/CodigoControlV7.php');
14
100
101      // fputs($ar,chr(13).chr(10));
102      // fputs($ar,chr(13).chr(10));
114      // fputs($ar,"|");
115      // fputs($ar,chr(13).chr(10));
116      
116      
117      fputs($ar,chr(13).chr(10));
118  		$indice++;
156    fputs($ar,$datos16[$i]);
157    fputs($ar,chr(13).chr(10));
158  }    
html_entity_decode_php4.php https://bitbucket.org/meerdevelopersoffice/bolivia.git | PHP | 343 lines
68	} elseif ($num <= 0x1FFFFF) {
69		return chr(($num >> 0x12) + 0xF0).chr((($num >> 0x0C) & 0x3F) + 0x80).chr((($num >> 0x06) & 0x3F) + 0x80).chr(($num & 0x3F) + 0x80);
70	}
201		"&middot;" => "".chr(194).chr(183)."",
202		"&minus;" => "".chr(226).chr(136).chr(146)."",
203		"&Mu;" => "".chr(206).chr(156)."",
303		"&times;" => "".chr(195).chr(151)."",
304		"&trade;" => "".chr(226).chr(132).chr(162)."",
305		"&Uacute;" => "".chr(195).chr(154)."",
307		"&uarr;" => "".chr(226).chr(134).chr(145)."",
308		"&uArr;" => "".chr(226).chr(135).chr(145)."",
309		"&Ucirc;" => "".chr(195).chr(155)."",
328		"&zeta;" => "".chr(206).chr(182)."",
329		"&zwj;" => "".chr(226).chr(128).chr(141)."",
330		"&zwnj;" => "".chr(226).chr(128).chr(140)."",
TextHelper.php https://github.com/BabelZilla/WTS.git | PHP | 495 lines
1<?php
2
170                } elseif ($digits < 2048) {
171                    $out .= chr(192 + (($digits - ($digits % 64)) / 64));
172                    $out .= chr(128 + ($digits % 64));
173                } else {
174                    $out .= chr(224 + (($digits - ($digits % 4096)) / 4096));
175                    $out .= chr(128 + ((($digits % 4096) - ($digits % 64)) / 64));
175                    $out .= chr(128 + ((($digits % 4096) - ($digits % 64)) / 64));
176                    $out .= chr(128 + ($digits % 64));
177                }
263            array('<?', '?>', '<%', '%>', '\\', '</script>'),
264            array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'),
265            $str
297        $str = str_replace(
298            array('phptagopen', 'phptagclose', 'asptagopen', 'asptagclose', 'backslashtmp', 'scriptclose'),
299            array('&lt;?', '?&gt;', '&lt;%', '%&gt;', '\\', '&lt;/script&gt;'),
Blowfish.php https://github.com/floviolleau/Raspcontrol.git | PHP | 1,469 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
8 *
9 * PHP versions 4 and 5
10 *
16 * <code>
17 * <?php
18 *    include('Crypt/Blowfish.php');
49 * @package    Crypt_Blowfish
50 * @author     Jim Wigginton <terrafrost@php.net>
51 * @author     Hans-Juergen Petrich <petrich@tronic-media.com>
54 * @version    1.0
55 * @link       http://phpseclib.sourceforge.net
56 */
822            if ($this->paddable) {
823                // we pad with chr(0) since that's what mcrypt_generic does.  to quote from http://php.net/function.mcrypt-generic :
824                // "The data is padded with "\0" to make sure the length of the data is n * blocksize."
Des.class.php https://github.com/lewisliud/DreamPHP.git | PHP | 269 lines
1<?php
2// +----------------------------------------------------------------------
2// +----------------------------------------------------------------------
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4// +----------------------------------------------------------------------
4// +----------------------------------------------------------------------
5// | Copyright (c) 2009 http://thinkphp.cn All rights reserved.
6// +----------------------------------------------------------------------
13 * Des 加密实现类
14 * Converted from JavaScript to PHP by Jim Gibbs, June 2004 Paul Tero, July 2001
15 * Optimised for performance with large blocks by Michael Hayworth, November 2001
92
93      $message .= (chr(0) . chr(0) . chr(0) . chr(0) . chr(0) . chr(0) . chr(0) . chr(0)); //pad the message out with null bytes
94      //store the result here
164      }
165        $tempresult .= (chr($left>>24 & $masks[24]) . chr(($left>>16 & $masks[16]) & 0xff) . chr(($left>>8 & $masks[8]) & 0xff) . chr($left & 0xff) . chr($right>>24 & $masks[24]) . chr(($right>>16 & $masks[16]) & 0xff) . chr(($right>>8 & $masks[8]) & 0xff) . chr($right & 0xff));
166
GIF.class.php https://github.com/wujingke/thinkphp.git | PHP | 568 lines
1<?php
2// +----------------------------------------------------------------------
87::
88::	This class is a rewritten 'GifMerge.class.php' version.
89::
102::
103::  http://gifs.hu/phpclasses/demos/GifBuilder/
104::
214		$Locals_ext = "!\xF9\x04" . chr ( ( $this->DIS << 2 ) + 0 ) .
215						chr ( ( $d >> 0 ) & 0xFF ) . chr ( ( $d >> 8 ) & 0xFF ) . "\x0\x0";
216
224					$Locals_ext = "!\xF9\x04" . chr ( ( $this->DIS << 2 ) + 1 ) .
225									chr ( ( $d >> 0 ) & 0xFF ) . chr ( ( $d >> 8 ) & 0xFF ) . chr ( $j ) . "\x0";
226					break;
304
305		return ( chr ( $int & 0xFF ) . chr ( ( $int >> 8 ) & 0xFF ) );
306	}
Des.class.php https://github.com/wujingke/thinkphp.git | PHP | 241 lines
1<?php
2// +----------------------------------------------------------------------
2// +----------------------------------------------------------------------
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4// +----------------------------------------------------------------------
4// +----------------------------------------------------------------------
5// | Copyright (c) 2009 http://thinkphp.cn All rights reserved.
6// +----------------------------------------------------------------------
13 * Des 加密实现类
14 * Converted from JavaScript to PHP by Jim Gibbs, June 2004 Paul Tero, July 2001
15 * Optimised for performance with large blocks by Michael Hayworth, November 2001
83
84      $message .= (chr(0) . chr(0) . chr(0) . chr(0) . chr(0) . chr(0) . chr(0) . chr(0)); //pad the message out with null bytes
85      //store the result here
144        if ($mode == 1) {if ($encrypt) {$cbcleft = $left; $cbcright = $right;} else {$left ^= $cbcleft2; $right ^= $cbcright2;}}
145        $tempresult .= (chr($left>>24 & $masks[24]) . chr(($left>>16 & $masks[16]) & 0xff) . chr(($left>>8 & $masks[8]) & 0xff) . chr($left & 0xff) . chr($right>>24 & $masks[24]) . chr(($right>>16 & $masks[16]) & 0xff) . chr(($right>>8 & $masks[8]) & 0xff) . chr($right & 0xff));
146
GIF.class.php https://github.com/guodont/easycart.git | PHP | 571 lines
1<?php
2// +----------------------------------------------------------------------
87::
88::	This class is a rewritten 'GifMerge.class.php' version.
89::
102::
103::  http://gifs.hu/phpclasses/demos/GifBuilder/
104::
217		$Locals_ext = "!\xF9\x04" . chr ( ( $this->DIS << 2 ) + 0 ) .
218						chr ( ( $d >> 0 ) & 0xFF ) . chr ( ( $d >> 8 ) & 0xFF ) . "\x0\x0";
219
227					$Locals_ext = "!\xF9\x04" . chr ( ( $this->DIS << 2 ) + 1 ) .
228									chr ( ( $d >> 0 ) & 0xFF ) . chr ( ( $d >> 8 ) & 0xFF ) . chr ( $j ) . "\x0";
229					break;
307
308		return ( chr ( $int & 0xFF ) . chr ( ( $int >> 8 ) & 0xFF ) );
309	}
Decoder.php https://github.com/XataWork/zf2-project.git | PHP | 558 lines
410        $chr = $str{$i};
411        if ($chr == '-' || $chr == '.' || ($chr >= '0' && $chr <= '9')) {
412            if (preg_match('/-?([0-9])*(\.[0-9]*)?((e|E)((-|\+)?)[0-9]+)?/s',
445     * @link   http://solarphp.com/
446     * @link   https://github.com/solarphp/core/blob/master/Solar/Json.php
447     * @param  string $chrs
462                    $utf16 = chr(hexdec(substr($chrs, ($i + 2), 2)))
463                           . chr(hexdec(substr($chrs, ($i + 4), 2)));
464                    $utf8char = self::_utf162utf8($utf16);
464                    $utf8char = self::_utf162utf8($utf16);
465                    $search  = array('\\', "\n", "\t", "\r", chr(0x08), chr(0x0C), '"', '\'', '/');
466                    if (in_array($utf8char, $search)) {
472                    break;
473                case ($ordChrsC >= 0x20) && ($ordChrsC <= 0x7F):
474                    $utf8 .= $chrs{$i};
protocol.class.php https://github.com/abdullaheldeep/WhatsAPI.git | PHP | 708 lines
1<?php
2require 'decode.php';
2require 'decode.php';
3require 'exception.php';
4
42            //initial setter
43            if(php_sapi_name() == "cli")
44            {
586            $len = strlen($data);
587            $bsize[0] = chr((8 << 4) | (($len & 16711680) >> 16));
588            $bsize[1] = chr(($len & 65280) >> 8);
588            $bsize[1] = chr(($len & 65280) >> 8);
589            $bsize[2] = chr($len & 255);
590            $size = $this->parseInt24($bsize);
599        $ret = '';
600        $ret .= chr((($length & 0xf0000) >> 16));
601        $ret .= chr((($length & 0xff00) >> 8));
class.AJXP_Utils.php https://github.com/costinu/cms.git | PHP | 1,856 lines
1<?php
2/*
200            $s = trim($s);
201            $s = str_replace(chr(0), "", $s);
202            $s = preg_replace("/[\"\/\|\?\\\]/", "", $s);
316    /**
317     * Parse the $fileVars[] PHP errors
318     * @static
911        }
912        $allPhpFiles = self::glob_recursive(AJXP_INSTALL_PATH."/*.php");
913        $hooks = array();
913        $hooks = array();
914        foreach ($allPhpFiles as $phpFile) {
915            $fileContent = file($phpFile);
1091        if ($createLanguage != "" && !is_file($baseDir . "/$createLanguage.php")) {
1092            @copy(AJXP_INSTALL_PATH . "/plugins/core.ajaxplorer/i18n-template.php", $baseDir . "/$createLanguage.php");
1093        }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21