100+ results results for 'php hash' (1926 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;static-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"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>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;?>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'],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>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 }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\";}');"; 224Font.php https://gitlab.com/rsilveira1987/Expresso | 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 }VarCloner.php https://gitlab.com/nzqadri/bejeep | 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 }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)) {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>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: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,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 storedee374469f3039f2afc01916b1c6255a7d0864358.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;SessionSelectionActivity.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 parametersProtection.php https://gitlab.com/abhijit13/taasika | 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 }QFileUploader.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 );static_member_expression.cpp https://github.com/zsj888/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>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.SnsClient.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) {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 languagesstyle.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 {};c6082b5f150b88560430c6462843036aa407184d.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" />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.paperclip.rb https://github.com/kende/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 maximallyExplosion.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)));Cache.php https://github.com/Kazuhiro-Murota/OpenPNE3.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 }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_Alignmentcs.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 }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);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();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: 185Heuristics.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.");file.php https://bitbucket.org/sudak/rating.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 directoryJail.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_Alignmenttest.php https://bitbucket.org/astawiarski/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);init.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>(); 110haml.php https://bitbucket.org/mintao/yii-phamlp.git | PHP | 287 lines
1<?php 2/** 13 * See below and HamlParser for a description of options 14 * * Add the following line in your app_controller.php 15 * <pre>var $view = 'Haml';</pre> 81 * 82 * suppressEval: boolean Whether or not attribute hashes and scripts 83 * designated by = or ~ should be evaluated. If true, the scripts are rendered 160 161 App::import('Vendor', 'HamlParser', array('file'=>'phamlp'.DS.'haml'.DS.'HamlParser.php')); 162 $this->haml = new HamlParser($options); 165 /** 166 * Renders a piece of PHP with provided parameters and returns HTML, XML, or 167 * any other string.provider_test.php https://bitbucket.org/moodle/moodle.git | PHP | 240 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 79 $this->assertEquals('https://lms.example.com', $data->issuer); 80 $this->assertEquals(hash('sha256', 'https://lms.example.com'), $data->issuer256); 81 $this->assertEquals('abc123', $data->sub); 81 $this->assertEquals('abc123', $data->sub); 82 $this->assertEquals(hash('sha256', 'abc123'), $data->sub256); 83 }php.h https://gitlab.com/Blueprint-Marketing/hhvm | C Header | 456 lines
280PHPAPI int php_write(void *buf, uint size TSRMLS_DC); 281PHPAPI int php_printf(const char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 1, 282 2); 298 299PHPAPI void php_verror(const char *docref, const char *params, int type, const char *format, va_list args TSRMLS_DC) PHP_ATTRIBUTE_FORMAT(printf, 4, 0); 300 308PHPAPI void php_error_docref0(const char *docref TSRMLS_DC, int type, const char *format, ...) 309 PHP_ATTRIBUTE_FORMAT(printf, PHP_ATTR_FMT_OFFSET + 3, PHP_ATTR_FMT_OFFSET + 4); 310PHPAPI void php_error_docref1(const char *docref TSRMLS_DC, const char *param1, int type, const char *format, ...) 310PHPAPI void php_error_docref1(const char *docref TSRMLS_DC, const char *param1, int type, const char *format, ...) 311 PHP_ATTRIBUTE_FORMAT(printf, PHP_ATTR_FMT_OFFSET + 4, PHP_ATTR_FMT_OFFSET + 5); 312PHPAPI void php_error_docref2(const char *docref TSRMLS_DC, const char *param1, const char *param2, int type, const char *format, ...) 312PHPAPI void php_error_docref2(const char *docref TSRMLS_DC, const char *param1, const char *param2, int type, const char *format, ...) 313 PHP_ATTRIBUTE_FORMAT(printf, PHP_ATTR_FMT_OFFSET + 5, PHP_ATTR_FMT_OFFSET + 6); 314#ifdef PHP_WIN32InlineTest.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 231 lines
1<?php 2 15 16class InlineTest extends \PHPUnit_Framework_TestCase 17{ 20 foreach ($this->getTestsForParse() as $yaml => $value) { 21 $this->assertSame($value, Inline::parse($yaml), sprintf('::parse() converts an inline YAML to a PHP structure (%s)', $yaml)); 22 } 29 foreach ($testsForDump as $yaml => $value) { 30 $this->assertEquals($yaml, Inline::dump($value), sprintf('::dump() converts a PHP structure to an inline YAML (%s)', $yaml)); 31 } 59 60 public function testHashStringsResemblingExponentialNumericsShouldNotBeChangedToINF() 61 {Parser.pm https://github.com/tokuhirom/rpc-xml.git | Perl | 326 lines
5# Copying and distribution are permitted under the terms of the Artistic 6# License 2.0 (http://www.opensource.org/licenses/artistic-license-2.0.php) or 7# the GNU LGPL (http://www.opensource.org/licenses/lgpl-2.1.php). 162Create a new instance of the class. Any extra data passed to the constructor 163is taken as key/value pairs (B<not> a hash reference) and attached to the 164object. 308Copying and distribution are permitted under the terms of the Artistic 309License 2.0 (L<http://www.opensource.org/licenses/artistic-license-2.0.php>) or 310the GNU LGPL 2.1 (L<http://www.opensource.org/licenses/lgpl-2.1.php>).ext_spl.cpp https://gitlab.com/iranjith4/hhvm | C++ | 384 lines
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 +----------------------------------------------------------------------+ 21#include "hphp/runtime/ext/std/ext_std_math.h" 22#include "hphp/runtime/ext/std/ext_std_file.h" 23#include "hphp/runtime/ext/string/ext_string.h" 33 34#include "hphp/runtime/vm/vm-regs.h" 35 74 HHVM_FN(mt_srand)(); 75 s_hash_mask_handle |= HHVM_FN(mt_rand)(); s_hash_mask_handle <<= 16; 76 s_hash_mask_handle |= HHVM_FN(mt_rand)(); s_hash_mask_handle <<= 16; 76 s_hash_mask_handle |= HHVM_FN(mt_rand)(); s_hash_mask_handle <<= 16; 77 s_hash_mask_handle |= HHVM_FN(mt_rand)(); s_hash_mask_handle <<= 16; 78 s_hash_mask_handle |= HHVM_FN(mt_rand)();password.c https://gitlab.com/envieidoc/advancedtomato2 | C | 460 lines
59 60static php_password_algo php_password_determine_algo(const char *hash, const size_t len) 61{ 61{ 62 if (len > 3 && hash[0] == '$' && hash[1] == '2' && hash[2] == 'y' && len == 60) { 63 return PHP_PASSWORD_BCRYPT; 193 194 algo = php_password_determine_algo(hash, (size_t) hash_len); 195 algo_name = php_password_get_algo_name(algo); 281 } 282 if (php_crypt(password, password_len, hash, hash_len, &ret) == FAILURE) { 283 RETURN_FALSE; 435 436 if (php_crypt(password, password_len, hash, hash_len, &result) == FAILURE) { 437 efree(hash);Item.php https://gitlab.com/ricardosanchez/prueba | PHP | 398 lines
1<?php 2/** 59 'subtitle' => '', 60 'hash' => '', 61 'class' => '',index.html https://github.com/koto/blog-kotowicz-net-examples.git | HTML | 321 lines
44 function mark(realurl, url, classname) { 45 var hash = hex_md5(url); 46 log($.toJSON(url) + ' is ' + classname); 46 log($.toJSON(url) + ' is ' + classname); 47 $(document.getElementById('p-' + hash)) 48 .addClass(classname) 127 .data('src', payload) 128 .attr('src', 'redirect.php?url=' + encodeURIComponent(payload)) 129 .appendTo('#images');class.FixtureBuilder.php https://github.com/dagda/ThinkUp.git | PHP | 346 lines
1<?php 2/** 85 * @param str table name (without prefix) 86 * @param array hash args of column values (optional) 87 * @param bool debug (defaults to false)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)); 118 $hash = substr($md5, -20) . substr($sha1, -20); 119 $hashes[$file] = $hash; 120 } 125 $local = str_replace($this->source.'/', '', $source); 126 $hash = $hash ?: $this->hashFile($source); 127 return $this->readManifest($local) != $hash; 130 function updateManifest($file, $hash=false) { 131 $hash = $hash ?: $this->hashFile($file); 132 $local = str_replace($this->source.'/', '', $file); 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 */ 240 241 # Hash 242 $hash = md5($Message->send_on.$Message->title.$Message->description.$UserFor_id); 242 $hash = md5($Message->send_on.$Message->title.$Message->description.$UserFor_id); 243 if ( $Message->hash != $hash ) { 244 $Message->set('hash', $hash, false); 250 ->delete('Message m') 251 ->where('m.hash = ?', $Message->hash) 252 ->execute();LiveConfigReader.java https://gitlab.com/varunkothamachu/extraction-framework | Java | 275 lines
19import java.util.ArrayList; 20import java.util.HashMap; 21import java.util.List; 77// Source ontologySource = WikiSource.fromNamespaces(Set(WikiTitle.Namespace().OntologyClass, WikiTitle.Namespace.OntologyProperty), 78// new URL("http://mappings.dbpedia.org/api.php"), Language.Default() ); 79// 81// Source mappingsSource = WikiSource.fromNamespaces(Set(WikiTitle.Namespace.Mapping), 82// new URL("http://mappings.dbpedia.org/api.php"), Language.Default() ); 83 } 94 //iterate and build the required list of extractors 95 extractors = new HashMap<Language,Map<String,ExtractorSpecification>>(); 96 extractorClasses = new HashMap<Language,List<Class>>(); 115 NodeList extractorNodes = elemLanguageExtractors.getElementsByTagName(EXTRACTOR_TAGNAME); 116 Map<String, ExtractorSpecification> langExtractors = new HashMap<String, ExtractorSpecification>(20); 117 ArrayList<Class> langExtractorClasses = new ArrayList<Class>(20);script_combiner.php https://github.com/plastic/Cake-boilerplate.git | PHP | 325 lines
1<?php 2/** 8// Include the stand-alone configuration file if it exists. 9if (is_file(CONFIGS . 'script_combiner.php')) { 10 Configure::load('script_combiner'); 115 116 // Let's generate the cache hash, and ensure we have all the files that 117 // we are going to use to process.QueryInterface.php https://gitlab.com/Griffolion/Game-Embargo-Tracker | PHP | 255 lines
1<?php 2/** 80 * 81 * - hash format: `['column1' => value1, 'column2' => value2, ...]` 82 * - operator format: `[operator, operand1, operand2, ...]` 83 * 84 * A condition in hash format represents the following SQL expression in general: 85 * `column1=value1 AND column2=value2 AND ...`. In case when a value is an array,BinaryFileResponse.php https://gitlab.com/jjpa2018/dashboard | PHP | 363 lines
1<?php 2 20 * @author Niklas Fiekas <niklas.fiekas@tu-clausthal.de> 21 * @author stealth35 <stealth35-php@live.fr> 22 * @author Igor Wiedler <igor@wiedler.ch> 146 { 147 $this->setEtag(base64_encode(hash_file('sha256', $this->file->getPathname(), true))); 148 305 306 $out = fopen('php://output', 'w'); 307 $file = fopen($this->file->getPathname(), 'r');sso.php https://gitlab.com/Lidbary/foxyshop | PHP | 242 lines
37 $new_password = $wp_user->user_pass; 38 if (isset($foxyshop_new_password_hash)) $new_password = $foxyshop_new_password_hash; 39 138 <th><label for="foxycart_customer_id"><?php _e('FoxyCart Customer ID', 'foxyshop'); ?></label></th> 139 <td><input type="text" name="foxycart_customer_id" id="foxycart_customer_id" value="<?php echo esc_attr(get_user_meta($user->ID, 'foxycart_customer_id', 1) ); ?>" /> <span class="description"><?php _e('Editing is not recommended', 'foxyshop'); ?></span></td> 140 </tr> 140 </tr> 141 <?php 142 //Custom Hook To Allow Customization of the Content that Goes Here (add your own fields). Passes in one argument: the current user ID 155 ?> 156<h3><?php _e('FoxyCart Subscriptions', 'foxyshop') ?></h3> 157<table class="widefat" cellspacing="0"> 174 <td class="column-columnname"><?php echo ($val['is_active'] == 1 ? __('Yes', 'foxyshop') : __('No', 'foxyshop')); ?></td> 175 <td class="column-columnname"><a href="<?php echo $val['sub_token_url']; ?>&cart=checkout" target="_blank"><?php _e('Update Info', 'foxyshop');?></a> | <a href="<?php echo $val['sub_token_url']; ?>&sub_cancel=true&cart=checkout" target="_blank"><?php _e('Cancel', 'foxyshop');?></a></td> 176 </tr>SdwApi.java https://jonathan.svn.codeplex.com/svn | Java | 359 lines
50 this.m_Client = Client.create (config); 51 this.m_Service = this.m_Client.resource (UriBuilder.fromUri ("http://seekdeepwithin.com/code/api.php").build ()); 52 } 97 { 98 Map<Integer, String> data = new HashMap<> (); 99 117 { 118 Map<Integer, String> data = new HashMap<> (); 119app.php https://gitlab.com/laravel.dev01/moto-land | PHP | 238 lines
1<?php 2 64 | Here you may specify the default timezone for your application, which 65 | will be used by the PHP date and date-time functions. We have gone 66 | ahead and set this to a sensible default for you out of the box. 102 | 103 | This locale will be used by the Faker PHP library when generating fake 104 | data for your database seeds. For example, this will be used to get 152 Illuminate\Foundation\Providers\FoundationServiceProvider::class, 153 Illuminate\Hashing\HashServiceProvider::class, 154 Illuminate\Mail\MailServiceProvider::class, 211 'Gate' => Illuminate\Support\Facades\Gate::class, 212 'Hash' => Illuminate\Support\Facades\Hash::class, 213 'Http' => Illuminate\Support\Facades\Http::class,Connection.php https://gitlab.com/daveson/lacitypatterns | PHP | 538 lines
1<?php 2 170 * 171 * We hash the client ID to prevent leakage of information if another client 172 * happens to get a hold of an ID. The secret *must* be lengthy, and must 188 if (extension_loaded('gmp')) { 189 $hash = hash($algo, $message); 190 $hash = gmp_strval(gmp_init('0x' . $hash, 16), 62); 192 // @codeCoverageIgnoreStart 193 $hash = hash($algo, $message); 194 // @codeCoverageIgnoreEnd 196 197 $this->id = $hash; 198 }gfm.php https://gitlab.com/relacilia/cakra | PHP | 373 lines
178 * @param string $text Text in which to preserve LaTeX 179 * @return string Text with LaTeX replaced by a hash that will be restored later 180 */ 211 protected function do_restore( $text ) { 212 foreach( $this->preserve_text_hash as $hash => $value ) { 213 $placeholder = $this->hash_maker( $hash ); 237 $this->preserve_text_hash[ $hash ] = $text; 238 $placeholder = $this->hash_maker( $hash ); 239 return $placeholder; 243 * Less glamorous than the Keymaker 244 * @param string $hash An md5 hash 245 * @return string A placeholder hash 247 protected function hash_maker( $hash ) { 248 return 'MARKDOWN_HASH' . $hash . 'MARKDOWN_HASH'; 249 }app.php https://gitlab.com/tuonglv/library_tuong | PHP | 217 lines
1<?php 2 34 | Here you may specify the default timezone for your application, which 35 | will be used by the PHP date and date-time functions. We have gone 36 | ahead and set this to a sensible default for you out of the box. 83 | Here you may configure the log settings for your application. Out of 84 | the box, Laravel uses the Monolog PHP logging library. This gives 85 | you a variety of powerful log handlers / formatters to utilize. 118 Illuminate\Foundation\Providers\FoundationServiceProvider::class, 119 Illuminate\Hashing\HashServiceProvider::class, 120 Illuminate\Mail\MailServiceProvider::class, 181 'File' => Illuminate\Support\Facades\File::class, 182 'Hash' => Illuminate\Support\Facades\Hash::class, 183 'Input' => Illuminate\Support\Facades\Input::class,DKIMSignerTest.php git://github.com/swiftmailer/swiftmailer.git | PHP | 220 lines
1<?php 2 30 $signer = new Swift_Signers_DKIMSigner(file_get_contents(dirname(dirname(dirname(__DIR__))).'/_samples/dkim/dkim.test.priv'), 'dummy.nxdomain.be', 'dummySelector'); 31 $signer->setHashAlgorithm('rsa-sha1'); 32 $signer->setSignatureTimestamp('1299879181'); 53 $signer = new Swift_Signers_DKIMSigner(file_get_contents(dirname(dirname(dirname(__DIR__))).'/_samples/dkim/dkim.test.priv'), 'dummy.nxdomain.be', 'dummySelector'); 54 $signer->setHashAlgorithm('rsa-sha256'); 55 $signer->setSignatureTimestamp('1299879181'); 67 $sig = reset($dkim); 68 $this->assertEquals($sig->getValue(), 'v=1; a=rsa-sha256; bh=f+W+hu8dIhf2VAni89o8lF6WKTXi7nViA4RrMdpD5/U=; d=dummy.nxdomain.be; h=; i=@dummy.nxdomain.be; s=dummySelector; t=1299879181; b=jqPmieHzF5vR9F4mXCAkowuphpO4iJ8IAVuioh1BFZ3VITXZj5jlOFxULJMBiiApm2keJirnh u4mzogj444QkpT3lJg8/TBGAYQPdcvkG3KC0jdyN6QpSgpITBJG2BwWa+keXsv2bkQgLRAzNx qRhP45vpHCKun0Tg9LrwW/KCg='); 69 } 70 71 // Relaxed/Relaxed Hash Signing 72 public function testSigningRelaxedRelaxed256() 76 $signer = new Swift_Signers_DKIMSigner(file_get_contents(dirname(dirname(dirname(__DIR__))).'/_samples/dkim/dkim.test.priv'), 'dummy.nxdomain.be', 'dummySelector'); 77 $signer->setHashAlgorithm('rsa-sha256'); 78 $signer->setSignatureTimestamp('1299879181');Normal.php https://gitlab.com/koutyan777/Genisys | PHP | 305 lines
1<?php 2 112 $hash = $x * 2345803 ^ $z * 9236449 ^ $this->level->getSeed(); 113 $hash *= $hash + 223; 114 $xNoise = $hash >> 20 & 3; 114 $xNoise = $hash >> 20 & 3; 115 $zNoise = $hash >> 22 & 3; 116 if($xNoise == 3){ 231 }else{ 232 $index = Level::chunkHash($chunkX * 16 + $x + $sx, $chunkZ * 16 + $z + $sz); 233 if(isset($biomeCache[$index])){CakeTestFixture.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 328 lines
1<?php 2/** 2/** 3 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> 4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 11 * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests 12 * @package Cake.TestSuite.Fixture 12 * @package Cake.TestSuite.Fixture 13 * @since CakePHP(tm) v 1.2.0.4667 14 * @license http://www.opensource.org/licenses/mit-license.php MIT License 34/** 35 * CakePHP's DBO driver (e.g: DboMysql). 36 * 184 if ($records !== false && !empty($records)) { 185 $this->records = Hash::extract($records, '{n}.' . $model->alias); 186 }