PageRenderTime 421ms queryTime 34ms sortTime 103ms getByIdsTime 112ms findMatchingLines 58ms

100+ results results for 'php md5 repo:xperez/codeigniter-cross-modular-extensions-xhmvc' (421 ms)

Not the results you expected?
1.2-rc1.php https://github.com/quarkness/piwik.git | PHP | 147 lines
                    
1<?php
                    
2/**
                    
34			    ADD visitor_days_since_first SMALLINT(5) UNSIGNED NOT NULL,
                    
35			    ADD `config_id` BINARY(8) NOT NULL AFTER `config_md5config`,
                    
36			    ADD custom_var_k1 VARCHAR(100) DEFAULT NULL,
                    
74    			SET idvisitor = binary(unhex(substring(visitor_idcookie,1,16))),
                    
75    				config_id = binary(unhex(substring(config_md5config,1,16)))
                    
76	   			' => false,	
                    
83		    	DROP visitor_idcookie, 
                    
84		    	DROP config_md5config
                    
85		    	' => false,
                    
                
bookmark.php https://gitlab.com/woxiprogrammers/infinia-wordpress | PHP | 414 lines
                    
1<?php
                    
2/**
                    
88 *
                    
89 * Attempts to retrieve from the cache first based on MD5 hash of arguments. If
                    
90 * that fails, then the query will be built from the arguments and executed. The
                    
129
                    
130	$key = md5( serialize( $r ) );
                    
131	if ( $cache = wp_cache_get( 'get_bookmarks', 'bookmark' ) ) {
                    
199			wp_cache_set( 'get_bookmarks', $cache, 'bookmark' );
                    
200			/** This filter is documented in wp-includes/bookmark.php */
                    
201			return apply_filters( 'get_bookmarks', array(), $r );
                    
290
                    
291	/** This filter is documented in wp-includes/bookmark.php */
                    
292	return apply_filters( 'get_bookmarks', $results, $r );
                    
