PageRenderTime 19ms queryFilters 2ms Sphinxql 543ms GetByIds 204ms meta 0ms repositoryFilters 6ms languageFilters 8ms sourceFilters 2ms

201,886 results for 'php md5 repo:sahilbabu/phpb2b' (19 ms)

Source

Language

Repository

md5.t https://github.com/pipp/pipp.git | Unknown | 86 lines
4
5t/php/md5.t - Standard Library md5
6
8
9    % perl t/harness t/php/md5.t
10
12
13Tests PHP Standard Library md5
14(implemented in F<languages/pipp/src/common/php_md5.pir>).
15
16See L<http://www.php.net/manual/en/ref.strings.php>.
17
39<?php
40  echo md5('message digest', FALSE), "\n";
41?>
sqlite.php git://github.com/pateketrueke/tetlphp.git | PHP | 98 lines
1<?php
2
57  $sql  = 'SELECT value FROM "data"';
58  $sql .= "\nWHERE \"key\" = PHP('md5', '$key')";
59
75  $sql .= '("key", "value", "expire")';
76  $sql .= "\nVALUES(PHP('md5', '$key'), '$val', $time)";
77
82  $sql  = 'DELETE FROM "data"';
83  $sql .= "\nWHERE \"key\" = PHP('md5', '$key')";
84
89  $sql  = "SELECT COUNT(*) FROM \"data\"";
90  $sql .= "\nWHERE \"key\" = PHP('md5', '$key')";
91
96
97/* EOF: ./library/cache/drivers/sqlite.php */
98
convert_passwords.php git://pkgs.fedoraproject.org/WebCalendar | PHP | 96 lines
1#!/usr/local/bin/php -q
2<?php
3/*
4 * $Id: convert_passwords.php,v 1.8.2.6 2011/04/27 00:27:35 rjones6061 Exp $
5 *
6 * This script will alter the webcal_user table to allow 32 character passwords
7 * and convert user passwords to PHP md5 passwords.
8 *
26include __WC_INCLUDEDIR . '/config.php';
27include __WC_INCLUDEDIR . '/dbi4php.php';
28
37
38// First, look at the passwords. If we find and md5 hash in there,
39// (it will have 32 chars instead of < 25 like in the old version),
55if ( $doneBefore ) {
56  echo "Passwords were already converted to md5!\n<br />\n";
57  exit;
Md5Test.php https://github.com/tjohns/zf.git | PHP | 213 lines
131        $validator = new Zend_Validate_File_Md5(array('12345', '12333', '12344'));
132        $this->assertEquals(array('12345' => 'md5', '12333' => 'md5', '12344' => 'md5'), $validator->getMd5());
133    }
145        $validator = new Zend_Validate_File_Md5(array('12345', '12333', '12344'));
146        $this->assertEquals(array('12345' => 'md5', '12333' => 'md5', '12344' => 'md5'), $validator->getHash());
147    }
160        $validator->setMd5(array('12321', '12121'));
161        $this->assertEquals(array('12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
162    }
190        $validator->addMd5(array('12321', '12121'));
191        $this->assertEquals(array('12345' => 'md5', '12344' => 'md5', '12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
192    }
205        $validator->addHash(array('12321', '12121'));
206        $this->assertEquals(array('12345' => 'md5', '12344' => 'md5', '12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
207    }
md5.t https://github.com/bschmalhofer/pipp.git | Unknown | 86 lines
4
5t/php/md5.t - Standard Library md5
6
8
9    % perl t/harness t/php/md5.t
10
12
13Tests PHP Standard Library md5
14(implemented in F<languages/pipp/src/common/php_md5.pir>).
15
16See L<http://www.php.net/manual/en/ref.strings.php>.
17
39<?php
40  echo md5('message digest', FALSE), "\n";
41?>
misc.php https://github.com/AKSW/geolift-webbuilder.git | PHP | 657 lines
1<?php
2/*
47        die('{"error":"user-field required"}');
48    $user_dir = $base_dir . md5($_REQUEST['user']) . DIRECTORY_SEPARATOR;
49
81        die('{"error":"data-field required"}');
82    $file_dir = $base_dir . md5(($_REQUEST['user'])) . DIRECTORY_SEPARATOR . ($_REQUEST['file']) . DIRECTORY_SEPARATOR;
83    if (isset($_REQUEST['job'])) {
97    //create config file
98    $file_dir = realpath($base_dir . md5(($_REQUEST['user'])) . DIRECTORY_SEPARATOR . ($_REQUEST['file']) . DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
99    $file = $file_dir . ($newFilename);
125
126    $user_file_dir = realpath($base_dir . md5($_REQUEST['user'])) . DS . ($_REQUEST['file']) . '.json';
127
564
565    $command.= "php " . GEOLIFT_BASE_PATH . DS . "upload" . DS . "inc" . DS . "sendMail.php " . md5(($_REQUEST['user'])) . " " . (($_REQUEST['file'])) . " " . (($_REQUEST['job'])) . " ";
566    //write SH for command and run it
php.php git://github.com/pateketrueke/tetlphp.git | PHP | 54 lines
1<?php
2
14cache::implement('free_all', function () {
15  foreach (dir2arr(TMP, '--cache-php*') as $cache_file) {
16    @unlink(TMP.DS.$cache_file);
20cache::implement('fetch_item', function ($key) {
21  if (is_file($cache_file = TMP.DS.'--cache-php'.md5($key))) {
22    $test = include $cache_file;
34cache::implement('store_item', function ($key, $set = array(), $ttl = 0) {
35  $cache_file = TMP.DS.'--cache-php'.md5($key);
36
43cache::implement('delete_item', function ($key) {
44  if (is_file($cache_file = TMP.DS.'--cache-php'.md5($key))) {
45    return @unlink($cache_file);
52
53/* EOF: ./library/cache/drivers/php.php */
54
cp_lang_all.php https://bitbucket.org/johnroyer/phpwind8.7.git | PHP | 93 lines
1<?php
2!function_exists('readover') && exit('Forbidden');
35						. '引入了mysqli的支持,兼容性更好,效率性能更穩定,與mysql連接更穩定\r\n\t'
36						. '// 若服務器的配置是 PHP5.1.0或更高版本 和 MySQL4.1.3或更高版本,可以嘗試使用 mysqli。',
37'PW'				=> '// 表區分符,用於區分每一套程序的符號',
42'managerinfo'		=> '* 創始人將擁有論壇的所有權限,自pwforums v6.3起支持多重創始人,用戶名密碼更改方法:\r\n'
43						. '* 方法1、將./data/sql_config.php的文件屬性設置為777(非NT服務器)或取消只讀並將用戶權限設置為Full Control(完全控制,NT服務器),\r\n'
44						. '* 然後用原始創始人帳號登錄後台,在更改論壇創始人處進行相關添加修改操作,\r\n'
44						. '* 然後用原始創始人帳號登錄後台,在更改論壇創始人處進行相關添加修改操作,\r\n'
45						. '* 操作完畢後,再將./data/sql_config.php的文件屬性設置為644(非NT服務器)或只讀(NT服務器)。(推薦)\r\n'
46						. '* 方法2、用記事本打開./data/sql_config.php文件,在「創始人用戶名數組」中加入新的用戶名,\r\n'
46						. '* 方法2、用記事本打開./data/sql_config.php文件,在「創始人用戶名數組」中加入新的用戶名,\r\n'
47						. '* 如「\$manager = array(\'admin\');」更改為「\$manager = array(\'admin\',\'phpwind\');」,在「創始人密碼數組」中加入新的密碼,\r\n'
48						. '* 如「\$manager_pwd = array(\'21232f297a57a5a743894a0e4a801fc3\');」\r\n'
50						. '* 其中「21232f297a57a5a743894a0e4a801fc3」是密碼為admin的md5的加密串,您可以創建一個新的文件在根目錄(test.php),\r\n'
51						. '* 文件內容為 "<?php echo md5(\'您的密碼\');?>" ,在地址欄輸入http://你的論壇/test.php獲得md5加密後的密碼,用完記得刪除文件test.php。',
52'managername'		=> '// 創始人用戶名數組',
math.php https://github.com/Yannix/zetacomponents.git | PHP | 183 lines
1<?php
2/**
37    /**
38     * Creates a new big number library which uses the PHP extension $lib.
39     *
50     *         if the value provided for $lib is not correct
51     * @param string $lib The PHP library to use for big number support. Default
52     *                    is null, which means the available library is autodetected.
65                    {
66                        throw new ezcBaseExtensionNotFoundException( 'gmp | bcmath', null, "PHP not compiled with --enable-bcmath or --with-gmp." );
67                    }
81                {
82                    throw new ezcBaseExtensionNotFoundException( 'gmp', null, "PHP not compiled with --with-gmp." );
83                }
104     *
105     * This is different from the hash returned by the PHP md5() function. 
106     *
avalaratax.php https://github.com/boxdrop/PrestaShop-modules.git | PHP | 1,492 lines
1<?php
2/*
22*  @copyright  2007-2014 PrestaShop SA
23*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
24*  International Registered Trademark & Property of PrestaShop SA
49		/** Backward compatibility */
50		require(_PS_MODULE_DIR_.$this->name.'/backward_compatibility/backward.php');
51		
193		return array(
194			'Tax.php' => array(
195				'source' => 'override/classes/tax/Tax.php',
195				'source' => 'override/classes/tax/Tax.php',
196				'dest' => 'override/classes/Tax.php',
197				'md5' => array(
239
240				$md5 = md5_file(_PS_ROOT_DIR_.'/'.$params['dest']);
241				$removed = false;
Md5Test.php https://github.com/29e7e280-0d1c-4bba-98fe-f7cd3ca7500a/zf1.git | PHP | 208 lines
126        $validator = new Zend_Validate_File_Md5(array('12345', '12333', '12344'));
127        $this->assertEquals(array('12345' => 'md5', '12333' => 'md5', '12344' => 'md5'), $validator->getMd5());
128    }
140        $validator = new Zend_Validate_File_Md5(array('12345', '12333', '12344'));
141        $this->assertEquals(array('12345' => 'md5', '12333' => 'md5', '12344' => 'md5'), $validator->getHash());
142    }
155        $validator->setMd5(array('12321', '12121'));
156        $this->assertEquals(array('12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
157    }
185        $validator->addMd5(array('12321', '12121'));
186        $this->assertEquals(array('12345' => 'md5', '12344' => 'md5', '12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
187    }
200        $validator->addHash(array('12321', '12121'));
201        $this->assertEquals(array('12345' => 'md5', '12344' => 'md5', '12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
202    }
Md5Test.php https://github.com/alexgit2k/zf1.git | PHP | 208 lines
126        $validator = new Zend_Validate_File_Md5(array('12345', '12333', '12344'));
127        $this->assertEquals(array('12345' => 'md5', '12333' => 'md5', '12344' => 'md5'), $validator->getMd5());
128    }
140        $validator = new Zend_Validate_File_Md5(array('12345', '12333', '12344'));
141        $this->assertEquals(array('12345' => 'md5', '12333' => 'md5', '12344' => 'md5'), $validator->getHash());
142    }
155        $validator->setMd5(array('12321', '12121'));
156        $this->assertEquals(array('12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
157    }
185        $validator->addMd5(array('12321', '12121'));
186        $this->assertEquals(array('12345' => 'md5', '12344' => 'md5', '12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
187    }
200        $validator->addHash(array('12321', '12121'));
201        $this->assertEquals(array('12345' => 'md5', '12344' => 'md5', '12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
202    }
Md5Test.php https://github.com/amirsourette/zf1.git | PHP | 208 lines
126        $validator = new Zend_Validate_File_Md5(array('12345', '12333', '12344'));
127        $this->assertEquals(array('12345' => 'md5', '12333' => 'md5', '12344' => 'md5'), $validator->getMd5());
128    }
140        $validator = new Zend_Validate_File_Md5(array('12345', '12333', '12344'));
141        $this->assertEquals(array('12345' => 'md5', '12333' => 'md5', '12344' => 'md5'), $validator->getHash());
142    }
155        $validator->setMd5(array('12321', '12121'));
156        $this->assertEquals(array('12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
157    }
185        $validator->addMd5(array('12321', '12121'));
186        $this->assertEquals(array('12345' => 'md5', '12344' => 'md5', '12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
187    }
200        $validator->addHash(array('12321', '12121'));
201        $this->assertEquals(array('12345' => 'md5', '12344' => 'md5', '12321' => 'md5', '12121' => 'md5'), $validator->getMd5());
202    }
notify_jabber.php git://github.com/FSB/Fire-Soft-Board-2.git | PHP | 2,009 lines
1<?php
2
4
5	Class.Jabber.PHP v0.4.2
6	(c) 2004 Nathan "Fritzy" Fritz
6	(c) 2004 Nathan "Fritzy" Fritz
7	http://cjphp.netflint.net *** fritzy@netflint.net
8
151
152		$this->iq_version_name		= "Class.Jabber.PHP -- http://cjphp.netflint.net -- by Nathan 'Fritzy' Fritz, fritz@netflint.net";
153		$this->iq_version_version	= "0.4";
228	{
229		$this->auth_id	= "auth_" . md5(time() . $_SERVER['REMOTE_ADDR']);
230
230
231		$this->resource	= ($this->resource != null) ? $this->resource : ("Class.Jabber.PHP " . md5($this->auth_id));
232		$this->jid		= "{$this->username}@{$this->server}/{$this->resource}";
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!
211		'ltrim' => 'php.ltrim',
212		'md5' => 'php.md5',
213		'nl2br' => 'php.nl2br',
1414 */
1415class phpClass extends phpBase {
1416	
1512 */
1513class phpProperty extends phpBase {
1514	/**
1547 */
1548class phpMethod extends phpBase {
1549	/**
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"
91
92(define-skeleton php-crc32
93  "Insert a crc32 statement. Calculates the crc32 polynomial of a string"
246
247(define-skeleton php-md5_file
248  "Insert a md5_file statement"
253
254(define-skeleton php-md5
255  "Insert a md5 statement"
math.php https://github.com/bbqlab/livehelperchat.git | PHP | 166 lines
1<?php
2/**
21    /**
22     * Creates a new big number library which uses the PHP extension $lib.
23     *
34     *         if the value provided for $lib is not correct
35     * @param string $lib The PHP library to use for big number support. Default
36     *                    is null, which means the available library is autodetected.
49                    {
50                        throw new ezcBaseExtensionNotFoundException( 'gmp | bcmath', null, "PHP not compiled with --enable-bcmath or --with-gmp." );
51                    }
65                {
66                    throw new ezcBaseExtensionNotFoundException( 'gmp', null, "PHP not compiled with --with-gmp." );
67                }
88     *
89     * This is different from the hash returned by the PHP md5() function. 
90     *
PageBase.php https://hg.codeplex.com/manx | PHP | 264 lines
84        $this->renderLink("shortcut icon", "image/x-icon", "assets/manx.ico");
85        $this->renderLink("alternate", "application/rss+xml", "rss.php", array('title' => 'Manx New Documents'));
86        $this->renderHeaderContent();
135            //$this->renderMenuSeparator();
136            //$this->renderMenuItem($menu == MenuType::Company, "company.php", "Company");
137            $this->renderFirstMenuItem($menu == MenuType::UrlWizard, "url-wizard.php", "URL Wizard");
145            $this->renderMenuSeparator();
146            $this->renderMenuItem($menu == MenuType::Mirror, "mirror.php", "Mirror");
147            $this->renderMenuItem($menu == MenuType::SizeReport, "size-report.php", "Size Report");
147            $this->renderMenuItem($menu == MenuType::SizeReport, "size-report.php", "Size Report");
148            $this->renderMenuItem($menu == MenuType::MD5Report, "md5-report.php", "MD5 Report");
149            $this->renderMenuSeparator();
240        $absolutePrefix = PageBase::getAbsolutePrefixFromScriptName($server);
241        printf('<a href="http://%s/%slogin.php?LOGO=1&redirect=%ssearch.php">Logout</a>',
242            $server['SERVER_NAME'], $absolutePrefix, $prefix);
smscoin.php https://bitbucket.org/smscoin/zen_cart_bank | PHP | 254 lines
9=====================================================
10 Файл: smscoin.php
11-----------------------------------------------------
15
16include_once(dirname(__FILE__)."/../../languages/$_SESSION[language]/modules/payment/smscoin.php");
17
18###
19#  MD5 sign
20#  Функция генерации md5 подписи
24	$prehash = implode("::", $params);
25	return md5($prehash);
26}
155		$s_status	= $_POST["s_status"];	 // Status 1 - delivered, 0 - Panding   статус платежа: 1 - прошел, 0 - не прошел.
156		$s_sign	= $_POST["s_sign"];	   // MD5-хэш строки, MD5 - hash
157
HtmlCoverageReportTest.php git://github.com/yandod/candycane.git | PHP | 237 lines
1<?php
2/**
6 *
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
14 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
15 * @link          http://cakephp.org CakePHP(tm) Project
16 * @package       Cake.Test.Case.TestSuite
17 * @since         CakePHP(tm) v 2.0
18 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
19 */
121		$this->assertRegExp('/myfile\.php Code coverage\: \d+\.?\d*\%/', $result);
122		$this->assertRegExp('/<div class="code-coverage-results" id\="coverage\-myfile\.php-' . md5('myfile.php') . '"/', $result);
123		$this->assertRegExp('/<pre>/', $result);
169		$this->assertRegExp('/myfile\.php Code coverage\: \d+\.?\d*\%/', $result);
170		$this->assertRegExp('/<div class="code-coverage-results" id\="coverage\-myfile\.php-' . md5('myfile.php') . '"/', $result);
171		$this->assertRegExp('/<pre>/', $result);
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21