100+ results results for 'php hash repo:ezimuel/RandomLib' (556 ms)
9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 24#include <vector> 25#include "hphp/compiler/analysis/block_scope.h" 26#include "hphp/compiler/option.h" 28 29#include "hphp/util/hash-map-typedefs.h" 30#include "hphp/parser/parser.h" 299 300 typedef hphp_hash_map<std::string, ExpressionPtr, string_hashi, 301 string_eqstri> UserAttributeMap;DefaultTableMapping.php https://gitlab.com/reasonat/test8 | PHP | 396 lines
1<?php 2 328 // {field_deleted_data_FIELD_UUID}. To make sure we don't end up with 329 // table names longer than 64 characters, we hash the unique storage 330 // identifier and return the first 10 characters so we end up with a short 331 // unique ID. 332 return "field_deleted_data_" . substr(hash('sha256', $storage_definition->getUniqueStorageIdentifier()), 0, 10); 333 } 354 // {field_deleted_revision_FIELD_UUID}. To make sure we don't end up with 355 // table names longer than 64 characters, we hash the unique storage 356 // identifier and return the first 10 characters so we end up with a short 357 // unique ID. 358 return "field_deleted_revision_" . substr(hash('sha256', $storage_definition->getUniqueStorageIdentifier()), 0, 10); 359 } 389 $entity_type = substr($storage_definition->getTargetEntityTypeId(), 0, 34); 390 $field_hash = substr(hash('sha256', $storage_definition->getUniqueStorageIdentifier()), 0, 10); 391 $table_name = $entity_type . $separator . $field_hash;symbol_table.h https://bitbucket.org/gnanakeethan/hiphop-php.git | C Header | 395 lines
16 17#ifndef incl_HPHP_SYMBOL_TABLE_H_ 18#define incl_HPHP_SYMBOL_TABLE_H_ 19 20#include "hphp/compiler/hphp.h" 21#include "hphp/util/json.h" 22#include "hphp/util/util.h" 23#include "hphp/util/lock.h" 24 59 m_name = name; 60 m_hash = (unsigned int) hash_string_inline(m_name.c_str(), m_name.size()); 61 } 62 const std::string &getName() const { return m_name; } 63 unsigned int getHash() const { return m_hash; } 64static-string-table.cpp https://gitlab.com/iranjith4/hhvm | C++ | 338 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 15*/ 16#include "hphp/runtime/base/static-string-table.h" 17#include "hphp/runtime/base/rds.h"Store.php https://github.com/speedupmate/Magento-CE-Mirror.git | PHP | 510 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 284 */ 285 public function getWebsiteOptionHash($withDefault = false, $attribute = 'name') 286 { 300 */ 301 public function getStoreOptionHash($withDefault = false, $attribute = 'name') 302 { 315 */ 316 public function getStoreGroupOptionHash($attribute = 'name') 317 {header.htm https://gitlab.com/phamngsinh/baitaplon_sinhvien | HTML | 215 lines
20 <!--{elseif $_G['basescript'] == 'portal'}--> 21 <script type="text/javascript" src="{$_G[setting][jspath]}portal.js?{VERHASH}"></script> 22 <!--{/if}--> 95 <a href="home.php?mod=space&do=pm" id="pm_ntc"{if $_G[member][newpm]} class="new"{/if}>{lang pm_center}</a> 96 <a href="home.php?mod=space&do=notice" onclick="showWindow('getnotice','home.php?mod=space&do=notice','get',0)" id="myprompt"{if $_G[member][newprompt]} class="new"{/if}>{lang remind}<!--{if $_G[member][newprompt]}-->($_G[member][newprompt])<!--{/if}--></a><span id="myprompt_check"></span> 97 <a href="javascript:;" id="qmenu" onmouseover="showMenu({'ctrlid':'qmenu','pos':'34!','ctrlclass':'a','duration':2});">{lang my_nav}</a> 99 <a onclick="showWindow('login', this.href)" href="member.php?mod=logging&action=login" class="xi2 xw1">Đăng nhập</a> 100 <a href="member.php?mod={$_G[setting][regname]}" class="xi2 xw1">$_G['setting']['reglinkname']</a> 101 <!--{/if}--> 138 <!--{hook/global_usernav_extra4}--> 139 <li><a class="bdtop" style="background-image:url({IMGDIR}/logout.gif)" href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a></li> 140 <!--{hook/global_usernav_extra3}--> 174 <li><a href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href)">{lang activation}</a></li> 175 <li><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a></li> 176 </ul>Chooser.php https://bitbucket.org/jokusafet/magento2.git | PHP | 292 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 55 { 56 $uniqId = Mage::helper('Mage_Core_Helper_Data')->uniqHash($element->getId()); 57 $sourceUrl = $this->getUrl('*/catalog_product_widget/chooser', array(82f9856e4ee0c308539588cbfc82bb67bd3b911c.file.page.tpl.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 201 lines
59<?php if ($_smarty_tpl->tpl_vars['add_permission']->value=='1') {?> 60<div id="module_install" class="row" style="<?php if (!isset($_POST['downloadflag'])) {?>display: none;<?php }?>"> 61 146 </form> 147 <a class="categoryModuleFilterLink list-group-item <?php if (isset($_smarty_tpl->tpl_vars['categoryFiltered']->value['favorites'])) {?>active<?php }?>" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);?> 148&token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?> 153 </a> 154 <a class="categoryModuleFilterLink list-group-item <?php if (count($_smarty_tpl->tpl_vars['categoryFiltered']->value)<=0) {?>active<?php }?>" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);?> 155&token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?> 167?> 168 <a class="categoryModuleFilterLink list-group-item <?php if (isset($_smarty_tpl->tpl_vars['categoryFiltered']->value[$_smarty_tpl->tpl_vars['module_category_key']->value])) {?>active<?php }?>" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['currentIndex']->value, ENT_QUOTES, 'UTF-8', true);?> 169&token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?> 169&token=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?> 170&<?php if (isset($_smarty_tpl->tpl_vars['categoryFiltered']->value[$_smarty_tpl->tpl_vars['module_category_key']->value])) {?>un<?php }?>filterCategory=<?php echo $_smarty_tpl->tpl_vars['module_category_key']->value;?> 171" id="filter_<?php echo $_smarty_tpl->tpl_vars['module_category_key']->value;?>cog_fonctions.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 327 lines
1<?php 2/* 45 46 $boucle->hash .= ' 47 // {COMMUNES} 160 161 $boucle->hash .= ' 162 // {departementS}CsrfComponentTest.php https://gitlab.com/vannh/portal_training | PHP | 308 lines
1<?php 2/** 2/** 3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 11 * @link http://cakephp.org CakePHP(tm) Project 12 * @since 3.0.0 12 * @since 3.0.0 13 * @license http://www.opensource.org/licenses/mit-license.php MIT License 14 */ 73 $this->assertNotEmpty($cookie, 'Should set a token.'); 74 $this->assertRegExp('/^[a-f0-9]+$/', $cookie['value'], 'Should look like a hash.'); 75 $this->assertEquals(0, $cookie['expire'], 'session duration.'); 274 $this->assertNotEmpty($cookie, 'Should set a token.'); 275 $this->assertRegExp('/^[a-f0-9]+$/', $cookie['value'], 'Should look like a hash.'); 276 $this->assertEquals(90, $cookie['expire'], 'session duration.');_configure.php https://gitlab.com/mattswann/launch-housing | PHP | 304 lines
1<?php // Settings to display in a form for a user to configure. 2/* 63 64 require_once( dirname( __FILE__ ) . '/class.itx_helper2.php' ); 65 global $wp_version; 67 $itxapi_username = strtolower( $settings_result['data']['itxapi_username'] ); 68 $password_hash = iThemes_Credentials::get_password_hash( $itxapi_username, $settings_result['data']['itxapi_password_raw'] ); 69 $access_token = ITXAPI_Helper2::get_access_token( $itxapi_username, $password_hash, site_url(), $wp_version ); 222 'title' => __( 'Send per burst', 'it-l10n-backupbuddy' ), 223 'tip' => __( '[Example: 10] - This is the amount of data that will be sent per burst within a single PHP page load/chunk. Bursts happen within a single page load. Chunks occur when broken up between page loads/PHP instances. Reduce if hitting PHP memory limits. Chunking time limits will only be checked between bursts. Lower burst size if timeouts occur before chunking checks trigger.', 'it-l10n-backupbuddy' ), 224 'rules' => 'required|int[0-9999999]',Renderer.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 424 lines
38 * @version CVS: $Id: Renderer.php,v 1.8 2008/07/22 20:26:19 farell Exp $ 39 * @link http://pear.php.net/package/PHP_CompatInfo 40 * @since File available since Release 1.8.0b2 50 * @version Release: 1.8.1 51 * @link http://pear.php.net/package/PHP_CompatInfo 52 * @since Class available since Release 1.8.0b2 155 156 if (php_sapi_name() == 'cli') { 157 // when running the CLI version, take arguments from console 219 * 220 * @return object PHP_CompatInfo_Renderer A concrete PHP_CompatInfo_Renderer 221 * instance, or null on error. 281 break; 282 case PHP_COMPATINFO_EVENT_CODESTARTED : 283 $this->stillWaitProgress($notifyInfo['stringdata'],Font.php https://bitbucket.org/kudutest1/moodlegit.git | 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 }class-Shoestrap_Color.php https://gitlab.com/aristath/shoestrap-3 | PHP | 481 lines
1<?php 2 15 * @var string The hex value of a color 16 * @param boolean Whether we want to include a hash (#) at the beginning or not 17 * @return string The sanitized hex color. 18 */ 19 public static function sanitize_hex( $color = '#FFFFFF', $hash = true ) { 20 39 40 return ( ! $hash ) ? $hex : '#' . $hex; 41passwordLibClass.php https://gitlab.com/Raymon/QualityCaps_PHP | PHP | 354 lines
2/** 3 * PHP 5.5-like password hashing functions 4 * 6 * 7 * See: http://php.net/password_hash and http://php.net/password_verify 8 * 16 17// Note that SHA hashes are not implemented in password_hash() or password_verify() in PHP 5.5 18// and are not recommended for use. Recommend only the default BCrypt option 31 32 // Note that SHA hashes are not implemented in password_hash() or password_verify() in PHP 5.5 33 // and are not recommended for use. Recommend only the default BCrypt option 150 * @param type $setting 151 * @return \Antnee\PhpPasswordLib\PhpPasswordLib 152 */fad1d5e3b8651566439afdcfbb7dce101e72bd08.file.view-payment_detail.tpl.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 193 lines
51 <!--<li><a href="<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?> 52index.php?file=m-payment_detail&type=available" <?php if ($_GET['type']=='available'){?>class="active"<?php }?>>History of Your Transfer</a></li> 53 <li><a href="<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?> 53 <li><a href="<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?> 54index.php?file=m-payment_detail&type=refund" <?php if ($_GET['type']=='refund'){?>class="last active"<?php }else{ ?>class="last"<?php }?>>Your Refund</a></li>--> 55 <li><a href="<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?> 55 <li><a href="<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?> 56index.php?file=m-money_detail&pagetype=money&type=available" <?php if ($_GET['pagetype']=='money'){?>class="active"<?php }?>><?php echo @LBL_AS_DRIVER;?> 57</a></li> 58 <li><a href="<?php echo $_smarty_tpl->getVariable('tconfig')->value['tsite_url'];?> 59index.php?file=m-payment_detail&pagetype=payment&type=available" <?php if ($_GET['pagetype']=='payment'){?>class="active"<?php }?>><?php echo @LBL_AS_BOOKER;?> 60</a></li> 64</option> 65 <option value="refund" <?php if ($_GET['type']=='refund'){?>selected<?php }?>><?php echo @LBL_REFUNDS;?> 66</option>Cache.php https://github.com/abirmmu/codeigniter-cache.git | PHP | 431 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2 106 107 $cache_file = $property.DIRECTORY_SEPARATOR.do_hash($method.serialize($arguments), 'sha1'); 108 301 { 302 // create non existing dirs, asumes PHP5 303 if ( ! @mkdir($test_path, DIR_WRITE_MODE, TRUE)) return FALSE; 429 430/* End of file Cache.php */ 431/* Location: ./application/libraries/Cache.php */TypedDataManager.php https://gitlab.com/geeta7/drupal | PHP | 294 lines
1<?php 2 165 if ($settings = $root_definition->getSettings()) { 166 // Hash the settings into a string. crc32 is the fastest way to hash 167 // something for non-cryptographic purposes. 167 // something for non-cryptographic purposes. 168 $parts[] = hash('crc32b', serialize($settings)); 169 }VarCloner.php https://gitlab.com/Sigpot/AirSpot | PHP | 324 lines
56 } 57 $hashMask = self::$hashMask; 58 $hashOffset = self::$hashOffset; 148 case 'object': 149 if (empty($objRefs[$h = $zval['object_handle'] ?: ($hashMask ^ hexdec(substr(spl_object_hash($v), $hashOffset, PHP_INT_SIZE)))])) { 150 $stub = new Stub(); 164 } else { 165 $h = $hashMask ^ hexdec(substr(spl_object_hash($stub->value), $hashOffset, PHP_INT_SIZE)); 166 } 300 $obj = (object) array(); 301 self::$hashOffset = 16 - PHP_INT_SIZE; 302 self::$hashMask = -1; 321 322 self::$hashMask ^= hexdec(substr(spl_object_hash($obj), self::$hashOffset, PHP_INT_SIZE)); 323 }Cache.php https://github.com/daK76/pyrocms.git | PHP | 431 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2 106 107 $cache_file = $property.DIRECTORY_SEPARATOR.dohash($method.serialize($arguments), 'sha1'); 108 301 { 302 // create non existing dirs, asumes PHP5 303 if ( ! @mkdir($test_path, DIR_WRITE_MODE, TRUE)) return FALSE; 429 430/* End of file Cache.php */ 431/* Location: ./application/libraries/Cache.php */packet.cpp https://gitlab.com/iranjith4/hhvm | C++ | 432 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 2010-2016 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 | 20#include "hphp/runtime/ext/soap/ext_soap.h" 21#include "hphp/util/hash-map-typedefs.h" 22upgrade_slims8_akasia.sql.php https://gitlab.com/mucill/majalengka | PHP | 269 lines
1<?php 2 20/*-- change all members password to : 'akasia'*/ 21// $hash_member = '$2y$10$Vx12rbVCdtYW701HrULLYOLDKJdb3fDusG2rE7GJzAcH9mqu2MjKK'; 22// $sql['update'][] = "UPDATE `member` SET `mpasswd`='$hash_member' WHERE `mpasswd` IS NOT NULL;"; 222$sql['insert'][] = "INSERT IGNORE INTO `setting` (`setting_name`, `setting_value`) VALUES 223('shortcuts_1', 'a:6:{i:0;s:42:\"Daftar Bibliografi|/bibliography/index.php\";i:1;s:61:\"Tambah Bibliografi Baru|/bibliography/index.php?action=detail\";i:2;s:51:\"Mulai Transaksi|/circulation/index.php?action=start\";i:3;s:48:\"Pengembalian Kilat|/circulation/quick_return.php\";i:4;s:42:\"Lihat Daftar Anggota|/membership/index.php\";i:5;s:37:\"Shortcut Setting|/system/shortcut.php\";}');"; 224Cache.php https://github.com/cawago/ci_campusync_auth.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 253 254 $this->_driver->delete($hash); 255 }CakeRoute.php https://github.com/gustavor/lore.git | PHP | 506 lines
1<?php 2/** 8 * 9 * PHP5 10 * 10 * 11 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 12 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 17 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 18 * @link http://cakephp.org CakePHP(tm) Project 19 * @package Cake.Routing.Route 19 * @package Cake.Routing.Route 20 * @since CakePHP(tm) v 1.3 21 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 241/** 242 * Parse passed and Named parameters into a list of passed args, and a hash of named parameters. 243 * The local and global configuration for named parameters will be used.LoginHandler.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 315 lines
1<?php 2 3/** 4 * @file LoginHandler.inc.php 5 * 14 15// $Id: LoginHandler.inc.php,v 1.26.2.3 2009/04/08 19:43:07 asmecher Exp $ 16 65 66 $url = $wayf_url . "?target=https://" . Request::getServerHost() . Request::getBasePath() . '/index.php/index/login/implicitAuthReturn'; 67 167 168 if ($user == null || ($hash = Validation::generatePasswordResetHash($user->getUserId())) == false) { 169 $templateMgr->assign('error', 'user.login.lostPassword.invalidUser'); 219 $hash = Validation::generatePasswordResetHash($user->getUserId()); 220 if ($hash == false || $confirmHash != $hash) { 221 $templateMgr->assign('errorMsg', 'user.login.lostPassword.invalidHash');Queue.php https://github.com/ksecor/civicrm.git | PHP | 290 lines
39 40require_once 'CRM/Contact/BAO/Contact.php'; 41 61 $eq->copyValues($params); 62 $eq->hash = self::hash($params); 63 $eq->save(); 67 /** 68 * Create a security hash from the job, email and contact ids 69 * 89 * @param int $queue_id The Queue Event ID to find 90 * @param string $hash The hash to validate against 91 * @return object|null The queue event if verified, or null 99 $q->job_id = $job_id; 100 $q->hash = $hash; 101 if ($q->find(true)) {Parser.php https://github.com/tumf/tepco.git | PHP | 307 lines
1<?php 2 195 $result = new Node\ElementNode($namespace, $element); 196 $hasHash = false; 197 while (true) { 199 if ('#' == $peek) { 200 if ($hasHash) { 201 /* You can't have two hashes 208 $result = new Node\HashNode($result, $stream->next()); 209 $hasHash = true; 210trackBlobs.php https://github.com/daevid/MWFork.git | PHP | 396 lines
1<?php 2/** 28if ( count( $args ) < 1 ) { 29 echo "Usage: php trackBlobs.php <cluster> [... <cluster>]\n"; 30 echo "Adds blobs from a given ES cluster to the blob_tracking table\n"; 82 echo "Integrity check failed: found HistoryBlobStub objects in your text table.\n" . 83 "This script could destroy these objects if it continued. Run resolveStubs.php\n" . 84 "to fix this.\n"; 97 echo "Integrity check failed: found external storage pointers in your archive table.\n" . 98 "Run normaliseArchiveTable.php to fix this.\n"; 99 exit( 1 ); 195 'bt_blob_id' => $info['id'], 196 'bt_cgz_hash' => $info['hash'] 197 ); 279 'bt_blob_id' => $info['id'], 280 'bt_cgz_hash' => $info['hash'] 281 );core.php https://bitbucket.org/daveschwan/ronin-group.git | PHP | 385 lines
6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 15 * @link http://cakephp.org CakePHP(tm) Project 16 * @package app.Config 21/** 22 * CakePHP Debug Level: 23 * 205 * 206 * - 'php' - Uses settings defined in your php.ini. 207 * - 'cake' - Saves session files in CakePHP's /tmp directory. 210 * 211 * To define a custom session handler, save it at /app/Model/Datasource/Session/<name>.php. 212 * Make sure the class implements `CakeSessionHandlerInterface` and set Session.handler to <name>Renderer.php https://bitbucket.org/4NN3CK/myeclipse4php.git | PHP | 424 lines
38 * @version CVS: $Id: Renderer.php,v 1.9 2009/01/02 10:18:47 farell Exp $ 39 * @link http://pear.php.net/package/PHP_CompatInfo 40 * @since File available since Release 1.8.0b2 50 * @version Release: 1.9.0 51 * @link http://pear.php.net/package/PHP_CompatInfo 52 * @since Class available since Release 1.8.0b2 155 156 if (php_sapi_name() == 'cli') { 157 // when running the CLI version, take arguments from console 219 * 220 * @return object PHP_CompatInfo_Renderer A concrete PHP_CompatInfo_Renderer 221 * instance, or null on error. 281 break; 282 case PHP_COMPATINFO_EVENT_CODESTARTED : 283 $this->stillWaitProgress($notifyInfo['stringdata'],Project.php https://github.com/forzapiri/dashboard.git | PHP | 477 lines
47require_once 'PHPUnit/Util/Filter.php'; 48require_once 'PHPUnit/Util/Metrics.php'; 49 63 */ 64class PHPUnit_Util_Metrics_Project extends PHPUnit_Util_Metrics 65{ 427 $fileA = $this->cpdHashes[$firstHash][0]; 428 $firstLineA = $this->cpdHashes[$firstHash][1]; 429 446 447 $this->cpdHashes[$hash] = array($file, $line); 448 } 456 $fileA = $this->cpdHashes[$firstHash][0]; 457 $firstLineA = $this->cpdHashes[$firstHash][1]; 458auth_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:FastExactAutomatonMinimizer.java https://github.com/ryantanner/thesis.git | Java | 319 lines
69 this.splits = new LinkedList(); 70 this.memberToBlock = new HashMap(); //new IdentityHashMap(); // TEG: I had to change this b/c some weren't matching 71 minimize(); 126 protected Map sortIntoBlocks(Collection nodes) { 127 Map blockToMembers = new IdentityHashMap(); 128 for (Iterator nodeI = nodes.iterator(); nodeI.hasNext();) { 130 Block block = getBlock(o); 131 Maps.putIntoValueHashSet(blockToMembers, block, o); 132 } 136 protected void makeBlock(Collection members) { 137 Block block = new Block(new HashSet(members)); 138 for (Iterator memberI = block.getMembers().iterator(); memberI.hasNext();) { 148 protected void addSplits(Block block) { 149 Map symbolToTarget = new HashMap(); 150 for (Iterator memberI = block.getMembers().iterator(); memberI.hasNext();) {PublicController.php https://gitlab.com/jankube/mautic | PHP | 405 lines
83 'email' => $entity, 84 'idHash' => $idHash, 85 'tokens' => $tokens 142 $translator = $this->get('translator'); 143 $stat = $model->getEmailStatus($idHash); 144 171 array( 172 $this->generateUrl('mautic_email_resubscribe', array('idHash' => $idHash)), 173 $stat->getEmailAddress() 266 array( 267 $this->generateUrl('mautic_email_unsubscribe', array('idHash' => $idHash)), 268 $stat->getEmailAddress() 391 'email' => $entity, 392 'idHash' => $idHash, 393 'tokens' => $tokens,ps_perm.php https://github.com/Shigaru/shigaru.git | PHP | 461 lines
1<?php 2if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' ); 4* 5* @version $Id: ps_perm.php 1818 2009-06-23 19:07:21Z soeren_nb $ 6* @package VirtueMart 8* @copyright Copyright (C) 2004-2009 soeren - All rights reserved. 9* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php 10* VirtueMart is free software. This version may have been modified pursuant 13* other free or open source software licenses. 14* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details. 15* 204 * @return boolean 205 * @example $perm->hasHigherPerms( 'storeadmin' ); 206 * returns true when user is admin 207 */ 208 function hasHigherPerms( $perm ) { 209 $auth = $_SESSION["auth"];Protection.php https://gitlab.com/hoanghung.dev/aloads | PHP | 581 lines
22 * @package PHPExcel_Worksheet 23 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel_Worksheet 34 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 290 * @param boolean $pValue 291 * @return PHPExcel_Worksheet_Protection 292 */ 554 * @param string $pValue 555 * @param boolean $pAlreadyHashed If the password has already been hashed, set this to true 556 * @return PHPExcel_Worksheet_Protection 560 if (!$pAlreadyHashed) { 561 $pValue = PHPExcel_Shared_PasswordHasher::hashPassword($pValue); 562 }edit_export.tpl https://github.com/lserwatka/ezpublish.git | Smarty Template | 239 lines
5 6<h1 class="context-title">{'Edit <%rss_export_name> [RSS Export]'|i18n( 'design/admin/rss/edit_export',, hash( '%rss_export_name', $rss_export.title ) )|wash}</h1> 7 41 <div class="context-attributes"> 42 <p>{'Use this field to enter the base URL of your site. It is used to produce the URLs in the export, composed by the Site URL (e.g. "http://www.example.com/index.php") and the path to the object (e.g. "/articles/my_article"). The Site URL depends on your web server and eZ Publish configuration.'|i18n( 'design/admin/rss/edit_export')}</p> 43 <p>{'Leave this field empty if you want system automaticaly detect the URL of your site from the URL you access feed with'|i18n( 'design/admin/rss/edit_export')}</p>Object.js https://github.com/stephaneerard/qooxdoo.git | JavaScript | 359 lines
11 LGPL: http://www.gnu.org/licenses/lgpl.html 12 EPL: http://www.eclipse.org/org/documents/epl-v10.php 13 See the LICENSE file in the project's top-level directory for details. 255 // save the binding 256 var targetHash = targetObject.toHashCode(); 257 if (this.__bindings[targetHash] == undefined) { 257 if (this.__bindings[targetHash] == undefined) { 258 this.__bindings[targetHash] = []; 259 } 259 } 260 this.__bindings[targetHash].push( 261 [id, idReverse, targetProperty, sourceProperty, options, reverseOptions] 317 318 var currentListing = this.__bindings[targetObject.toHashCode()]; 319 // if no binding is storedvbulletin30.inc.php https://github.com/cpg-contrib/coppermine.git | PHP | 239 lines
1<?php 2/************************* 13 Coppermine version: 1.5.0 14 $HeadURL: https://coppermine.svn.sourceforge.net/svnroot/coppermine/trunk/cpg1.5.x/bridge/vbulletin30.inc.php $ 15 $Revision: 5129 $ 29 'relative_path_to_config_file_default' => '../board/', 30 'relative_path_to_config_file_used' => 'lookfor,includes/config.php', 31 'use_post_based_groups_default' => '0', 38 39 require_once 'bridge/udb_base.inc.php'; 40 53 $this->boardurl = 'http://www.yousite.com/vb3'; 54 require_once('../vb3/includes/config.php'); 55 57 $this->boardurl = $BRIDGE['full_forum_url']; 58 require_once($BRIDGE['relative_path_to_config_file'] . 'includes/config.php'); 59 $this->use_post_based_groups = $BRIDGE['use_post_based_groups'];ee374469f3039f2afc01916b1c6255a7d0864358.file.view-registration.tpl.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 260 lines
148</option> 149 <option value="DN" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='DN'){?> selected <?php }?>><?php echo @LBL_DANISH;?> 150</option> 150</option> 151 <option value="FI" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='FI'){?> selected <?php }?>><?php echo @LBL_FINISH;?> 152</option> 152</option> 153 <option value="FN" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='FN'){?> selected <?php }?>><?php echo @LBL_FRENCH;?> 154</option> 160</option> 161 <option value="DE" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='DE'){?> selected <?php }?>><?php echo @LBL_GERMAN;?> 162</option> 168</option> 169 <option value="ES" <?php if ($_smarty_tpl->getVariable('db_customer')->value[0]['vLanguageCode']=='ES'){?> selected <?php }?>><?php echo @LBL_SPANISH;?> 170</option>sitemailer_.php https://gitlab.com/nvtdn2006/azora | PHP | 384 lines
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; 232 private function sendPasswordResetToUser($property) { 233 /*$htmlCT = "--PHP-alt-" . $this->randomHash . "\r\n"; 234 $htmlCT .= 'Content-Type: text/html; charset="iso-8859-1"' . "\r\n"; 246 /*$this->msgBody = $htmlCT . $this->msgBody; 247 $this->msgBody .= "--PHP-alt-" . $this->randomHash . "\r\n";*/ 248 $this->msgBody = wordwrap($this->msgBody, $this->wordwrap); 308 private function sendRedemptionSubmittedNotify($property) { 309 /*$htmlCT = "--PHP-alt-" . $this->randomHash . "\r\n"; 310 $htmlCT .= 'Content-Type: text/html; charset="iso-8859-1"' . "\r\n";bench_internal.c https://gitlab.com/vectorci/rippled | C | 318 lines
3 * Distributed under the MIT software license, see the accompanying * 4 * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 **********************************************************************/ 10#include "util.h" 11#include "hash_impl.h" 12#include "num_impl.h" 313 314 if (have_flag(argc, argv, "hash") || have_flag(argc, argv, "sha256")) run_benchmark("hash_sha256", bench_sha256, bench_setup, NULL, &data, 10, 20000); 315 if (have_flag(argc, argv, "hash") || have_flag(argc, argv, "hmac")) run_benchmark("hash_hmac_sha256", bench_hmac_sha256, bench_setup, NULL, &data, 10, 20000); 315 if (have_flag(argc, argv, "hash") || have_flag(argc, argv, "hmac")) run_benchmark("hash_hmac_sha256", bench_hmac_sha256, bench_setup, NULL, &data, 10, 20000); 316 if (have_flag(argc, argv, "hash") || have_flag(argc, argv, "rng6979")) run_benchmark("hash_rfc6979_hmac_sha256", bench_rfc6979_hmac_sha256, bench_setup, NULL, &data, 10, 20000); 317 return 0;ConsoleShell.php https://bitbucket.org/ManiAdil/jardinorient.git | PHP | 384 lines
1<?php 2/** 2/** 3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 4 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 9 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 10 * @link http://cakephp.org CakePHP(tm) Project 11 * @since CakePHP(tm) v 1.2.0.5012 11 * @since CakePHP(tm) v 1.2.0.5012 12 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 13 */ 17/** 18 * Provides a very basic 'interactive' console for CakePHP apps. 19 * 106 '', 107 "where you are passing a hash of data to be saved in the format", 108 "of field => value pairs",phpBB.php https://bitbucket.org/adatux_/uakami.git | PHP | 538 lines
432 * @param string $password The password in plain text 433 * @param string $hash The stored password hash 434 * 440 if (strlen($pass_array['hash']) == 34) { 441 return ($this->_hash_crypt_private($password, $pass_array['hash'], $itoa64) === $pass_array['hash']) ? true : false; 442 } 482 { 483 $hash = md5($hash . $password, true); 484 } 488 do { 489 $hash = pack('H*', md5($hash . $password)); 490 } 494 $output = substr($setting, 0, 12); 495 $output .= $this->_hash_encode64($hash, 16, $itoa64); 496SessionSelectionActivity.java https://gitlab.com/jaadchacra/Linc | Java | 266 lines
40import java.util.ArrayList; 41import java.util.HashMap; 42import java.util.Hashtable; 128 //JsonArrayRequest of volley 129 StringRequest postRequest = new StringRequest(Request.Method.GET, "http://kcapplications.com/Linc/sessions.php?user_id="+userID, 130 new Response.Listener<String>() { 213 db = new SQLiteHandler(this.getApplicationContext()); 214 HashMap<String, String> user = db.getUserDetails(); 215 userID = user.get("uid"); 222 //Displaying Progressbar 223 StringRequest stringRequest = new StringRequest(Request.Method.POST, "http://kcapplications.com/Linc/session/offer.php", 224 new Response.Listener<String>() { 255 protected Map<String, String> getParams() throws AuthFailureError { 256 Map<String, String> params = new Hashtable<String, String>(); 257 //Adding parametersQFileUploader.class.php https://github.com/apselico/qcodo.git | PHP | 270 lines
1<?php 2 class QFileUploader extends QControl { 90 $strToReturn = parent::GetEndScript(); 91 $strUniqueHash = substr(md5(microtime() . rand(0, 1000000)), 4, 16); 92 94 $strToReturn .= sprintf('qc.regFUP("%s", "%s", "%s"); ', 95 $this->strControlId, QApplication::$RequestUri, $strUniqueHash 96 );class.ScalrAPICore.php https://github.com/kennethjiang/Wolke.git | PHP | 361 lines
1<?php 2 6 { 7 const HASH_ALGO = 'SHA256'; 8 63 64 $valid_sign = base64_encode(hash_hmac(self::HASH_ALGO, trim($string_to_sign), $auth_key, 1)); 65 123 124 $valid_sign = base64_encode(hash_hmac(self::HASH_ALGO, trim($string_to_sign), $auth_key, 1)); 125 168 169 $valid_sign = base64_encode(hash_hmac(self::HASH_ALGO, trim($string_to_sign), $auth_key, 1)); 170 if ($valid_sign != $request['Signature'])Encrypt.php https://bitbucket.org/kurniawanchan83/codeigniter.git | PHP | 507 lines
299 { 300 $hash = $this->hash($key); 301 $str = ''; 362 { 363 $key = $this->hash($key); 364 $str = ''; 480 /** 481 * Set the Hash type 482 * 487 { 488 $this->_hash_type = in_array($type, hash_algos()) ? $type : 'sha1'; 489 } 500 { 501 return hash($this->_hash_type, $str); 502 }admin.php https://github.com/shamoons/pyrocms.git | PHP | 464 lines
1<?php defined('BASEPATH') OR exit('No direct script access allowed'); 2 273 274 // Password provided, hash it for storage 275 if ($this->input->post('password') && $this->input->post('confirm_password')) 463 464/* End of file admin.php */static_member_expression.cpp https://github.com/diegoIta/hiphop-php.git | C++ | 359 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 24#include <util/util.h> 25#include <util/hash.h> 26#include <compiler/parser/hphp.tab.hpp>langimport.php https://github.com/dhamma-dev/SEA.git | PHP | 387 lines
31require_once(dirname(dirname(__FILE__)).'/config.php'); 32require_once($CFG->libdir.'/adminlib.php'); 33require_once($CFG->libdir.'/filelib.php'); 85 $a->dest = $CFG->dataroot.'/lang'; 86 print_error($cd->get_error(), 'error', 'langimport.php', $a); 87 } else { 87 } else { 88 print_error($cd->get_error(), 'error', 'langimport.php'); 89 } 116 echo $OUTPUT->confirm(get_string('uninstallconfirm', 'admin', $uninstalllang), 117 'langimport.php?mode='.DELETION_OF_SELECTED_LANG.'&uninstalllang='.$uninstalllang.'&confirm=1', 118 'langimport.php'); 162 163 if (file_exists($dest1.'/langconfig.php') || file_exists($dest2.'/langconfig.php')){ 164 $updateablelangs[] = $clang;source-class-Smart.SubjectRegistry.FrontModule.AresPresenter.html https://bitbucket.org/jsifalda/smartsubjectregistry.git | HTML | 175 lines
132</span><span id="27" class="l"><a class="l" href="#27">27: </a> { 133</span><span id="28" class="l"><a class="l" href="#28">28: </a> <span class="php-var">$section</span> = <span class="php-var">$this</span>->session->getSection(<span class="php-quote">'registry'</span>); 134</span><span id="29" class="l"><a class="l" href="#29">29: </a> <span class="php-var">$this</span>->template->data = \Nette\ArrayHash::from(<span class="php-var">$section</span>->data); 139</span></span><span id="34" class="l"><a class="l" href="#34">34: </a><span class="php-comment"> */</span> 140</span><span id="35" class="l"><a class="l" href="#35">35: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_actionGeteway" href="#_actionGeteway">actionGeteway</a>(<span class="php-var">$id</span> = <span class="php-keyword1">null</span>) 141</span><span id="36" class="l"><a class="l" href="#36">36: </a> { 142</span><span id="37" class="l"><a class="l" href="#37">37: </a> <span class="php-var">$response</span> = <span class="php-keyword1">array</span>(); 143</span><span id="38" class="l"><a class="l" href="#38">38: </a> <span class="php-keyword1">if</span>(<span class="php-keyword2">is_array</span>(<span class="php-var">$data</span> = <span class="php-var">$this</span>->aresApi->loadData(<span class="php-var">$id</span>))){ 144</span><span id="39" class="l"><a class="l" href="#39">39: </a> <span class="php-keyword1">foreach</span>(<span class="php-var">$data</span> <span class="php-keyword1">as</span> <span class="php-var">$item</span>){ 150</span><span id="45" class="l"><a class="l" href="#45">45: </a> 151</span><span id="46" class="l"><a class="l" href="#46">46: </a> <span class="php-var">$this</span>->sendJson(<span class="php-keyword1">array</span>(<span class="php-quote">'source'</span> => <span class="php-var">$response</span>)); 152</span><span id="47" class="l"><a class="l" href="#47">47: </a> } 161</span><span id="56" class="l"><a class="l" href="#56">56: </a> <span class="php-var">$form</span> = <span class="php-var">$factory</span>->create(); 162</span><span id="57" class="l"><a class="l" href="#57">57: </a> <span class="php-var">$form</span>->onSuccess[] = <span class="php-var">$this</span>->lazyLink(<span class="php-quote">'result'</span>); 163</span><span id="58" class="l"><a class="l" href="#58">58: </a> <span class="php-keyword1">return</span> <span class="php-var">$form</span>;Adapter.php https://github.com/imr/horde.git | PHP | 314 lines
1<?php 2/** 129 /** 130 * Returns an array of record hashes with the column names as keys and 131 * column values as values. 144 /** 145 * Returns a record hash with the column names as keys and column values 146 * as values.paperclip.rb https://github.com/palladius/lovd-by-less.git | Ruby | 244 lines
8# Copyright:: Copyright (c) 2008 thoughtbot, inc. 9# License:: MIT License (http://www.opensource.org/licenses/mit-license.php) 10# 93 # User.new.avatar_url(:small) # => "/images/default_small_avatar.png" 94 # * +styles+: A hash of thumbnail styles and their geometries. You can find more about 95 # geometry strings at the ImageMagick website 95 # geometry strings at the ImageMagick website 96 # (http://www.imagemagick.org/script/command-line-options.php#resize). Paperclip 97 # also adds the "#" option (e.g. "50x50#"), which will resize the image to fit maximallySnsClient.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 378 lines
1<?php 2 6 7w3_require_once(W3TC_LIB_W3_DIR . '/Enterprise/SnsBase.php'); 8 182 /** 183 * Reloads/compiles a PHP file. 184 * @param string $filename 191 /** 192 * Reloads/compiles a PHP file. 193 * @param string[] $filenames 342 343 // on success - reset messages array, but not hash (not resent repeatedly the same messages) 344 $this->messages = array();php-crypt_r.cpp https://gitlab.com/iranjith4/hhvm | C++ | 381 lines
3 +----------------------------------------------------------------------+ 4 | PHP Version 7 | 5 +----------------------------------------------------------------------+ 5 +----------------------------------------------------------------------+ 6 | Copyright (c) 1997-2015 The PHP Group | 7 +----------------------------------------------------------------------+ 154 dwHashLen = 16; 155 CryptGetHashParam(ctx1, HP_HASHVAL, final, &dwHashLen, 0); 156 /* MD5(pw,salt,pw). Valid. */ 184 /* Fetch the ctx hash value */ 185 CryptGetHashParam(ctx, HP_HASHVAL, final, &dwHashLen, 0); 186 225 dwHashLen = 16; 226 CryptGetHashParam(ctx1, HP_HASHVAL, final, &dwHashLen, 0); 227 if(!(CryptDestroyHash(ctx1))) {sysvmsg.c https://gitlab.com/envieidoc/tomato | C | 477 lines
342 343 messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf)); 344 375 FREE_ZVAL(tmp); 376 PHP_VAR_UNSERIALIZE_DESTROY(var_hash); 377 } else { 409 smart_str msg_var = {0}; 410 php_serialize_data_t var_hash; 411 411 412 PHP_VAR_SERIALIZE_INIT(var_hash); 413 php_var_serialize(&msg_var, &message, &var_hash TSRMLS_CC); 413 php_var_serialize(&msg_var, &message, &var_hash TSRMLS_CC); 414 PHP_VAR_SERIALIZE_DESTROY(var_hash); 415Curl.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 576 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 68 /** 69 * Fields for POST method - hash 70 * @var array 118 /** 119 * User ovverides options hash 120 * Are applied before curl_exec 162 /** 163 * Set headers from hash 164fa.inc.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 313 lines
1<?php 2$translations = array( 16 'No extension' => 'پسوند نامعتبر', 17 'None of the supported PHP extensions (%s) are available.' => ' پسوند پی اچ پی در دسترس نیست (%s) تعداد', 18 'Session support must be enabled.' => 'پشتيباني از نشست بايستي فعال گردد', 19 'Session expired, please login again.' => 'نشست پايان يافته، لطفا دوباره وارد شويد', 20 '%s version: %s through PHP extension %s' => 'نسخه %s : %s توسعه پی اچ پی %s', 21 'Refresh' => 'بازيابي', 30 'User has been created.' => 'كاربر ايجاد شد', 31 'Hashed' => 'به هم ريخته', 32 'Column' => 'ستون',register.htm https://github.com/AlexChien/EY_BBS.git | HTML | 236 lines
9 $('messageleft1').innerHTML = '<h1>{lang register_succeed} $bbname</h1>{lang profile_email_verify}'; 10 $('messageright1').innerHTML = '<h1><a href="memcp.php">{lang user_center}</a></h1><p>{lang profile_email_verify_comment}</p>'; 11 setTimeout("window.location.href='memcp.php'", $mrefreshtime); 13 $('messageleft1').innerHTML = '<h1>{lang register_succeed} $bbname</h1>{lang register_manual_verify}'; 14 $('messageright1').innerHTML = '<h1><a href="memcp.php">{lang user_center}</a></h1>'; 15 setTimeout("window.location.href='memcp.php'", $mrefreshtime); 18 $('messageleft1').innerHTML = '<h1>{lang register_succeed} $bbname</h1>{lang register_newbietask}'; 19 $('messageright1').innerHTML = '<h1><a href="javascript:;" onclick="location.href=\'task.php?action=view&id=$task[taskid]\'">{lang login_refresh}</a></h1>'; 20 setTimeout('location.href=\'task.php?action=view&id=$task[taskid]\'', $mrefreshtime); 59 <h3 id="returnmessage4"><!--{if $action != 'activation'}-->$reglinkname<!--{else}-->{lang index_activation}<!--{/if}--></h3> 60 <input type="hidden" name="formhash" value="{FORMHASH}" /> 61 <input type="hidden" name="referer" value="$referer" /> 128 <!--{if $bbrules}--> 129 <input type="checkbox" class="checkbox" name="agreebbrule" value="$bbrulehash" id="agreebbrule" /> <label for="agreebbrule">{lang agree}<a href="javascript:;" onclick="pagescroll.left()">{lang rulemessage}</a></label> 130 <!--{/if}-->Cache.php https://github.com/icz/OpenPNE3.git | PHP | 416 lines
1<?php 2/* 2/* 3 * $Id: Cache.php 5801 2009-06-02 17:30:27Z 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 253 254 $this->_driver->delete($hash); 255 }Bounce.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 304 lines
1<?php 2/* 51 $params['event_queue_id'], 52 $params['hash'] 53 );ConstraintType.java https://gitlab.com/Codeaurora/platform_sdk | Java | 237 lines
7 * 8 * http://www.eclipse.org/org/documents/epl-v10.php 9 * 44 45import java.util.HashMap; 46import java.util.Map; 143 ConstraintType[] types = ConstraintType.values(); 144 Map<String, ConstraintType> map = new HashMap<String, ConstraintType>(types.length); 145 for (ConstraintType type : types) {quickhashstringinthash.loadfromfile.html https://bitbucket.org/stillzhl/manuals.git | HTML | 195 lines
8 <body><div class="manualnavbar" style="text-align: center;"> 9 <div class="prev" style="text-align: left; float: left;"><a href="quickhashstringinthash.getsize.html">QuickHashStringIntHash::getSize</a></div> 10 <div class="next" style="text-align: right; float: right;"><a href="quickhashstringinthash.loadfromstring.html">QuickHashStringIntHash::loadFromString</a></div> 10 <div class="next" style="text-align: right; float: right;"><a href="quickhashstringinthash.loadfromstring.html">QuickHashStringIntHash::loadFromString</a></div> 11 <div class="up"><a href="class.quickhashstringinthash.html">QuickHashStringIntHash</a></div> 12 <div class="home"><a href="index.html">PHP Manual</a></div> 22 <div class="methodsynopsis dc-description"> 23 <span class="modifier">public</span> <span class="modifier">static</span> <span class="type"><a href="class.quickhashstringinthash.html" class="type QuickHashStringIntHash">QuickHashStringIntHash</a></span> <span class="methodname"><strong>QuickHashStringIntHash::loadFromFile</strong></span> 24 ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$filename</code></span> 129 option is ignored. It is read from the file format (unlike the 130 QuickHashIntHash and QuickHashIntStringHash classes, where it is 131 automatically calculated from the number of entries in the hash.) 157<div class="phpcode"><code><span style="color: #000000"> 158<span style="color: #0000BB"><?php<br />$file </span><span style="color: #007700">= </span><span style="color: #0000BB">dirname</span><span style="color: #007700">( </span><span style="color: #0000BB">__FILE__ </span><span style="color: #007700">) . </span><span style="color: #DD0000">"/simple.hash.string"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$hash </span><span style="color: #007700">= </span><span style="color: #0000BB">QuickHashStringIntHash</span><span style="color: #007700">::</span><span style="color: #0000BB">loadFromFile</span><span style="color: #007700">(<br /> </span><span style="color: #0000BB">$file</span><span style="color: #007700">,<br /> </span><span style="color: #0000BB">QuickHashStringIntHash</span><span style="color: #007700">::</span><span style="color: #0000BB">DO_NOT_USE_ZEND_ALLOC<br /></span><span style="color: #007700">);<br />foreach( </span><span style="color: #0000BB">range</span><span style="color: #007700">( </span><span style="color: #0000BB">0</span><span style="color: #007700">, </span><span style="color: #0000BB">0x0f </span><span style="color: #007700">) as </span><span style="color: #0000BB">$key </span><span style="color: #007700">)<br />{<br /> </span><span style="color: #0000BB">$i </span><span style="color: #007700">= </span><span style="color: #0000BB">48712 </span><span style="color: #007700">+ </span><span style="color: #0000BB">$key </span><span style="color: #007700">* </span><span style="color: #0000BB">1631</span><span style="color: #007700">;<br /> </span><span style="color: #0000BB">$k </span><span style="color: #007700">= </span><span style="color: #0000BB">base_convert</span><span style="color: #007700">( </span><span style="color: #0000BB">$i</span><span style="color: #007700">, </span><span style="color: #0000BB">10</span><span style="color: #007700">, </span><span style="color: #0000BB">36 </span><span style="color: #007700">);<br /> echo </span><span style="color: #0000BB">$k</span><span style="color: #007700">, </span><span style="color: #DD0000">' => '</span><span style="color: #007700">, </span><span style="color: #0000BB">$hash</span><span style="color: #007700">-></span><span style="color: #0000BB">get</span><span style="color: #007700">( </span><span style="color: #0000BB">$k </span><span style="color: #007700">), </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br />}<br /></span><span style="color: #0000BB">?></span> 159</span>index.markdown https://gitlab.com/orvi2014/phpjs | Markdown | 317 lines
14<!-- Generated by Rakefile:build --> 15A JavaScript equivalent of PHP's array_multisort 16 16 17{% codeblock array/array_multisort.js lang:js https://raw.github.com/kvz/phpjs/master/functions/array/array_multisort.js raw on github %} 18function array_multisort(arr) { 18function array_multisort(arr) { 19 // discuss at: http://phpjs.org/functions/array_multisort/ 20 // original by: Theriault 100 // Store first argument into sortArrs and sortKeys if an Object. 101 // First Argument should be either a Javascript Array or an Object, otherwise function would return FALSE like in PHP 102 if (Object.prototype.toString.call(arr) === '[object Array]') { 304 305Please note that php.js uses JavaScript objects as substitutes for PHP arrays, they are 306the closest match to this hashtable-like data structure.session.php https://github.com/mathieu/fusionforge.git | PHP | 552 lines
55/** 56 * session_get_session_cookie_hash() - Get hash of session cookie 57 * 64 list ($junk, $hash) = explode('-*-', $session_cookie); 65 return $hash; 66} 79 80 if ($hash != $new_hash) { 81 return false; 471 } 472 } // else (hash does not exist) or (session hash is bad) 473 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 languagesModule.php https://bitbucket.org/buonaparte/zfalbum.git | PHP | 281 lines
1<?php 2 58 { 59 return include __DIR__.'/../../config/module.config.php'; 60 } 196 $pm = $sm->get('User\Service\PasswordManager'); 197 $adapter->setCredentialChecker(function ($plain, $hash) use ($pm) { 198 return $pm->checkPassword($plain, $hash);style.css https://bitbucket.org/zachisit/zachis.it-m.git | CSS | 374 lines
7The CSS, XHTML and design is released under GPL: 8http://www.opensource.org/licenses/gpl-license.php 9Header photo by Ville Miettinen, used with permission 17 18.shashinThumbnailsTable {margin:0 !important;} 19.about_name {color:#0065B3;} 21.wpcf7-form input, .contactenpu {color:#666; font-size:12px;padding:3px;} 22#shashinGroup_1_1 a, #shashinThumbnailDiv a {border:0 !important;} 23.shashin_caption_title {display:none !important;} 363 364.shashinThumbnailDiv {pointer-events: none !important;} 365.shashinThumbnailImage {pointer-events: none !important;}Network.php https://gitlab.com/Skull3x/GladiatorMine | PHP | 366 lines
1<?php 2 182 public function registerInterface(SourceInterface $interface) { 183 $this->interfaces[$hash = spl_object_hash($interface)] = $interface; 184 if ($interface instanceof AdvancedSourceInterface) { 184 if ($interface instanceof AdvancedSourceInterface) { 185 $this->advancedInterfaces[$hash] = $interface; 186 $interface->setNetwork($this); 194 public function unregisterInterface(SourceInterface $interface) { 195 unset($this->interfaces[$hash = spl_object_hash($interface)], 196 $this->advancedInterfaces[$hash]);relocation-x64.cpp https://github.com/soitun/hiphop-php.git | C++ | 416 lines
10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 16 17#include "hphp/runtime/vm/jit/relocation.h" 18 21#include "hphp/runtime/vm/jit/align-x64.h" 22#include "hphp/runtime/vm/jit/asm-info.h" 23#include "hphp/runtime/vm/jit/cg-meta.h" 38 39using WideJmpSet = hphp_hash_set<void*>; 40struct JmpOutOfRange : std::exception {};simpletest.php https://github.com/orchestra-io/sample-openx.git | PHP | 433 lines
1<?php 2 /** 5 * @subpackage UnitTester 6 * @version $Id: simpletest.php 7321 2007-06-05 09:08:01Z andrew.hill@openads.org $ 7 */ 12 if (version_compare(phpversion(), '5') >= 0) { 13 require_once(dirname(__FILE__) . '/reflection_php5.php'); 14 } else { 14 } else { 15 require_once(dirname(__FILE__) . '/reflection_php4.php'); 16 } 39 * because the class is an abstract case that should 40 * not be run. Once PHP4 is dropped this will disappear 41 * as a public method and "abstract" will rule. 158 * Accessor for global registry of options. 159 * @return hash All stored values. 160 * @access privatec6082b5f150b88560430c6462843036aa407184d.file.layout.tpl.php https://gitlab.com/zohaibsaleem/shipcliq | PHP | 190 lines
1<?php /* Smarty version Smarty-3.0.7, created on 2015-06-30 13:39:29 2 compiled from "/home/www/xfetch/templates/layout.tpl" */ ?> 2 compiled from "/home/www/xfetch/templates/layout.tpl" */ ?> 3<?php /*%%SmartyHeaderCode:69384275155924eb9d82e39-35840320%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); 4$_smarty_tpl->decodeProperties(array ( 13 ), 14 'nocache_hash' => '69384275155924eb9d82e39-35840320', 15 'function' => 24<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> 25<title><?php echo $_smarty_tpl->getVariable('generalobj')->value->setMeta('title',$_smarty_tpl->getVariable('script')->value,$_smarty_tpl->getVariable('iPageId')->value);?> 26</title> 26</title> 27<meta name="keywords" content="<?php echo $_smarty_tpl->getVariable('generalobj')->value->setMeta('keyword',$_smarty_tpl->getVariable('script')->value,$_smarty_tpl->getVariable('iPageId')->value);?> 28" /> 28" /> 29<meta name="description" content="<?php echo $_smarty_tpl->getVariable('generalobj')->value->setMeta('desc',$_smarty_tpl->getVariable('script')->value,$_smarty_tpl->getVariable('iPageId')->value);?> 30" />auth_component.php https://github.com/jamilsonbatista/spaghetti-base.git | PHP | 360 lines
1<?php 2/** 4 * 5 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 6 * @copyright Copyright 2008-2009, Spaghetti* Framework (http://spaghettiphp.org/) 31 /** 32 * Método de hash a ser usado para senhas. 33 */ 33 */ 34 public $hash = "sha1"; 35 /** 247 /** 248 * Cria o hash de uma senha. 249 * 253 public function hash($password) { 254 return Security::hash($password, $this->hash, $this->useSalt); 255 }Borders.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 411 lines
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 } 390 /** 391 * Get hash code. 392 *baseufcomponent.php https://gitlab.com/neuser/bitrix-core | PHP | 541 lines
1<?php 2 371 { 372 $availableMethodsKey = $this->generateAvailableModesHash(); 373 static $availableMode = []; 396 */ 397 final protected function generateAvailableModesHash(): string 398 {Sync.php https://github.com/wrobel/horde.git | PHP | 339 lines
1<?php 2/** 117 * @param string $element The element tag name. 118 * @param array $attrs A hash with the element's attributes. 119 */repo-auth-type.cpp https://gitlab.com/alvinahmadov2/hhvm | C++ | 387 lines
12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 15*/ 16#include "hphp/runtime/base/repo-auth-type.h" 17 22#include "hphp/runtime/base/array-data-defs.h" 23#include "hphp/runtime/base/repo-auth-type-array.h" 24#include "hphp/runtime/base/object-data.h" 147 if (hasClassName()) { 148 return folly::hash::hash_128_to_64(iTag, clsName()->hash()); 149 } 150 if (mayHaveArrData() && array()) { 151 return folly::hash::hash_128_to_64(iTag, array()->id()); 152 }class-wc-frontend-scripts.php https://gitlab.com/haque.mdmanzurul/soundkreationsfinal | PHP | 301 lines
1<?php 2/** 208 'is_checkout' => is_checkout() ? '1' : '0', 209 'hash' => isset( $_GET['v'] ) ? wc_clean( $_GET['v'] ) : '' 210 );class-avada-sanitize.php https://gitlab.com/webkod3r/tripolis | PHP | 419 lines
1<?php 2//if ( ! class_exists( 'Avada_Sanitize' ) ) { 79 * @var string The hex value of a color 80 * @param boolean Whether we want to include a hash (#) at the beginning or not 81 * @return string The sanitized hex color.bd.sql https://github.com/SerovS/SEWYII.git | SQL | 336 lines
1-- phpMyAdmin SQL Dump 2-- version 3.3.2deb1 2-- version 3.3.2deb1 3-- http://www.phpmyadmin.net 4-- 7-- Версия сервера: 5.1.41 8-- Версия PHP: 5.3.2-1ubuntu4.9 9 125 `topic_forbid_comment` tinyint(1) NOT NULL DEFAULT '0', 126 `topic_text_hash` varchar(32) NOT NULL, 127 PRIMARY KEY (`topic_id`), 132 KEY `topic_publish` (`topic_publish`), 133 KEY `topic_text_hash` (`topic_text_hash`) 134) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;Explosion.php https://gitlab.com/wesleyvanneck/ImagicalMine | PHP | 277 lines
1<?php 2/** 2/** 3 * src/pocketmine/level/Explosion.php 4 * 141 if ($blastForce > 0) { 142 if (!isset($this->affectedBlocks[$index = Level::blockHash($block->x, $block->y, $block->z)])) { 143 $this->affectedBlocks[$index] = $block; 251 $sideBlock = $pos->getSide($side); 252 if (!isset($this->affectedBlocks[$index = Level::blockHash($sideBlock->x, $sideBlock->y, $sideBlock->z)]) and !isset($updateBlocks[$index])) { 253 $this->level->getServer()->getPluginManager()->callEvent($ev = new BlockUpdateEvent($this->level->getBlock($sideBlock)));upgrade.php https://github.com/totara/moodle.git | PHP | 324 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 85 if ($oldversion < 2013081301) { 86 require_once($CFG->dirroot . '/mod/scorm/lib.php'); 87 $scorms = $DB->get_recordset('scorm', array('scormtype' => 'imsrepository')); 91 $scorm->reference = $CFG->repository.substr($scorm->reference, 1).'/imsmanifest.xml'; 92 $scorm->sha1hash = sha1($scorm->reference); 93 } 166 if (!empty($hide)) { 167 require_once($CFG->dirroot . '/mod/scorm/lib.php'); 168 set_config('nav', SCORM_NAV_DISABLED, 'scorm');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 29/** 30 * PHPExcel_Style_Alignment 31 * 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{ 152 * @param array $pStyles Array containing style information 153 * @throws PHPExcel_Exception 154 * @return PHPExcel_Style_Alignmentini-setting.h https://github.com/tstarling/hiphop-php.git | C Header | 255 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 16 17#ifndef incl_HPHP_INI_SETTING_H_ 18#define incl_HPHP_INI_SETTING_H_cs.inc.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 335 lines
1<?php 2$translations = array( 18 'No extension' => 'Žádné rozšíření', 19 'None of the supported PHP extensions (%s) are available.' => 'Není dostupné žádné z podporovaných PHP rozšíření (%s).', 20 'Session support must be enabled.' => 'Session proměnné musí být povolené.', 21 'Session expired, please login again.' => 'Session vypršela, přihlašte se prosím znovu.', 22 '%s version: %s through PHP extension %s' => 'Verze %s: %s přes PHP rozšíření %s', 23 'Refresh' => 'Obnovit', 32 'User has been created.' => 'Uživatel byl vytvořen.', 33 'Hashed' => 'Zahašované', 34 'Column' => 'Sloupec',schema.yml https://github.com/eurotux/ETVA.git | YAML | 204 lines
5 network: 6 _attributes: { phpName: EtvaNetwork } 7 id: { type: INTEGER, primaryKey: true, required: true, autoIncrement: true } 16 server: 17 _attributes: { phpName: EtvaServer } 18 id: { type: INTEGER, primaryKey: true, required: true, autoIncrement: true } 52 ga_state: { type: VARCHAR, size: '255' } 53 hasHA: { type: INTEGER, default: '0' } 54 priority_ha: { type: INTEGER, default: '0' } 59 node: 60 _attributes: { phpName: EtvaNode } 61 id: { type: INTEGER, primaryKey: true, required: true, autoIncrement: true } 81 mac: 82 _attributes: { phpName: EtvaMac } 83 id: { type: INTEGER, primaryKey: true, required: true, autoIncrement: true }test.php https://github.com/md-tech/openemr.git | PHP | 422 lines
1<?php 2$debug=1; 2$debug=1; 3require_once("gacl_admin.inc.php"); 4 146/* 147//require_once('../Cache_Lite.php'); 148require_once('./profiler.inc'); 152 'caching' => true, 153 'cacheDir' => '/tmp/phpgacl_cache', 154 'lifeTime' => 100 156 157//$Cache_Lite = new Hashed_Cache_Lite($options); 158$Cache_Lite = new Cache_Lite($options);file.php https://github.com/jongwook/ksa14-kohana.git | PHP | 466 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 32 * * Kohana 3.0.x 33 * * PHP 5.2.4 or greater 34 * 38 * @copyright (c) 2009-2010 Kohana Team 39 * @license http://kohanaphp.com/license 40 */ 43 /** 44 * Creates a hashed filename based on the string. This is used 45 * to create shorter unique IDs for each cache filename. 49 * 50 * @param string string to hash into filename 51 * @return string 447 * 448 * @see http://php.net/manual/en/function.mkdir.php 449 * @param string directoryMappingTest.php https://bitbucket.org/openplacement/sherlock.git | PHP | 306 lines
102 //no type, hashmap of properties 103 $hash = array("field" => 'testField'); 104 $this->assertThrowsException( 105 '\sherlock\common\exceptions\BadMethodCallException', 106 function () use ($hash) { 107 $mapping = Sherlock::mappingBuilder()->String($hash); 111 //type, hashmap of properties 112 $hash = array("field" => 'testField'); 113 $mapping = Sherlock::mappingBuilder('testType')->String($hash); 117 118 //type, hashmap of properties, but override the hashmap with a new value 119 $hash = array("field" => 'testField'); 124 125 //type, hashmap of properties, but override the hashmap with a new value, add a boost 126 $hash = array("field" => 'testField');standard.cpp https://gitlab.com/Ltaimao/bitcoin | C++ | 318 lines
28 case TX_PUBKEY: return "pubkey"; 29 case TX_PUBKEYHASH: return "pubkeyhash"; 30 case TX_SCRIPTHASH: return "scripthash"; 37/** 38 * Return public keys or hashes from scriptPubKey, for 'standard' transaction types. 39 */ 49 // Bitcoin address tx, sender provides hash of pubkey, receiver provides signature and pubkey 50 mTemplates.insert(make_pair(TX_PUBKEYHASH, CScript() << OP_DUP << OP_HASH160 << OP_PUBKEYHASH << OP_EQUALVERIFY << OP_CHECKSIG)); 51 61 // Shortcut for pay-to-script-hash, which are more constrained than the other types: 62 // it is always OP_HASH160 20 [20 byte hash] OP_EQUAL 63 if (scriptPubKey.IsPayToScriptHash()) 64 { 65 typeRet = TX_SCRIPTHASH; 66 vector<unsigned char> hashBytes(scriptPubKey.begin()+2, scriptPubKey.begin()+22);fActiveRecordTest.php https://github.com/netcarver/flourish.git | PHP | 565 lines
1<?php 2require_once('./support/init.php'); 30 31class fActiveRecordTest extends PHPUnit_Framework_TestCase 32{ 64 $user->setDateCreated(new fTimestamp()); 65 $user->setHashedPassword('8njsbck'); 66 return $user; 313 $user->setDateCreated(new fTimestamp()); 314 $user->setHashedPassword('abcdefgh'); 315 $user->store(); 332 $user->setDateCreated(new fTimestamp()); 333 $user->setHashedPassword('abcdefgh'); 334 $user->store();SAPI.h https://gitlab.com/iranjith4/hhvm | C Header | 310 lines
9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 238 239 char *php_ini_path_override; 240 248 int php_ini_ignore; 249 int php_ini_ignore_cwd; /* don't look for php.ini in the current directory */ 250 259 260 void (*ini_defaults)(HashTable *configuration_hash); 261 int phpinfo_as_text; 285#define SAPI_DEFAULT_CHARSET "" 286#define SAPI_PHP_VERSION_HEADER "X-Powered-By: PHP/" PHP_VERSION 287class-wcs-query.php https://gitlab.com/remyvianne/krowkaramel | PHP | 389 lines
1<?php 2/** 100 // translators: placeholder is a subscription ID. 101 $title = ( $subscription ) ? sprintf( _x( 'Subscription #%s', 'hash before order number', 'woocommerce-subscriptions' ), $subscription->get_order_number() ) : ''; 102 break; 175 176 wc_get_template( 'myaccount/subscriptions.php', array( 'current_page' => $current_page ), '', WC_Subscriptions_Core_Plugin::instance()->get_subscriptions_core_directory( 'templates/' ) ); 177 } 253 254 wp_redirect( $url ); // phpcs:ignore WordPress.Security.SafeRedirect.wp_redirect_wp_redirect 255 exit();Type.php https://bitbucket.org/rybadour/todo_list_site.git | PHP | 303 lines
39 * @author Sebastian Bergmann <sebastian@phpunit.de> 40 * @copyright 2001-2012 Sebastian Bergmann <sebastian@phpunit.de> 41 * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License 41 * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License 42 * @link http://www.phpunit.de/ 43 * @since File available since Release 3.0.0 50 * @subpackage Util 51 * @author Sebastian Bergmann <sebastian@phpunit.de> 52 * @copyright 2001-2012 Sebastian Bergmann <sebastian@phpunit.de> 53 * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License 54 * @link http://www.phpunit.de/ 55 * @since Class available since Release 3.0.0 159 // There seems to be no other way to check arrays for recursion 160 // http://www.php.net/manual/en/language.types.array.php#73936 161 preg_match_all('/\n \[(\w+)\] => Array\s+\*RECURSION\*/', print_r($value, TRUE), $matches);ResourceCollection.java https://github.com/dekellum/jetty.git | Java | 477 lines
9// The Apache License v2.0 is available at 10// http://www.opensource.org/licenses/apache2.0.php 11// You may elect to redistribute this code under either of these licenses. 23import java.util.Arrays; 24import java.util.HashSet; 25import java.util.List; 417 418 HashSet<String> set = new HashSet<String>(); 419 for(Resource r : _resources)WufooApiWrapper.php https://github.com/Fourshift/Wufoo-API-Wrappers.git | PHP | 270 lines
49 * 50 * @param string $formIdentifier can be the url or hash. Remember, the URL changes with the form title, so it's best to use the hash. 51 * @return array of Form Value Objects by hash 85 /** 86 * Gets all entries from a given form or report by url or hash. Remember, the URL changes with the form/report title, so it's best to use the hash. 87 * 178 * 179 * @param string $reportIdentifier can be the url or hash. Remember, the URL changes with the report title, so it's best to use the hash. 180 * @param string $getArgs a URL encoded string to filter entries. 190 * 191 * @param string $reportIdentifier can be the url or hash. Remember, the URL changes with the report title, so it's best to use the hash. 192 * @param string $getArgs a URL encoded string to filter entries. 264 $this->curl = new WufooCurl(); 265 $result = json_decode($this->curl->deleteAuthenticated(array('hash' => $hash), $url, $this->apiKey)); 266 return new WebHookResponse($result->WebHookDeleteResult->Hash);README.md https://github.com/elrond79/pymel.git | Markdown | 289 lines
9 - graphviz: using an OS package manager like `yum`, `apt-get`, or `brew`, or 10 on windows, from an [installer](http://www.graphviz.org/Download_windows.php) 11 - python dependencies: 183 184 - the args are git tags or commit hashes. for example: 185init.pp https://bitbucket.org/cmoore4/phalconrest.git | Puppet | 298 lines
67# Set to 'true' to remove package(s) installed by module 68# Can be defined also by the (top scope) variable $php_absent 69# 213 214 if ($php::source and $php::template) { 215 fail ("PHP: cannot set both source and template") 216 } 217 if ($php::source and $php::bool_augeas) { 218 fail ("PHP: cannot set both source and augeas") 219 } 220 if ($php::template and $php::bool_augeas) { 221 fail ("PHP: cannot set both template and augeas") 263 replace => $php::manage_file_replace, 264 audit => $php::manage_audit, 265 }playlist.c https://github.com/GazNicoll/libspotify-php.git | C | 322 lines
25 26#include "php_spotify.h" 27 29 30PHP_METHOD(SpotifyPlaylist, __construct) 31{ 52 53PHP_METHOD(SpotifyPlaylist, __destruct) 54{ 58 59PHP_METHOD(SpotifyPlaylist, getName) 60{ 66 67PHP_METHOD(SpotifyPlaylist, getTracks) 68{helper.php https://github.com/nikosdion/Akeeba-Example.git | PHP | 582 lines
324 case 'sha': 325 $encrypted = base64_encode(mhash(MHASH_SHA1, $plaintext)); 326 return ($show_encrypt) ? '{SHA}' . $encrypted : $encrypted; 334 case 'md5-base64': 335 $encrypted = base64_encode(mhash(MHASH_MD5, $plaintext)); 336 return ($show_encrypt) ? '{MD5}' . $encrypted : $encrypted; 338 case 'ssha': 339 $encrypted = base64_encode(mhash(MHASH_SHA1, $plaintext . $salt) . $salt); 340 return ($show_encrypt) ? '{SSHA}' . $encrypted : $encrypted; 342 case 'smd5': 343 $encrypted = base64_encode(mhash(MHASH_MD5, $plaintext . $salt) . $salt); 344 return ($show_encrypt) ? '{SMD5}' . $encrypted : $encrypted; 461 { 462 return mhash_keygen_s2k(MHASH_SHA1, $plaintext, substr(pack('h*', md5(mt_rand())), 0, 8), 4); 463 }Heuristics.php https://gitlab.com/mrceperka/mi-paa | PHP | 598 lines
1<?php 2namespace MrCeperka\MIPAA\Heuristics; 3 4require_once 'Helpers.php'; 5 91 //generate map of items in bag 92 $resultHashed = []; 93 $outcome = []; 94 foreach ($this->result['items'] as $pair) { 95 $resultHashed[$this->formatKey($pair)] = $pair; 96 } 98 foreach ($this->input['pairsGen']() as $pair) { 99 if (!isset($resultHashed[$this->formatKey($pair)])) { 100 $outcome[$this->formatKey($pair)] = '0'; 398 399 /*echo 'maxPrice: ' . $maxPrice . PHP_EOL; 400 echo 'bits: ' . $b . PHP_EOL;default-constants.php https://gitlab.com/WPonEB/WPonEB | PHP | 363 lines
71 72 // Add define('WP_DEBUG_DISPLAY', null); to wp-config.php use the globally configured setting for 73 // display_errors and not force errors to be displayed. Use false to force display_errors off. 83 84 // Add define('SCRIPT_DEBUG', true); to wp-config.php to enable loading of non-minified, 85 // non-concatenated scripts and stylesheets. 115 * 116 * If you need more accuracy please consider using the DateTime class (https://secure.php.net/manual/en/class.datetime.php). 117 * 199 /** 200 * Used to guarantee unique hash cookies 201 * 203 */ 204 if ( !defined( 'COOKIEHASH' ) ) { 205 $siteurl = get_site_option( 'siteurl' );Network.php https://gitlab.com/Skull3x/ClearSky | PHP | 343 lines
1<?php 2/** 161 public function registerInterface(SourceInterface $interface){ 162 $this->interfaces[$hash = spl_object_hash($interface)] = $interface; 163 if($interface instanceof AdvancedSourceInterface){ 163 if($interface instanceof AdvancedSourceInterface){ 164 $this->advancedInterfaces[$hash] = $interface; 165 $interface->setNetwork($this); 173 public function unregisterInterface(SourceInterface $interface){ 174 unset($this->interfaces[$hash = spl_object_hash($interface)], 175 $this->advancedInterfaces[$hash]);DrupalKernelTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 266 lines
1<?php 2 49 // Manually create kernel to avoid replacing settings. 50 $class_loader = require $this->root . '/autoload.php'; 51 $kernel = DrupalKernel::createFromRequest($request, $class_loader, 'testing'); 52 $this->setSetting('container_yamls', []); 53 $this->setSetting('hash_salt', $this->databasePrefix); 54 if (isset($modules_enabled)) { 161 $request = Request::createFromGlobals(); 162 $class_loader = require $this->root . '/autoload.php'; 163 173 $this->setSetting('container_yamls', []); 174 $this->setSetting('hash_salt', $this->databasePrefix); 175 $this->assertInstanceOf(DrupalKernelInterface::class, $kernel->boot(), "Environment $environment should boot.");home.php https://github.com/codyaustun/PASS.git | PHP | 305 lines
1<?php // Home page to process login, signup, show html 2 2 3require_once 'info.php'; //database access information 4 22$salt = "At MIT 6.470 is one of the best IAP classes to take."; 23$hash = sha1($password.$salt); // hash password for security 24 34$query = "SELECT id,first_name FROM auth_user WHERE 35 email = '$useremail' AND password = '$hash'"; 36$result = mysql_query($query); 47echo "You have logged in!"; 48header("Location: dashboard.php"); 49 69$salt = "At MIT 6.470 is one of the best IAP classes to take."; 70$hash = sha1($password.$salt); //hash password for security 71$date = date("Y-m-d",time());Jail.php https://gitlab.com/wuhang2003/core | PHP | 489 lines
82 /** 83 * see http://php.net/manual/en/function.opendir.php 84 * 92 /** 93 * see http://php.net/manual/en/function.is_dir.php 94 * 205 /** 206 * see http://php.net/manual/en/function.file_exists.php 207 * 225 /** 226 * see http://php.net/manual/en/function.file_get_contents.php 227 * 300 /** 301 * see http://php.net/manual/en/function.hash.php 302 *theme-support.php https://gitlab.com/ravenseyedesign/ravensegg | PHP | 367 lines
1<?php 2/** 244 245// Add editor styles with cache busting hash. 246function add_editor_styles() {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 29/** 30 * PHPExcel_Style_Alignment 31 * 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{ 152 * @param array $pStyles Array containing style information 153 * @throws PHPExcel_Exception 154 * @return PHPExcel_Style_Alignmentinit.pp https://gitlab.com/billyprice1/phpservermon | Puppet | 298 lines
67# Set to 'true' to remove package(s) installed by module 68# Can be defined also by the (top scope) variable $php_absent 69# 213 214 if ($php::source and $php::template) { 215 fail ('PHP: cannot set both source and template') 216 } 217 if ($php::source and $php::bool_augeas) { 218 fail ('PHP: cannot set both source and augeas') 219 } 220 if ($php::template and $php::bool_augeas) { 221 fail ('PHP: cannot set both template and augeas') 263 replace => $php::manage_file_replace, 264 audit => $php::manage_audit, 265 }HTMLPurifier.includes.php https://github.com/zcopley/gallery3-contrib.git | PHP | 212 lines
1<?php defined("SYSPATH") or die("No direct script access."); 2 4 * @file 5 * This file was auto-generated by generate-includes.php and includes all of 6 * the core files required by HTML Purifier. Use this if performance is a 20 21require 'HTMLPurifier.php'; 22require 'HTMLPurifier/AttrCollections.php'; 22require 'HTMLPurifier/AttrCollections.php'; 23require 'HTMLPurifier/AttrDef.php'; 24require 'HTMLPurifier/AttrTransform.php'; 24require 'HTMLPurifier/AttrTransform.php'; 25require 'HTMLPurifier/AttrTypes.php'; 26require 'HTMLPurifier/AttrValidator.php'; 60require 'HTMLPurifier/Strategy.php'; 61require 'HTMLPurifier/StringHash.php'; 62require 'HTMLPurifier/StringHashParser.php';ApkInstallManager.java https://gitlab.com/Codeaurora/platform_sdk | Java | 263 lines
7 * 8 * http://www.eclipse.org/org/documents/epl-v10.php 9 * 29 30import java.util.HashSet; 31import java.util.Iterator; 72 @Override 73 public int hashCode() { 74 return (device.getSerialNumber() + project.getName() + packageName).hashCode(); 105 /** 106 * Hashset of the list of installed package. Hashset used to ensure we don't re-add new 107 * objects for the same app. 108 */ 109 private final HashSet<ApkInstall> mInstallList = new HashSet<ApkInstall>(); 110