380	if ( 'edit' == $context ) {
                    
381		/** This filter is documented in wp-includes/post.php */
                    
382		$value = apply_filters( "edit_$field", $value, $bookmark_id );
                    
                
LoggerDataCollector.php https://gitlab.com/ealexis.t/trends | PHP | 216 lines
                    
1<?php
                    
2
                    
124            if (isset($context['type'], $context['file'], $context['line'], $context['level'])) {
                    
125                $errorId = md5("{$context['type']}/{$context['line']}/{$context['file']}\x00{$log['message']}", true);
                    
126                $silenced = !($context['type'] & $context['level']);
                    
                
DoctrineAclCache.php https://github.com/nattaphat/hgis.git | PHP | 223 lines
                    
1<?php
                    
2
                    
208    {
                    
209        return $this->prefix.md5($oid->getType()).sha1($oid->getType())
                    
210               .'_'.md5($oid->getIdentifier()).sha1($oid->getIdentifier());
                    
                
antrag.php https://bitbucket.org/prauscher/att.git | PHP | 413 lines
                    
1<?php
                    
2class antragsModel extends DataBase
                    
36	    $nntpModel->autentifizierung(NNTP_USER, NNTP_PASS);
                    
37	    $nntpModel->post($gliederung["nnptName"], "Neuer Antrag ".$antrag["name"], "Hallo,\r\nfolgender Antrag wurde gestellt: \r\n\r\n".$antrag["beschluss"]."\r\n\r\nBegründung:\r\n\r\n".$antrag["begruendung"]."\r\n\r\nDer Antrag kann unter ".path."antrag/antrag/".$antragsID." eingesehen werden", "bot@junge-piraten.de", array("Message-ID" => "<".md5($antragsID)."@jupisantrag.de>"));
                    
38	    return true;
                    
                
Form.php https://github.com/thewiredman/symfony.git | PHP | 457 lines
                    
1<?php
                    
2
                    
28 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
29 * @version    SVN: $Id: Form.php 245 2010-01-31 22:22:39Z flo $
                    
30 */
                    
62        } else {
                    
63            $this->setCsrfSecret(md5(__FILE__.php_uname()));
                    
64        }
                    
242    {
                    
243        return md5($this->csrfSecret.session_id().get_class($this));
                    
244    }
                    
421            switch (strtolower(substr($max, -1))) {
                    
422                // The 'G' modifier is available since PHP 5.1.0
                    
423                case 'g':
                    
                
class.jetpack-xmlrpc-server.php https://gitlab.com/relacilia/cakra | PHP | 429 lines
                    
1<?php
                    
2
                    
211
                    
212		$hmac = hash_hmac( 'md5', json_encode( (object) array(
                    
213			'client_id' => (int) $client_id,
                    
404		// needed?
                    
405		require_once ABSPATH . 'wp-admin/includes/admin.php';
                    
406
                    
406
                    
407		require_once JETPACK__PLUGIN_DIR . 'class.json-api.php';
                    
408		$api = WPCOM_JSON_API::init( $method, $url, $post_body );
                    
409		$api->token_details['user'] = $user_details;
                    
410		require_once JETPACK__PLUGIN_DIR . 'class.json-api-endpoints.php';
                    
411
                    
418		$nonce = wp_generate_password( 10, false );
                    
419		$hmac  = hash_hmac( 'md5', $nonce . $output, $token->secret );
                    
420
                    
                
txt_thread.tpl https://github.com/Implying/tsukiboards.git | Smarty Template | 189 lines
                    
4		{if $post.parentid eq 0 || isread}
                    
5			<form id="delform" action="{%KU_CGIPATH}/board.php" method="post">
                    
6			<input type="hidden" name="board" value="{$board.name}" />
                    
47			{if $board.showid}
                    
48				{t}ID{/t}: {$post.ipmd5|substr:0:6}
                    
49			{/if}
                    
104			{if !$posts.0.locked}
                    
105				<form name="post{$posts.0.id}" id="post{$posts.0.id}" action="{%KU_CGIPATH}/board.php" method="post" {if $board.enablecaptcha eq 1}onsubmit="return checkcaptcha('post{$posts.parentid}');"{/if}>
                    
106				<input type="hidden" name="board" value="{$board.name}" />
                    
136						<td>
                    
137							<a href="#" onclick="javascript:document.getElementById('captchaimage').src = '{%KU_CGIPATH}/captcha.php?' + Math.random();return false;">
                    
138							<img id="captchaimage" src="{%KU_CGIPATH}/captcha.php" border="0" width="90" height="30" alt="Captcha image" />
                    
                
xxhash.h https://gitlab.com/piggygreenmo/britcoin3.2.1 | C Header | 164 lines
                    
4   Copyright (C) 2012-2014, Yann Collet.
                    
5   BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
                    
6
                    
51CRC32           0.43 GB/s     9
                    
52MD5-32          0.33 GB/s    10       Ronald L. Rivest
                    
53SHA1-32         0.28 GB/s    10
                    
                
Change.php https://gitlab.com/yousafsyed/easternglamor | PHP | 204 lines
                    
1<?php
                    
2/**
                    
102        if (null === $key) {
                    
103            $key = md5($this->getRandom()->getRandomString(ConfigOptionsListConstants::STORE_KEY_RANDOM_STRING_SIZE));
                    
104        }
                    
111
                    
112        // update database and config.php
                    
113        $this->beginTransaction();
                    
                
aws_s3.php https://github.com/tbleher/gallery3-contrib.git | PHP | 330 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2
                    
12        if (!self::$_s3) {
                    
13            require_once(MODPATH . "aws_s3/lib/s3.php");
                    
14            S3::setAuth(module::get_var("aws_s3", "access_key"), module::get_var("aws_s3", "secret_key"));
                    
121
                    
122        $item->s3_item_hash = md5($item->relative_path());
                    
123
                    
234    static function validate_access_details($access_key, $secret_key, $bucket_name) {
                    
235        require_once(MODPATH . "aws_s3/lib/s3.php");
                    
236        S3::setAuth($access_key, $secret_key);
                    
                
comment.php https://github.com/Bigjoos/U-232-V1.git | PHP | 300 lines
                    
1<?php
                    
2/**
                    
8 **/
                    
9require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'bittorrent.php');
                    
10require_once(INCL_DIR.'user_functions.php');
                    
10require_once(INCL_DIR.'user_functions.php');
                    
11require_once(INCL_DIR.'bbcode_functions.php');
                    
12require_once(INCL_DIR.'torrenttable_functions.php');
                    
79            
                    
80        //$res_hash = md5($TBDEV['salt1'].$CURUSER['id']);
                    
81        //if ($get_hash != $res_hash)
                    
117    
                    
118    	  header("Refresh: 0; url=$locale_link.php?id=$id$extra_link&viewcomm=$newid#comm$newid");
                    
119    	  die;
                    
135      $HTMLOUT .= "<h1>{$lang['comment_add']}'".htmlspecialchars($arr[$name])."'</h1>
                    
136      <br /><form method='post' action='comment.php?action=add'>
                    
137      <input type='hidden' name='tid' value='{$id}'/>
                    
                
Sanitize.php https://github.com/ushahidi/Sweeper.git | PHP | 400 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * A PHP-Based RSS and Atom Feed Framework.
                    
6 * Takes the hard work out of managing a complete RSS/Atom solution.
                    
41 * @link http://simplepie.org/ SimplePie
                    
42 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
                    
43 * @todo phpDoc comments
                    
64	var $cache_location = './cache';
                    
65	var $cache_name_function = 'md5';
                    
66	var $cache_class = 'SimplePie_Cache';
                    
100
                    
101	public function pass_cache_data($enable_cache = true, $cache_location = './cache', $cache_name_function = 'md5', $cache_class = 'SimplePie_Cache')
                    
102	{
                    
                
CHAP.php https://github.com/200896596/moodle.git | PHP | 464 lines
                    
1<?php
                    
2/*
                    
34
                    
35require_once 'PEAR.php';
                    
36
                    
38* Classes for generating packets for various CHAP Protocols:
                    
39* CHAP-MD5: RFC1994
                    
40* MS-CHAPv1: RFC2433
                    
103        $this->$varname = '';
                    
104        mt_srand(hexdec(substr(md5(microtime()), -8)) & 0x7fffffff);
                    
105        for ($i = 0; $i < $size; $i++) {
                    
122/**
                    
123 * class Crypt_CHAP_MD5
                    
124 *
                    
134     *
                    
135     * CHAP-MD5 uses MD5-Hash for generating the response. The Hash consists
                    
136     * of the chapid, the plaintext password and the challenge.
                    
                
SubscribeController.php https://gitlab.com/tiagokalinkeiori/congresso | PHP | 273 lines
                    
1<?php
                    
2
                    
194                                    ->setEmail($data['Email'])
                    
195                                    ->setSalt(md5(uniqid(null, true)));
                    
196                            $factory = $this->get('security.encoder_factory');
                    
                
function.sha1-file.html https://bitbucket.org/thncr/manuals.git | HTML | 144 lines
                    
11 <div class="up"><a href="ref.strings.html">字符串函数</a></div>
                    
12 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
13</div><hr /><div id="function.sha1-file" class="refentry">
                    
15  <h1 class="refname">sha1_file</h1>
                    
16  <p class="verinfo">(PHP 4 &gt;= 4.3.0, PHP 5)</p><p class="refpurpose"><span class="refname">sha1_file</span> &mdash; <span class="dc-title">计算文件的 sha1 散列值</span></p>
                    
17
                    
82<div class="phpcode"><code><span style="color: #000000">
                    
83<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">foreach(</span><span style="color: #0000BB">glob</span><span style="color: #007700">(</span><span style="color: #DD0000">'/home/Kalle/myproject/*.php'</span><span style="color: #007700">)&nbsp;as&nbsp;</span><span style="color: #0000BB">$ent</span><span style="color: #007700">)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">is_dir</span><span style="color: #007700">(</span><span style="color: #0000BB">$ent</span><span style="color: #007700">))<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;continue;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #0000BB">$ent&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">'&nbsp;(SHA1:&nbsp;'&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">sha1_file</span><span style="color: #007700">(</span><span style="color: #0000BB">$ent</span><span style="color: #007700">)&nbsp;.&nbsp;</span><span style="color: #DD0000">')'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">PHP_EOL</span><span style="color: #007700">;<br />}<br /></span><span style="color: #0000BB">?&gt;</span>
                    
84</span>
                    
132    <li class="member"> <span class="function"><a href="function.sha1.html" class="function" rel="rdfs-seeAlso">sha1()</a> - 计算字符串的 sha1 散列值</span></li>
                    
133    <li class="member"> <span class="function"><a href="function.md5-file.html" class="function" rel="rdfs-seeAlso">md5_file()</a> - 计算指定文件的 MD5 散列值</span></li>
                    
134    <li class="member"> <span class="function"><a href="function.crc32.html" class="function" rel="rdfs-seeAlso">crc32()</a> - 计算一个字符串的 crc32 多项式</span></li>
                    
142 <div class="up"><a href="ref.strings.html">字符串函数</a></div>
                    
143 <div class="home"><a href="index.html">PHP Manual</a></div>
                    
144</div></body></html>
                    
                
Message.php https://github.com/Riges/KawaiViewModel.git | PHP | 246 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Message.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
24/**
                    
25 * A message envelope that can be passed to Zend_Wildfire_Plugin_FirePhp to be
                    
26 * logged to Firebug instead of a variable.
                    
33 */
                    
34class Zend_Wildfire_Plugin_FirePhp_Message
                    
35{
                    
91        $this->_message = $message;
                    
92        $this->_ruid = md5(microtime().mt_rand());
                    
93    }
                    
                
php-xinha.php https://github.com/socialplanning/oc-js.git | PHP | 219 lines
                    
1<?php
                    
2  /** Write the appropriate xinha_config directives to pass data to a PHP (Plugin) backend file.
                    
11   *    <?php 
                    
12   *      xinha_pass_to_php_backend
                    
13   *      (       
                    
25      
                    
26  function xinha_pass_to_php_backend($Data, $KeyLocation = 'Xinha:BackendKey', $ReturnPHP = FALSE)
                    
27  {
                    
42        sha1($_SESSION[$KeyLocation] . $bk['data']) 
                    
43      : md5($_SESSION[$KeyLocation] . $bk['data']);
                    
44      
                    
156     {
                    
157      trigger_error('Programming Error - please contact the website administrator/programmer to alert them to this problem. A non-default backend key location is being used to pass backend data to Xinha, but the same key location is not being used to receive data.  The special backend configuration has been ignored.  To resolve this, find where you are using xinha_pass_to_php_backend and remove the non default key, or find the locations where xinha_read_passed_data is used (in Xinha) and add a parameter with the non default key location, or edit contrib/php-xinha.php and change the default key location in both these functions.  See: http://trac.xinha.org/ticket/1518', E_USER_ERROR);     
                    
158      return NULL;
                    
202
                    
203  /** Return upload_max_filesize value from php.ini in kilobytes (function adapted from php.net)**/
                    
204  function upload_max_filesize_kb() 
                    
                
options.php https://gitlab.com/BenjaminHolm/wp-rocket | PHP | 301 lines
                    
1<?php
                    
2use WP_Rocket\Logger\Logger;
                    
61	// If it's different, clean the domain.
                    
62	if ( md5( wp_json_encode( $oldvalue_diff ) ) !== md5( wp_json_encode( $value_diff ) ) ) {
                    
63		// Purge all cache files.
                    
196
                    
197	// Regenerate advanced-cache.php file.
                    
198	if ( ! empty( $_POST ) && ( ( isset( $oldvalue['do_caching_mobile_files'] ) && ! isset( $value['do_caching_mobile_files'] ) ) || ( ! isset( $oldvalue['do_caching_mobile_files'] ) && isset( $value['do_caching_mobile_files'] ) ) || ( isset( $oldvalue['do_caching_mobile_files'], $value['do_caching_mobile_files'] ) ) && $oldvalue['do_caching_mobile_files'] !== $value['do_caching_mobile_files'] ) ) {
                    
207
                    
208	// Set WP_CACHE constant in wp-config.php.
                    
209	if ( ! defined( 'WP_CACHE' ) || ! WP_CACHE ) {
                    
296
                    
297	$scheme = rocket_extract_url_component( $value, PHP_URL_SCHEME );
                    
298
                    
                
admin.php https://github.com/kelios/imshop.git | PHP | 216 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
90
                    
91            $name = md5( time() ).'.'.$ext;
                    
92            write_file($this->settings['upload_folder'].$name, $image_data);
                    
215
                    
216/* End of file admin.php */
                    
217
                    
                
Alignment.php https://gitlab.com/ptisky/API_prestashop | PHP | 409 lines
                    
22 * @package	PHPExcel_Style
                    
23 * @copyright  Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license	http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package	PHPExcel_Style
                    
34 * @copyright  Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable
                    
37{
                    
143	 *		array(
                    
144	 *			'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,
                    
145	 *			'vertical'   => PHPExcel_Style_Alignment::VERTICAL_CENTER,
                    
338	 * @param boolean $pValue
                    
339	 * @return PHPExcel_Style_Alignment
                    
340	 */
                    
                
HashTest.php https://github.com/Exercise/zf2.git | PHP | 189 lines
                    
1<?php
                    
2/**
                    
29// Call Zend_Validate_File_HashTest::main() if this source file is executed directly.
                    
30if (!defined("PHPUnit_MAIN_METHOD")) {
                    
31    define("PHPUnit_MAIN_METHOD", "Zend_Validate_File_HashTest::main");
                    
51 */
                    
52class HashTest extends \PHPUnit_Framework_TestCase
                    
53{
                    
60    {
                    
61        $suite  = new \PHPUnit_Framework_TestSuite("Zend_Validate_File_HashTest");
                    
62        $result = \PHPUnit_TextUI_TestRunner::run($suite);
                    
88        $valuesExpected = array(
                    
89            array(array('ed74c22109fe9f110579f77b053b8bc3', 'algorithm' => 'md5'), true),
                    
90            array(array('4d74c22109fe9f110579f77b053b8bc3', 'algorithm' => 'md5'), false),
                    
90            array(array('4d74c22109fe9f110579f77b053b8bc3', 'algorithm' => 'md5'), false),
                    
91            array(array('4d74c22109fe9f110579f77b053b8bc3', 'ed74c22109fe9f110579f77b053b8bc3', 'algorithm' => 'md5'), true),
                    
92            array(array('1d74c22109fe9f110579f77b053b8bc3', '4d74c22109fe9f110579f77b053b8bc3', 'algorithm' => 'md5'), false),
                    
                
Font.php https://gitlab.com/adamlwalker/generatedata | PHP | 640 lines
                    
22 * @package	PHPExcel_Style
                    
23 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license	http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package	PHPExcel_Style
                    
34 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_Style_Font implements PHPExcel_IComparable
                    
37{
                    
153			$this->_strikethrough	= NULL;
                    
154			$this->_color			= new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor, $isConditional);
                    
155		} else {
                    
155		} else {
                    
156			$this->_color	= new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor);
                    
157		}
                    
                
updates.php https://github.com/cladjidane/D-mo-HTML5-CSS3.git | PHP | 377 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: updates.php 222 2011-06-11 17:32:06Z happy_noodle_boy $
                    
4 * @package   	JCE
                    
17// load base model
                    
18require_once(dirname(__FILE__) . DS . 'model.php');
                    
19
                    
22    
                    
23	var $url = 'https://www.joomlacontenteditor.net/index.php?option=com_updates&format=raw';
                    
24	
                    
174                        // check hash and file type
                    
175						if ($data->hash == md5(md5_file($path)) && preg_match('/\.(zip|tar|gz)$/', $path)) {
                    
176                            $result = array(
                    
228                // check hash
                    
229                if ($hash == md5(md5_file($path))) {                    
                    
230                    if ($extract = JInstallerHelper::unpack($path)) {
                    
                
axel.py https://gitlab.com/132nd-etcher/CouchPotatoServer | Python | 381 lines
                    
9# This module is part of Axel and is released under
                    
10# the MIT License: http://www.opensource.org/licenses/mit-license.php
                    
11#
                    
111    def hash(self, handler):
                    
112        return hashlib.md5(str(handler)).hexdigest()
                    
113
                    
                
Message.php https://gitlab.com/devtoannh/cafe | PHP | 246 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Message.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
24/**
                    
25 * A message envelope that can be passed to Zend_Wildfire_Plugin_FirePhp to be
                    
26 * logged to Firebug instead of a variable.
                    
33 */
                    
34class Zend_Wildfire_Plugin_FirePhp_Message
                    
35{
                    
91        $this->_message = $message;
                    
92        $this->_ruid = md5(microtime().mt_rand());
                    
93    }
                    
                
__init__.py https://bitbucket.org/zzzeek/sqlalchemy.git | Python | 173 lines
                    
5# This module is part of SQLAlchemy and is released under
                    
6# the MIT License: https://www.opensource.org/licenses/mit-license.php
                    
7
                    
151from .langhelpers import map_bits
                    
152from .langhelpers import md5_hex
                    
153from .langhelpers import memoized_instancemethod
                    
                
paypal-return-in-web-accept-sp.inc.php https://gitlab.com/Gashler/sg | PHP | 148 lines
                    
1<?php
                    
2/**
                    
54
                    
55				if(!get_transient($transient_rtn = 's2m_rtn_'.md5('s2member_transient_'.$_paypal_s)) && set_transient($transient_rtn, time(), 31556926 * 10))
                    
56				{
                    
89																$paypal['s2member_log'][] = 'Storing Specific Post/Page Tracking Codes into a Transient Queue. These will be processed on-site.';
                    
90																set_transient('s2m_'.md5('s2member_transient_sp_tracking_codes_'.$paypal['txn_id']), $code, 43200);
                    
91															}
                    
                
api.php https://github.com/mmakaay/Modules.git | PHP | 195 lines
                    
1<?php
                    
2
                    
184    $url = 'http://www.gravatar.com/avatar/' .
                    
185           md5(strtolower(trim($user['email']))) .
                    
186           "?s=$size";
                    
                
HashTest.php https://github.com/Thinkscape/zf2.git | PHP | 181 lines
                    
1<?php
                    
2/**
                    
18 */
                    
19class HashTest extends \PHPUnit_Framework_TestCase
                    
20{
                    
33            array(
                    
34                array('ed74c22109fe9f110579f77b053b8bc3', 'algorithm' => 'md5'),
                    
35                $testFile, true, ''
                    
37            array(
                    
38                array('4d74c22109fe9f110579f77b053b8bc3', 'algorithm' => 'md5'),
                    
39                $testFile, false, 'fileHashDoesNotMatch'
                    
41            array(
                    
42                array('4d74c22109fe9f110579f77b053b8bc3', 'ed74c22109fe9f110579f77b053b8bc3', 'algorithm' => 'md5'),
                    
43                $testFile, true, ''
                    
45            array(
                    
46                array('4d74c22109fe9f110579f77b053b8bc3', '7d74c22109fe9f110579f77b053b8bc3', 'algorithm' => 'md5'),
                    
47                $testFile, false, 'fileHashDoesNotMatch'
                    
                
admin_user_management.php https://github.com/karlom/gameadmin.git | PHP | 233 lines
                    
1<?php
                    
2include_once '../../../protected/config/config.php';
                    
2include_once '../../../protected/config/config.php';
                    
3include_once SYSDIR_ADMIN_INCLUDE.'/global.php';
                    
4include_once SYSDIR_ADMIN_CLASS.'/admin_user.class.php';
                    
4include_once SYSDIR_ADMIN_CLASS.'/admin_user.class.php';
                    
5include_once SYSDIR_ADMIN_CLASS."/admin_group.class.php";
                    
6
                    
105		}
                    
106		$password = md5($password);
                    
107	}else {
                    
169	    	$timestamp = time();
                    
170	    	$key = urlencode(md5($timestamp.ADMIN_GAME_AUTH_KEY));
                    
171	    	$jsonBanList = urlencode(decodeUnicode(json_encode($syncUsers)));
                    
175	    	$paramStr = "timestamp={$timestamp}&key={$key}&action={$action}&jsonBanList={$jsonBanList}";
                    
176			$apiUrl = rtrim($v['url'], '/').'/api/rsync_admin_user.php';
                    
177			
                    
                
RbacUsers.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 288 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * RbacUsers.php
                    
5 * @package  rbac-classes-model
                    
29 */
                    
30require_once 'classes/model/om/BaseRbacUsers.php';
                    
31
                    
80                $aFields = $rs[0]->toArray(BasePeer::TYPE_FIELDNAME);
                    
81                //verify password with md5, and md5 format
                    
82                //if ( $aFields['USR_PASSWORD'] == md5 ($sPassword ) ) {
                    
83                if (mb_strtoupper($sUsername, 'utf-8') === mb_strtoupper($aFields['USR_USERNAME'], 'utf-8')) {
                    
84                    if ($aFields['USR_PASSWORD'] == md5($sPassword) ||
                    
85                        'md5:' . $aFields['USR_PASSWORD'] === $sPassword) {
                    
                
Flickrclient.php https://github.com/rerooting/PeopleAggregator.git | PHP | 172 lines
                    
1<?php
                    
2/** !
                    
12?>
                    
13<?php
                    
14/**
                    
22//api
                    
23require_once "api/PAException/PAException.php";
                    
24require_once "api/Logger/Logger.php";
                    
25//ext
                    
26require_once "Flickr/API.php";
                    
27
                    
32
                    
33    // individual users can override the global API key and secret in their local_config.php files if they wish
                    
34    global $flickr_api_key, $flickr_api_secret, $flickr_auth_type;
                    
57
                    
58  // generate an authentication frob (see flickr_in.php for usage)
                    
59  public function auth_getFrob() {
                    
                
Array.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 355 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Array.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
25 */
                    
26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
                    
27
                    
28/**
                    
29 * Class for using a standard PHP array as a queue
                    
30 *
                    
148             */
                    
149            // require_once 'Zend/Queue/Exception.php';
                    
150            throw new Zend_Queue_Exception('Queue does not exist');
                    
182            'body'       => $message,
                    
183            'md5'        => md5($message),
                    
184            'handle'     => null,
                    
                
Array.php https://github.com/grandison/budo16.git | PHP | 354 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Array.php 18701 2009-10-26 13:03:47Z matthew $
                    
21 */
                    
25 */
                    
26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
                    
27
                    
28/**
                    
29 * Class for using a standard PHP array as a queue
                    
30 *
                    
148             */
                    
149            // require_once 'Zend/Queue/Exception.php';
                    
150            throw new Zend_Queue_Exception('Queue does not exist');
                    
182            'body'       => $message,
                    
183            'md5'        => md5($message),
                    
184            'handle'     => null,
                    
                
wp-cache-phase1.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 264 lines
                    
1<?php
                    
2// Pre-2.6 compatibility
                    
5
                    
6if( !include( WP_CONTENT_DIR . '/wp-cache-config.php' ) )
                    
7	return true;
                    
10
                    
11include( WPCACHEHOME . 'wp-cache-base.php');
                    
12
                    
26
                    
27require_once( WPCACHEHOME . 'wp-cache-phase2.php');
                    
28
                    
28
                    
29$plugins = glob( $wp_cache_plugins_dir . '/*.php' );
                    
30if( is_array( $plugins ) ) {
                    
48function gzip_accepted(){
                    
49	if( ini_get( 'zlib.output_compression' ) ) // don't compress WP-Cache data files when PHP is already doing it
                    
50		return false;
                    
                
Alignment.php https://gitlab.com/dmsapiens/physicians | PHP | 409 lines
                    
22 * @package	PHPExcel_Style
                    
23 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license	http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package	PHPExcel_Style
                    
34 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable
                    
37{
                    
143	 *		array(
                    
144	 *			'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,
                    
145	 *			'vertical'   => PHPExcel_Style_Alignment::VERTICAL_CENTER,
                    
338	 * @param boolean $pValue
                    
339	 * @return PHPExcel_Style_Alignment
                    
340	 */
                    
                
ARC2_SemHTMLParser.php https://github.com/mterenzio/FollowThis.git | PHP | 339 lines
                    
1<?php
                    
2/*
                    
26    $this->skip_dupes = false;
                    
27    $this->bnode_prefix = $this->v('bnode_prefix', 'arc'.substr(md5(uniqid(rand())), 0, 4).'b', $this->a);
                    
28    $this->bnode_id = 0;
                    
62    if ($this->skip_dupes) {
                    
63      $h = md5(serialize($t));
                    
64      if (!isset($this->added_triples[$h])) {
                    
                
S3.php https://github.com/EthanBlast/Glam-Star-Life.git | PHP | 452 lines
                    
1<?php
                    
2
                    
5 */
                    
6require_once W3TC_LIB_W3_DIR . '/Cdn/Base.php';
                    
7
                    
8if (!class_exists('S3')) {
                    
9    require_once W3TC_LIB_DIR . '/S3.php';
                    
10}
                    
126            if ($info) {
                    
127                $hash = @md5_file($local_path);
                    
128                $s3_hash = (isset($info['hash']) ? $info['hash'] : '');
                    
171            if ($info) {
                    
172                $hash = md5($data);
                    
173                $s3_hash = (isset($info['hash']) ? $info['hash'] : '');
                    
242        
                    
243        $string = 'test_s3_' . md5(time());
                    
244        
                    
                
snmp.h https://github.com/ido/linux.git | C Header | 318 lines
                    
187	LINUX_MIB_LISTENDROPS,			/* ListenDrops */
                    
188	LINUX_MIB_TCPHPHITS,			/* TCPHPHits */
                    
189	LINUX_MIB_TCPPUREACKS,			/* TCPPureAcks */
                    
189	LINUX_MIB_TCPPUREACKS,			/* TCPPureAcks */
                    
190	LINUX_MIB_TCPHPACKS,			/* TCPHPAcks */
                    
191	LINUX_MIB_TCPRENORECOVERY,		/* TCPRenoRecovery */
                    
229	LINUX_MIB_TCPSPURIOUSRTOS,		/* TCPSpuriousRTOs */
                    
230	LINUX_MIB_TCPMD5NOTFOUND,		/* TCPMD5NotFound */
                    
231	LINUX_MIB_TCPMD5UNEXPECTED,		/* TCPMD5Unexpected */
                    
231	LINUX_MIB_TCPMD5UNEXPECTED,		/* TCPMD5Unexpected */
                    
232	LINUX_MIB_TCPMD5FAILURE,		/* TCPMD5Failure */
                    
233	LINUX_MIB_SACKSHIFTED,
                    
                
Array.php https://bitbucket.org/haichau59/manga.git | PHP | 355 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Array.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
25 */
                    
26//require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
                    
27
                    
28/**
                    
29 * Class for using a standard PHP array as a queue
                    
30 *
                    
148             */
                    
149            //require_once 'Zend/Queue/Exception.php';
                    
150            throw new Zend_Queue_Exception('Queue does not exist');
                    
182            'body'       => $message,
                    
183            'md5'        => md5($message),
                    
184            'handle'     => null,
                    
                
Bootstrap.php https://bitbucket.org/alvarosrojasg/jumpitt-informativa.git | PHP | 319 lines
                    
1<?php
                    
2/**
                    
5 * @copyright Copyright &copy; Christoffer Niska 2011-
                    
6 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
                    
7 * @version 2.0.3
                    
288		{
                    
289			$key = __CLASS__.'.'.md5($name.$selector.serialize($options));
                    
290			$options = !empty($options) ? CJavaScript::encode($options) : '';
                    
                
auth_tkt.py https://bitbucket.org/eaviles/gobierno.git | Python | 380 lines
                    
1# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org)
                    
2# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
                    
3##########################################################################
                    
41try:
                    
42    from hashlib import md5
                    
43except ImportError:
                    
43except ImportError:
                    
44    from md5 import md5
                    
45import Cookie
                    
169    user_data = maybe_encode(user_data)
                    
170    digest0 = md5(
                    
171        encode_ip_timestamp(ip, timestamp) + secret + userid + '\0'
                    
172        + tokens + '\0' + user_data).hexdigest()
                    
173    digest = md5(digest0 + secret).hexdigest()
                    
174    return digest
                    
                
Array.php https://gitlab.com/rsilveira1987/Expresso | PHP | 355 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
                    
27
                    
28/**
                    
29 * Class for using a standard PHP array as a queue
                    
30 *
                    
148             */
                    
149            require_once 'Zend/Queue/Exception.php';
                    
150            throw new Zend_Queue_Exception('Queue does not exist');
                    
174        if (!$this->isExists($queue->getName())) {
                    
175            require_once 'Zend/Queue/Exception.php';
                    
176            throw new Zend_Queue_Exception('Queue does not exist:' . $queue->getName());
                    
182            'body'       => $message,
                    
183            'md5'        => md5($message),
                    
184            'handle'     => null,
                    
                
NormalModule.js https://gitlab.com/limorelv/trelloApp | JavaScript | 322 lines
                    
1/*
                    
2	MIT License http://www.opensource.org/licenses/mit-license.php
                    
3	Author Tobias Koppers @sokra
                    
119NormalModule.prototype.source = function(dependencyTemplates, outputOptions, requestShortener) {
                    
120	var hash = require("crypto").createHash("md5");
                    
121	this.updateHash(hash);
                    
221	if(!this._source) return "";
                    
222	var hash = require("crypto").createHash("md5");
                    
223	hash.update(this._source.source());
                    
                
Array.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 355 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26#require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
                    
27
                    
28/**
                    
29 * Class for using a standard PHP array as a queue
                    
30 *
                    
148             */
                    
149            #require_once 'Zend/Queue/Exception.php';
                    
150            throw new Zend_Queue_Exception('Queue does not exist');
                    
174        if (!$this->isExists($queue->getName())) {
                    
175            #require_once 'Zend/Queue/Exception.php';
                    
176            throw new Zend_Queue_Exception('Queue does not exist:' . $queue->getName());
                    
182            'body'       => $message,
                    
183            'md5'        => md5($message),
                    
184            'handle'     => null,
                    
                
Rscf.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 359 lines
                    
1<?php
                    
2
                    
9
                    
10require_once W3TC_LIB_W3_DIR . '/Cdn/Base.php';
                    
11require_once W3TC_LIB_CF_DIR . '/cloudfiles.php';
                    
38    /**
                    
39     * PHP5 Constructor
                    
40     *
                    
55    /**
                    
56     * PHP4 Constructor
                    
57     *
                    
181                if ($status >= 200 && $status < 300) {
                    
182                    $hash = @md5_file($local_path);
                    
183
                    
245
                    
246        $string = 'test_rscf_' . md5(time());
                    
247
                    
                
ArrayBeastTest.php https://bitbucket.org/cfralick/arraybeast.git | PHP | 192 lines
                    
1<?php
                    
2
                    
6
                    
7class ArrayBeastTest extends \PHPUnit_Framework_TestCase
                    
8{
                    
26        for($i = 1; $i <= $size; $i++) {
                    
27            $data[(String) substr(md5(uniqid(rand())), 2,20)] = substr(md5(rand()), 1, 18);
                    
28        }
                    
                
Users.php https://gitlab.com/Anas7232/Layout-Changes | PHP | 209 lines
                    
1<?php
                    
2/*
                    
166   * Public keys are identified by their fingerprint, which is defined by RFC4716
                    
167   * to be the MD5 digest of the public key.
                    
168   * @param array $optParams Optional parameters.
                    
                
login.php https://github.com/gregorysmart/MODx.git | PHP | 178 lines
                    
1<?php
                    
2/**
                    
37if (is_array($rt)) {
                    
38    foreach ($rt as $key => $value) {   /* php4 compatible */
                    
39        if ($value !== true) {
                    
130    /* check user password - local authentication */
                    
131    if($user->get('password') != md5($givenPassword)) {
                    
132        return $modx->error->failure($modx->lexicon('login_username_password_incorrect'));
                    
                
bluepay_hosted.php https://gitlab.com/reclamare/mao | PHP | 231 lines
                    
1<?php
                    
2class ModelPaymentBluePayHosted extends Model {
                    
58
                    
59			$void_data['APPROVED_URL'] = HTTP_CATALOG . 'index.php?route=payment/bluepay_hosted/adminCallback';
                    
60			$void_data['DECLINED_URL'] = HTTP_CATALOG . 'index.php?route=payment/bluepay_hosted/adminCallback';
                    
60			$void_data['DECLINED_URL'] = HTTP_CATALOG . 'index.php?route=payment/bluepay_hosted/adminCallback';
                    
61			$void_data['MISSING_URL'] = HTTP_CATALOG . 'index.php?route=payment/bluepay_hosted/adminCallback';
                    
62
                    
68
                    
69			$void_data["TAMPER_PROOF_SEAL"] = md5($tamper_proof_data);
                    
70
                    
98
                    
99			$release_data['APPROVED_URL'] = HTTP_CATALOG . 'index.php?route=payment/bluepay_hosted/adminCallback';
                    
100			$release_data['DECLINED_URL'] = HTTP_CATALOG . 'index.php?route=payment/bluepay_hosted/adminCallback';
                    
100			$release_data['DECLINED_URL'] = HTTP_CATALOG . 'index.php?route=payment/bluepay_hosted/adminCallback';
                    
101			$release_data['MISSING_URL'] = HTTP_CATALOG . 'index.php?route=payment/bluepay_hosted/adminCallback';
                    
102
                    
                
UserController.php https://github.com/duofei/dawuweiba.git | PHP | 227 lines
                    
1<?php
                    
2
                    
103			$user_info->attributes = $_POST['User'];
                    
104			$user_info->password = md5($_POST['User']['clear_password']);
                    
105			if(!$user_info->save()) {
                    
                
Wincache.php https://github.com/Borluse/ProjetOption.git | PHP | 201 lines
                    
2/**
                    
3 * PHPExcel
                    
4 *
                    
20 *
                    
21 * @category   PHPExcel
                    
22 * @package	PHPExcel_CachedObjectStorage
                    
22 * @package	PHPExcel_CachedObjectStorage
                    
23 * @copyright  Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license	http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package	PHPExcel_CachedObjectStorage
                    
34 * @copyright  Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_CachedObjectStorage_Wincache extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache {
                    
37
                    
                
bluepay.php https://gitlab.com/Riky_Lesmana/SugarSweetCakes | PHP | 310 lines
                    
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
11 * @created 08/24/2011
                    
12 * @license http://www.opensource.org/licenses/mit-license.php
                    
13 * @link https://github.com/calvinfroedge/codeigniter-payments
                    
203	 *
                    
204	 * This function creates a md5 checksum to validate the integrity of the request
                    
205	 * The secret key is never passed directly and is used as a salt to provide a check
                    
208	 * FORMAT:
                    
209	 * md5(SECRET KEY + ACCOUNT_ID + TRANS_TYPE + AMOUNT + MASTER_ID + NAME1 + PAYMENT_ACCOUNT)
                    
210	 * 
                    
219		foreach($tps_contents as $key) $hash .= (isset($params[$key])) ? $params[$key]: '';
                    
220		return bin2hex( md5($hash, TRUE) );		
                    
221	}
                    
                
unpack.php https://gitlab.com/milo-ft/osTicket | PHP | 270 lines
                    
54        # Read the main.inc.php script
                    
55        $bootstrap_php = $this->destination . '/bootstrap.php';
                    
56        $lines = explode("\n", file_get_contents($bootstrap_php));
                    
76        if (!file_put_contents($bootstrap_php, implode("\n", $lines)))
                    
77            die("Unable to configure location of INCLUDE_DIR in bootstrap.php\n");
                    
78    }
                    
115        if (!isset($hashes[$file])) {
                    
116            $md5 = md5_file($file);
                    
117            $sha1 = sha1_file($file);
                    
142     * Copy from source to desination, perhaps recursing up to n folders.
                    
143     * Exclusions are also permitted. If any files match an MD5 sum, they
                    
144     * will be excluded from the copy operation.
                    
206        $pipes = array();
                    
207        $php = proc_open('php', array(
                    
208            0 => array('pipe', 'r'),
                    
                
Message.php https://github.com/balupton/balphp.git | PHP | 402 lines
                    
1<?php
                    
2
                    
10 * @author     ##NAME## <##EMAIL##>
                    
11 * @version    SVN: $Id: Builder.php 6820 2009-11-30 17:27:49Z jwage $
                    
12 */
                    
241			# Hash
                    
242			$hash = md5($Message->send_on.$Message->title.$Message->description.$UserFor_id);
                    
243			if ( $Message->hash != $hash ) {
                    
                
view.php https://bitbucket.org/tumivn/phpexamples.git | PHP | 437 lines
                    
1<?php
                    
2/**
                    
5 *
                    
6 * @copyright Copyright (C) 2009 PHPRO.ORG. All rights reserved.
                    
7 *
                    
7 *
                    
8 * @license new bsd http://www.opensource.org/licenses/bsd-license.php
                    
9 * @package Core
                    
291	{
                    
292		$cacheId= $id ? md5($id . basename($file)) : md5(basename($file));
                    
293		$filename = $this->cache_dir . '/' . $cacheId . '/' . basename($file);
                    
318		// create the cache id
                    
319		$cacheId = $id ? md5($id . basename($file)) : md5(basename($file));
                    
320
                    
356	{
                    
357		$cacheId= $id ? md5($id . basename($file)) : md5(basename($file));
                    
358		$filename = $this->cache_dir . '/' . $cacheId . '/' . basename($file);
                    
                
bcmsdh.h https://gitlab.com/SerenityS/slteskt_kernel | C Header | 254 lines
                    
10 * under the terms of the GNU General Public License version 2 (the "GPL"),
                    
11 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
                    
12 * following added to such license:
                    
91
                    
92/* Access SDIO address space (e.g. CCCR) using CMD52 (single-byte interface).
                    
93 *   fn:   function number
                    
113
                    
114/* Synchronous access to device (client) core registers via CMD53 to F1.
                    
115 *   addr: backplane address (i.e. >= regsva from attach)
                    
127
                    
128/* Buffer transfer to/from device (client) core via cmd53.
                    
129 *   fn:       function number
                    
160
                    
161/* Read/write to memory block (F1, no FIFO) via CMD53 (sync only).
                    
162 *   rw:       read or write (0/1)
                    
                
Array.php https://github.com/skoop/Gesichtbuch.git | PHP | 355 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Array.php 6352 2010-08-16 15:02:45Z tpater $
                    
21 */
                    
25 */
                    
26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
                    
27
                    
28/**
                    
29 * Class for using a standard PHP array as a queue
                    
30 *
                    
148             */
                    
149            // require_once 'Zend/Queue/Exception.php';
                    
150            throw new Zend_Queue_Exception('Queue does not exist');
                    
182            'body'       => $message,
                    
183            'md5'        => md5($message),
                    
184            'handle'     => null,
                    
                
Message.php https://github.com/Spavacz/NPG.git | PHP | 246 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Message.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
24/**
                    
25 * A message envelope that can be passed to Zend_Wildfire_Plugin_FirePhp to be
                    
26 * logged to Firebug instead of a variable.
                    
33 */
                    
34class Zend_Wildfire_Plugin_FirePhp_Message
                    
35{
                    
91        $this->_message = $message;
                    
92        $this->_ruid = md5(microtime().mt_rand());
                    
93    }
                    
                
sitemailer_.php https://gitlab.com/nvtdn2006/azora | PHP | 384 lines
                    
1<?php
                    
2class SiteMailer
                    
27		$cryptographer = Factory::getCryptographer();
                    
28		$this->randomHash = $cryptographer->MD5(date('r', time()));
                    
29		$this->fromMail = $config['PRMSConfig']->noreply_mail;  
                    
52		$this->headers .= "MIME-Version: 1.0\r\n";		
                    
53		//$this->headers .= "Content-Type: multipart/mixed; boundary=\"PHP-mixed-" . $this->randomHash . "\"\r\n";
                    
54		$this->headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
                    
90			{
                    
91				$this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";
                    
92				$this->msgBody .= $this->attachment;				
                    
92				$this->msgBody .= $this->attachment;				
                    
93				$this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";
                    
94			}*/		
                    
156	private function sendActivationToCustomer($property) {
                    
157		/*$htmlCT = "--PHP-alt-" . $this->randomHash . "\r\n";
                    
158		$htmlCT .= 'Content-Type: text/html; charset="iso-8859-1"' . "\r\n";
                    
                
Bootstrap.php https://bitbucket.org/Shcoder/funny.git | PHP | 319 lines
                    
1<?php
                    
2/**
                    
5 * @copyright Copyright &copy; Christoffer Niska 2011-
                    
6 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
                    
7 * @version 2.0.2
                    
288		{
                    
289			$key = __CLASS__.'.'.md5($name.$selector.serialize($options));
                    
290			$options = !empty($options) ? CJavaScript::encode($options) : '';
                    
                
Message.php https://github.com/basdog22/Qool.git | PHP | 246 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Message.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
24/**
                    
25 * A message envelope that can be passed to Zend_Wildfire_Plugin_FirePhp to be
                    
26 * logged to Firebug instead of a variable.
                    
33 */
                    
34class Zend_Wildfire_Plugin_FirePhp_Message
                    
35{
                    
91        $this->_message = $message;
                    
92        $this->_ruid = md5(microtime().mt_rand());
                    
93    }
                    
                
Validation.inc.php https://github.com/mbehiels/omp.git | PHP | 340 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * @file classes/security/Validation.inc.php
                    
5 *
                    
225				}
                    
226			case 'md5':
                    
227			default:
                    
227			default:
                    
228				return md5($valueToEncrypt);
                    
229		}
                    
259		}
                    
260		return substr(md5($user->getId() . $user->getUsername() . $user->getPassword()), 0, 6);
                    
261	}
                    
                
Array.php https://github.com/Enrise/Zend.git | PHP | 355 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Array.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
25 */
                    
26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
                    
27
                    
28/**
                    
29 * Class for using a standard PHP array as a queue
                    
30 *
                    
148             */
                    
149            // require_once 'Zend/Queue/Exception.php';
                    
150            throw new Zend_Queue_Exception('Queue does not exist');
                    
182            'body'       => $message,
                    
183            'md5'        => md5($message),
                    
184            'handle'     => null,
                    
                
phpBB.php https://bitbucket.org/adatux_/uakami.git | PHP | 538 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * Implementation of phpBB converter.
                    
5 */
                    
5 */
                    
6class phpBB extends BBP_Converter_Base {
                    
7	function __construct() {
                    
357			'to_fieldname' => '_bbp_class',
                    
358			'default'      => 'phpBB'
                    
359		);
                    
443	
                    
444		return (md5($password) === $pass_array['hash']) ? true : false;
                    
445	}
                    
471		/**
                    
472		 * We're kind of forced to use MD5 here since it's the only
                    
473		 * cryptographic primitive available in all versions of PHP
                    
                
Array.php https://github.com/Freeaqingme/ZF1_Lib.git | PHP | 355 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Array.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
25 */
                    
26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
                    
27
                    
28/**
                    
29 * Class for using a standard PHP array as a queue
                    
30 *
                    
148             */
                    
149            // require_once 'Zend/Queue/Exception.php';
                    
150            throw new Zend_Queue_Exception('Queue does not exist');
                    
182            'body'       => $message,
                    
183            'md5'        => md5($message),
                    
184            'handle'     => null,
                    
                
class-wpb-map.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 563 lines
                    
1<?php
                    
2/**
                    
12 * This class maps shortcodes settings to VC editors. You can manage add new shortcodes or manage default shortcodes
                    
13 * mapped in config/map.php. For developers it is possible to use API functions to add update settings attributes.
                    
14 *
                    
14 *
                    
15 * @see config/map.php
                    
16 * @see include/helpers/helpers_api.php
                    
126	 * You need to shortcode's tag and  settings to map correctly.
                    
127	 * Default shortcodes are mapped in config/map.php file.
                    
128	 * The best way is to call this method with "init" action callback function of WP.
                    
217							}
                    
218							$values['_category_ids'][] = md5( $c ); // array_search($category, self::$categories);
                    
219						}
                    
223						}
                    
224						$values['_category_ids'][] = md5( $categories ); // array_search($category, self::$categories);
                    
225					}
                    
                
class-wc-admin-profile.php https://gitlab.com/haque.mdmanzurul/barongbarong | PHP | 304 lines
                    
156					<tr>
                    
157						<th><label for="<?php echo esc_attr( $key ); ?>"><?php echo esc_html( $field['label'] ); ?></label></th>
                    
158						<td>
                    
158						<td>
                    
159							<input type="text" name="<?php echo esc_attr( $key ); ?>" id="<?php echo esc_attr( $key ); ?>" value="<?php echo esc_attr( get_user_meta( $user->ID, $key, true ) ); ?>" class="regular-text" /><br/>
                    
160							<span class="description"><?php echo wp_kses_post( $field['description'] ); ?></span>
                    
210									<input name="woocommerce_generate_api_key" type="checkbox" id="woocommerce_generate_api_key" value="0" />
                    
211									<span class="description"><?php _e( 'Generate API Key', 'woocommerce' ); ?></span>
                    
212								<?php else : ?>
                    
212								<?php else : ?>
                    
213									<strong><?php _e( 'Consumer Key:', 'woocommerce' ); ?>&nbsp;</strong><code id="woocommerce_api_consumer_key"><?php echo $user->woocommerce_api_consumer_key ?></code><br/>
                    
214									<strong><?php _e( 'Consumer Secret:', 'woocommerce' ); ?>&nbsp;</strong><code id="woocommerce_api_consumer_secret"><?php echo $user->woocommerce_api_consumer_secret; ?></code><br/>
                    
214									<strong><?php _e( 'Consumer Secret:', 'woocommerce' ); ?>&nbsp;</strong><code id="woocommerce_api_consumer_secret"><?php echo $user->woocommerce_api_consumer_secret; ?></code><br/>
                    
215									<strong><?php _e( 'Permissions:', 'woocommerce' ); ?>&nbsp;</strong><span id="woocommerce_api_key_permissions"><select name="woocommerce_api_key_permissions" id="woocommerce_api_key_permissions"><?php
                    
216										foreach ( $permissions as $permission_key => $permission_name ) { echo '<option value="' . esc_attr( $permission_key ) . '" '.selected($permission_key, $user->woocommerce_api_key_permissions, false).'>'.esc_html( $permission_name ) . '</option>';} ?>
                    
                
sdk.php https://bitbucket.org/asikart-extension/joomclouds-client.git | PHP | 416 lines
                    
1<?php
                    
2/**
                    
378        
                    
379        return md5($datas);
                    
380    }
                    
                
Controller.php https://github.com/imagesdesmaths/idm.git | PHP | 334 lines
                    
1<?php
                    
2/**
                    
150
                    
151        $currentUrl = 'index.php';
                    
152
                    
166     * @param string $login user name
                    
167     * @param string $password md5 password
                    
168     * @param bool $rememberMe Remember me?
                    
                
l10n_client.php https://bitbucket.org/JakePratt/kupcakz.com.git | PHP | 323 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2/**
                    
31  static function client_token() {
                    
32    return md5("l10n_client_client_token" . access::private_key());
                    
33  }
                    
49    $api_key = $api_key == null ? l10n_client::api_key() : $api_key;
                    
50    return md5($api_key . $payload . l10n_client::client_token());
                    
51  }
                    
194    //   uid = <l10n server user id>
                    
195    //   signature = md5(user_api_key($uid, $client_token) . $data . $client_token))
                    
196    //   data = // JSON payload
                    
                
UpgradeHistory.php https://github.com/jacknicole/sugarcrm_dev.git | PHP | 288 lines
                    
1<?php
                    
2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
                    
50    var $filename;
                    
51    var $md5sum;
                    
52    var $type;
                    
63    var $object_name = "UpgradeHistory";
                    
64    var $column_fields = Array( "id", "filename", "md5sum", "type", "version", "status", "date_entered" );
                    
65    var $disable_custom_fields = true;
                    
155
                    
156    function findByMd5( $var_md5 )
                    
157    {
                    
157    {
                    
158        $query = "SELECT id FROM " . $this->table_name . " where md5sum = '$var_md5'";
                    
159        return( parent::build_related_list( $query, $this ) );
                    
                
mail.php https://gitlab.com/shapcy/opencart | PHP | 427 lines
                    
103		$header .= 'Return-Path: ' . $this->from . PHP_EOL;
                    
104		$header .= 'X-Mailer: PHP/' . phpversion() . PHP_EOL;
                    
105		$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . PHP_EOL . PHP_EOL;
                    
113			$message  = '--' . $boundary . PHP_EOL;
                    
114			$message .= 'Content-Type: multipart/alternative; boundary="' . $boundary . '_alt"' . PHP_EOL . PHP_EOL;
                    
115			$message .= '--' . $boundary . '_alt' . PHP_EOL;
                    
116			$message .= 'Content-Type: text/plain; charset="utf-8"' . PHP_EOL;
                    
117			$message .= 'Content-Transfer-Encoding: 8bit' . PHP_EOL . PHP_EOL;
                    
118
                    
126			$message .= 'Content-Type: text/html; charset="utf-8"' . PHP_EOL;
                    
127			$message .= 'Content-Transfer-Encoding: 8bit' . PHP_EOL . PHP_EOL;
                    
128			$message .= $this->html . PHP_EOL;
                    
144				$message .= 'Content-ID: <' . basename(urlencode($attachment)) . '>' . PHP_EOL;
                    
145				$message .= 'X-Attachment-Id: ' . basename(urlencode($attachment)) . PHP_EOL . PHP_EOL;
                    
146				$message .= chunk_split(base64_encode($content));
                    
                
Border.php https://github.com/okbutton/ispCP-distributed.git | PHP | 428 lines
                    
37/** PHPExcel_Style_Color */
                    
38require_once PHPEXCEL_ROOT . 'PHPExcel/Style/Color.php';
                    
39
                    
40/** PHPExcel_IComparable */
                    
41require_once PHPEXCEL_ROOT . 'PHPExcel/IComparable.php';
                    
42
                    
48 * @package    PHPExcel_Style
                    
49 * @copyright  Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
50 */
                    
50 */
                    
51class PHPExcel_Style_Border implements PHPExcel_IComparable
                    
52{
                    
113		$this->_borderStyle			= PHPExcel_Style_Border::BORDER_NONE;
                    
114		$this->_color			= new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor);
                    
115
                    
                
archive.php https://github.com/shlomsky/sanpedran.git | PHP | 94 lines
                    
17<?php /* If this is a category archive */ if (is_category()) { ?>			
                    
18				<h1 class="archive-title"><a title="<?php _e("RSS Feed for the"); ?> '<?php echo single_cat_title(); ?>' <?php _e("Category"); ?>" href="<?php echo get_category_link($cat); ?>feed"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/FeedIcon-16.gif" alt="<?php _e("RSS"); ?>" title="<?php _e("RSS Feed for the"); ?> '<?php echo single_cat_title(); ?>' <?php _e("Category"); ?>" style="float:right;margin: 7px 0 0 5px;" /></a><?php _e("All Entries in the"); ?> "<?php echo single_cat_title(); ?>" <?php _e("Category"); ?></h1>
                    
19		
                    
23<?php /* If this is a daily archive */ } elseif (is_search()) { ?>
                    
24				<h1 class="archive-title"><a title="<?php _e("Main Site RSS Feed"); ?>" href="<?php bloginfo('rss2_url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/FeedIcon-16.gif" alt="<?php _e("RSS"); ?>" title="Main Site RSS Feed" style="float:right;margin: 7px 0 0 5px;" /></a><?php _e("Search Results for"); ?> '<?php echo wp_specialchars($s, 1); ?>'</h1>
                    
25		
                    
29<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
                    
30				<h1 class="archive-title"><a title="<?php _e("Main Site RSS Feed"); ?>" href="<?php bloginfo('rss2_url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/FeedIcon-16.gif" alt="<?php _e("RSS"); ?>" title="Main Site RSS Feed" style="float:right;margin: 7px 0 0 5px;" /></a><?php _e("Archive for"); ?> <?php the_time('Y'); ?></h1>
                    
31		
                    
34
                    
35				<h1 class="archive-title"><a title="<?php _e("RSS Feed for This Author"); ?>" href="<?php the_author_url(); ?>feed"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/FeedIcon-16.gif" alt="<?php _e("RSS"); ?>" title="<?php _e("RSS Feed for this author"); ?>" style="float:right;margin: 7px 0 0 5px" /></a><?php _e("Author Archive for"); ?> <?php echo $author->display_name; ?></h1>
                    
36
                    
52<?php /* If this is a tag archive */ } elseif (is_tag()) { ?>
                    
53				<h1 class="archive-title"><a title="<?php _e("RSS Feed for This Tag"); ?>" href="<?php bloginfo('url'); ?>/tag/<?php echo str_replace(" ", "-", single_tag_title('', false)); ?>/feed"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/FeedIcon-16.gif" alt="<?php _e("RSS"); ?>" title="<?php _e("RSS Feed for This Tag"); ?>" style="float:right;margin: 7px 0 0 5px;" /></a><?php _e("All Entries Tagged With:"); ?> "<?php single_tag_title(); ?>"</h1>
                    
54
                    
                
langimport.php https://github.com/dhamma-dev/SEA.git | PHP | 387 lines
                    
85                    $a->dest = $CFG->dataroot.'/lang';
                    
86                    print_error($cd->get_error(), 'error', 'langimport.php', $a);
                    
87                } else {
                    
146    }
                    
147    $md5array = array();    // (string)langcode => (string)md5
                    
148    foreach ($availablelangs as $alang) {
                    
162
                    
163        if (file_exists($dest1.'/langconfig.php') || file_exists($dest2.'/langconfig.php')){
                    
164            $updateablelangs[] = $clang;
                    
358    global $CFG;
                    
359    $md5file = $CFG->dataroot.'/lang/'.$lang.'/'.$lang.'.md5';
                    
360    if (file_exists($md5file)){
                    
360    if (file_exists($md5file)){
                    
361        return (file_get_contents($md5file) == $md5check);
                    
362    }
                    
                
formdata.php https://github.com/skamster/Peta.git | PHP | 286 lines
                    
1<?php
                    
2
                    
190			case "captcha":
                    
191				if($_POST['formdata'][$i] != md5($_POST['formdata'][$captcha_input_field])) {
                    
192					$ausgabe .= $t['contact']['invalid_captcha'] ."<br />";
                    
                
Fill.php https://gitlab.com/devtoannh/cafe | PHP | 409 lines
                    
22 * @package	PHPExcel_Style
                    
23 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license	http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package	PHPExcel_Style
                    
34 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_Style_Fill implements PHPExcel_IComparable
                    
37{
                    
129		$this->_startColor			= new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_WHITE, $isSupervisor, $isConditional);
                    
130		$this->_endColor			= new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor, $isConditional);
                    
131
                    
141	 *
                    
142	 * @param PHPExcel_Style $parent
                    
143	 * @return PHPExcel_Style_Fill
                    
                
profile.php https://gitlab.com/klausmig/CloudSemanticWeb | PHP | 237 lines
                    
1<?php require_once (ROOT . DS . 'application' . DS . 'views' . DS . 'activity_templates.php'); ?>
                    
2<script type="text/javascript" src="static/js/profile.js"></script>
                    
8filterFollowers(<?php echo $_GET['id']; ?>,'');
                    
9getUserStream(<?php echo $_GET['id']; ?>,'','');
                    
10
                    
21            <?php if ($email): ?>
                    
22                <img src="http://www.gravatar.com/avatar/<?php echo md5(strtolower(trim($email))); ?>?d=retro&amp;r=g" height="50" width="50" class="avatar" />
                    
23            <?php endif; ?>
                    
28		            <span class="r_prop r_name" itemprop="name"><?php echo trim($profile->username);?></span>
                    
29		            <meta itemprop="description" content="<?php echo trim($profile->description);?>" />
                    
30		            <meta itemprop="image" content="http://slidewiki.org/?url=ajax/getAvatarSrc&id=<?php echo trim($profile->id);?>" />
                    
47                    <a class="btn small danger" onclick="follow($(this),'user',<?php echo $_GET['id'];?>)">Unfollow user</a>
                    
48                <?php endif; ?>
                    
49
                    
54                <?php if (($user['is_authorized'] && $_GET['id'] != $user['id'])): ?>
                    
55                    <a  class="btn small " onclick="sendMsgDialog(<?php echo $_GET['id'];?>,'<?php echo $profile->username?>')"> <i class="icon-edit"></i> Write message</a>
                    
56                <?php endif; ?>	                
                    
                
php-crypt_r.cpp https://gitlab.com/iranjith4/hhvm | C++ | 381 lines
                    
175
                    
176  if (strncpy_s(passwd + MD5_MAGIC_LEN, MD5_HASH_MAX_LEN - MD5_MAGIC_LEN, sp, sl + 1) != 0) {
                    
177    goto _destroyCtx1;
                    
305  /* Then our magic string */
                    
306  PHP_MD5Update(&ctx, (const unsigned char *)MD5_MAGIC, MD5_MAGIC_LEN);
                    
307
                    
314  PHP_MD5Update(&ctx1, (const unsigned char *)sp, sl);
                    
315  PHP_MD5Update(&ctx1, (const unsigned char *)pw, pwl);
                    
316  PHP_MD5Final(final, &ctx1);
                    
318  for (pl = pwl; pl > 0; pl -= 16)
                    
319    PHP_MD5Update(&ctx, final, (unsigned int)(pl > 16 ? 16 : pl));
                    
320
                    
348    else
                    
349      PHP_MD5Update(&ctx1, final, 16);
                    
350
                    
                
mail.php https://bitbucket.org/allanxyh/uniquemall.git | PHP | 406 lines
                    
1<?php
                    
2class Mail {
                    
80
                    
81		$boundary = '----=_NextPart_' . md5(time());
                    
82
                    
95		$header .= 'Return-Path: ' . $this->from . $this->newline;
                    
96		$header .= 'X-Mailer: PHP/' . phpversion() . $this->newline;
                    
97		//$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;
                    
158			} else {
                    
159				if (substr(PHP_OS, 0, 3) != 'WIN') {
                    
160					socket_set_timeout($handle, $this->timeout, 0);
                    
358					foreach ($results as $result) {
                    
359						if (substr(PHP_OS, 0, 3) != 'WIN') {
                    
360							fputs($handle, $result . $this->crlf);
                    
                
UserXMLParser.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 382 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * UserXMLParser.inc.php
                    
5 *
                    
13 *
                    
14 * $Id: UserXMLParser.inc.php,v 1.4 2005/08/04 21:15:27 alec Exp $
                    
15 */
                    
86								$encrypted = $attrib->getAttribute('encrypted');
                    
87								if (isset($encrypted) && $encrypted == 'md5') {
                    
88									$newUser->setPassword($attrib->getValue());
                    
                
session.php https://github.com/mathieu/fusionforge.git | PHP | 552 lines
                    
149
                    
150	//  Try to get the users from the database using user_id and (MD5) user_pw
                    
151	$res = db_query("
                    
157	if (!$res || db_numrows($res) < 1) {
                    
158		// No user whose MD5 passwd matches the MD5 of the provided passwd
                    
159		// Selecting by user_name only
                    
167		} else {
                    
168			// There is a user with the provided user_name, but the MD5 passwds do not match
                    
169			// We'll have to try checking the (crypt) unix_pw
                    
181			$res = db_query ("UPDATE users
                    
182				SET user_pw='" . md5($passwd) . "'
                    
183				WHERE user_id='".$usr['user_id']."'");
                    
491//TODO - this should be generalized and used for pre.php, squal_pre.php, 
                    
492//SOAP, forum_gateway.php, tracker_gateway.php, etc to 
                    
493//setup languages
                    
                
wp-background-process.php https://gitlab.com/campus-academy/krowkaramel | PHP | 503 lines
                    
1<?php // @codingStandardsIgnoreLine.
                    
2/**
                    
146	protected function generate_key( $length = 64 ) {
                    
147		$unique  = md5( microtime() . rand() );
                    
148		$prepend = $this->identifier . '_batch_';
                    
                
Tree.php https://bitbucket.org/blackriver/openx.git | PHP | 333 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
                    
10// | available at through the world-wide-web at                           |
                    
11// | http://www.php.net/license/2_02.txt.                                 |
                    
12// | If you did not receive a copy of the PHP license and are unable to   |
                    
13// | obtain it through the world-wide-web, please send a note to          |
                    
14// | license@php.net so we can mail you a copy immediately.               |
                    
15// +----------------------------------------------------------------------+
                    
41    * 'ignore_html'     =>   return <html> elements as strings.
                    
42    * 'ignore_php'      =>   DELETE/DESTROY any php code in the original template.
                    
43    */
                    
48        'ignore_html'   => false,
                    
49        'ignore_php'    => true,
                    
50    );
                    
100        // local caching!
                    
101        $md5 = md5($data);
                    
102        if (isset($GLOBALS[__CLASS__]['cache'][$md5])) {
                    
                
file2.kvdriver.php git://github.com/jelix/jelix.git | PHP | 292 lines
                    
1<?php
                    
2/**
                    
187
                    
188                $md5 = md5($key);
                    
189                $subdir = $md5[0].$md5[1];
                    
195                // write data to cache
                    
196                $fn = $this->dir.'/'.$subdir.'/'.$md5;
                    
197                if ($f = @gzopen($fn.'.tmp', 'w')) {
                    
232        // the name of the file
                    
233        $md5 = md5($key);
                    
234        $subdir = $md5[0].$md5[1];
                    
235
                    
236        $fn = $this->dir.'/'.$subdir.'/'.$md5;
                    
237
                    
274        // the name of the file
                    
275        $md5 = md5($key);
                    
276        $subdir = $md5[0].$md5[1];
                    
                
PDO.php https://gitlab.com/wuhang2003/rainloop-webmail | PHP | 333 lines
                    
1<?php
                    
2
                    
273
                    
274        return '"' . md5($cardData) . '"';
                    
275
                    
310
                    
311        return '"' . md5($cardData) . '"';
                    
312
                    
                
EDD_SL_Plugin_Updater.php https://gitlab.com/lamovible/grand-regis | PHP | 337 lines
                    
1<?php if ( ! defined( 'ABSPATH' ) ) exit;
                    
2
                    
32        $this->name     = plugin_basename( $_plugin_file );
                    
33        $this->slug     = basename( $_plugin_file, '.php' );
                    
34        $this->version  = $_api_data['version'];
                    
61     * It is reassembled from parts of the native WordPress plugin update code.
                    
62     * See wp-includes/update.php line 121 for the original wp_update_plugins() function.
                    
63     *
                    
76
                    
77        if( 'plugins.php' == $pagenow && is_multisite() ) {
                    
78            return $_transient_data;
                    
131
                    
132            $cache_key    = md5( 'edd_plugin_' .sanitize_key( $this->name ) . '_version_info' );
                    
133            $version_info = get_transient( $cache_key );
                    
172
                    
173            $changelog_link = self_admin_url( 'index.php?edd_sl_action=view_plugin_changelog&plugin=' . $this->name . '&slug=' . $this->slug . '&TB_iframe=true&width=772&height=911' );
                    
174
                    
                
get.php https://github.com/pgBoard/pgBoard.git | PHP | 412 lines
                    
1<?php
                    
2function main_get() { list_get(); }
                    
122    $locked = $Admin->check_flag("thread","locked",id());
                    
123    $subtitle .= SPACE.ARROW_RIGHT.SPACE."<a href=\"/admin/togglesticky/".id()."/".md5(session_id())."/\">".($sticky ? "unsticky" :"sticky")."</a>";
                    
124    $subtitle .= SPACE.ARROW_RIGHT.SPACE."<a href=\"/admin/togglelocked/".id()."/".md5(session_id())."/\">".($locked ? "unlock" :"lock")."</a>";
                    
                
Cache.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 416 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 *  $Id: Cache.php 5798 2009-06-02 15:10:46Z piccoloprincipe $
                    
4 *
                    
18 * and is licensed under the LGPL. For more information, see
                    
19 * <http://www.phpdoctrine.org>.
                    
20 */
                    
27 * @author      Konsta Vesterinen <kvesteri@cc.hut.fi>
                    
28 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
29 * @link        www.phpdoctrine.org
                    
251
                    
252                $hash = md5($query);
                    
253
                    
315
                    
316        $data = $this->_driver->fetch(md5(serialize($query)));
                    
317
                    
                
admin.php https://gitlab.com/Poorchop/Jirafeau | PHP | 304 lines
                    
24require (JIRAFEAU_ROOT . 'lib/functions.php');
                    
25require (JIRAFEAU_ROOT . 'lib/lang.php');
                    
26
                    
28if (file_exists (JIRAFEAU_ROOT . 'install.php')
                    
29    && !file_exists (JIRAFEAU_ROOT . 'lib/config.local.php'))
                    
30{
                    
80               t('Wrong password.') . '</p></div>';
                    
81          require (JIRAFEAU_ROOT.'lib/template/footer.php');
                    
82          exit;
                    
146          require (JIRAFEAU_ROOT . 'lib/template/header.php');
                    
147          ?><h2><?php echo t('Admin interface'); ?></h2><?php
                    
148          ?><h2>(version <?php echo JIRAFEAU_VERSION ?>)</h2><?php
                    
152          <table>
                    
153          <form action = "<?php echo basename(__FILE__); ?>" method = "post">
                    
154          <tr>
                    
                
ps_csv.inc http://phpshop.googlecode.com/svn/trunk/ | PHP | 328 lines
                    
1<?php
                    
2/*
                    
234          else { // Category does not exist - create it
                    
235            $hash_secret="PHPShopIsCool";
                    
236            $category_id = md5(uniqid($hash_secret));
                    
                
logs.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 336 lines
                    
1<?php
                    
2
                    
24$sql = "SELECT SQL_CALC_FOUND_ROWS * FROM `" . $db_config['prefix'] . "_logs` WHERE `id`!=0";
                    
25$base_url = NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op;
                    
26
                    
39	$checksess = filter_text_input( 'checksess', 'get', '', 1 );
                    
40	if ( $checksess != md5 ( "siteinfo_" . session_id() . "_" . $admin_info['userid'] ) )
                    
41	{
                    
42		nv_insert_logs( NV_LANG_DATA, $module_name, sprintf ( $lang_module['filter_check_log'], $op ), $admin_info['username'] . " - " . $admin_info['userid'], 0 );
                    
43		Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op );
                    
44		exit();
                    
276$xtpl->assign( 'OP', $op );
                    
277$xtpl->assign( 'checksess', md5 ( "siteinfo_" . session_id() . "_" . $admin_info['userid'] ) );
                    
278$xtpl->assign( 'URL_DEL', $base_url . "&" . NV_OP_VARIABLE . "=logs_del" );
                    
278$xtpl->assign( 'URL_DEL', $base_url . "&" . NV_OP_VARIABLE . "=logs_del" );
                    
279$xtpl->assign( 'URL_CANCEL', NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op );
                    
280$xtpl->assign( 'DISABLE', $disabled );
                    
                
emogrifier.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 228 lines
                    
1<?php defined('_JEXEC') or die('Restricted access'); ?>
                    
2<?php
                    
20    2010-06-16  Added static caching for less processing overhead in situations where multiple emogrification takes place
                    
21    2010-07-26  Fixed bug where '0' values were getting discarded because of php's empty() function... Thanks Scott!
                    
22    2010-09-03  Added checks to invisible node removal to ensure that we don't try to remove non-existent child nodes of parents that have already been deleted
                    
83        static $csscache = array();
                    
84        $csskey = md5($css);
                    
85        if (!isset($csscache[$csskey])) {
                    
159        static $selectorcache = array();
                    
160        $selectorkey = md5($selector);
                    
161        if (!isset($selectorcache[$selectorkey])) {
                    
184        static $xpathcache = array();
                    
185        $xpathkey = md5($css_selector);
                    
186        if (!isset($xpathcache[$xpathkey])) {
                    
                
XmlFileLoader.php https://github.com/thewiredman/symfony.git | PHP | 402 lines
                    
1<?php
                    
2
                    
73
                    
74        $this->container->getParameterBag()->add($xml->parameters->getArgumentsAsPhp('parameter'));
                    
75    }
                    
84            $this->currentDir = dirname($file);
                    
85            $this->import((string) $import['resource'], (Boolean) $import->getAttributeAsPhp('ignore-errors'));
                    
86        }
                    
112                $method = 'set'.str_replace('-', '', $key);
                    
113                $definition->$method((string) $service->getAttributeAsPhp($key));
                    
114            }
                    
120
                    
121        $definition->setArguments($service->getArgumentsAsPhp('argument'));
                    
122
                    
137        foreach ($service->call as $call) {
                    
138            $definition->addMethodCall((string) $call['method'], $call->getArgumentsAsPhp('argument'));
                    
139        }
                    
                
Borders.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 411 lines
                    
1<?php
                    
2
                    
2
                    
3namespace PhpOffice\PhpSpreadsheet\Style;
                    
4
                    
4
                    
5use PhpOffice\PhpSpreadsheet\Exception as PhpSpreadsheetException;
                    
6
                    
291        if (!$this->isSupervisor) {
                    
292            throw new PhpSpreadsheetException('Can only get pseudo-border for supervisor.');
                    
293        }
                    
305        if (!$this->isSupervisor) {
                    
306            throw new PhpSpreadsheetException('Can only get pseudo-border for supervisor.');
                    
307        }
                    
319        if (!$this->isSupervisor) {
                    
320            throw new PhpSpreadsheetException('Can only get pseudo-border for supervisor.');
                    
321        }
                    
                
rss.php https://github.com/cybotech/oscommerce2.git | PHP | 233 lines
                    
1<?php
                    
2/* 
                    
5
                    
6 Simple yet powerfull PHP class to parse RSS files.
                    
7
                    
31* lastRSS
                    
32* Simple yet powerfull PHP class to parse RSS files.
                    
33*/
                    
58        if ($this->cache_dir != '') {
                    
59            $cache_file = $this->cache_dir . '/rss_' . md5($rss_url) . '.cache';
                    
60            $timedif = @(time() - filemtime($cache_file));
                    
                
upgrade-2.0.0.php https://gitlab.com/woxiprogrammers/infinia-wordpress | PHP | 279 lines
                    
1<?php
                    
2function icl_upgrade_2_0_0_steps($step, $stepper){
                    
90						list($md5, $links_fixed) = $wpdb->get_row($wpdb->prepare("
                    
91							SELECT md5, links_fixed FROM {$wpdb->prefix}icl_node
                    
92							WHERE nid = %d
                    
95					if(!$md5){
                    
96						$md5 = $TranslationManagement->post_md5($row->element_id);
                    
97					}
                    
108
                    
109							list($rid, $status, $current_md5) = $wpdb->get_row($wpdb->prepare("
                    
110								SELECT c.rid, n.status , c.md5
                    
119							if($rid){
                    
120								if($current_md5 != $md5){
                    
121									$needs_update = 1;
                    
151								'needs_update'          => $needs_update,
                    
152								'md5'                   => $md5,
                    
153								'translation_service'   => $service,
                    
                
Guard.php https://bitbucket.org/helfreire/tccsite.git | PHP | 557 lines
                    
1<?php namespace Illuminate\Auth;
                    
2
                    
543	{
                    
544		return 'login_'.md5(get_class($this));
                    
545	}
                    
553	{
                    
554		return 'remember_'.md5(get_class($this));
                    
555	}
                    
                
class-wp-embed.php https://bitbucket.org/stephenharris/stephenharris.git | PHP | 386 lines
                    
1<?php
                    
2/**
                    
88	jQuery(document).ready(function($){
                    
89		$.get("<?php echo admin_url( 'admin-ajax.php?action=oembed-cache&post=' . $post->ID, 'relative' ); ?>");
                    
90	});
                    
91</script>
                    
92<?php
                    
93	}
                    
195			// Check for a cached result (stored in the post meta)
                    
196			$key_suffix = md5( $url . serialize( $attr ) );
                    
197			$cachekey = '_oembed_' . $key_suffix;
                    
267			if ( $html ) {
                    
268				/** This filter is documented in wp-includes/class-wp-embed.php */
                    
269				return apply_filters( 'embed_oembed_html', $html, $url, $attr, $post_ID );
                    
                
ext_string.h https://github.com/tstarling/hiphop-php.git | C Header | 191 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
5   | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com)     |
                    
6   | Copyright (c) 1997-2010 The PHP Group                                |
                    
7   +----------------------------------------------------------------------+
                    
7   +----------------------------------------------------------------------+
                    
8   | This source file is subject to version 3.01 of the PHP license,      |
                    
9   | that is bundled with this package in the file LICENSE, and is        |
                    
10   | available through the world-wide-web at the following url:           |
                    
11   | http://www.php.net/license/3_01.txt                                  |
                    
12   | If you did not receive a copy of the PHP license and are unable to   |
                    
13   | obtain it through the world-wide-web, please send a note to          |
                    
14   | license@php.net so we can mail you a copy immediately.               |
                    
15   +----------------------------------------------------------------------+
                    
                
index.html https://github.com/koto/blog-kotowicz-net-examples.git | HTML | 321 lines
                    
7<script src="jquery.json-2.2.min.js"></script>
                    
8<script src="md5.js"></script>
                    
9<script>
                    
23         .find('code.data').text($.toJSON(payload)).end()
                    
24         .attr('id', 'p-' + hex_md5(payload))
                    
25         .appendTo('#tests');
                    
44  function mark(realurl, url, classname) {
                    
45    var hash = hex_md5(url);
                    
46    log($.toJSON(url) + ' is ' + classname);
                    
127          .data('src', payload)
                    
128          .attr('src', 'redirect.php?url=' + encodeURIComponent(payload))
                    
129          .appendTo('#images');
                    
                
functions.wp-cron.php https://bitbucket.org/codemen_iftekhar/codemen.git | PHP | 402 lines
                    
1<?php
                    
2// Last sync [WP12462]
                    
30	$crons = _get_cron_array();
                    
31	$key = md5(serialize($args));
                    
32	$crons[$timestamp][$hook][$key] = array( 'schedule' => false, 'args' => $args );
                    
57	$schedules = wp_get_schedules();
                    
58	$key = md5(serialize($args));
                    
59	if ( !isset( $schedules[$recurrence] ) )
                    
79	$schedules = wp_get_schedules();
                    
80	$key = md5(serialize($args));
                    
81	$interval = 0;
                    
119	$crons = _get_cron_array();
                    
120	$key = md5(serialize($args));
                    
121	unset( $crons[$timestamp][$hook][$key] );
                    
157	$crons = _get_cron_array();
                    
158	$key = md5(serialize($args));
                    
159	if ( empty($crons) )
                    
                
SMTPMailer.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 381 lines
                    
29
                    
30	/** @var $auth string Authentication mechanism (optional) (PLAIN | LOGIN | CRAM-MD5 | DIGEST-MD5) */
                    
31	var $auth;
                    
241				return $this->authenticate_login();
                    
242			case 'CRAM-MD5':
                    
243				return $this->authenticate_cram_md5();
                    
284	function authenticate_cram_md5() {
                    
285		if (!$this->send('AUTH', 'CRAM-MD5'))
                    
286			return false;
                    
288			return false;
                    
289		$authString = $this->username . ' ' . $this->hmac_md5(base64_decode($digest), $this->password);
                    
290		if (!$this->send(base64_encode($authString)))
                    
341
                    
342		$response = md5(md5($a1) . ':' . ($challenge['nonce'] . ':' . $nc . ':' . $cnonce. ':' . $qop . ':' . md5($a2)));
                    
343
                    
                
 

Source

Language