100+ results for 'php md5'

Not the results you expected?

Query.php (https://github.com/mpous/mandango.git) PHP · 606 lines

1 <?php

2

3 /*

51 $hash = $this->repository->getDocumentClass();

52

53 if (version_compare(PHP_VERSION, '5.3.6', '=>')) {

54 $debugBacktrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);

55 } else {

73 }

74 }

75 $this->hash = md5($hash);

76

77 $this->criteria = array();

1.2-rc1.php (https://github.com/quarkness/piwik.git) PHP · 147 lines

1 <?php

2 /**

3 * Piwik - Open source web analytics

33 ADD visitor_days_since_last SMALLINT(5) UNSIGNED NOT NULL,

34 ADD visitor_days_since_first SMALLINT(5) UNSIGNED NOT NULL,

35 ADD `config_id` BINARY(8) NOT NULL AFTER `config_md5config`,

36 ADD custom_var_k1 VARCHAR(100) DEFAULT NULL,

37 ADD custom_var_v1 VARCHAR(100) DEFAULT NULL,

73 'UPDATE '.Piwik_Common::prefixTable('log_visit') .'

74 SET idvisitor = binary(unhex(substring(visitor_idcookie,1,16))),

75 config_id = binary(unhex(substring(config_md5config,1,16)))

76 ' => false,

77 'UPDATE '.Piwik_Common::prefixTable('log_conversion') .'

82 'ALTER TABLE `'. Piwik_Common::prefixTable('log_visit') .'`

83 DROP visitor_idcookie,

84 DROP config_md5config

85 ' => false,

86 'ALTER TABLE `'. Piwik_Common::prefixTable('log_conversion') .'`

string_helper.php (https://github.com/omaryak/seaforium.git) PHP · 310 lines

1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

2 /**

3 * CodeIgniter

4 *

5 * An open source application development framework for PHP 4.3.2 or newer

6 *

7 * @package CodeIgniter

127 * except those found in http://

128 *

129 * http://www.some-site.com//index.php

130 *

131 * becomes:

132 *

133 * http://www.some-site.com/index.php

134 *

135 * @access public

Message.php (https://github.com/Riges/KawaiViewModel.git) PHP · 246 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: Message.php 24593 2012-01-05 20:35:02Z matthew $

21 */

22

23

24 /**

25 * A message envelope that can be passed to Zend_Wildfire_Plugin_FirePhp to be

26 * logged to Firebug instead of a variable.

27 *

32 * @license http://framework.zend.com/license/new-bsd New BSD License

33 */

34 class Zend_Wildfire_Plugin_FirePhp_Message

35 {

36 /**

recherche.html (https://bitbucket.org/pombredanne/spip-zone-treemap.git) HTML · 162 lines

29 <h2><:info_rubriques_trouvees:> : [(#TOTAL_BOUCLE)]</h2>

30 <BOUCLE_rubriques(RUBRIQUES) {recherche} {lang_select=non} {par points} {inverse}{tout} >

31 <h3><a href="#URL_SITE_SPIP/spip.php?action=converser&amp;redirect=#URL_SITE_SPIP%2F#URL_RUBRIQUE&amp;var_lang=#LANG" hreflang="#LANG"[title="(#DESCRIPTIF|textebrut|entites_html)"]>[(#TITRE|supprimer_numero)]</a> [<dfn><small>&#8212; (#LANG)</small></dfn>]</h3>

32 </BOUCLE_rubriques>

33 <br />

36 <h2><:info_articles_trouves:> : [(#TOTAL_BOUCLE)]</h2>

37 <BOUCLE_articles(ARTICLES) {recherche} {lang_select=non} {par points} {inverse} {tout} >

38 <h3><a href="#URL_SITE_SPIP/spip.php?action=converser&amp;redirect=#URL_SITE_SPIP%2F#URL_ARTICLE&amp;var_lang=#LANG" hreflang="#LANG" [title="(#DESCRIPTIF|textebrut|entites_html)"]>[(#TITRE|supprimer_numero)]</a></h3>

39 <div class="detail">

40 [(#DATE|nom_jour)] [(#DATE|affdate)]

92 <li class="menu-item">

93 <span>[(#DATE|affdate_court)]</span>

94 <a href="#URL_SITE_SPIP/spip.php?action=converser&amp;redirect=#URL_SITE_SPIP%2F#URL_BREVE&amp;var_lang=#LANG" hreflang="#LANG"[title="(#DESCRIPTIF|textebrut|entites_html)"]>[(#TITRE|supprimer_numero)]</a>

95 </li>

96 </BOUCLE_breves>

class.attachment.php (https://gitlab.com/billyprice1/osTicket) PHP · 213 lines

1 <?php

2 /*********************************************************************

3 class.attachment.php

14 vim: expandtab sw=4 ts=4 sts=4:

15 **********************************************************************/

16 require_once(INCLUDE_DIR.'class.ticket.php');

17 require_once(INCLUDE_DIR.'class.file.php');

admin.php (https://github.com/kelios/imshop.git) PHP · 216 lines

1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

2

3 //error_reporting(0);

89 $this->load->helper('file');

90

91 $name = md5( time() ).'.'.$ext;

92 write_file($this->settings['upload_folder'].$name, $image_data);

93

214 }

215

216 /* End of file admin.php */

217

User.php (https://github.com/josephwegner/holidaywish.es.git) PHP · 264 lines

1 <?php

2

3 $classBuilder['User'] = new UserModel();

236 private function encodePassword($user, $pass, $salt) {

237 $h_user = sha1($user);

238 $h_pass = md5($pass); //Mix in an md5, so if our DB ever gets cracked, it's not painfully obvious how we did hashed things.

239 $h_salt = sha1($salt);

240

DoctrineAclCache.php (https://bitbucket.org/hanutimes/hanutimes.git) PHP · 223 lines

1 <?php

2

3 /*

207 private function getDataKeyByIdentity(ObjectIdentityInterface $oid)

208 {

209 return $this->prefix.md5($oid->getType()).sha1($oid->getType())

210 .'_'.md5($oid->getIdentifier()).sha1($oid->getIdentifier());

users_model.php (https://bitbucket.org/jo_racingdesign/codecms.git) PHP · 238 lines

1 <?php defined('BASEPATH') OR exit('No direct script access allowed');

2

3 /**

Record.php (https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git) PHP · 169 lines

1 <?php

2 /*+***********************************************************************************

3 * The contents of this file are subject to the vtiger CRM Public License Version 1.0

8 * All Rights Reserved.

9 *************************************************************************************/

10 vimport('~~modules/PickList/DependentPickListUtils.php');

11

12 class Settings_PickListDependency_Record_Model extends Settings_Vtiger_Record_Model {

vardefs.php (https://github.com/joac/sugarcrm_dev.git) PHP · 196 lines

1 <?php

2 /*********************************************************************************

3 * SugarCRM Community Edition is a customer relationship management program developed by

LoggerDataCollector.php (https://gitlab.com/Loupak/Laravel-GRUD) PHP · 216 lines

1 <?php

2

3 /*

123

124 if (isset($context['type'], $context['file'], $context['line'], $context['level'])) {

125 $errorId = md5("{$context['type']}/{$context['line']}/{$context['file']}\x00{$log['message']}", true);

126 $silenced = !($context['type'] & $context['level']);

127 if (isset($this->errorNames[$context['type']])) {

CallbackCache.php (https://github.com/zucchi/zf2.git) PHP · 209 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

171 }

172

173 return md5($callbackKey) . $this->generateArgumentsKey($args);

174 }

175

205 }

206

207 return md5($serializedArgs);

208 }

209 }

AbstractFont.php (https://github.com/JojoBombardo/zf2.git) PHP · 218 lines

1 <?php

2 /**

3 * Zend Framework

HashTest.php (https://github.com/Exercise/zf2.git) PHP · 189 lines

1 <?php

2 /**

3 * Zend Framework

28

29 // Call Zend_Validate_File_HashTest::main() if this source file is executed directly.

30 if (!defined("PHPUnit_MAIN_METHOD")) {

31 define("PHPUnit_MAIN_METHOD", "Zend_Validate_File_HashTest::main");

50 * @group Zend_Validate

51 */

52 class HashTest extends \PHPUnit_Framework_TestCase

53 {

54 /**

59 public static function main()

60 {

61 $suite = new \PHPUnit_Framework_TestSuite("Zend_Validate_File_HashTest");

62 $result = \PHPUnit_TextUI_TestRunner::run($suite);

DefaultOptions.php (https://github.com/Exercise/symfony.git) PHP · 320 lines

1 <?php

2

3 /*

18 * Helper for specifying and resolving inter-dependent options.

19 *

20 * Options are a common pattern for initializing classes in PHP. Avoiding the

21 * problems related to this approach is however a non-trivial task. Usually,

22 * both classes and subclasses should be able to set default option values.

AuthRbac.php (https://github.com/Howard3/li3_access.git) PHP · 196 lines

1 <?php

2

3 namespace li3_access\extensions\adapter\security\access;

MasterFactory.php (https://github.com/PHPGangsta/factory.git) PHP · 194 lines

1 <?php

2 /**

3 * Copyright (c) 2011 Stefan Priebsch <stefan@priebsch.de>

127 }

128

129 $result .= 'Master Factory: "' . get_class($this) . '"' . PHP_EOL;

130

131 foreach ($reverseMap as $factory => $types) {

132 $result .= PHP_EOL . 'Factory "' . $factory . '" can instantiate the following types:' . PHP_EOL;

133

134 foreach ($types as $type) {

135 $result .= '- ' . $type . PHP_EOL;

136 }

137 }

Change.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 204 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

101

102 if (null === $key) {

103 $key = md5($this->getRandom()->getRandomString(ConfigOptionsListConstants::STORE_KEY_RANDOM_STRING_SIZE));

104 }

105 $this->encryptor->setNewKey($key);

110 $configData = [$encryptSegment->getFileKey() => $encryptSegment->getData()];

111

112 // update database and config.php

113 $this->beginTransaction();

114 try {

PointcutMethodNameFilterTest.php (https://github.com/crashd0wn/fx-viper.git) PHP · 147 lines

1 <?php

2 namespace TYPO3\FLOW3\Tests\Unit\AOP\Pointcut;

3

22 * */

23

24 require_once (FLOW3_PATH_FLOW3 . 'Tests/Unit/AOP/Fixtures/MethodsTaggedWithSomething.php');

25

26 /**

35 */

36 public function matchesIgnoresFinalMethodsEvenIfTheirNameMatches() {

37 $className = 'TestClass' . md5(uniqid(mt_rand(), TRUE));

38 eval("

39 class $className {

55 */

56 public function matchesTakesTheVisibilityModifierIntoAccountIfOneWasSpecified() {

57 $className = 'TestClass' . md5(uniqid(mt_rand(), TRUE));

58 eval("

59 class $className {

Message.php (https://gitlab.com/devtoannh/cafe) PHP · 246 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: Message.php 23775 2011-03-01 17:25:24Z ralph $

21 */

22

23

24 /**

25 * A message envelope that can be passed to Zend_Wildfire_Plugin_FirePhp to be

26 * logged to Firebug instead of a variable.

27 *

32 * @license http://framework.zend.com/license/new-bsd New BSD License

33 */

34 class Zend_Wildfire_Plugin_FirePhp_Message

35 {

36 /**

api.php (https://github.com/mmakaay/Modules.git) PHP · 195 lines

1 <?php

2

3 // Add avatar images to Phorum messages.

183

184 $url = 'http://www.gravatar.com/avatar/' .

185 md5(strtolower(trim($user['email']))) .

186 "?s=$size";

187

HashTest.php (https://github.com/Thinkscape/zf2.git) PHP · 181 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

17 * @group Zend_Validator

18 */

19 class HashTest extends \PHPUnit_Framework_TestCase

20 {

21 /**

32 array(array('9f8d07e2', '7f8d07e2'), $testFile, false, 'fileHashDoesNotMatch'),

33 array(

34 array('ed74c22109fe9f110579f77b053b8bc3', 'algorithm' => 'md5'),

35 $testFile, true, ''

36 ),

37 array(

38 array('4d74c22109fe9f110579f77b053b8bc3', 'algorithm' => 'md5'),

39 $testFile, false, 'fileHashDoesNotMatch'

40 ),

SelectDecoratorTest.php (https://github.com/Thinkscape/zf2.git) PHP · 109 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

15 use Zend\Db\Adapter\Platform\SqlServer as SqlServerPlatform;

16

17 class SelectDecoratorTest extends \PHPUnit_Framework_TestCase

18 {

19

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

25 * @version 1.7.9, 2013-06-02

34 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)

35 */

36 class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable

37 {

38 /* Horizontal alignment styles */

142 * $objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray(

143 * array(

144 * 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,

145 * 'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER,

180 }

181 } else {

182 throw new PHPExcel_Exception("Invalid style array passed.");

183 }

184 return $this;

mysms.group.php (https://gitlab.com/mattyhead/mysms) PHP · 285 lines

1 <?php

2 /**

3 * MySMS - Simple SMS Component for Joomla

9 * $Author: axel $

10 * $Rev: 203 $

11 * $HeadURL: svn://willcodejoomlaforfood.de/mysms/trunk/administrator/components/com_mysms/mysms.group.php $

12 *

13 * $Id: mysms.group.php 203 2010-02-04 18:59:38Z axel $

15 * All rights reserved.

16 *

17 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php

18 * MySMS! is free software. This version may have been modified pursuant

19 * to the GNU General Public License, and as distributed it includes or

29 defined( '_JEXEC' ) or die( 'Restricted access' );

30

31 if( defined( 'MYSMS_BACKEND_GROUPS_PHP' ) == true )

32 {

33 return;

Grid.php (https://github.com/arush/desparation-deprecated.git) PHP · 162 lines

1 <?php

2

3 class Ebizmarts_SagePaySuite_Block_Adminhtml_Transaction_Grid extends Mage_Adminhtml_Block_Widget_Grid

ArrayBeastTest.php (https://bitbucket.org/cfralick/arraybeast.git) PHP · 192 lines

1 <?php

2

3 namespace ArrayBeast\Tests;

5 use ArrayBeast\ArrayBeast;

6

7 class ArrayBeastTest extends \PHPUnit_Framework_TestCase

8 {

9 public $sample_data;

25 $size = rand(5, 40);

26 for($i = 1; $i <= $size; $i++) {

27 $data[(String) substr(md5(uniqid(rand())), 2,20)] = substr(md5(rand()), 1, 18);

28 }

29 return $data;

style.php (https://github.com/shafiqissani/Jewelery-Ecommerce-.git) PHP · 262 lines

47 float: right;

48 position: relative;

49 <?php if($_GET['wrapper_border'] > 0) : ?>border: <?php echo $_GET['wrapper_border']; ?>px solid #e6e6e6;<?php endif; ?>

50 }

51

83 <?php endif; ?>

84 <?php if($_GET['text_block_position'] == 1) : ?>width: <?php echo $text_block_width; ?>px;<?php else : ?>width: <?php echo $_GET['slide_width'];?>px;<?php endif; ?>

85 <?php if($_GET['text_block_position'] == 1) : ?>height: <?php echo $_GET['slide_height']; ?>px;<?php else : ?>height: <?php echo $_GET['text_block_height']; ?>px;<?php endif; ?>

88 <?php if($_GET['text_block_position'] == 0) : ?>bottom: <?php echo $_GET['module_height']-$_GET['slide_height']-$_GET['image_y'];?>px;<?php endif; ?>

89 <?php if($_GET['text_block_position'] == 1) : ?>left: <?php echo $_GET['text_block_margin']; ?>px;<?php else : ?>left: <?php echo $_GET['image_x']; ?>px;<?php endif; ?>

90 background-color: <?php echo $text_overlay_bgcolor;?>;

97 <?php if($_GET['text_block_position'] == 1) : ?>width: <?php echo $text_block_width-10; ?>px;<?php else : ?>width: 90%;margin: 0 5%;<?php endif; ?>

98 <?php if($_GET['text_block_position'] == 1) : ?>height: <?php echo $text_block_height-10; ?>px;<?php else : ?>height: <?php echo $_GET['text_block_height']; ?>px;<?php endif; ?>

99 <?php if($_GET['text_block_position'] == 1) : ?>left: <?php echo $_GET['text_block_margin']; ?>px;<?php endif; ?>

100 position: absolute;

101 <?php if($_GET['text_block_position'] == 1) : ?>top: <?php echo $text_block_top; ?>px;<?php else : ?>bottom: 0;<?php endif; ?>

102 }

103

Message.php (https://github.com/praveensingh85/MyEventDashboard1.git) PHP · 246 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: Message.php 20096 2010-01-06 02:05:09Z bkarwin $

21 */

22

23

24 /**

25 * A message envelope that can be passed to Zend_Wildfire_Plugin_FirePhp to be

26 * logged to Firebug instead of a variable.

27 *

32 * @license http://framework.zend.com/license/new-bsd New BSD License

33 */

34 class Zend_Wildfire_Plugin_FirePhp_Message

35 {

36 /**

anonymization.php (https://gitlab.com/morganestes/wordpress-develop) PHP · 247 lines

1 <?php

2 /**

3 * Test anonymization functions.

11 * Class Tests_Functions_Anonymization.

12 *

13 * @group functions.php

14 * @group privacy

15 *

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

25 * @version ##VERSION##, ##DATE##

34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)

35 */

36 class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable

37 {

38 /* Horizontal alignment styles */

142 * $objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray(

143 * array(

144 * 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,

145 * 'vertical' => PHPExcel_Style_Alignment::VERTICAL_CENTER,

180 }

181 } else {

182 throw new PHPExcel_Exception("Invalid style array passed.");

183 }

184 return $this;

elgg-plugin.php (https://github.com/mrclay/Elgg-leaf.git) PHP · 253 lines

1 <?php

2

3 use Elgg\Groups\Middleware\LimitedGroupCreation;

4

5 require_once(__DIR__ . '/lib/functions.php');

6

7 $membership = __DIR__ . '/actions/groups/membership/';

27 // membership actions

28 'groups/invite' => [

29 'filename' => "{$membership}invite.php",

30 ],

31 'groups/join' => [

32 'filename' => "{$membership}join.php",

33 ],

34 'groups/leave' => [

login.php (https://github.com/gregorysmart/MODx.git) PHP · 178 lines

1 <?php

2 /**

3 * Properly log in the user and set up the session.

36 /* If the event fired, loop through the event array and fail if there's an error message */

37 if (is_array($rt)) {

38 foreach ($rt as $key => $value) { /* php4 compatible */

39 if ($value !== true) {

40 return $modx->error->failure($value);

129 if (!$rt || (is_array($rt) && !in_array(true, $rt))) {

130 /* check user password - local authentication */

131 if($user->get('password') != md5($givenPassword)) {

132 return $modx->error->failure($modx->lexicon('login_username_password_incorrect'));

133 }

MQTTConnectClient.c (https://github.com/hradec/Marlin.git) C · 214 lines

9 * http://www.eclipse.org/legal/epl-v10.html

10 * and the Eclipse Distribution License is available at

11 * http://www.eclipse.org/org/documents/edl-v10.php.

12 *

13 * Contributors:

ipn.php (https://github.com/steebo/CakePHP-Paypal-IPN-Plugin.git) PHP · 120 lines

1 <?php

2 class ipnSchema extends CakeSchema {

3 var $name = 'ipn';

Pagefile.php (https://github.com/Cahya/P21.git) PHP · 284 lines

1 <?php

2

3 /**

232

233 /**

234 * Return a unique MD5 hash representing this Pagefile

235 *

236 */

237 public function hash() {

238 if($hash = parent::get('hash')) return $hash;

239 $this->set('hash', md5($this->basename()));

240 return parent::get('hash');

241 }

UserController.php (https://github.com/duofei/dawuweiba.git) PHP · 227 lines

1 <?php

2

3 class UserController extends Controller

102 $user_info = User::model()->findByPk($user_id);

103 $user_info->attributes = $_POST['User'];

104 $user_info->password = md5($_POST['User']['clear_password']);

105 if(!$user_info->save()) {

106 user()->setFlash('errorSummary',CHtml::errorSummary($user_info));

SelectDecoratorTest.php (https://github.com/Ocramius/zf2.git) PHP · 107 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

15 use Zend\Db\Adapter\Platform\SqlServer as SqlServerPlatform;

16

17 class SelectDecoratorTest extends \PHPUnit_Framework_TestCase

18 {

19 /**

SubscriptionTypeDAO.inc.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 478 lines

1 <?php

2

3 /**

4 * @file classes/subscription/SubscriptionTypeDAO.inc.php

5 *

6 * Copyright (c) 2003-2009 John Willinsky

14 */

15

16 // $Id: SubscriptionTypeDAO.inc.php,v 1.29 2009/08/19 16:28:32 michael Exp $

17

18

Wincache.php (https://github.com/loudertech/kef.git) PHP · 201 lines

1 <?php

2 /**

3 * PHPExcel

4 *

5 * Copyright (c) 2006 - 2010 PHPExcel

22 * @package PHPExcel_CachedObjectStorage

23 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version 1.7.3c, 2010-06-01

32 * @category PHPExcel

33 * @package PHPExcel_CachedObjectStorage

34 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)

35 */

36 class PHPExcel_CachedObjectStorage_Wincache extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache {

37

38 private $_cachePrefix = null;

S3.php (https://github.com/EthanBlast/Glam-Star-Life.git) PHP · 452 lines

1 <?php

2

3 /**

4 * Amazon S3 CDN engine

5 */

6 require_once W3TC_LIB_W3_DIR . '/Cdn/Base.php';

7

8 if (!class_exists('S3')) {

9 require_once W3TC_LIB_DIR . '/S3.php';

10 }

11

125

126 if ($info) {

127 $hash = @md5_file($local_path);

128 $s3_hash = (isset($info['hash']) ? $info['hash'] : '');

129

view.php (https://bitbucket.org/tumivn/phpexamples.git) PHP · 437 lines

290 public function isCached($file, $id = null)

291 {

292 $cacheId= $id ? md5($id . basename($file)) : md5(basename($file));

293 $filename = $this->cache_dir . '/' . $cacheId . '/' . basename($file);

294 if (is_file($filename))

317 {

318 // create the cache id

319 $cacheId = $id ? md5($id . basename($file)) : md5(basename($file));

320

321 // set the cacheDir eg: /tmp/cache

355 private function getCache($file, $id = null)

356 {

357 $cacheId= $id ? md5($id . basename($file)) : md5(basename($file));

358 $filename = $this->cache_dir . '/' . $cacheId . '/' . basename($file);

359 /*** read the cache file into a variable ***/

multipleError_handler.php (https://gitlab.com/Nightprince/Warcry-CMS) PHP · 297 lines

1 <?php

2 if (!defined('init_engine'))

3 {

RTSearchHandler.inc.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 196 lines

1 <?php

2

3 /**

4 * @file RTSearchHandler.inc.php

5 *

6 * Copyright (c) 2003-2009 John Willinsky

13 */

14

15 // $Id: RTSearchHandler.inc.php,v 1.27 2009/09/22 21:20:36 asmecher Exp $

16

17

ot_loworderfee.php (https://github.com/severnaya99/Sg-2010.git) PHP · 84 lines

1 <?php

2 /**

3 * $Id: ot_loworderfee.php 58 2005-12-15 16:21:17Z Michael $

default.rb (https://github.com/urtak/cookbooks_public.git) Ruby · 222 lines

3 #

4 # Copyright RightScale, Inc. All rights reserved. All access and use subject to the

5 # RightScale Terms of Service available at http://www.rightscale.com/terms.php and,

6 # if applicable, other agreements such as a RightScale Master Subscription Agreement.

7

189 # Use to install the client on any system that needs to connect to the server.

190 # Also should install language binding packages For example, ruby client gem

191 # java client jar, php client modules, etc

192 #

193 add_action :install_client

AllTests.php (https://github.com/mprashad/ch3-dev-preview.git) PHP · 142 lines

1 <?php

2 /*****************************************************************************

3 * AllTests.php

22 *****************************************************************************/

23

24 require_once dirname(__FILE__) . '/../TestHelper.php';

25

26 if (!defined('PHPUnit_MAIN_METHOD')) {

27 define('PHPUnit_MAIN_METHOD', 'Models_AllTests::main');

28 }

29

31 * Models_NSDRDefinitionTest

32 */

33 require_once 'Models/NSDRDefinitionTest.php';

34

35 class Models_AllTests {

ListViewSession.php (https://github.com/vtiger-jp/vtigercrm-5.1.x-ja.git) PHP · 199 lines

1 <?php

2 /*********************************************************************************

3 ** The contents of this file are subject to the vtiger CRM Public License Version 1.0

10 ********************************************************************************/

11

12 require_once('include/logging.php');

13 require_once('modules/CustomView/CustomView.php');

Message.php (https://github.com/basdog22/Qool.git) PHP · 246 lines

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)

19 * @license http://framework.zend.com/license/new-bsd New BSD License

20 * @version $Id: Message.php 24594 2012-01-05 21:27:01Z matthew $

21 */

22

23

24 /**

25 * A message envelope that can be passed to Zend_Wildfire_Plugin_FirePhp to be

26 * logged to Firebug instead of a variable.

27 *

32 * @license http://framework.zend.com/license/new-bsd New BSD License

33 */

34 class Zend_Wildfire_Plugin_FirePhp_Message

35 {

36 /**

HelperRegistryTest.php (https://gitlab.com/0072016/0072016-fbphp) PHP · 334 lines

1 <?php

2 /**

3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)

4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)

5 *

9 *

10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)

11 * @link http://cakephp.org CakePHP(tm) Project

12 * @since 2.0.0

13 * @license http://www.opensource.org/licenses/mit-license.php MIT License

Rscf.php (https://github.com/elleeott/WPOC-boilerplate.git) PHP · 359 lines

1 <?php

2

3 /**

8 }

9

10 require_once W3TC_LIB_W3_DIR . '/Cdn/Base.php';

11 require_once W3TC_LIB_CF_DIR . '/cloudfiles.php';

37

38 /**

39 * PHP5 Constructor

40 *

41 * @param array $config

54

55 /**

56 * PHP4 Constructor

57 *

58 * @param array $config

faq.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 114 lines

99 This draft incorporates material from the Interactive FAQ section

100 of the <ulink url=

101 "http://community.jedit.org/modules.php?op=modload&amp;name=faq&amp;file=index"

102 >jEdit Community web site</ulink>.

103 </releaseinfo>

Calendar.php (https://github.com/planetenkiller/TimeIt-zk-12.git) PHP · 182 lines

1 <?php

2 /**

3 * TimeIt Calendar Module

ReportGrid.php (https://github.com/germc/client-libraries.git) PHP · 325 lines

1 <?php

2 /**

3 * Provides access to the Report Grid API platform.

mbinfo.php (https://github.com/inode64/PhpSpeed.git) PHP · 211 lines

1 <?php

2 /***************************************************************************

3 * Copyright (C) 2006 by phpSysInfo - A PHP System Information Script *

4 * http://phpsysinfo.sourceforge.net/ *

94 $_text .= "Unknown - Not connected?";

95 } else {

96 $_text .= create_bargraph( $XPath->getData( "/phpsysinfo/MBinfo/Temperature/Item[" . $i . "]/Value" ), $XPath->getData( "/phpsysinfo/MBinfo/Temperature/Item[" . $i . "]/Limit" ), $scale_factor );

97 }

98 $_text .= temperature( $XPath->getData( "/phpsysinfo/MBinfo/Temperature/Item[" . $i . "]/Value" ) ) . "</font></td>\n"

191 for( $i = 1, $max = sizeof( $XPath->getDataParts( "/phpsysinfo/MBinfo/Fans" ) ); $i < $max; $i++ ) {

192 $_text .= "<p>\n" . $XPath->getData( "/phpsysinfo/MBinfo/Fans/Item[" . $i . "]/Label" ) . ": " . round( $XPath->getData( "/phpsysinfo/MBinfo/Temperature/Item[" . $i . "]/Value" ) ) . "&nbsp;" . $text['rpm_mark'] . "</p>\n";

193 }

194 $_text .= "</card>\n";

204 for( $i = 1, $max = sizeof( $XPath->getDataParts( "/phpsysinfo/MBinfo/Voltage" ) ); $i < $max; $i++ ) {

205 $_text .= "<p><br/>\n" . $XPath->getData( "/phpsysinfo/MBinfo/Voltage/Item[" . $i . "]/Label" ) . ": " . $XPath->getData( "/phpsysinfo/MBinfo/Voltage/Item[" . $i . "]/Value" ) . "&nbsp;" . $text['voltage_mark'] . "<br/>\n";

206 }

207 $_text .= "</card>\n";

delete_all.php (https://gitlab.com/dev.essetel/sjnuri) PHP · 164 lines

1 <?php

2 if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가

3

6

7 // 4.11

8 @include_once($board_skin_path.'/delete_all.head.skin.php');

9

10 $count_write = 0;

23

24 // 사용자 코드 실행

25 @include_once($board_skin_path.'/delete_all.skin.php');

26

27 // 거꾸로 읽는 이유는 답변글부터 삭제가 되어야 하기 때문임

156

157 // 4.11

158 @include_once($board_skin_path.'/delete_all.tail.skin.php');

159

160 delete_cache_latest($bo_table);

PartnersSubscriptions.php (https://gitlab.com/Japang-Jawara/jawara-penilaian) PHP · 183 lines

1 <?php

2 /*

3 * Copyright 2014 Google Inc.

sitemailer_.php (https://gitlab.com/nvtdn2006/azora) PHP · 384 lines

1 <?php

2 class SiteMailer

3 {

26 $config = Factory::getConfig();

27 $cryptographer = Factory::getCryptographer();

28 $this->randomHash = $cryptographer->MD5(date('r', time()));

29 $this->fromMail = $config['PRMSConfig']->noreply_mail;

30 $this->setheaders();

51

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";

55 }

89 /*if ($this->attachment != '')

90 {

91 $this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";

92 $this->msgBody .= $this->attachment;

93 $this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";

ContentData.java (https://github.com/alfresco-mirror/alfresco-mirror.git) Java · 325 lines

17 * along with Alfresco. If not, see <http://www.gnu.org/licenses/>.

18 */

19 package org.alfresco.module.phpIntegration.lib;

20

21 import org.alfresco.model.ContentModel;

22 import org.alfresco.module.phpIntegration.PHPProcessorException;

23 import org.alfresco.service.cmr.repository.ContentReader;

24 import org.alfresco.service.cmr.repository.ContentService;

109

110 /**

111 * @see org.alfresco.module.phpIntegration.lib.ScriptObject#getScriptObjectName()

112 */

113 public String getScriptObjectName()

class-wc-admin-profile.php (https://gitlab.com/haque.mdmanzurul/barongbarong) PHP · 304 lines

157 <th><label for="<?php echo esc_attr( $key ); ?>"><?php echo esc_html( $field['label'] ); ?></label></th>

158 <td>

159 <input type="text" name="<?php echo esc_attr( $key ); ?>" id="<?php echo esc_attr( $key ); ?>" value="<?php echo esc_attr( get_user_meta( $user->ID, $key, true ) ); ?>" class="regular-text" /><br/>

160 <span class="description"><?php echo wp_kses_post( $field['description'] ); ?></span>

209 <?php if ( empty( $user->woocommerce_api_consumer_key ) ) : ?>

210 <input name="woocommerce_generate_api_key" type="checkbox" id="woocommerce_generate_api_key" value="0" />

211 <span class="description"><?php _e( 'Generate API Key', 'woocommerce' ); ?></span>

212 <?php else : ?>

213 <strong><?php _e( 'Consumer Key:', 'woocommerce' ); ?>&nbsp;</strong><code id="woocommerce_api_consumer_key"><?php echo $user->woocommerce_api_consumer_key ?></code><br/>

214 <strong><?php _e( 'Consumer Secret:', 'woocommerce' ); ?>&nbsp;</strong><code id="woocommerce_api_consumer_secret"><?php echo $user->woocommerce_api_consumer_secret; ?></code><br/>

215 <strong><?php _e( 'Permissions:', 'woocommerce' ); ?>&nbsp;</strong><span id="woocommerce_api_key_permissions"><select name="woocommerce_api_key_permissions" id="woocommerce_api_key_permissions"><?php

216 foreach ( $permissions as $permission_key => $permission_name ) { echo '<option value="' . esc_attr( $permission_key ) . '" '.selected($permission_key, $user->woocommerce_api_key_permissions, false).'>'.esc_html( $permission_name ) . '</option>';} ?>

217 </select></span><br/>

unicode.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 269 lines

1 <?php

2 /**

3 * @version $Id: unicode.php,v 1.1 2008/10/10 20:52:53 mj Exp $

8 * Portions created by the Initial Developer are Copyright (C) 1998

9 * the Initial Developer. All Rights Reserved.

10 * Ported to PHP by Henri Sivonen (http://hsivonen.iki.fi)

11 * Slight modifications to fit with phputf8 library by Harry Fuecks (hfuecks gmail com)

12 * @see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/nsUTF8ToUnicode.cpp

13 * @see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/nsUnicodeToUTF8.cpp

14 * @see http://hsivonen.iki.fi/php-utf8/

15 * @package utf8

16 * @subpackage unicode

24 * are not allowed.

25 * Returns false if the input string isn't a valid UTF-8 octet sequence

26 * and raises a PHP error at level E_USER_WARNING

27 * Note: this function has been modified slightly in this library to

28 * trigger errors on encountering bad bytes

mail.php (https://gitlab.com/shapcy/opencart) PHP · 427 lines

103 $header .= 'Return-Path: ' . $this->from . PHP_EOL;

104 $header .= 'X-Mailer: PHP/' . phpversion() . PHP_EOL;

105 $header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . PHP_EOL . PHP_EOL;

113 $message = '--' . $boundary . PHP_EOL;

114 $message .= 'Content-Type: multipart/alternative; boundary="' . $boundary . '_alt"' . PHP_EOL . PHP_EOL;

115 $message .= '--' . $boundary . '_alt' . PHP_EOL;

116 $message .= 'Content-Type: text/plain; charset="utf-8"' . PHP_EOL;

117 $message .= 'Content-Transfer-Encoding: 8bit' . PHP_EOL . PHP_EOL;

118

119 if ($this->text) {

126 $message .= 'Content-Type: text/html; charset="utf-8"' . PHP_EOL;

127 $message .= 'Content-Transfer-Encoding: 8bit' . PHP_EOL . PHP_EOL;

128 $message .= $this->html . PHP_EOL;

144 $message .= 'Content-ID: <' . basename(urlencode($attachment)) . '>' . PHP_EOL;

145 $message .= 'X-Attachment-Id: ' . basename(urlencode($attachment)) . PHP_EOL . PHP_EOL;

146 $message .= chunk_split(base64_encode($content));

147 }

GroupNestingTest.php (https://github.com/ksecor/civicrm.git) PHP · 284 lines

1 <?php

2 /*

3 +--------------------------------------------------------------------+

25 */

26

27 require_once 'CiviTest/CiviUnitTestCase.php';

28 require_once 'api/v2/GroupNesting.php';

48 // Insert a row in civicrm_group creating option group

49 // from_email_address group

50 $op = new PHPUnit_Extensions_Database_Operation_Insert( );

51 $op->execute( $this->_dbconn,

52 new PHPUnit_Extensions_Database_DataSet_XMLDataSet(

56 // Insert a row in civicrm_group creating option group

57 // from_email_address group

58 $op = new PHPUnit_Extensions_Database_Operation_Insert( );

59 $op->execute( $this->_dbconn,

60 new PHPUnit_Extensions_Database_DataSet_XMLDataSet(

AcpiS3Save.h (https://bitbucket.org/incubaid/edk2.git) C Header · 159 lines

9 of the BSD License which accompanies this distribution. The

10 full text of the license may be found at

11 http://opensource.org/licenses/bsd-license.php

12

13 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,

sdk.php (https://bitbucket.org/asikart-extension/joomclouds-client.git) PHP · 416 lines

1 <?php

2 /**

3 * @package Windwalker.Framework

377 $datas = implode('', $datas) ;

378

379 return md5($datas);

380 }

381

test.html (http://clients-oriented-ftp.googlecode.com/svn/trunk/) HTML · 47 lines

16 <script type="text/javascript" src="scripts/shBrushJScript.js"></script>

17 -->

18 <script type="text/javascript" src="scripts/shBrushPhp.js"></script>

19 <!--

20 <script type="text/javascript" src="scripts/shBrushPlain.js"></script>

38 <p>This is a test file to insure that everything is working well.</p>

39

40 <pre class="brush: php;">

41 function test() : String

42 {

archive.php (https://github.com/shlomsky/sanpedran.git) PHP · 94 lines

17 <?php /* If this is a category archive */ if (is_category()) { ?>

18 <h1 class="archive-title"><a title="<?php _e("RSS Feed for the"); ?> '<?php echo single_cat_title(); ?>' <?php _e("Category"); ?>" href="<?php echo get_category_link($cat); ?>feed"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/FeedIcon-16.gif" alt="<?php _e("RSS"); ?>" title="<?php _e("RSS Feed for the"); ?> '<?php echo single_cat_title(); ?>' <?php _e("Category"); ?>" style="float:right;margin: 7px 0 0 5px;" /></a><?php _e("All Entries in the"); ?> "<?php echo single_cat_title(); ?>" <?php _e("Category"); ?></h1>

19

20 <?php /* If this is a daily archive */ } elseif (is_day()) { ?>

23 <?php /* If this is a daily archive */ } elseif (is_search()) { ?>

24 <h1 class="archive-title"><a title="<?php _e("Main Site RSS Feed"); ?>" href="<?php bloginfo('rss2_url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/FeedIcon-16.gif" alt="<?php _e("RSS"); ?>" title="Main Site RSS Feed" style="float:right;margin: 7px 0 0 5px;" /></a><?php _e("Search Results for"); ?> '<?php echo wp_specialchars($s, 1); ?>'</h1>

25

26 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>

33 <?php if(isset($_GET['author_name'])) : $author = get_userdata(get_query_var('author_name')); $link = get_author_link(false, $author->ID, $author->user_firstname, $author->user_nicename,$author->user_url,$author->user_description,$author->user_email,$author->display_name); else : $author = get_userdata(get_query_var('author')); $link = get_author_link(false, $author->ID, $author->user_firstname, $author->user_nicename,$author->user_url,$author->user_description, $author->user_email,$author->display_name); endif; ?>

34

35 <h1 class="archive-title"><a title="<?php _e("RSS Feed for This Author"); ?>" href="<?php the_author_url(); ?>feed"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/FeedIcon-16.gif" alt="<?php _e("RSS"); ?>" title="<?php _e("RSS Feed for this author"); ?>" style="float:right;margin: 7px 0 0 5px" /></a><?php _e("Author Archive for"); ?> <?php echo $author->display_name; ?></h1>

36

37 <div class="auth-bio auth-archive clearfix">

52 <?php /* If this is a tag archive */ } elseif (is_tag()) { ?>

53 <h1 class="archive-title"><a title="<?php _e("RSS Feed for This Tag"); ?>" href="<?php bloginfo('url'); ?>/tag/<?php echo str_replace(" ", "-", single_tag_title('', false)); ?>/feed"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/FeedIcon-16.gif" alt="<?php _e("RSS"); ?>" title="<?php _e("RSS Feed for This Tag"); ?>" style="float:right;margin: 7px 0 0 5px;" /></a><?php _e("All Entries Tagged With:"); ?> "<?php single_tag_title(); ?>"</h1>

54

55 <?php } ?>

DeleteComment.php (https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests) PHP · 355 lines

1 <?php

2

3 /**

4 * Admin ajax functions to be tested

5 */

6 require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' );

7

8 /**

70 $_POST['_per_page'] = 100;

71 $_POST['_page'] = 1;

72 $_POST['_url'] = admin_url( 'edit-comments.php' );

73

74 // Make the request

127 $_POST['_per_page'] = 100;

128 $_POST['_page'] = 1;

129 $_POST['_url'] = admin_url( 'edit-comments.php' );

130

131 // Make the request

class.data_type.php (http://aquarel-cms.googlecode.com/svn/trunk/) PHP · 164 lines

1 <?php

2 /**

3 * Module: Data

4 * Class: Data Type

5 * About: ??? ??????

6 * Author: Vlad Andreev <php.vlad@gmail.com>

7 **/

8

GeneratorController.php (https://github.com/rafaelgou/CoregenAdminGeneratorBundle.git) PHP · 352 lines

1 <?php

2

3 namespace Coregen\AdminGeneratorBundle\ORM;

file2.kvdriver.php (git://github.com/jelix/jelix.git) PHP · 292 lines

1 <?php

2 /**

3 * @package jelix

186 // mutex zone

187

188 $md5 = md5($key);

189 $subdir = $md5[0].$md5[1];

231

232 // the name of the file

233 $md5 = md5($key);

234 $subdir = $md5[0].$md5[1];

273 {

274 // the name of the file

275 $md5 = md5($key);

276 $subdir = $md5[0].$md5[1];

NestedTreeRootTest.php (https://github.com/kaiwa/DoctrineExtensions.git) PHP · 337 lines

1 <?php

2

3 namespace Gedmo\Tree;

14 * @package Gedmo.Tree

15 * @link http://www.gediminasm.org

16 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)

17 */

18 class NestedTreeRootTest extends BaseTestCaseORM

37 $took = microtime(true) - $start;

38 $minutes = intval($took / 60); $seconds = $took % 60;

39 echo sprintf("%s --> %02d:%02d", $msg, $minutes, $seconds) . PHP_EOL;

40 };

41 $repo = $this->em->getRepository(self::CATEGORY);

mail.php (https://bitbucket.org/allanxyh/uniquemall.git) PHP · 406 lines

1 <?php

2 class Mail {

3 protected $to;

79 }

80

81 $boundary = '----=_NextPart_' . md5(time());

82

83 $header = '';

94 $header .= 'Reply-To: ' . '=?UTF-8?B?' . base64_encode($this->sender) . '?=' . '<' . $this->from . '>' . $this->newline;

95 $header .= 'Return-Path: ' . $this->from . $this->newline;

96 $header .= 'X-Mailer: PHP/' . phpversion() . $this->newline;

97 //$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;

98 $header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;

157 exit();

158 } else {

159 if (substr(PHP_OS, 0, 3) != 'WIN') {

160 socket_set_timeout($handle, $this->timeout, 0);

161 }

fengoffice.php (https://github.com/libersoft/fengoffice-ls.git) PHP · 121 lines

1 <?php return array(

2 'chelp add event invitation' => 'Velg brukerene du vil invitere til arrangementet.',

3 'how to purchase' => 'Hvordan kjøpe',

46 'chelp add milestone reminders' => 'Du kan velge om du vil motta en påminnelse når hendelsen starter. Velg om du vil ha påminnelser som sprettopp-beskjeder i systemet eller om du vil motta e-postvarsel.',

47 'chelp add event reminders' => 'Du kan velge om du vil motta en påminnelse når hendelsen starter. Velg om du vil ha påminnelser som sprettopp-beskjeder i systemet eller om du vil motta e-postvarsel.',

48 'free trial upgrade' => 'Dette er en 30-dagers prøveinstallasjon. Dersom du vil beholde informasjonen og fortsette å bruke våre tjenester: <a class="dashboard-link" href="http://www.fengoffice.com/web/pricing.php">Oppgrader til et abonnement</a>',

49 'chelp personal account' => '<b>Velkommen til kontopanelet</b><br/>

50 I dette menyvalget kan du redigere din personlige informasjon.<br/>

SessionTest.php (https://github.com/crmeb/CRMEB.git) PHP · 225 lines

1 <?php

2

3 namespace think\tests;

6 use Mockery\MockInterface;

7 use org\bovigo\vfs\vfsStream;

8 use PHPUnit\Framework\TestCase;

9 use think\App;

10 use think\cache\Driver;

57 ];

58

59 $id = md5(uniqid());

60

61 $this->handler->shouldReceive("read")->once()->with($id)->andReturn(serialize($data));

78 {

79

80 $id = md5(uniqid());

81

82 $this->handler->shouldReceive('read')->once()->with($id)->andReturn("");

common_sql_writer.php (https://github.com/kamarulismail/kamarul-playground.git) PHP · 342 lines

1 <?php

2 /**

3 * File containing the ezcDbSchemaCommonSqlWriter class.

Error.class.php (https://github.com/uptownhr/tpx.git) PHP · 417 lines

1 <?php

2 /* vim: set expandtab sw=4 ts=4 sts=4: */

3 /**

4 * Holds class PMA_Error

5 *

6 * @package phpMyAdmin

7 */

8

10 * base class

11 */

12 require_once './libraries/Message.class.php';

13

14 /**

15 * a single error

16 *

17 * @package phpMyAdmin

18 */

19 class PMA_Error extends PMA_Message

PiSmmStatusCodeOnFrameworkSmmStatusCodeThunk.c (https://gitlab.com/envieidoc/Clover) C · 294 lines

13 the terms and conditions of the BSD License that accompanies this distribution.

14 The full text of the license may be found at

15 http://opensource.org/licenses/bsd-license.php.

16

17 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,

Query.php (https://github.com/ewandor/horde.git) PHP · 372 lines

1 <?php

2 /**

3 * Fetch query object for use with Horde_Imap_Client_Base#fetch().

279

280 /**

281 * Returns a MD5 hash of the current query object.

282 *

283 * @return string MD5 hash.

285 public function hash()

286 {

287 return hash('md5', serialize($this));

288 }

289

override.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 202 lines

1 <?php

2 /**

3 * @package Joomla.Administrator

87 public function getItem($pk = null)

88 {

89 require_once JPATH_COMPONENT.'/helpers/languages.php';

90

91 $pk = (!empty($pk)) ? $pk : JRequest::getCmd('id');

118 {

119 $app = JFactory::getApplication();

120 require_once JPATH_COMPONENT.'/helpers/languages.php';

121

122 $client = $app->getUserState('com_languages.overrides.filter.client', 0);

COPYRIGHT (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 105 lines

13 Active SWIG Developers:

14 William Fulton (wsf@fultondesigns.co.uk) (SWIG core, Java, C#, Windows, Cygwin)

15 Olly Betts (olly@survex.com) (PHP)

16 Joseph Wang (joequant@gmail.com) (R)

17 Xavier Delacour (xavier.delacour@gmail.com) (Octave)

30 Charlie Savage (cfis@interserv.com) (Ruby)

31 Thien-Thi Nguyen (ttn@glug.org) (build/test/misc)

32 Richard Palmer (richard@magicality.org) (PHP)

33 Sam Liddicott - Ananova Ltd (saml@liddicott.com) (PHP)

34 Tim Hockin - Sun Microsystems (thockin@sun.com) (PHP)

35 Kevin Ruland (PHP)

53 Marcio Luis Teixeira <marciot@holly.colostate.edu> (Guile)

54 Duncan Temple Lang (R)

55 Miklos Vajna <vmiklos@frugalware.org> (PHP directors)

56 Mark Gossage (mark@gossage.cjb.net) (Lua)

57 Raman Gopalan (ramangopalan@gmail.com) (eLua)

question44504-folding.html (https://bitbucket.org/shuangxinyu/emacspack.git) HTML · 29 lines

6 <tr>

7 <td width='50' colspan='1' class='men-met'>

8 <input type='button' value=' < ' onClick='goLastMonth(<?php echo date("t", strtotime("$year1-$month1-$day1")).", ".$month . ", " . $year.", ".date("w", strtotime("$year-$month-$day1")); ?>)' />

9 </td>

10 <td width='250' colspan='5' class='men-met'>

11 <span class='title'><?php echo $men . " " . $year; ?></span><br />

12 </td>

13 <td width='50' colspan='1' align='right' class='men-met'>

14 <input type='button' value=' > ' onClick='goNextMonth(1, <?php echo $month . ", " . $year.", ".date("w", strtotime("$year2-$month2-$day1")); ?>)' />

15 </td>

16 </tr>

writing-modes.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 790 lines

690 </para>

691 <para>

692 Here is an example from the PHP mode, which extends the inline JavaScript highlighting to support embedded PHP:

693 </para>

694 <programlisting>

695 <![CDATA[<RULES SET="JAVASCRIPT+PHP">

696

697 <SPAN TYPE="MARKUP" DELEGATE="php::PHP">

698 <BEGIN>&lt;?php</BEGIN>

700 </SPAN>

701

702 <SPAN TYPE="MARKUP" DELEGATE="php::PHP">

703 <BEGIN>&lt;?</BEGIN>

704 <END>?&gt;</END>

705 </SPAN>

706

707 <SPAN TYPE="MARKUP" DELEGATE="php::PHP">

708 <BEGIN>&lt;%=</BEGIN>

709 <END>%&gt;</END>

README (http://enginey.googlecode.com/svn/trunk/) Unknown · 42 lines

1 Using Amazon S3 with Dojo has the following prerequisites:

2 * You must be signed up to use Amazon S3. You can sign up for Amazon S3 at http://aws.amazon.com/s3.

3 * Use the provided proxy (/dojox/rpc/s3/proxy.php) with PHP 5.

4 * proxy.php requires the following modules:

8

9 To use S3 from Dojo, you need a proxy. You can use the provided proxy example file by renaming

10 proxy.example-php to proxy.php and then you must enter your Amazon access key and secret access key

11 into the proxy.php file on line 3 and 4:

20 var s3Buckets = new dojox.rpc.Service({

21 target:"http://s3.amazonaws.com/",

22 proxyUrl:"../s3/proxy.php", // the path to the proxy

23 transport:"REST",

24 envelope:"PROXIED-PATH",

jedit.1 (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 163 lines

157

158 .SH BUGS

159 See http://www.jEdit.org/index.php?page=feedback for bug reporting information.

160

161 .SH WEB

pear-phing.bat (git://github.com/alexgorbatchev/SyntaxHighlighter.git) Batch · 0 lines ✨ Summary

This batch script checks if a PHP CLI executable exists and, if so, runs the phing.php file with the specified arguments. If the executable is not found, it displays an error message instructing the user to edit the script to point to their PHP CLI version. The script then pauses for the user’s input.

9 :: Please set following to PHP's CLI

10 :: NOTE: In PHP 4.2.x the PHP-CLI used to be named php-cli.exe.

11 :: PHP 4.3.x names it php.exe but stores it in a subdir called /cli/php.exe

12 :: E.g. for PHP 4.2 C:\phpdev\php-4.2-Win32\php-cli.exe

13 :: for PHP 4.3 C:\phpdev\php-4.3-Win32\cli\php.exe

14

15 SET phpCli=@PHP-BIN@

21 ::---------------------------------------------------------------------------------

22

23 :: Check existence of php.exe

24 IF EXIST "%phpCli%" (

26 ) ELSE GOTO :NoPhpCli

27

28 "%phpCli%" -d html_errors=off -qC "@PEAR-DIR@\phing.php" %*

29 GOTO :EOF

30

frame_9.svg (https://bitbucket.org/atchariya/nokia.git) SVG · 3078 lines

105 cd7plK/3PXdF+HEX/lky5nnif+4DX+sDazEOvCqdHJitNqFrnCMxLgR+t+/Z9co1L7ySCp9x45mS

106 Ghyceb0EXo0Lvh6cb6mywREpiMEfdJHjnPhicQwjuIMpOSZyXCAC62nHy75i1y3AnHU7gy9VSOog

107 9d+LVSXtwgrBUv2eR0wqpyMuCEpSp58mohQj6Yx7qEoqNcgFD5GxGFsH7wLPhp5rrqQ8MZeCSGDd

108 r1mlpspSw01AAyaKiSGe+bIbbxfhonOGUsfIYxKvEVnlwkeufHeh3BVl17D0ocFJjkMOTRUizEq9

109 MUV4EDp+RZVRhS9NueK/JaEaySaIGtGVqcxYKKzCkpwzOzNcCrigqrVj9qqeQpUsRpR6LCRrr0GE

117 9gBWp6IQO0o/YMuB+WhN3ltjc6mTFYV0foaYVaVTMXJOdF7VSAce6KdCZxC1w6VKvScvgDKJM/nM

118 vi4IOHNOtUkKgkihK0bngomzmp2hZHq8/jetIoa8UGY3JGe0FIbNrnJC731M+bkfozy+i5+egxk5

119 O8lmTAxK5r44f9YteKOvB+wXTfn5GbRk/p+d8M0O9q1NiVonTvHINZwvpcxRMd5TeC8oG6mv8xHC

120 dzWyxnmpRH4kG58pxp4Zmrf8aOl4Pihva+CdYGwksfHAb/eB46nwbC64gnrAi1Mk0YWqRO2nHctZ

121 K4eJsJDIqD0fDqUiJ/SEqBQ3knV1RHMjMuOmiBhoxLxOyFkL4V92q1/AhSJV2oU5xSrPMQmsQuQz

262 T4tSOxOpqqOnevsAvJwjn8M4TjOf4Pwfg3A/RNScTirEIW607T6IOE4ieGxB3okR4Q808uYy8nfn

263 zGsl4V55gG+IsLMdX7FAXq745jzxgRiHKG+Kcm0p/MhYc3M6d6JncuNk+uwQ4qebDlOpLs6o7QFR

264 Z2EjV2dlNay5rxOTJwarphpXIZvSDT1y+ybTlUOOvv09oDq283CALdYV700TW9vxSdkxW2alwtaF

265 Dc5PhTX/2Aa2+ZTvCdCtebVbsO+ZL6RMCZF/s+i4s+j5QYQuFWLJf6PJWRlnwvkW3VuxXHbkxRrW

266 E2F7Ua9jCOTYkYe6C0JjoFusWHRdk2smbmYDCSxjxZ77YuzMWMTInb7nqlQMus/VEPoaMKtyzYRy

SimpleListModel.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 106 lines ✨ Summary

This Java class, SimpleListModel, extends AbstractListModel and provides a custom list model for displaying PHP items. It filters items based on a search string and mode settings, allowing users to narrow down results by type and name. The class uses a TreeSet to store the filtered items and updates the list when the filter or mode changes.

37 this.list.clear();

38 for (int i = 0; i < list.size(); i++) {

39 PHPItem phpItem = (PHPItem) list.get(i);

40 if (accept(phpItem, searchString)) {

53 Iterator iterator = list.iterator();

54 while (iterator.hasNext()) {

55 PHPItem phpItem = (PHPItem) iterator.next();

56 if (!accept(phpItem, searchString)) {

74 private boolean accept(PHPItem phpItem, String searchText) {

75 return (mode & phpItem.getItemType()) == phpItem.getItemType() && phpItem.getNameLowerCase().indexOf(searchText) != -1;

76 }

77

88 private static class SimpleComparator implements Comparator {

89 public int compare(Object o1, Object o2) {

90 PHPItem item1 = (PHPItem) o1;

91 PHPItem item2 = (PHPItem) o2;

PHPParserListener.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 15 lines ✨ Summary

This Java interface defines a listener for PHP parsing events, specifically parseError and parseMessage. It extends the built-in EventListener interface, allowing classes to implement this listener and receive notifications when errors or messages occur during PHP parsing.

1 package gatchan.phpparser.parser;

2

3 import java.util.EventListener;

4

5 /**

6 * The listener to listen to the PHPParserListener

7 *

8 * @author Matthieu Casanova

9 */

10 public interface PHPParserListener extends EventListener {

11

12 void parseError(PHPParseErrorEvent e);

13 void parseMessage(PHPParseMessageEvent e);

14 }

15

Chunk.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 589 lines ✨ Summary

This Java code is part of a text rendering engine, responsible for laying out and rendering text on a screen. It uses font substitution to find suitable fonts for characters that can’t be rendered by the default font. The code creates glyph vectors, which represent the visual representation of text, and calculates their widths based on the chosen font.

290 if (offset < gv.getNumGlyphs())

291 {

292 x += (float) gv.getGlyphPosition(offset).getX();

293 return x;

294 }

320 if (myx + gwidth >= x)

321 {

322 float[] pos = gv.getGlyphPositions(0, gv.getNumGlyphs(), null);

323 for (int i = 0; i < gv.getNumGlyphs(); i++)

324 {

sketchy.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 44 lines

1 <?php

2 /**

3 * @package Joomla.Platform

31 public function execute(array $options = array())

32 {

33 // Verify that image filter support for PHP is available.

34 if (!function_exists('imagefilter'))

35 {

36 JLog::add('The imagefilter function for PHP is not available.', JLog::ERROR);

37 throw new RuntimeException('The imagefilter function for PHP is not available.');

MoneyTypeTest.php (git://github.com/symfony/symfony.git) PHP · 28 lines ✨ Summary

This PHP code tests a MoneyType form type, specifically its behavior when rendering a localized pattern for money formatting. It sets the locale to German and creates a form instance using the factory. The test then verifies that the correct pattern is used in the view representation of the form.

1 <?php

2

3 /*

12 namespace Symfony\Tests\Component\Form\Extension\Core\Type;

13

14 require_once __DIR__ . '/LocalizedTestCase.php';

15

16 class MoneyTypeTest extends LocalizedTestCase

enum_scope_template.i (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 21 lines

1 %module enum_scope_template

2

3 #ifdef SWIGPHP

4 // php internal naming conflict

en-GB.plg_finder_weblinks.ini (https://bitbucket.org/kraymitchell/fcd.git) Unknown · 11 lines

1 ; Joomla! Project

2 ; Copyright (C) 2005 - 2012 Open Source Matters. All rights reserved.

3 ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php

4 ; Note : All ini files need to be saved as UTF-8

5

help.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 190 lines

1 <?php

2 /**

3 * @package Joomla.Platform

tests.php4 (https://swig.svn.sourceforge.net/svnroot/swig) PHP · 228 lines ✨ Summary

This PHP code is a comprehensive class for validating and checking various aspects of PHP code, including classes, functions, variables, resources, and more. It provides methods to check for existence, type, equality, nullness, and resource status, as well as warning and failure messages. The class can be used to ensure the integrity and consistency of PHP code before execution.

1 <?php

2

3 // do we have true global vars or just GETSET functions?