PageRenderTime 1027ms queryFilters 0ms Sphinxql 574ms GetByIds 334ms meta 0ms repositoryFilters 22ms languageFilters 4ms sourceFilters 13ms

66,045 results for 'php md5' (1027 ms)

Source

Language

Repository

Lite.php http://cakephp-phpgacl.googlecode.com/svn/trunk/ | PHP | 616 lines
1<?php
2
17* The same tutorial is also available in french at this url :
18* http://www.pearfr.org/index.php/fr/article/cache_lite
19*
24* @category Caching
25* @version $Id: Lite.php 376 2004-11-08 00:47:05Z ipso $
26* @author Fabien MARTY <fab@php.net>
107    * Available values are :
108    * 'md5' for a md5 hash control (best but slowest)
109    * 'crc32' for a crc32 hash control (lightly less safe but faster, better choice)
212    *     'readControl' => enable / disable read control (boolean),
213    *     'readControlType' => type of read control 'crc32', 'md5', 'strlen' (string),
214    *     'pearErrorMode' => pear error mode (when raiseError is called) (cf PEAR doc) (int),
509        if ($this->_fileNameProtection) {
510            $this->_file = ($this->_cacheDir.'cache_'.md5($group).'_'.md5($id));
511        } else {
class.t3lib_div.php https://moodleazure.svn.codeplex.com/svn | PHP | 3,870 lines
2628				HTTP_HOST		=	[host][:[port]]		= 192.168.1.4:8080
2629				SCRIPT_NAME		=	[path_script]++		= /typo3/32/temp/phpcheck/index.php		// NOTICE THAT SCRIPT_NAME will return the php-script name ALSO. [path_script] may not do that (eg. '/somedir/' may result in SCRIPT_NAME '/somedir/index.php')!
2630				PATH_INFO		=	[path_info]			= /arg1/arg2/arg3/
2667			case 'SCRIPT_NAME':
2668				return (php_sapi_name()=='cgi'||php_sapi_name()=='cgi-fcgi')&&($_SERVER['ORIG_PATH_INFO']?$_SERVER['ORIG_PATH_INFO']:$_SERVER['PATH_INFO']) ? ($_SERVER['ORIG_PATH_INFO']?$_SERVER['ORIG_PATH_INFO']:$_SERVER['PATH_INFO']) : ($_SERVER['ORIG_SCRIPT_NAME']?$_SERVER['ORIG_SCRIPT_NAME']:$_SERVER['SCRIPT_NAME']);
2669			break;
2670			case 'SCRIPT_FILENAME':
2671				return str_replace('//','/', str_replace('\\','/', (php_sapi_name()=='cgi'||php_sapi_name()=='isapi' ||php_sapi_name()=='cgi-fcgi')&&($_SERVER['ORIG_PATH_TRANSLATED']?$_SERVER['ORIG_PATH_TRANSLATED']:$_SERVER['PATH_TRANSLATED'])? ($_SERVER['ORIG_PATH_TRANSLATED']?$_SERVER['ORIG_PATH_TRANSLATED']:$_SERVER['PATH_TRANSLATED']):($_SERVER['ORIG_SCRIPT_FILENAME']?$_SERVER['ORIG_SCRIPT_FILENAME']:$_SERVER['SCRIPT_FILENAME'])));
2672			break;
2684//				if (strcmp($_SERVER['PATH_INFO'],t3lib_div::getIndpEnv('SCRIPT_NAME')) && count(explode('/',$_SERVER['PATH_INFO']))>1)	{
2685				if (php_sapi_name()!='cgi'&&php_sapi_name()!='cgi-fcgi')	{
2686					return $_SERVER['PATH_INFO'];
3714			$md5 = substr(md5($inUrl),0,20);
3715			$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('md5hash', 'cache_md5params', 'md5hash='.$GLOBALS['TYPO3_DB']->fullQuoteStr($md5, 'cache_md5params'));
3716			if (!$GLOBALS['TYPO3_DB']->sql_num_rows($res))	{
langimport.php https://moodleazure.svn.codeplex.com/svn | PHP | 447 lines
1<?php //$Id: langimport.php,v 1.36.2.11 2010/05/30 10:15:55 stronk7 Exp $
2///This file only manages the installation of 1.6 lang packs.
63                    if ($cd = new component_installer('http://download.moodle.org', 'lang16',
64                                                        $pack.'.zip', 'languages.md5', 'lang')) {
65                        $status = $cd->install(); //returns COMPONENT_(ERROR | UPTODATE | INSTALLED)
157
158                if (file_exists($dest1.'/langconfig.php') || file_exists($dest2.'/langconfig.php')){
159                    $lang16[] = $clang;
162
163            //then filter out packs that have the same md5 key
164            foreach ($lang16 as $clang) {
416        global $CFG;
417        $md5file = $CFG->dataroot.'/lang/'.$lang.'/'.$lang.'.md5';
418        if (file_exists($md5file)){
418        if (file_exists($md5file)){
419            return (file_get_contents($md5file) == $md5check);
420        }
MethodTest.php git://github.com/manuelpichler/pdepend.git | PHP | 849 lines
68 */
69class PHP_Depend_Code_MethodTest extends PHP_Depend_Code_AbstractItemTest
70{
634            array(),
635            'PHP_Depend_Code_ASTNodeI_' . md5(microtime())
636        );
699        $child = $method->getFirstChildOfType(
700            'PHP_Depend_Code_ASTNodeI_' . md5(microtime())
701        );
715            array(),
716            'PHP_Depend_Code_ASTNodeI_' . md5(microtime())
717        );
725            array(),
726            'PHP_Depend_Code_ASTNodeI_' . md5(microtime())
727        );
File.php git://github.com/centurion-project/Centurion.git | PHP | 507 lines
1<?php
2
26 */
27//$1 "Zend/OpenId/Consumer/Storage.php";
28
75                 */
76                //$1 'Zend/OpenId/Exception.php';
77                throw new Zend_OpenId_Exception(
85             */
86            //$1 'Zend/OpenId/Exception.php';
87            throw new Zend_OpenId_Exception(
95             */
96            //$1 'Zend/OpenId/Exception.php';
97            throw new Zend_OpenId_Exception(
105             */
106            //$1 'Zend/OpenId/Exception.php';
107            throw new Zend_OpenId_Exception(
Lite.php git://github.com/remiprev/pubwich.git | PHP | 835 lines
1<?php
2
22* @version $Id: Lite.php,v 1.54 2009/07/07 05:34:37 tacker Exp $
23* @author Fabien MARTY <fab@php.net>
24*/
113    * Available values are :
114    * 'md5' for a md5 hash control (best but slowest)
115    * 'crc32' for a crc32 hash control (lightly less safe but faster, better choice)
263    *     'readControl' => enable / disable read control (boolean),
264    *     'readControlType' => type of read control 'crc32', 'md5', 'strlen' (string),
265    *     'pearErrorMode' => pear error mode (when raiseError is called) (cf PEAR doc) (int),
543     * 
544     * see http://pear.php.net/bugs/bug.php?id=6681
545     * 
685        if ($this->_fileNameProtection) {
686            $suffix = 'cache_'.md5($group).'_'.md5($id);
687        } else {
DooPhpCache.php git://github.com/darkredz/DooPHP.git | PHP | 200 lines
12/**
13 * DooPhpCache provides file based caching which convert data into PHP variables.
14 *
73        if($this->hashing===true)
74            $cfile = $this->_directory . $folder .'/'. md5($id) .'.php';
75        else
102        if($this->hashing===true)
103            return file_put_contents($this->_directory . md5($id) . '.php', '<?php $data = array('.$expire.', '. var_export($value, true) . '); ?>', LOCK_EX);
104
123        if($this->hashing===true)
124            $cfile .= md5($id) . '.php';
125        else
142        if($this->hashing===true)
143            $cfile = $this->_directory.md5($id).'.php';
144        else
test_smarty3.php git://github.com/MrAnchovy/Kohana_Smarty3.git | PHP | 160 lines
1<?php defined('SYSPATH') or die('No direct access allowed.');
2/**
16    View::set_global('global_variable', $random);
17    $view = View::factory('smarty_test/test_php');
18    $view->variable = $random;
33
34function test_can_load_php_template() {
35  $view = View::factory('smarty_test/test_php');
56  // use random values throughout to avoid caching and/or object persistence issues
57  $random = md5(microtime());
58  $view->variable = $random;
99  $output = $view->render();
100  $this->assertPattern("/PHP Global variable \[$random\]/", $output, "Output should contain PHP Global variable [$random]|%s");
101}
136  $output = $view->render();
137  $this->assertPattern("/PHP Global variable \[$random\]/", $output, "Output should contain PHP Global variable [$random]|%s");
138}
File.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 507 lines
1<?php
2
20 * @license    http://framework.zend.com/license/new-bsd     New BSD License
21 * @version    $Id: File.php 20096 2010-01-06 02:05:09Z bkarwin $
22 */
26 */
27require_once "Zend/OpenId/Consumer/Storage.php";
28
75                 */
76                require_once 'Zend/OpenId/Exception.php';
77                throw new Zend_OpenId_Exception(
85             */
86            require_once 'Zend/OpenId/Exception.php';
87            throw new Zend_OpenId_Exception(
95             */
96            require_once 'Zend/OpenId/Exception.php';
97            throw new Zend_OpenId_Exception(
security.lib.php git://github.com/Dolibarr/dolibarr.git | PHP | 733 lines
109 * 	@param 		string		$chain		String to hash
110 * 	@param		string		$type		Type of hash ('0':auto will use MAIN_SECURITY_HASH_ALGO else md5, '1':sha1, '2':sha1+md5, '3':md5, '4':md5 for OpenLdap with no salt, '5':sha256). Use '3' here, if hash is not needed for security purpose, for security need, prefer '0'.
111 * 	@return		string					Hash of string
127	if ($type == '1' || $type == 'sha1') return sha1($chain);
128	elseif ($type == '2' || $type == 'sha1md5') return sha1(md5($chain));
129	elseif ($type == '3' || $type == 'md5') return md5($chain);
129	elseif ($type == '3' || $type == 'md5') return md5($chain);
130	elseif ($type == '4' || $type == 'md5openldap') return '{md5}'.base64_encode(mhash(MHASH_MD5, $chain)); // For OpenLdap with md5 (based on an unencrypted password in base)
131	elseif ($type == '5') return hash('sha256', $chain);
140 * 	Compute a hash and compare it to the given one
141 *  For backward compatibility reasons, if the hash is not in the password_hash format, we will try to match against md5 and sha1md5
142 *  If constant MAIN_SECURITY_HASH_ALGO is defined, we use this function as hashing function.
146 * 	@param 		string		$hash		hash to compare
147 * 	@param		string		$type		Type of hash ('0':auto, '1':sha1, '2':sha1+md5, '3':md5, '4':md5 for OpenLdap, '5':sha256). Use '3' here, if hash is not needed for security purpose, for security need, prefer '0'.
148 * 	@return		bool					True if the computed hash is the same as the given one
Sieve.php git://pkgs.fedoraproject.org/php-pear-Net-Sieve | PHP | 1,275 lines
1<?php
2/**
40 * @copyright 2006-2008 Anish Mistry
41 * @license   http://www.opensource.org/licenses/bsd-license.php BSD
42 * @version   SVN: $Id$
42 * @version   SVN: $Id$
43 * @link      http://pear.php.net/package/Net_Sieve
44 */
45
46require_once 'PEAR.php';
47require_once 'Net/Socket.php';
101     */
102    var $supportedAuthMethods = array('DIGEST-MD5', 'CRAM-MD5', 'EXTERNAL',
103                                      'PLAIN' , 'LOGIN');
109     */
110    var $supportedSASLAuthMethods = array('DIGEST-MD5', 'CRAM-MD5');
111
general-template.php git://pkgs.fedoraproject.org/wordpress | PHP | 2,284 lines
1<?php
2/**
28	if ( isset($name) )
29		$templates[] = "header-{$name}.php";
30
30
31	$templates[] = 'header.php';
32
34	if ('' == locate_template($templates, true))
35		load_template( ABSPATH . WPINC . '/theme-compat/header.php');
36}
43 *
44 * For the parameter, if the file is called "footer-special.php" then specify
45 * "special".
650 *
651 * This is optimized for archive.php and archive-{$post_type}.php template files
652 * for displaying the title of the post type.
Authbasic.php git://pkgs.fedoraproject.org/php-pear-File-Passwd | PHP | 396 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
8 *
9 * LICENSE: This source file is subject to version 3.0 of the PHP license
10 * that is available through the world-wide-web at the following URI:
10 * that is available through the world-wide-web at the following URI:
11 * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
12 * the PHP License and are unable to obtain it through the web, please
12 * the PHP License and are unable to obtain it through the web, please
13 * send a note to license@php.net so we can mail you a copy immediately.
14 *
16 * @package    File_Passwd
17 * @author     Michael Wallner <mike@php.net>
18 * @copyright  2003-2005 Michael Wallner
18 * @copyright  2003-2005 Michael Wallner
19 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
20 * @version    CVS: $Id: Authbasic.php,v 1.17 2005/03/30 18:33:33 mike Exp $
Unix.php git://pkgs.fedoraproject.org/php-pear-File-Passwd | PHP | 660 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
10 * that is available through the world-wide-web at the following URI:
11 * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
12 * the PHP License and are unable to obtain it through the web, please
12 * the PHP License and are unable to obtain it through the web, please
13 * send a note to license@php.net so we can mail you a copy immediately.
14 *
16 * @package    File_Passwd
17 * @author     Michael Wallner <mike@php.net>
18 * @copyright  2003-2005 Michael Wallner
18 * @copyright  2003-2005 Michael Wallner
19 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
20 * @version    CVS: $Id: Unix.php,v 1.17 2005/03/30 18:33:33 mike Exp $
107    */
108    var $_modes = array('md5' => 'md5', 'des' => 'des');
109    
rcube_imap_generic.php git://pkgs.fedoraproject.org/roundcubemail | PHP | 3,572 lines
448    /**
449     * DIGEST-MD5/CRAM-MD5/PLAIN Authentication
450     *
452     * @param string $pass
453     * @param string $type Authentication type (PLAIN/CRAM-MD5/DIGEST-MD5)
454     *
458    {
459        if ($type == 'CRAM-MD5' || $type == 'DIGEST-MD5') {
460            if ($type == 'DIGEST-MD5' && !class_exists('Auth_SASL')) {
805            // Use best (for security) supported authentication method
806            foreach (array('DIGEST-MD5', 'CRAM-MD5', 'CRAM_MD5', 'PLAIN', 'LOGIN') as $auth_method) {
807                if (in_array($auth_method, $auth_methods)) {
1979    // 7 times instead :-) See comments on http://uk2.php.net/references and this article:
1980    // http://derickrethans.nl/files/phparch-php-variables-article.pdf
1981    private function parseThread($str, $begin, $end, $root, $parent, $depth, &$depthmap, &$haschildren)
utils.php https://code.google.com/p/vtiger-ru-fork/ | PHP | 1,554 lines
557			$cryptType = $row['crypt_type'];
558			if(strtolower($cryptType) == 'md5' && version_compare(PHP_VERSION, '5.3.0') >= 0) {
559				$cryptType = 'PHP5.3MD5';
732			      	/* replace the application unique key variable */
733		      		$buffer = str_replace( "_VT_APP_UNIQKEY_", md5(time() + rand(1,9999999) + md5($this->rootDirectory)) , $buffer);
734
862// files with one of these extensions will have '.txt' appended to their filename on upload
863\$upload_badext = array('php', 'php3', 'php4', 'php5', 'pl', 'cgi', 'py', 'asp', 'cfm', 'js', 'vbs', 'html', 'htm', 'exe', 'bin', 'bat', 'sh', 'dll', 'phps', 'phtml', 'xhtml', 'rb', 'msi', 'jsp', 'shtml', 'sth', 'shtm');
864
934// Generating Unique Application Key
935\$application_unique_key = '".md5(time() + rand(1,9999999) + md5($this->rootDirectory)) ."';
936
1464		if(!@rename("install.php", $renamefile."install.php.txt")) {
1465			if (@copy ("install.php", $renamefile."install.php.txt")) {
1466				if(!@unlink("install.php")) {
Users.php https://code.google.com/p/vtiger-ru-fork/ | PHP | 1,455 lines
1<?php
2/*********************************************************************************
33require_once('include/utils/UserInfoUtil.php');
34require_once 'data/CRMEntity.php';
35require_once('modules/Calendar/Activity.php');
130
131    var $DEFAULT_PASSWORD_CRYPT_TYPE; //'BLOWFISH', /* before PHP5.3*/ MD5;
132
142        $this->DEFAULT_PASSWORD_CRYPT_TYPE = (version_compare(PHP_VERSION, '5.3.0') >= 0)?
143                'PHP5.3MD5': 'MD5';
144        $this->column_fields = getColumnFields('Users');
267            $salt = '$2$' . $salt . '$';
268        } elseif($crypt_type == 'PHP5.3MD5') {
269            //only change salt for php 5.3 or higher version for backward
305            $buffer = fread($handle, filesize($validate));
306            if(md5($buffer) == $md5 || (!empty($alt) && md5($buffer) == $alt)) {
307                return 1;
general-template.php https://git01.codeplex.com/officialwp | PHP | 2,287 lines
1<?php
2/**
28	if ( isset($name) )
29		$templates[] = "header-{$name}.php";
30
30
31	$templates[] = 'header.php';
32
34	if ('' == locate_template($templates, true))
35		load_template( ABSPATH . WPINC . '/theme-compat/header.php');
36}
43 *
44 * For the parameter, if the file is called "footer-special.php" then specify
45 * "special".
643 *
644 * This is optimized for archive.php and archive-{$post_type}.php template files
645 * for displaying the title of the post type.
rfc2104_testvectors.php https://bitbucket.org/jmcastagnetto/pear_message.git | PHP | 76 lines
39echo "data: $data1\n";
40echo "md5 HMAC: ".Message::calcHMAC('MD5', $data1, $key1)."\n\n";
41
53echo 'data: 0x'.wordwrap(str_repeat('DD', 50),30,"\n",1)."\n";
54echo "md5 HMAC: ".Message::calcHMAC('MD5', $data3, $key3)."\n\n";
55
57
58$md5 =& Message::createHMAC('MD5', $key1);
59echo "rfc 2104 output: 0x9294727a3638bb1c13f48ef8158bfc9d\n";
61echo "data: $data1\n";
62echo "md5 HMAC: ".$md5->calc($data1)."\n\n";
63
67echo "data: $data2\n";
68echo "md5 HMAC: ".$md5->calc($data2)."\n\n";
69
File.php https://bitbucket.org/svenax/zendframework.git | PHP | 511 lines
1<?php
2
26 */
27require_once "Zend/OpenId/Consumer/Storage.php";
28
75                 */
76                require_once 'Zend/OpenId/Exception.php';
77                throw new Zend_OpenId_Exception(
85             */
86            require_once 'Zend/OpenId/Exception.php';
87            throw new Zend_OpenId_Exception(
95             */
96            require_once 'Zend/OpenId/Exception.php';
97            throw new Zend_OpenId_Exception(
105             */
106            require_once 'Zend/OpenId/Exception.php';
107            throw new Zend_OpenId_Exception(
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21