100+ results results for 'php md5' (277 ms)
1<?php defined("SYSPATH") or die("No direct script access."); 2 12 if (!self::$_s3) { 13 require_once(MODPATH . "aws_s3/lib/s3.php"); 14 S3::setAuth(module::get_var("aws_s3", "access_key"), module::get_var("aws_s3", "secret_key")); 121 122 $item->s3_item_hash = md5($item->relative_path()); 123 234 static function validate_access_details($access_key, $secret_key, $bucket_name) { 235 require_once(MODPATH . "aws_s3/lib/s3.php"); 236 S3::setAuth($access_key, $secret_key);ps_csv.inc http://phpshop.googlecode.com/svn/trunk/ | PHP | 328 lines
1<?php 2/* 234 else { // Category does not exist - create it 235 $hash_secret="PHPShopIsCool"; 236 $category_id = md5(uniqid($hash_secret));util.php http://oregon-caspages.googlecode.com/svn/trunk/ | PHP | 517 lines
1<?php 2include 'editor_conf.php'; 25 //echo 'pass = ' . $password . '<br>'; 26 $password = md5($password); 27 //echo $password; 182 $link = connect_db(); 183 $new_pass = md5($new_pass); 184 $user_list[$user_name] = $new_pass; 195 196$index_page = '<?php 197include "../../../editor_conf.php"; 200 <div id="global_nav"> 201 <?php include $basepath."global_nav.php";?> 202 </div> 203 <div id="main_content"> 204 <?php echo file_get_contents("content.html");?> 205 </div>l10n_client.php git://github.com/gallery/gallery3.git | PHP | 323 lines
1<?php defined("SYSPATH") or die("No direct script access."); 2/** 31 static function client_token() { 32 return md5("l10n_client_client_token" . access::private_key()); 33 } 49 $api_key = $api_key == null ? l10n_client::api_key() : $api_key; 50 return md5($api_key . $payload . l10n_client::client_token()); 51 } 194 // uid = <l10n server user id> 195 // signature = md5(user_api_key($uid, $client_token) . $data . $client_token)) 196 // data = // JSON payloadcnt1.inc.php http://phpwcms.googlecode.com/svn/trunk/ | PHP | 205 lines
82 <td><input name="cimage_name" type="text" id="cimage_name" class="f11b" style="width: 300px; color: #727889;" value="<?php echo isset($content["image_name"]) ? html_specialchars($content["image_name"]) : '' ?>" size="40" maxlength="250" onfocus="this.blur()" /></td> 83 <td><img src="img/leer.gif" alt="" width="3" height="1" /><a href="javascript:;" title="<?php echo $BL['be_cnt_openimagebrowser'] ?>" onclick="openFileBrowser('filebrowser.php?opt=0&target=nolist')"><img src="img/button/open_image_button.gif" alt="" width="20" height="15" border="0" /></a></td> 84 <td><img src="img/leer.gif" alt="" width="3" height="1" /><a href="javascript:;" title="<?php echo $BL['be_cnt_delimage'] ?>" onclick="document.articlecontent.cimage_name.value='';document.articlecontent.cimage_id.value='0';this.blur();return false;"><img src="img/button/del_image_button.gif" alt="" width="15" height="15" border="0" /></a> 102 <option value="4" <?php is_selected(4, $content["image_pos"]) ?>><?php echo $BL['be_cnt_pos4'] ?></option> 103 <option value="5" <?php is_selected(5, $content["image_pos"]) ?>><?php echo $BL['be_cnt_pos5'] ?></option> 104 <option value="6" <?php is_selected(6, $content["image_pos"]) ?>><?php echo $BL['be_cnt_pos6'] ?></option> 104 <option value="6" <?php is_selected(6, $content["image_pos"]) ?>><?php echo $BL['be_cnt_pos6'] ?></option> 105 <option value="7" <?php is_selected(7, $content["image_pos"]) ?>><?php echo $BL['be_cnt_pos7'] ?></option> 106 <option value="8" <?php is_selected(8, $content["image_pos"]) ?>><?php echo $BL['be_cnt_pos8'] ?></option> 106 <option value="8" <?php is_selected(8, $content["image_pos"]) ?>><?php echo $BL['be_cnt_pos8'] ?></option> 107 <option value="9" <?php is_selected(9, $content["image_pos"]) ?>><?php echo $BL['be_cnt_pos9'] ?></option> 108 </select></td> 190 "image_name" => $content["image_hash"] . '.' . $content["image_ext"], 191 "thumb_name" => md5($content["image_hash"].$phpwcms["img_list_width"].$phpwcms["img_list_height"].$phpwcms["sharpen_level"]) 192 )install_check.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 18 19$filename = NV_ROOTDIR . '/' . NV_TEMP_DIR . '/' . NV_TEMPNAM_PREFIX . 'auto_' . md5( $global_config['sitekey'] . session_id() ) . '.zip'; 20if ( file_exists( $filename ) ) 21{ 22 require_once NV_ROOTDIR . '/includes/class/pclzip.class.php'; 23 $zip = new PclZip( $filename ); 26 $overwrite = $nv_Request->get_string( 'overwrite', 'get', '' ); 27 if ( $overwrite != md5( $filename . $global_config['sitekey'] . session_id() ) ) 28 { 47 { 48 $temp_extract_dir = NV_TEMP_DIR . '/' . md5( $filename . $global_config['sitekey'] . session_id() ); 49 199 $xtpl->assign( 'MODULE_NAME', $module_name ); 200 $xtpl->assign( 'CHECKSESS', md5( $filename . $global_config['sitekey'] . session_id() ) ); 201user_add.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 63 } 64 elseif ( $db->sql_numrows( $db->sql_query( "SELECT `userid` FROM `" . NV_USERS_GLOBALTABLE . "` WHERE `md5username`=" . $db->dbescape( md5( $_user['username'] ) ) ) ) != 0 ) 65 { 118 $sql = "INSERT INTO `" . NV_USERS_GLOBALTABLE . "` ( 119 `userid`, `username`, `md5username`, `password`, `email`, `full_name`, `gender`, `birthday`, `sig`, `regdate`, 120 `website`, `location`, `yim`, `telephone`, `fax`, `mobile`, `question`, `answer`, `passlostkey`, `view_mail`, 124 " . $db->dbescape( $_user['username'] ) . ", 125 " . $db->dbescape( md5( $_user['username'] ) ) . ", 126 " . $db->dbescape( $password ) . ", 153 { 154 @require_once ( NV_ROOTDIR . "/includes/class/upload.class.php" ); 155 195 196 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name ); 197 exit();Fill.php https://PHPExcel.svn.codeplex.com/svn | PHP | 332 lines
22 * @package PHPExcel_Style 23 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 32/** PHPExcel_IComparable */ 33require_once 'PHPExcel/IComparable.php'; 34 119 $this->_startColor = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_WHITE); 120 $this->_endColor = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK); 121 } 141 * 142 * Returns the PHPExcel_Style_Fill that is actual bound to PHPExcel_Style 143 * 158 * 159 * If no PHPExcel_Style_Fill has been bound to PHPExcel_Style then bind this one. Return the actual bound one. 160 *logs.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 24$sql = "SELECT SQL_CALC_FOUND_ROWS * FROM `" . $db_config['prefix'] . "_logs` WHERE `id`!=0"; 25$base_url = NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op; 26 39 $checksess = filter_text_input( 'checksess', 'get', '', 1 ); 40 if ( $checksess != md5 ( "siteinfo_" . session_id() . "_" . $admin_info['userid'] ) ) 41 { 42 nv_insert_logs( NV_LANG_DATA, $module_name, sprintf ( $lang_module['filter_check_log'], $op ), $admin_info['username'] . " - " . $admin_info['userid'], 0 ); 43 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op ); 44 exit(); 276$xtpl->assign( 'OP', $op ); 277$xtpl->assign( 'checksess', md5 ( "siteinfo_" . session_id() . "_" . $admin_info['userid'] ) ); 278$xtpl->assign( 'URL_DEL', $base_url . "&" . NV_OP_VARIABLE . "=logs_del" ); 278$xtpl->assign( 'URL_DEL', $base_url . "&" . NV_OP_VARIABLE . "=logs_del" ); 279$xtpl->assign( 'URL_CANCEL', NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op ); 280$xtpl->assign( 'DISABLE', $disabled );mostlyce.php http://miacms.googlecode.com/svn/trunk/ | PHP | 336 lines
1<?php 2/** 12global $mosConfig_live_site, $jspath, $mosConfig_absolute_path, $adminside; 13include($mosConfig_absolute_path."mambots/editors/mostlyce/jscripts/tiny_mce/mostlyce_config.php"); 14 50 global $adminside, $mosConfig_secret, $mosConfig_cachetime; 51 include($mosConfig_absolute_path."mambots/editors/mostlyce/jscripts/tiny_mce/mostlyce_config.php"); 52 53 //Setup a session variable for Image Manager and external list generator security checks 54 $env = md5($_SERVER['HTTP_USER_AGENT']); 55 $mostlyceRestoreKey=md5($mosConfig_secret.$env.$_SERVER['REMOTE_ADDR']); 172 Notes: 173 * The TinyMCE PHP gzip compressor cannot and will not work if zlib compression is already enabled on the server. 174 * If they requested editor compression run the checks otherwise don't waste the cycles 260 function fileBrowserCallBack(field_name, url, type, win) { 261 var connector = "$jspath/mambots/editors/mostlyce/jscripts/tiny_mce/filemanager/browser.php?Connector=connectors/php/connector.php"; 262 var enableAutoTypeSelection = false;Font.php https://PHPExcel.svn.codeplex.com/svn | PHP | 505 lines
32/** PHPExcel_IComparable */ 33require_once 'PHPExcel/IComparable.php'; 34 42 */ 43class PHPExcel_Style_Font implements PHPExcel_IComparable 44{ 136 $this->_striketrough = false; 137 $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK); 138 } 158 * 159 * Returns the PHPExcel_Style_Font that is actual bound to PHPExcel_Style 160 * 175 * 176 * If no PHPExcel_Style_Font has been bound to PHPExcel_Style then bind this one. Return the actual bound one. 177 *helper.php https://bitbucket.org/joomla/joomla-platform/ | PHP | 530 lines
367 default : 368 $encrypted = ($salt) ? md5($plaintext.$salt) : md5($plaintext); 369 return ($show_encrypt) ? '{MD5}'.$encrypted : $encrypted; 388 */ 389 public static function getSalt($encryption = 'md5-hex', $seed = '', $plaintext = '') 390 { 430 } else { 431 return mhash_keygen_s2k(MHASH_MD5, $plaintext, substr(pack('h*', md5(mt_rand())), 0, 8), 4); 432 } 496 */ 497 private static function _toAPRMD5($value, $count) 498 { 504 while (-- $count) { 505 $aprmd5 .= $APRMD5[$value & 0x3f]; 506 $value >>= 6;image.php http://myzapp.googlecode.com/svn/trunk/ | PHP | 347 lines
1<?php 2include(join(DIRECTORY_SEPARATOR,array(dirname(__FILE__),'..','application','configs','env.php'))); 2include(join(DIRECTORY_SEPARATOR,array(dirname(__FILE__),'..','application','configs','env.php'))); 3include(join(DIRECTORY_SEPARATOR,array(dirname(__FILE__),'..','library','phplib.php'))); 4 7 if (empty($header)) { 8 require_once 'Zend/Controller/Request/Exception.php'; 9 throw new Zend_Controller_Request_Exception('An HTTP header name is required'); 35 36$config = include(join(DIRECTORY_SEPARATOR,array(dirname(__FILE__),'..','application','configs','application.php'))); 37$secret = $config['secret_word']; 40{ 41 if ($info['hash'] == md5($info['uri'].$secret)) 42 {auth.php http://textmotion.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 18 * @lastmodified $Date: $ 19 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 20 * 345 346 if (md5($user['user']['password']) == $key[1]) { 347 return $user; 351 352 if ($user['user']['auth_key'] == md5($key[1].TM_UNIQUE_STR)) { 353 388 389 $cookie->set('auth_key', $user['id'].':'.md5($user['password'])); 390PublicAction.class.php http://iiccms.googlecode.com/svn/trunk/ | PHP | 363 lines
1<?php 2class PublicAction extends Action { 9 //??????? 10 redirect(PHP_FILE.C('USER_AUTH_GATEWAY')); 11 } 17 if (C('GUEST_AUTH_ON' )) { 18 $this->assign('jumpUrl',PHP_FILE.C('USER_AUTH_GATEWAY')); 19 } 58 }else { 59 if($authInfo['password'] != md5($_POST['password'])) { 60 $this->error('?????'); 353 if(!isset($_SESSION[C('USER_AUTH_KEY')])) { 354 $this->assign ('jumpUrl', PHP_FILE . C('USER_AUTH_GATEWAY') ); 355 $this->error('????');user_waiting.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 34 { 35 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name ); 36 die(); 43 { 44 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name ); 45 die(); 49 $sql = "INSERT INTO `" . NV_USERS_GLOBALTABLE . "` ( 50 `userid`, `username`, `md5username`, `password`, `email`, `full_name`, `gender`, `photo`, `birthday`, 51 `regdate`, `website`, `location`, `yim`, `telephone`, `fax`, `mobile`, `question`, 56 " . $db->dbescape( $row['username'] ) . ", 57 " . $db->dbescape( md5( $row['username'] ) ) . ", 58 " . $db->dbescape( $row['password'] ) . ", 73 $subject = $lang_module['adduser_register']; 74 $message = sprintf( $lang_module['adduser_register_info'], $full_name, $global_config['site_name'], NV_MY_DOMAIN . NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name, $row['username'] ); 75 $message .= "<br /><br />------------------------------------------------<br /><br />";login.php http://globalban-spanish.googlecode.com/svn/globalban/ | PHP | 140 lines
85 if($_GET['created'] == 1) { 86 ?><h5><?php echo $LANLOGINOUT_001; ?></h5><?php 87 } 104 <tr> 105 <td colspan="2" align="left" class="rowColor1"><?php echo $LANLOGINOUT_005; ?> 106 <input type="checkbox" name="remember" value="1" /> 109 ?> 110 <span class="error"><?php echo $LANLOGINOUT_006; ?></span> 111 <?php 123 124<p><?php echo $LANLOGINOUT_007; ?> <a href="index.php?page=newuser"><?php echo $LANLOGINOUT_008; ?></a></p> 125<p><?php echo $LANLOGINOUT_009; ?></p> 125<p><?php echo $LANLOGINOUT_009; ?></p> 126<form action="index.php?page=login" method="post"> <?php echo $LANLOGINOUT_010; ?><input type="text" name="email" size="60" maxlength="80"/> 127<input type="submit" name="forgotPassword" value="<?php echo $LANLOGINOUT_017; ?>" class="button">blogger.php http://jumi.googlecode.com/svn/trunk/ | PHP | 101 lines
1<?php 2/** 2/** 3* @version $Id: blogger.php 15 2008-11-03 15:42:08Z edo888 $ 4* @package Jumi 5* @copyright Copyright (C) 2008 Edvard Ananyan. All rights reserved. 6* @license GNU/GPL, see LICENSE.php 7*/ 41 $postsURL = 'http://www.blogger.com/feeds/'.$id.'/posts/default'; 42 $fileName = 'cache/'.md5($postsURL); 43 if(file_exists($fileName) and time() - filemtime($fileName) < $this->cacheTime) { 94 echo '</div>'; 95 echo '<small>Last updated: '.date('j M, Y H:i', filemtime('cache/'.md5('http://www.blogger.com/feeds/'.$this->id.'/posts/default'))).'</small>'; 96 }Cache.php http://kancms.googlecode.com/svn/trunk/ | PHP | 130 lines
1<?php 2 16 * Begin Caching Script, courtesy of 17 * http://www.addedbytes.com/articles/caching-output-in-php/ 18 */ 43 $page = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; // Requested page 44 $cachefile = $cachedir . $siteid . '_' . md5($page) . '.' . $cacheext; // Cache file to either load or create 45 70 * End Caching Script, courtesy of 71 * http://www.addedbytes.com/articles/caching-output-in-php/ 72 */ 83 $siteid = isset($_GET['siteid']) ? kan_clean_input($_GET['siteid']) : ""; 84 $cachefile = $cachedir . $siteid . '_' . md5($page) . '.' . $cacheext; // Cache file to either load or create 85 // Now the script has run, generate a new cache fileindex.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 250 lines
1<?php 2/* 7Modification History: 82008.04.25: Fix problems reported in phperror.log 9*/ 18include_once $strSettingScript; 19//include_once 'ebpls5501.php'; 20require_once "lib/ebpls.lib.php"; 20require_once "lib/ebpls.lib.php"; 21include'includes/variables.php'; 22include_once("lib/multidbconnection.php"); 52 53$ses = isset($_COOKIE['PHPSESSID'])?$_COOKIE['PHPSESSID']:''; //2008.05.06 54 111 112 if (md5($frmUserName)==$goduser and md5($frmUserKey)==$godpass) { 113PhpConfigurationService.java http://mollify.googlecode.com/svn/trunk/ | Java | 216 lines
10 11package org.sjarvela.mollify.client.service.environment.php; 12 20import org.sjarvela.mollify.client.service.ServiceError; 21import org.sjarvela.mollify.client.service.environment.php.PhpService.RequestType; 22import org.sjarvela.mollify.client.service.request.JSONBuilder; 29import org.sjarvela.mollify.client.util.JsUtil; 30import org.sjarvela.mollify.client.util.MD5; 31 36 37public class PhpConfigurationService extends ServiceBase implements 38 ConfigurationService { 45 46 public PhpConfigurationService(PhpService service) { 47 super(service, RequestType.configuration);lightbox.Manage.php http://compactcms.googlecode.com/svn/trunk/compactcms/ | PHP | 220 lines
106 <table border="0" cellspacing="5" cellpadding="5"> 107 <?php if($_SESSION['ccms_userLevel']>=$perm['manageModLightbox']) { ?><th class="span-1"> </th><?php } ?> 108 <th class="span-7">Album</th> 123 <?php } ?> 124 <td><span class="ss_sprite ss_folder_picture"><a href="lightbox.Manage.php?album=<?php echo $value;?>"><?php echo $value;?></a></span></td> 125 <td><span class="ss_sprite ss_pictures"><?php echo ($count[$i]>0?$count[$i]:'0'); ?></span></td> 149 <?php if($_SESSION['ccms_userLevel']>=$perm['manageModLightbox']) {?> 150 <a href="lightbox.Process.php?album=<?php echo $_GET['album']; ?>&image=<?php echo $key; ?>&action=del-image"><img src="<?php echo $value; ?>" class="thumbview" alt="Thumbnail of <?php echo $key; ?>" /></a> 151 <?php } else { ?> 151 <?php } else { ?> 152 <img src="<?php echo $value; ?>" class="thumbview" alt="Thumbnail of <?php echo $key; ?>" /> 153 <?php } ?> 180 <?php foreach ($albums as $value) { ?> 181 <option <?php echo (isset($_GET['album'])&&$_GET['album']===$value?"selected":null); ?> value="<?php echo $value; ?>"><?php echo $value; ?></option> 182 <?php } ?>Fill.php https://PHPExcel.svn.codeplex.com/svn | PHP | 400 lines
22 * @package PHPExcel_Style 23 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel_Style 34 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_Style_Fill implements PHPExcel_IComparable 37{ 119 $this->_startColor = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_WHITE, $isSupervisor); 120 $this->_endColor = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor); 121 131 * 132 * @param PHPExcel_Style $parent 133 * @return PHPExcel_Style_Fillupdate_translation.pl https://bibletime.svn.sourceforge.net/svnroot/bibletime | Perl | 281 lines
3use lib "Perl"; 4use Digest::MD5; 5use File::Path; 186 while (my $file = readdir(DIR)) { 187 next unless ($file =~ /\.html|\.shtml|\.phtml|\.php4|\.php$/); 188 #print "$file\n"; 190 my $htmlfile = $file; 191 $file =~ s/\.html|\.shtml|\.phtml|.php4|.php$/.var/; 192ARC2_Store.php https://code.google.com/p/s3db/ | PHP | 450 lines
1<?php 2/* 118 $tbl = $this->getTablePrefix() . 'setting'; 119 $sql = "SELECT val FROM " . $tbl . " WHERE k = '" .md5($k). "'"; 120 $rs = mysql_query($sql, $this->getDBCon()); 125 $tbl = $this->getTablePrefix() . 'setting'; 126 $sql = "SELECT val FROM " . $tbl . " WHERE k = '" .md5($k). "'"; 127 $rs = mysql_query($sql, $this->getDBCon()); 137 if ($this->hasSetting($k)) { 138 $sql = "UPDATE " .$tbl . " SET val = '" . mysql_real_escape_string(serialize($v)) . "' WHERE k = '" . md5($k) . "'"; 139 } 140 else { 141 $sql = "INSERT INTO " . $tbl . " (k, val) VALUES ('" . md5($k) . "', '" . mysql_real_escape_string(serialize($v)) . "')"; 142 } 147 $tbl = $this->getTablePrefix() . 'setting'; 148 return mysql_query("DELETE FROM " . $tbl . " WHERE k = '" . md5($k) . "'", $this->getDBCon()); 149 }Border.php https://PHPExcel.svn.codeplex.com/svn | PHP | 150 lines
28/** PHPExcel_Style_Color */ 29require_once 'PHPExcel/Style/Color.php'; 30 31/** PHPExcel_IComparable */ 32require_once 'PHPExcel/IComparable.php'; 33 39 * @package PHPExcel_Style 40 * @copyright Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel) 41 */ 41 */ 42class PHPExcel_Style_Border implements PHPExcel_IComparable 43{ 80 $this->_borderStyle = PHPExcel_Style_Border::BORDER_NONE; 81 $this->_borderColor = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK); 82 }order.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 16$page = $nv_Request->get_int( 'page', 'get', 0 ); 17$base_url = NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op; 18$count = 0; 55 } 56 $row['link_user'] = NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=users&" . NV_OP_VARIABLE . "=edit&userid=" . $row['user_id']; 57 $row['order_time'] = nv_date( "H:i d/m/y", $row['order_time'] ); 60 61 $xtpl->assign( 'order_id', $row['order_id'] . "_" . md5( $row['order_id'] . $global_config['sitekey'] . session_id() ) ); 62 $xtpl->assign( 'link_view', NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=or_view&order_id=" . $row['order_id'] ); 64 { 65 $xtpl->assign( 'link_del', NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=or_del&order_id=" . $row['order_id'] . "&checkss=" . md5( $row['order_id'] . $global_config['sitekey'] . session_id() ) ); 66 $xtpl->parse( 'main.data.row.delete' ); 80 81$xtpl->assign( 'URL_CHECK_PAYMENT', NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=checkpayment" ); 82$xtpl->assign( 'URL_DEL', NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=or_del" );upload.php http://piwam.googlecode.com/svn/trunk/ | PHP | 161 lines
117 so.addVariable("sessid", "<?php echo session_id(); ?>"); 118 so.addVariable("obfus", "<?php echo md5($_SERVER['DOCUMENT_ROOT'].$tinybrowser['obfuscate']); ?>"); 119 so.addVariable("filenames", "<?php echo $filelist; ?>"); 121 so.addVariable("filenamelbl", "<?php echo TB_FILENAME; ?>"); 122 so.addVariable("sizelbl", "<?php echo TB_SIZE; ?>"); 123 so.addVariable("typelbl", "<?php echo TB_TYPE; ?>"); 139 <li id="browse_tab"><span><a 140 href="tinybrowser.php?type=<?php echo $typenow.$passfeid ; ?>"><?php echo TB_BROWSE; ?></a></span></li> 141 <li id="upload_tab" class="current"><span><a 141 <li id="upload_tab" class="current"><span><a 142 href="upload.php?type=<?php echo $typenow.$passfeid ; ?>"><?php echo TB_UPLOAD; ?></a></span></li> 143 <?php 147 <li id="edit_tab"><span><a 148 href="edit.php?type=<?php echo $typenow.$passfeid ; ?>"><?php echo TB_EDIT; ?></a></span></li> 149 <?php } ?>sfPropelGenerateCrudTask.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 166 lines
94 // generate module 95 $tmpDir = sfConfig::get('sf_cache_dir').DIRECTORY_SEPARATOR.'tmp'.DIRECTORY_SEPARATOR.md5(uniqid(rand(), true)); 96 sfConfig::set('sf_module_cache_dir', $tmpDir); 113 { 114 $this->getFilesystem()->remove($moduleDir.'/templates/showSuccess.php'); 115 } 119 120 // customize php and yml files 121 $finder = sfFinder::type('file')->name('*.php', '*.yml'); 124 // create basic test 125 $this->getFilesystem()->copy(sfConfig::get('sf_symfony_lib_dir').'/task/generator/skeleton/module/test/actionsTest.php', sfConfig::get('sf_test_dir').'/functional/'.$arguments['application'].'/'.$arguments['module'].'ActionsTest.php'); 126 150 // create basic test 151 $this->getFilesystem()->copy(sfConfig::get('sf_symfony_lib_dir').'/task/generator/skeleton/module/test/actionsTest.php', sfConfig::get('sf_test_dir').'/functional/'.$arguments['application'].'/'.$arguments['module'].'ActionsTest.php'); 152_deprecated___fe.login.data.php http://phpwcms.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/************************************************************************************* 4 5 (c) 2002-2011 Oliver Georgi (oliver@phpwcms.de) // All rights reserved. 6 6 7 This script is part of PHPWCMS. The PHPWCMS web content management system is 8 free software; you can redistribute it and/or modify it under the terms of 23// ---------------------------------------------------------------- 24// obligate check for phpwcms constants 25if (!defined('PHPWCMS_ROOT')) { 37 // 1st we load template data 38 if(is_file(PHPWCMS_TEMPLATE.'inc_default/fe_login.tmpl')) { 39 77 78 setcookie( 'phpwcmsFeLoginRemember', $_loginData['login'].'##-|-##'.md5($_loginData['password']), 79 time()+$_loginData['settings']['cookie_expire'], '/', getCookieDomain() );dmLogView.php git://github.com/diem-project/diem.git | PHP | 119 lines
1<?php 2 105 { 106 return substr(md5(serialize($this->getEntries(array('hydrate' => false)))), -6); 107 }AuthController.php http://digitalus-site-manager.googlecode.com/svn/trunk/ | PHP | 139 lines
1<?php 2/** 18 * @license http://digitalus-media.com/license/new-bsd New BSD License 19 * @version $Id: AuthController.php Mon Dec 24 20:48:35 EST 2007 20:48:35 forrest lyman $ 20 */ 114 //update the user's password 115 $match->password = md5($password); 116 $match->save();//save the new passwordpackage_theme.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 28 29 $file_src = NV_ROOTDIR . '/' . NV_TEMP_DIR . '/' . NV_TEMPNAM_PREFIX . 'theme_' . $themename . '_' . md5( nv_genpass( 10 ) . session_id() ) . '.zip'; 30 require_once NV_ROOTDIR . '/includes/class/pclzip.class.php'; 36 nv_insert_logs( NV_LANG_DATA, $module_name, $lang_module['autoinstall_method_packet'], 'file name : ' . $themename . '.zip', $admin_info['userid'] ); 37 $linkgetfile = NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=getfile&mod=nv3_theme_" . $themename . ".zip&checkss=" . md5( $file_name . $client_info['session_id'] . $global_config['sitekey'] ) . "&filename=" . $file_name; 38 echo '<a href="' . $linkgetfile . '"><span style="font-size:16px;color:red">nv3_theme_' . $themename . '' . ' - ' . nv_convertfromBytes( $filesize ) . '</span></a>'; 42 $op = $nv_Request->get_string( 'op', 'get' ); 43 $contents .= "<form name='install_theme' enctype='multipart/form-data' action=\"" . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "\" method=\"post\">"; 44 $contents .= "<table summary=\"\" class=\"tab1\">\n"; 88 type: "POST", 89 url: "' . NV_BASE_ADMINURL . 'index.php?' . NV_NAME_VARIABLE . '=' . $module_name . '", 90 data: "themename="+ themename+"&' . NV_OP_VARIABLE . '=' . $op . '",buzzFileStorage.php http://buzz-php-client.googlecode.com/svn/trunk/ | PHP | 136 lines
1<?php 2/* 62 do { 63 // make sure PHP picks up on file changes. This is an expensive action but really can't be avoided 64 clearstatcache(); 86 public function get($key, $expiration = false) { 87 $storageFile = $this->getStorageFile(md5($key)); 88 // See if this storage file is locked, if so we wait upto 5 seconds for the lock owning process to 106 public function set($key, $value) { 107 $storageDir = $this->getStorageDir(md5($key)); 108 $storageFile = $this->getStorageFile(md5($key)); 129 public function delete($key) { 130 $file = $this->getStorageFile(md5($key)); 131 if (! @unlink($file)) {index.php https://bitbucket.org/dotclear/dotclear/ | PHP | 373 lines
1<?php 2# -- BEGIN LICENSE BLOCK --------------------------------------- 16if (!empty($_REQUEST['edit']) && !empty($_REQUEST['id'])) { 17 include dirname(__FILE__).'/edit.php'; 18 return; 32 files::uploadStatus($_FILES['links_file']); 33 $ifile = DC_TPL_CACHE.'/'.md5(uniqid()); 34 if (!move_uploaded_file($_FILES['links_file']['tmp_name'],$ifile)) { 37 38 require_once dirname(__FILE__).'/class.dc.importblogroll.php'; 39 try { 171<head> 172 <title><?php echo __('Blogroll'); ?></title> 173 <?php echo dcPage::jsConfirmClose('links-form','add-link-form','add-category-form'); ?> 173 <?php echo dcPage::jsConfirmClose('links-form','add-link-form','add-category-form'); ?> 174 <?php 175 $core->auth->user_prefs->addWorkspace('accessibility');ezcollaborationitemparticipantlink.php git://github.com/ezsystems/ezpublish.git | PHP | 342 lines
1<?php 2/** 11/*! 12 \class eZCollaborationItemParticipantLink ezcollaborationitemparticipantlink.php 13 \brief The class eZCollaborationItemParticipantLink does 139 140 $cacheHashKey = md5( serialize( $parameters ) ); 141tiny_mce_gzip.php http://compactcms.googlecode.com/svn/trunk/compactcms/ | PHP | 175 lines
1<?php 2 2 3// $Id: tiny_mce_gzip.php 315 2007-10-25 14:03:43Z spocke $ 4 52 53 $cacheKey = md5($cacheKey); 54phpmysqlautobackup_extras.php https://code.google.com/p/bilugcms/ | PHP | 62 lines
1<?php 2require_once("auth.php"); 3/********************************************************** 4 * phpMySQLAutoBackup * 5 * Author: http://www.DWalker.co.uk * 15 **********************************************************/ 16$phpMySQLAutoBackup_version="1.4.0"; 17// --------------------------------------------------------- 29 $mail_attached = ""; 30 $boundary = "----=_NextPart_000_01FB_010".md5($to_emailaddress); 31 $mail_attached.="--".$boundary."\n" 37 $add_header ="MIME-Version: 1.0\nContent-Type: multipart/mixed;\n boundary=\"$boundary\" \n\n"; 38 $mail_content="--".$boundary."\n"."Content-Type: text/plain; \n charset=\"iso-8859-1\"\n"."Content-Transfer-Encoding: 7bit\n\nBACKUP ESEGUITO CON SUCCESSO/BACKUP Successful...\n\nApri l'allegato per il file di Backup zippato\n\nPlease see attached for your zipped Backup file; $backup_type \nSe questo e' il primo backup e' consigliato verificare su un server di test che sia generato correttamente\n\nIf this is the first backup then you should test it restores correctly to a test server.\n\n phpMySQLAutoBackup is developed by http://www.dwalker.co.uk/ \n\n Have a good day now you have a backup of your MySQL db ;-) \n\nPlease consider making a donation at: \n http://www.dwalker.co.uk/make_a_donation.php \n (any amount is gratefully received)\n".$mail_attached; 39 return mail($to_emailaddress, $subject, $mail_content, "From: $from_emailaddress\nReply-To:$from_emailaddress\n".$add_header);recoverpassword.php http://n-13news.googlecode.com/svn/trunk/ | PHP | 128 lines
1<?php 2/*********************************************************************** 53 $vcode = rand(1,10000000); 54 $vcode = md5($hash . uniqid($vcode)); 55 DataAccess::put("UPDATE " . NEWS_USERS . " SET vcode = ? WHERE email = ?", $vcode, $email); 65 $message .= "<br><br>"; 66 $message .= "<a href=\"http://$_SERVER[HTTP_HOST]$_SERVER[PHP_SELF]?action=recoverpass&vcode=$vcode&email=$email\">".$langmsg['recover'][4]."</a>"; 67 if(@mail($email,"Account info",$message,$headers)){ 112 $pass = $_POST['T1']; 113 $pass = md5(SALT . $pass); 114 DataAccess::put(sprintf("UPDATE %s SET pass = ?, newpass = ?, vcode = ? WHERE email = ? AND vcode = ?", NEWS_USERS), "", $pass, "", $email, $vcode);authentication.php git://github.com/forkcms/forkcms.git | PHP | 355 lines
1<?php 2 75 /** 76 * Returns a string encrypted like sha1(md5($salt) . md5($string)) 77 * The salt is an optional extra string you can strenghten your encryption with 88 // return the encrypted string 89 return (string) sha1(md5($salt) . md5($string)); 90 }MultipartBody.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 295 lines
1<?php 2/** 4 * 5 * PHP version 5 6 * 8 * 9 * Copyright (c) 2008, 2009, Alexey Borzov <avb@php.net> 10 * All rights reserved. 37 * @package HTTP_Request2 38 * @author Alexey Borzov <avb@php.net> 39 * @license http://opensource.org/licenses/bsd-license.php New BSD License 39 * @license http://opensource.org/licenses/bsd-license.php New BSD License 40 * @version SVN: $Id: MultipartBody.php 290192 2009-11-03 21:29:32Z avb $ 41 * @link http://pear.php.net/package/HTTP_Request2 51 * @package HTTP_Request2 52 * @author Alexey Borzov <avb@php.net> 53 * @version Release: 0.5.2del_cat.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 175 lines
1<?php 2 28 { 29 if ( $delallcheckss == md5( $catid . session_id() . $global_config['sitekey'] ) ) 30 { 55 56 $contents = "<form action=\"" . NV_BASE_ADMINURL . "index.php\" method=\"post\">"; 57 $contents .= "<input type=\"hidden\" name =\"" . NV_NAME_VARIABLE . "\"value=\"" . $module_name . "\" />"; 100 nv_del_moduleCache($module_name); 101 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=cat&parentid=" . $parentid . "" ); 102 die(); 131 nv_del_moduleCache($module_name); 132 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=cat&parentid=" . $parentid . "" ); 133 die(); 138 { 139 $contents = "ERR_ROWS_" . $catid . "_" . md5( $catid . session_id() . $global_config['sitekey'] ) . "_" . sprintf( $lang_module['delcat_msg_rows'], $check_rows ); 140 }DataValidation.php https://PHPExcel.svn.codeplex.com/svn | PHP | 501 lines
22 * @package PHPExcel_Cell 23 * @copyright Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 29/** 30 * PHPExcel_Cell_DataValidation 31 * 33 * @package PHPExcel_Cell 34 * @copyright Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 88 */ 89 private $_errorStyle = PHPExcel_Cell_DataValidation::STYLE_STOP; 90 161 /** 162 * Create a new PHPExcel_Cell_DataValidation 163 *DataValidation.php https://PHPExcel.svn.codeplex.com/svn | PHP | 501 lines
22 * @package PHPExcel_Cell 23 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 29/** 30 * PHPExcel_Cell_DataValidation 31 * 33 * @package PHPExcel_Cell 34 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 88 */ 89 private $_errorStyle = PHPExcel_Cell_DataValidation::STYLE_STOP; 90 161 /** 162 * Create a new PHPExcel_Cell_DataValidation 163 *FS.php git://github.com/gallery/gallery3-contrib.git | PHP | 180 lines
1<?php 2 5 * 6 * This Lock Manager stores all its data in the filesystem. By default it will do this in PHP's standard temporary session directory, 7 * but this can be overriden by specifiying an alternative path in the contructor 31 32 return $this->dataDir . '/sabredav_' . md5($uri) . '.locks'; 33fileinfo.php http://phpwcms.googlecode.com/svn/trunk/ | PHP | 212 lines
26require_once ('include/inc_lib/default.inc.php'); 27require_once (PHPWCMS_ROOT.'/include/inc_lib/dbcon.inc.php'); 28 76 <title><?php echo $BL['FILEINFO_TITLE'] ?>: <?php echo $filename ?></title> 77 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo PHPWCMS_CHARSET ?>" /> 78 <meta http-equiv="Expires" content="0" /> 129 <tr> 130 <td width="422" class="v10"><?php echo $BL['CREATED'] ?>: <strong><?php echo date($BL['DATE_FORMAT'], intval($row["f_created"])) ?></strong> <?php echo $BL['SIZE'] ?>: <strong><?php echo fsizelong($row["f_size"]) ?></strong></td> 131 <td width="96" align="right"><?php 132 if(!$row["f_trash"]) { 133 ?><a href="include/inc_act/act_download.php?dl=<?php 134 142 } 143 ?><img src="img/leer.gif" alt="" width="9" height="1" /><img src="img/button/aktiv_12x13_<?php echo $row["f_aktiv"] ?>.gif" alt="" width="12" height="13" /><img src="img/button/public_12x13_<?php echo $row["f_public"] ?>.gif" alt="" width="12" height="13" /></td> 144 </tr>settings.php http://winn-guestbook.googlecode.com/svn/trunk/ | PHP | 1 lines
1<?php require('../data/dbcon.php'); ?> <?php require('../data/functions.php'); ?> <?php session_start(); $showerror = null; $UserChk = checkUser($_COOKIE['winnguestbook_u'], $_COOKIE['winnguestbook_auth']); if( $UserChk == FALSE ) { header("location: index.php"); } ?> <?php if(isset($_GET['air'])) { if($_GET['air'] == 'off') { activateAir($_COOKIE['winnguestbook_u'], $_COOKIE['winnguestbook_auth'],false); header("location: settings.php"); }else{ activateAir($_COOKIE['winnguestbook_u'], $_COOKIE['winnguestbook_auth'],true); header("location: settings.php"); } } if( isset($_POST['save']) ) { if( empty($_POST['cpass']) ) { $error = "12"; } if( empty($_POST['newpass']) ) { $error = "12"; } if( empty($_POST['newpass2']) ) { $error = "12"; } if( $_POST['newpass'] != $_POST['newpass2'] ) { $error = "12"; } if( empty($error) ) { $change = passwordUpdate($_COOKIE['winnguestbook_u'], $_COOKIE['winnguestbook_auth'], $_POST['newpass'], $_POST['cpass']); if( $change == TRUE ) { setcookie('winnguestbook_auth', md5($_POST['newpass']), time()+3600); header("location: settings.php?saved=true"); }else{ header("location: settings.php?error=1"); } }else{ $showerror = "<p class=\"red\">Sorry we could not update this record, try again.</p>"; } } if(isset($_GET['saved'])) { if ($_GET['saved'] == true) { $showerror = "<p style=\"text-align:center;\" class=\"highlight\">Settings saved.</p>"; } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css">@import url('css/admin.css'); </style> <link rel="stylesheet" href="../css/ui-lightness/jquery-ui-1.7.2.custom.css"/> <script type="text/javascript" src="../js/jquery-1.3.2.min.js"></script> <script type="text/javascript" src="../js/jquery-ui-1.7.2.custom.min.js"></script> <script type="text/javascript" src="js/Winnjs.js"></script> <title>Winn Guestbook <?php echo $version; ?></title> </head> <body> <div id="adminheader"> <?php include('inc/sitename.php'); ?> <ul id="dash"> <?php include('inc/header.php'); ?> <div class="content" id="settingspage"> <?php echo $showerror; ?> <h3>Change your password</h3> <table> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <tr> <td style="width:230px; text-align:right;">Current Password:</td> <td><input type="password" name="cpass" /></td> </tr> <tr> <td style="width:230px; text-align:right;">New Password:</td> <td><input type="password" onblur="WinnJS.CheckPasswordSt(this.value);" id="newpassword" name="newpass" /></td> </tr> <tr> <td style="width:230px; text-align:right;">Password Strength:</td> <td style="width:230px;"><div id="showin"></div></td> </tr> <tr> <td style="width:230px; text-align:right;">Retype Password:</td> <td><input type="password" name="newpass2" /></td> </tr> <tr> <td></td> <td><input type="submit" value="Save »" name="save" /></td> </tr> </form> </table> <h3>Approved Posters</h3> <p>The approved posters list will allow select users to post on your guestbook with out approval. You may add and delete from this menu below.</p> <table> <tr> <td>Approved email:</td> <td><input type="text" name="approvedEmail" id="approvedEmail" /></td> <td><input type="button" value="Save" id="approvedEmailSave" onclick="WinnJS.AddapprovedEmail($('#approvedEmail').val());" /></td> </tr> </table> <p style="display:none;" id="savingStatus"><span class="highlight">Saving...</span></p> <script type="text/javascript"> $(document).ready(function(){ $("#approved_list_loader").load('inc/approvedPosters.php'); }); </script> <div id="approved_list_loader"> <p>loading...</p> </div> <?php if(DELETE_SPAM == true) { ?> <h3>Akismet API Key Check</h3> <p><a href="javascript://" onclick="WinnJS.APIKeyCheck()">Check my key now!</a></p> <?php } ?> <h3>Disapproved Posters (by domain)</h3> <p>If you add a domain to this list a user with an email address from it will no longer be able to post. (If you add "google.com" then any user from that domain can not post on the Guestbook: user@google.com will be blocked.)</p> <div class="ui-widget" id="disapproveddomains"> <div style="padding: 0pt 0.7em; margin-top: 20px;" class="ui-state-highlight ui-corner-all"> <p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-info"></span> <strong>WARNING: </strong> Only put domains in this list that you want to block.</p> </div> </div> <table> <tr> <td>Disapproved domain:</td> <td><input type="text" name="disapprovedEmail" id="disapprovedEmail" /></td> <td><input type="button" value="Save" id="disapprovedEmailSave" onclick="WinnJS.AdddisapprovedEmail($('#disapprovedEmail').val());" /></td> </tr> </table> <script type="text/javascript"> $(document).ready(function(){ $("#disapproved_list_loader").load('inc/disapprovedPosters.php'); }); </script> <div id="disapproved_list_loader"> <p>loading...</p> </div> <h3>Site Information</h3> <p>To edit the information below click the "<em>edit</em>" next to the title of the page above the navigation.</p> <ul> <li><strong>Guestbook Version:</strong> <?php echo LONG_VERSION;?></li> <li><strong>Site Name:</strong> <?php echo SiteName();?></li> <li><strong>Site Address:</strong> <?php echo SiteAddress();?></li> </ul> <h3>Support</h3> <p>Have questions or need support for this product? Below are some helpful links to use.</p> <ul> <li><strong>Support Wiki:</strong> <a href="http://code.google.com/p/winn-guestbook/w/list">http://code.google.com/p/winn-guestbook/w/list</a></li> <li><strong>Support Issues:</strong> <a href="http://code.google.com/p/winn-guestbook/issues/list">http://code.google.com/p/winn-guestbook/issues/list</a></li> <li><strong>Developers Website:</strong> <a href="http://winn.ws">http://winn.ws</a></li> </ul> </div> <?php include('inc/footer.php');?> </body> </html>WigetBrowserAdmin.cs http://zero-k.googlecode.com/svn/trunk/ | C# | 291 lines
18 protected string login; 19 protected string passwordMd5; 20 23 this.m_baseAdminUrl = serverUrl; 24 this.m_baseAdminUrlPoint = m_baseAdminUrl + "/admin.php?"; 25 } 29 this.login = username; 30 this.passwordMd5 = Tools.Md5Cached.string2Md5Uncached(password); 31 31 32 m_baseAdminUrlPoint = m_baseAdminUrl + "/admin.php?" + "lname=" + username + "&pwstr=" + this.passwordMd5 + "&"; 33 }common_functions.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 314 lines
1<?php 2 56 'name' => $myts->makeTboxData4Show( $pipe_row['name'] ) , 57 'url' => 'index.php?page=eachpipe&pipe_id='.$pipe_id , 58 ) ; 94 if( file_exists( $classes_base . '/' . $file ) ) { 95 $ret = strtolower( substr( $file , strlen( 'D3pipes'.$joint_type ) , - strlen( '.class.php' ) ) ) ; 96 break ; 107{ 108 $salt = substr( md5( XOOPS_ROOT_PATH . XOOPS_DB_USER . XOOPS_DB_PREFIX ) , 0 , 6 ) ; 109 $base = XOOPS_TRUST_PATH.'/cache/'.$mydirname.'_'.$salt.'_' ; 147{ 148 require_once dirname(dirname(__FILE__)).'/joints/clip/D3pipesClipModuledb.class.php' ; 149 163 if( substr( $file , 0 , 7 + strlen( $joint_type ) ) != 'D3pipes'.ucfirst($joint_type) ) continue ; 164 if( substr( $file , -10 ) != '.class.php' ) continue ; 165 $class_name = substr( $file , 0 , -10 ) ;file.class.php http://freewms.googlecode.com/svn/trunk/ | PHP | 82 lines
1<?php if(!defined('BASEPATH')) die('Access Denied'); 2/*------------------------------------------------- 16 public static function set($key, $value) { 17 $key = md5(SAFETY_STRING.$key); 18 $path = BASEPATH.CACHE_PATH.'data/'.substr($key,0,2)."/".substr($key,2,2).'/'; 34 public static function get($key, $expires = NULL) { 35 $key = md5(SAFETY_STRING.$key); 36 $path = BASEPATH.CACHE_PATH.'data/'.substr($key,0,2)."/".substr($key,2,2).'/'; 58 public static function delete($key) { 59 $key = md5(SAFETY_STRING.$key); 60 $path = BASEPATH.CACHE_PATH.'data/'.substr($key,0,2)."/".substr($key,2,2).'/';UserDetails.php http://web3cms.googlecode.com/svn/trunk/ | PHP | 247 lines
1<?php 2 235 { 236 return md5(uniqid(rand(),true)); 237 }test_index_simple.py https://bitbucket.org/tarek/distutils2/ | Python | 323 lines
70 # issue 20 71 url = 'http://http://svn.pythonpaste.org/Paste/wphp/trunk' 72 try: 163 # external download links. 164 # http://bitbucket.org/tarek/distribute/issue/163/md5-validation-error 165 # 166 # Usecase : 167 # - someone uploads a package on pypi, a md5 is generated 168 # - someone manually coindexes this link (with the md5 in the url) onto 169 # an external page accessible from the package page. 170 # - someone reuploads the package (with a different md5) 171 # - while easy_installing, an MD5 error occurs because the external 182 183 # we have only one link, because links are compared without md5 184 self.assertEqual(1, len(releases))Alignment.php https://PHPExcel.svn.codeplex.com/svn | PHP | 493 lines
22 * @package PHPExcel_Style 23 * @copyright Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 29/** PHPExcel_IComparable */ 30require_once 'PHPExcel/IComparable.php'; 31 37 * @package PHPExcel_Style 38 * @copyright Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel) 39 */ 39 */ 40class PHPExcel_Style_Alignment implements PHPExcel_IComparable 41{ 118 /** 119 * Create a new PHPExcel_Style_Alignment 120 */basics.php http://webworks-webme.googlecode.com/svn/trunk/ | PHP | 323 lines
3session_start(); 4require 'Log.php'; 5if(!defined('START_TIME'))define('START_TIME',microtime(true)); 36} 37function cache_load($type,$md5){ 38 if(file_exists(USERBASE.'/ww.cache/'.$type.'/'.$md5)){ 54 foreach($tmparr as $name=>$val)$tmparr2[]='\''.addslashes($name).'\'=>\''.addslashes($val).'\''; 55 $config="<?php\n\$DBVARS=array(\n ".join(",\n ",$tmparr2)."\n);"; 56 file_put_contents(CONFIG_FILE,$config); 236 echo '<html><body><p>No configuration file found</p>'; 237 if(file_exists('install/index.php'))echo '<p><a href="/install/index.php">Click here to install</a></p>'; 238 else echo '<p><strong>Installation script also missing...</strong> please contact kae@webworks.ie if you think there\'s a problem.</p>'; 241} 242require SCRIPTBASE . '.private/config.php'; 243if(isset($DBVARS['userbase']))define('USERBASE', $DBVARS['userbase']);LegacypageFunctions.class.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 330 lines
1<?php 2/** 3 * @package user 4 * @version $Id: LegacypageFunctions.class.php,v 1.6 2007/12/15 15:18:11 minahito Exp $ 5 */ 16 * @internal 17 * The process for userinfo.php. This process doesn't execute anything 18 * directly. Forward to the controller of the user module. 30 31 require_once XOOPS_MODULE_PATH . "/user/class/ActionFrame.class.php"; 32 44 * @internal 45 * The process for edituser.php. This process doesn't execute anything 46 * directly. Forward to the controller of the user module. 70 71 require_once XOOPS_MODULE_PATH . "/user/class/ActionFrame.class.php"; 72Drawing.php https://PHPExcel.svn.codeplex.com/svn | PHP | 189 lines
29/** PHPExcel_IComparable */ 30require_once 'PHPExcel/IComparable.php'; 31 35/** PHPExcel_Worksheet_BaseDrawing */ 36require_once 'PHPExcel/Worksheet/BaseDrawing.php'; 37 38/** PHPExcel_Worksheet_Drawing_Shadow */ 39require_once 'PHPExcel/Worksheet/Drawing/Shadow.php'; 40 46 * @package PHPExcel_Worksheet_Drawing 47 * @copyright Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel) 48 */ 48 */ 49class PHPExcel_Worksheet_Drawing extends PHPExcel_Worksheet_BaseDrawing implements PHPExcel_IComparable 50{dist.conf.inc.php http://phpwcms.googlecode.com/svn/trunk/ | PHP | 130 lines
34$phpwcms['admin_user'] = 'admin'; 35$phpwcms['admin_pass'] = 'acf977c1cfa27a463246f6963055cb11'; //MD5 36$phpwcms['admin_email'] = 'noreply@'.str_replace(array('www.', 'WWW.', '/'), '', $_SERVER["HTTP_HOST"]); 80$phpwcms['formmailer_set'] = array('allow_send_copy' => 0, 'global_recipient_email' => 'mail@example.com'); //for better security handling 81$phpwcms['allow_cntPHP_rt'] = 0; // allow PHP replacement tags and includes in content parts 82$phpwcms['BOTS'] = array('googlebot', 'msnbot', 'bingbot', 'ia_archiver', 'altavista', 'slurp', 'yahoo', 'jeeves', 'teoma', 'lycos', 'crawler'); 85$phpwcms['IE7-js'] = 0; // load IE7-js - fix for HTML/CSS/PNG bugs in IE 86$phpwcms['php_timezone'] = ''; // overwrite PHP default time zone http://php.net/manual/en/timezones.php 87$phpwcms['wysiwyg_template'] = array(); // deprecated 101$phpwcms['feuser_regkey'] = 'FEUSER'; 102$phpwcms['login.php'] = 'login.php'; 103$phpwcms['js_lib'] = array('jquery-1.9'=>'jQuery 1.9','jquery-1.9-migrate'=>'jQuery 1.9 Migrate','jquery-1.8'=>'jQuery 1.8','jquery-1.7'=>'jQuery 1.7','jquery-1.6'=>'jQuery 1.6','jquery-1.5'=>'jQuery 1.5','jquery-1.4'=>'jQuery 1.4','jquery'=>'jQuery 1.3','mootools-1.4'=>'MooTools 1.4','mootools-1.4-compat'=>'MooTools 1.4 Compat','mootools-1.2'=>'MooTools 1.2','mootools-1.1'=>'MooTools 1.1'); 122$phpwcms['SMTP_PORT'] = 25; // SMTP-Server port (default 25) 123$phpwcms['SMTP_MAILER'] = 'mail'; // default phpMailer: smtp, mail (default), sendmail 124$phpwcms['SMTP_AUTH'] = 0; // sets SMTP_AUTH to ON/OFFBorders.php https://PHPExcel.svn.codeplex.com/svn | PHP | 494 lines
22 * @package PHPExcel_Style 23 * @copyright Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 29/** PHPExcel_Style_Border */ 30require_once 'PHPExcel/Style/Border.php'; 31 32/** PHPExcel_IComparable */ 33require_once 'PHPExcel/IComparable.php'; 34 40 * @package PHPExcel_Style 41 * @copyright Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel) 42 */ 42 */ 43class PHPExcel_Style_Borders implements PHPExcel_IComparable 44{sparql2s3db.php https://code.google.com/p/s3db/ | PHP | 283 lines
1<?php 2#sparql serializer is an API that serializes a sparql query into an S3QL query 7 ini_set('display_errors',1); 8if(file_exists('config.inc.php')) 9 { 9 { 10 include('config.inc.php'); 11 } 13 { 14 Header('Location: index.php'); 15 exit; 16 } 17include('dbstruct.php'); 18@ini_set('allow_url_fopen', true); 32 33define("RDFAPI_INCLUDE_DIR", S3DB_SERVER_ROOT."/pearlib/rdfapi-php/api/"); 34include(RDFAPI_INCLUDE_DIR . "RdfAPI.php");del_cat.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 30 { 31 if ( $delallcheckss == md5( $catid . session_id() . $global_config['sitekey'] ) ) 32 { 57 58 $contents = "<form action=\"" . NV_BASE_ADMINURL . "index.php\" method=\"post\">"; 59 $contents .= "<input type=\"hidden\" name =\"" . NV_NAME_VARIABLE . "\"value=\"" . $module_name . "\" />"; 105 nv_del_moduleCache( $module_name ); 106 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=cat&parentid=" . $parentid . "" ); 107 die(); 140 nv_del_moduleCache( $module_name ); 141 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=cat&parentid=" . $parentid . "" ); 142 die(); 147 { 148 $contents = "ERR_ROWS_" . $catid . "_" . md5( $catid . session_id() . $global_config['sitekey'] ) . "_" . sprintf( $lang_module['delcat_msg_rows'], $check_rows ); 149 }access.class.php http://xfw-xkid-framework.googlecode.com/svn/trunk/ | PHP | 345 lines
1<?php 2/** 2/** 3 * PHP Class to user access (login, register, logout, etc) 4 * 4 * 5 * <code><?php 6 * include('access.class.php'); 10 * For support issues please refer to the webdigity forums : 11 * http://www.webdigity.com/index.php/board,91.0.html 12 * or the official web site: 12 * or the official web site: 13 * http://phpUserClass.com/ 14 * ============================================================================== 15 * 16 * @version $Id: access.class.php,v 0.93 2008/05/02 10:54:32 $ 17 * @copyright Copyright (c) 2007 Nick Papanotas (http://www.webdigity.com)file.php git://github.com/phpbb/phpbb3.git | PHP | 730 lines
21*/ 22class phpbb_cache_driver_file extends phpbb_cache_driver_base 23{ 82 global $phpbb_root_path; 83 include($phpbb_root_path . 'includes/functions.' . $phpEx); 84 } 304 { 305 $this->remove_file($this->cache_dir . 'data' . $var_name . ".$phpEx", true); 306 } 698 global $phpbb_root_path; 699 include($phpbb_root_path . 'includes/functions.' . $phpEx); 700 } 717 global $phpbb_root_path, $phpEx; 718 include($phpbb_root_path . 'includes/functions.' . $phpEx); 719 }location.php http://noserub.googlecode.com/svn/trunk/ | PHP | 156 lines
1<?php 2/* SVN FILE: $Id:$ */ 44 $url = Router::url('/locations/view/' . $this->id . '/', true); 45 $this->saveField('uid', md5($url)); 46frontController.php http://sgd.googlecode.com/svn/trunk/ | PHP | 387 lines
1<?php 2session_start(); 3 4include_once '../app/controllers/loginC.php'; 5include_once '../app/models/loginM.php'; 5include_once '../app/models/loginM.php'; 6include_once '../app/include/conexao.php'; 7 14// } 15 return $loginC->valida( $_POST['siape'], md5($_POST['senha'] ) ); 16} 22 /* @todo testar o redirecionamento */ 23 header('Location: ../index.php'); 24} 25 26include_once 'library/Smarty-3.0rc1/libs/Smarty.class.php'; 27include_once 'library/MPDF45/mpdf.php';endskin.php http://endcms.googlecode.com/svn/trunk/ | PHP | 143 lines
1<?php 2 52 $filename = $this->template_dir.$template; 53 $cache_filename = $this->cache_dir.md5($template); 54 //if (file_exists($cache_filename) && filemtime($cache_filename) > filemtime($filename)) return $cache_filename; 62 $tag = $this->_replace_var_name($tag); 63 $code = '<'.'?php echo '.$tag.'; ?'.'>'; 64 $page = str_replace($ms[0][$cnt],$code,$page); 73 $tag = $this->_replace_var_name($tag); 74 $code = '<'.'?php '.$tag.': ?>'; 75 $page = str_replace($ms[0][$cnt],$code,$page); 84 $tag = $this->_replace_var_name($tag); 85 $code = '<'.'?php '.$tag.':?>'; 86 $page = str_replace($ms[0][$cnt],$code,$page); 96 if (!preg_match('/\;\s*$/',$tag)) $tag.=';'; 97 $code = '<'.'?php echo '.$tag.'?>'; 98 $page = str_replace($ms[0][$cnt],$code,$page);cake_session.test.php git://github.com/Datawalke/Coordino.git | PHP | 508 lines
4 * 5 * PHP versions 4 and 5 6 * 6 * 7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> 8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests 15 * @package cake 16 * @subpackage cake.tests.cases.libs 17 * @since CakePHP(tm) v 1.2.0.4206 18 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License 92 function testSessionPath() { 93 $Session = new CakeSession('/index.php'); 94 $this->assertEqual('/', $Session->path);enddb.php http://endcms.googlecode.com/svn/trunk/ | PHP | 90 lines
1<?php 2/** 8* EndDB 9* 作者: Longbill longbill.cn@gmail.com http://php.js.cn 10* 2011-03-04 24 /** 25 * $path: EndDB数据文件存储的根目录,需要php具有读写权限 26 * $default_type: 如果是json,那么存储和读取数据的时候默认会执行json_encode和json_decode操作,默认是json。 36 * 存储数据 37 * $key: 数据的key,可以是任意字符串,因为会被md5一次。 38 * $data: 数据,如果$type是json,那么$data可以为array,否则只能是string 42 { 43 $hash = md5($key); 44 if ($type === '') $type = $this->default_type; 55 { 56 $hash = md5($key); 57 if ($type === '') $type = $this->default_type;lib_auth.php http://pixie-cms.googlecode.com/svn/trunk/ | PHP | 162 lines
1<?php 2if (!defined('DIRECT_ACCESS')) { 105 if ((isset($remember)) && ($remember)) { // persistent cookie required 106 setcookie('pixie_login', $username . ',' . md5($username . $nonce), time() + 3600 * 24 * 365, '/'); 107 } else { // session-only cookie required 107 } else { // session-only cookie required 108 setcookie('pixie_login', $username . ',' . md5($username . $nonce), 0, '/'); 109 } 139 $nonce = safe_field('nonce', 'pixie_users', "user_name='$username'"); 140 if (md5($username . $nonce) == $cookie_hash) { // check nonce 141 $privs = safe_field('privs', 'pixie_users', "user_name='$username'"); // login is good, create userbcmsdh.h git://github.com/CyanogenMod/cm-kernel.git | C++ Header | 209 lines
10 * under the terms of the GNU General Public License version 2 (the "GPL"), 11 * available at http://www.broadcom.com/licenses/GPLv2.php, with the 12 * following added to such license: 80 81/* Access SDIO address space (e.g. CCCR) using CMD52 (single-byte interface). 82 * fn: function number 102 103/* Synchronous access to device (client) core registers via CMD53 to F1. 104 * addr: backplane address (i.e. >= regsva from attach) 113 114/* Buffer transfer to/from device (client) core via cmd53. 115 * fn: function number 141 142/* Read/write to memory block (F1, no FIFO) via CMD53 (sync only). 143 * rw: read or write (0/1)class-items.php http://lilina.googlecode.com/svn/trunk/lilina/ | PHP | 511 lines
1<?php 2/** 103 if($current !== null) { 104 // Workaround for old, serialized PHP database 105 if(($this->items = json_decode($current)) === $current) { 373 * 374 * @return string MD5 hash 375 */Style.php https://PHPExcel.svn.codeplex.com/svn | PHP | 278 lines
35/** PHPExcel_Style_Fill */ 36require_once 'PHPExcel/Style/Fill.php'; 37 47/** PHPExcel_Style_Conditional */ 48require_once 'PHPExcel/Style/Conditional.php'; 49 50/** PHPExcel_IComparable */ 51require_once 'PHPExcel/IComparable.php'; 52 57 * @package PHPExcel_Cell 58 * @copyright Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel) 59 */ 59 */ 60class PHPExcel_Style implements PHPExcel_IComparable 61{UuidBuilder.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 166 lines
1<?php 2/** 2/** 3 * This file is part of PHP_Depend. 4 * 4 * 5 * PHP Version 5 6 * 38 * 39 * @category PHP 40 * @package PHP_Depend 43 * @copyright 2008-2010 Manuel Pichler. All rights reserved. 44 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 45 * @version SVN: $Id$ 53 * 54 * @category PHP 55 * @package PHP_Dependadmin_login.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 220 lines
26 header( NV_HEADERSTATUS . ' 401 Unauthorized' ); 27 if ( php_sapi_name() !== 'cgi-fcgi' ) 28 { 73 define( 'NV_IS_MOD_USER', true ); 74 require_once ( NV_ROOTDIR . '/' . DIR_FORUM . '/nukeviet/login.php' ); 75 } 76 $userid = 0; 77 $sql = "SELECT userid, username, password FROM `" . NV_USERS_GLOBALTABLE . "` WHERE md5username ='" . md5( $nv_username ) . "'"; 78 $result = $db->sql_query( $sql ); 136 137if ( file_exists( NV_ROOTDIR . "/language/" . NV_LANG_INTERFACE . "/admin_global.php" ) ) 138{ 201 { 202 if ( file_exists( NV_ROOTDIR . "/language/" . $lang_i . "/global.php" ) and file_exists( NV_ROOTDIR . "/language/" . $lang_i . "/admin_global.php" ) ) 203 {MediaMimeStream.php git://github.com/zendframework/zf2.git | PHP | 186 lines
1<?php 2 95 $this->_fileHandle = fopen($filePath, 'rb', TRUE); 96 $this->_boundaryString = '=_' . md5(microtime(1) . rand(1,20)); 97 $entry = $this->wrapEntry($xmlString, $fileContentType);Php.php https://code.google.com/p/mwenhanced/ | PHP | 359 lines
47 { 48 // QUERY_STRING is in form: PHPSESSID=<sid>&a=aaa&b=bbb&<id> 49 // where <id> is request ID, <sid> - session ID (if present), 49 // where <id> is request ID, <sid> - session ID (if present), 50 // PHPSESSID - session parameter name (by default = "PHPSESSID"). 51 64 // Start OB handling early. 65 $this->_uniqHash = md5(microtime() . getmypid()); 66 ini_set('error_prepend_string', ini_get('error_prepend_string') . $this->_uniqHash); 144 */ 145 function php2js($a) 146 { 164 } else { 165 foreach ($a as $k=>$v) $result[] = JsHttpRequest::php2js($k) . ': ' . JsHttpRequest::php2js($v); 166 return '{ ' . join(', ', $result) . ' }';ChangePassword.hx http://poko.googlecode.com/svn/trunk/ | Haxe | 112 lines
36import poko.utils.Tools; 37import haxe.Md5; 38import php.Web; 76 var oldPassword = app.db.requestSingle("SELECT password FROM _users WHERE id='" + user.id + "'").password; 77 if (Md5.encode(d.passwordOld) == oldPassword) { 78 if (d.passwordNew1 == d.passwordNew2) { 78 if (d.passwordNew1 == d.passwordNew2) { 79 app.db.update("_users", { password: Md5.encode(d.passwordNew1) }, "id='" + user.id + "'"); 80 messages.addMessage("Password updated.");RequestTest.php git://github.com/zendframework/zf2.git | PHP | 228 lines
72 'SCRIPT_NAME' => '/public/index.php', 73 'PHP_SELF' => '/public/index.php/news/3', 74 'SCRIPT_FILENAME' => '/var/web/html/public/index.php', 121 'QUERY_STRING' => 'var1=val1&var2=val2', 122 'PHP_SELF' => '/index.php/news/3', 123 'SCRIPT_FILENAME' => '/var/web/html/index.php', 139 'REQUEST_URI' => '/html/index.php/news/3?var1=val1&var2=val2', 140 'PHP_SELF' => '/html/index.php/news/3', 141 'SCRIPT_FILENAME' => '/var/web/html/index.php', 148 'REQUEST_URI' => '/dir/action', 149 'PHP_SELF' => '/dir/index.php', 150 'SCRIPT_FILENAME' => '/var/web/dir/index.php', 201 array( 202 'CONTENT_MD5' => md5('a'), 203 ),users_controller.php http://goldcat.googlecode.com/svn/ | PHP | 346 lines
1<?php 2 117 $this->data['User']['password'] = $this->Auth->password('123456'); 118 $this->data['User']['activation_code'] = md5(uniqid()); 119 if ($this->User->save($this->data)) {frontend.init.php http://phpwcms.googlecode.com/svn/trunk/ | PHP | 215 lines
26 27 $feedimport_where .= 'MD5(CONCAT(cnt_id,cnt_text))='._dbEscape($feedimport_source); 28 45 // Load SimplePie 46 require_once(PHPWCMS_ROOT.'/include/inc_ext/simplepie.inc.php'); 47 73 // need some additional functions 74 include_once(PHPWCMS_ROOT.'/include/inc_lib/backend.functions.inc.php'); 75 80 // check against crossreference table 81 $sql = 'SELECT * FROM '.DB_PREPEND.'phpwcms_crossreference c '; 82 $sql .= 'LEFT JOIN '.DB_PREPEND.'phpwcms_article a '; 173 174 $feedimport_result['status'][] = date('Y-m-d, H:i:s', $article_begin) . LF . $article_title . LF . $rssvalue->get_permalink() . LF . PHPWCMS_URL . 'phpwcms.php?do=articles&p=2&s=1&id='.$result['INSERT_ID']; 175global.voting.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 141 lines
1<?php 2 79 80 include_once ( NV_ROOTDIR . "/modules/" . $site_mods['voting']['module_file'] . "/language/" . NV_LANG_INTERFACE . ".php" ); 81 103 104 $action = NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=voting"; 105 106 $voting_array = array( // 107 "checkss" => md5( $current_voting['vid'] . $client_info['session_id'] . $global_config['sitekey'] ), // 108"accept" => ( int )$current_voting['acceptcm'], //MemberCommAction.class.php http://iiccms.googlecode.com/svn/trunk/ | PHP | 76 lines
1<?php 2/** 31 if (! $this->sessionID) { 32 $this->sessionID = md5 ( uniqid ( rand () ) ); 33 Session::set ( 'sessionID', $this->sessionID );autosuggest.php git://github.com/forkcms/forkcms.git | PHP | 224 lines
1<?php 2 75 $this->offset = ($this->requestedPage * $this->limit) - $this->limit; 76 $this->cacheFile = FRONTEND_CACHE_PATH . '/' . $this->getModule() . '/' . FRONTEND_LANGUAGE . '_' . md5($this->term) . '_' . $this->offset . '_' . $this->limit . '.php'; 77 164 // set cache content 165 SpoonFile::setContent($this->cacheFile, "<?php\n" . '$pagination = ' . var_export($this->pagination, true) . ";\n" . '$items = ' . var_export($this->items, true) . ";\n?>"); 166 }code_coverage_manager.test.php git://github.com/Datawalke/Coordino.git | PHP | 516 lines
6 * 7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> 8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests 15 * @package cake 16 * @subpackage cake.tests.cases.libs 17 * @since CakePHP(tm) v 1.2.0.4206 18 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License 133 $expected = $manager->__testObjectFileFromCaseFile('controllers/some_file.test.php', true); 134 $this->assertIdentical(APP.'controllers'.DS.'some_file.php', $expected); 135 249 } 250PHP; 251Webcall-index.html http://iiccms.googlecode.com/svn/trunk/ | HTML | 77 lines
28-?????????????????????????????????<font color="#FF0000">????</font>?<br /> 29 -????<a href="http://www.0594trade.com/forum.php?mod=forumdisplay&fid=69" target="_blank">http://www.0594trade.com/forum.php?mod=forumdisplay&fid=69</a><br /> 30 -??????<a href="http://www.365webcall.com/default.aspx?g=FJ_putian" target="_blank">http://www.365webcall.com/default.aspx?g=FJ_putian</a><br /> 46 <if condition="$email neq '' and $pwd neq ''"> 47 <a href="{:U('Webcall/opencall',array('email'=>$email,'accountid'=>$accountid,'pwd'=>$pwd,'name'=>$name))}">??????</a> <a href="http://p.365webcall.com/manage_index.aspx?accountid={$accountid2}&userid={$email2}&timeStamp=<?php echo date('YmdHi');?>&checkstring=<?php echo substr(md5("http://p.365webcall.com/manage_index.aspx?accountid=$accountid2&userid=$email2&timeStamp=".date('YmdHi').$pwd2),0,16);?>" target="_blank">????</a></if> <td> 48TagLibIic.class.php http://iiccms.googlecode.com/svn/trunk/ | PHP | 87 lines
1<?php 2 6 static $_iterateParseCache = array (); 7 $cacheIterateId = md5 ( $attr . $content ); 8 if (isset ( $_iterateParseCache [$cacheIterateId] )) 22 if (! empty ( $model )) { 23 $parseStr .= '<?php'; 24 $parseStr .= ' $condition = ' . $condition . ';'; 46 $parseStr .= $this->tpl->parse ( $content ); 47 $parseStr .= '<?php endforeach; endif; else: echo "' . $empty . '" ;endif; ?>'; 48 $_iterateParseCache [$cacheIterateId] = $parseStr; 56 static $_iterateParseCache = array (); 57 $cacheIterateId = md5 ( $attr . $content ); 58 if (isset ( $_iterateParseCache [$cacheIterateId] )) 67 if (! empty ( $model )) { 68 $parseStr .= '<?php'; 69 $parseStr .= ' $condition = ' . $condition . ';';array-tests.php git://github.com/nicolasff/phpredis.git | PHP | 526 lines
1<?php 2 2 3require_once(dirname($_SERVER['PHP_SELF'])."/test.php"); 4echo "Redis Array tests.\n\n"; 97 { 98 $a = unpack("N*", md5($key, true)); 99 global $newRing; 466 public function testDiscard() { 467 /* phpredis issue #87 */ 468 $key = 'test_err';act_user.php http://phpwcms.googlecode.com/svn/trunk/ | PHP | 63 lines
15require_once ('../inc_lib/default.inc.php'); 16require_once (PHPWCMS_ROOT.'/include/inc_lib/dbcon.inc.php'); 17 17 18require_once (PHPWCMS_ROOT.'/include/inc_lib/general.inc.php'); 19checkLogin(); 19checkLogin(); 20require_once (PHPWCMS_ROOT.'/include/inc_lib/backend.functions.inc.php'); 21 42 if(is_valid_email($user_email)) { 43 @mail($user_email, "your account", "YOUR PHPWCMS ACCOUNT WAS DELETED\n \ncontact the admin if you have any question.\n\nSee you at ".$phpwcms["site"], "From: ".$phpwcms["admin_email"]."\nReply-To: ".$phpwcms["admin_email"]."\n"); 44 } 60 61headerRedirect(PHPWCMS_URL.'phpwcms.php?do=admin'); 62utils.php http://0byte.googlecode.com/svn/trunk/ | PHP | 156 lines
1<?php 2/* 30 if ($html) $mail_headers[] = "Content-type: text/html; charset='UTF-8'"; 31 $mail_headers[] = 'X-Mailer: PHP/' . phpversion(); 32 return mail($to, $subject, $message, implode("\r\n", $mail_headers)); 44 while (strlen($pwd) < $len) { 45 $pwd .= md5(uniqid()); 46 } 79 * 80 * This function exploits preg_match behaviour (since PHP 4.3.5) when used 81 * with the u modifier, as a fast way to find invalid UTF-8. When the matched 86 * 87 * The specific preg_match behaviour is present since PHP 4.3.5. 88 * 122 * - 301 Moved Permanently (the recommended value for most redirects) 123 * - 302 Found (default in Drupal and PHP, sometimes used for spamming search 124 * engines)Fill.php https://PHPExcel.svn.codeplex.com/svn | PHP | 217 lines
22 * @package PHPExcel_Style 23 * @copyright Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/lgpl.txt LGPL 29/** PHPExcel_Style_Color */ 30require_once 'PHPExcel/Style/Color.php'; 31 40 * @package PHPExcel_Style 41 * @copyright Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel) 42 */ 42 */ 43class PHPExcel_Style_Fill implements PHPExcel_IComparable 44{ 104 $this->_startColor = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_WHITE); 105 $this->_endColor = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK); 106 }error.php git://github.com/moodle/moodle.git | PHP | 51 lines
1<?php 2 22 * needed during the very first steps of installation. This file was 23 * generated automatically by export-installer.php (which is part of AMOS 24 * {@link http://docs.moodle.org/dev/Languages/AMOS}) using the 38$string['cannotfindcomponent'] = 'Није могуће пронаћи компоненту.'; 39$string['cannotsavemd5file'] = 'Није могуће сачувати md5 датотеку.'; 40$string['cannotsavezipfile'] = 'Није могуће сачувти ZIP архиву.'; 44$string['downloadedfilecheckfailed'] = 'Није успела провера преузете датотеке'; 45$string['invalidmd5'] = 'Неисправна md5 датотека'; 46$string['missingrequiredfield'] = 'Недостаје неко обавезно поље'; 46$string['missingrequiredfield'] = 'Недостаје неко обавезно поље'; 47$string['remotedownloaderror'] = '<p>Преузимање ове компоненте на ваш сервер није успело. Проверите подешавања прокси сервера. PHP cURL екстензија се препоручује.</p> 48<p>Морате да преузмете <a href="{$a->url}">{$a->url}</a> датотеку ручно, копирате је у директоријум "{$a->dest}" на свом серверу и тамо је распакујете.</p>';functions.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 404 lines
1<?php 2 3/** 4 * mail_fetch/functions.php 5 * 8 * Original code from LexZEUS <lexzeus@mifinca.com> 9 * and josh@superfork.com (extracted from php manual) 10 * Adapted for MailFetch by Philippe Mingo <mingo@rotedic.com> 12 * @copyright © 1999-2007 The SquirrelMail Project Team 13 * @license http://opensource.org/licenses/gpl-license.php GNU Public License 14 * @version $Id: functions.php 12128 2007-01-13 20:15:44Z kink $ 20/** pop3 class */ 21include_once (SM_PATH . 'plugins/mail_fetch/constants.php'); 22include_once (SM_PATH . 'plugins/mail_fetch/class.mail_fetch.php'); 34/** load site config */ 35if (file_exists(SM_PATH . 'config/mail_fetch_config.php')) { 36 include_once(SM_PATH . 'config/mail_fetch_config.php');odf.php http://gevu.googlecode.com/svn/trunk/ | PHP | 363 lines
1<?php 2require 'zip/PclZipProxy.php'; 2require 'zip/PclZipProxy.php'; 3require 'zip/PhpZipProxy.php'; 4require 'Segment.php'; 8 * Templating class for odt file 9 * You need PHP 5.2 at least 10 * You need Zip Extension or PclZip library 14 * SVN Revision - $Rev: 42 $ 15 * Id : $Id: odf.php 42 2009-06-17 09:11:57Z neveldo $ 16 * 53 if (! class_exists($this->config['ZIP_PROXY'])) { 54 throw new OdfException($this->config['ZIP_PROXY'] . ' class not found - check your php settings'); 55 } 70 71 $tmp = tempnam($this->config['PATH_TO_TMP'], md5(uniqid())); 72 copy($filename, $tmp);Md5Test.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
130 $validator = new Zend_Validate_File_Md5(array('12345', '12333', '12344')); 131 $this->assertEquals(array('12345' => 'md5', '12333' => 'md5', '12344' => 'md5'), $validator->getMd5()); 132 } 159 $validator->setMd5(array('12321', '12121')); 160 $this->assertEquals(array('12321' => 'md5', '12121' => 'md5'), $validator->getMd5()); 161 } 189 $validator->addMd5(array('12321', '12121')); 190 $this->assertEquals(array('12345' => 'md5', '12344' => 'md5', '12321' => 'md5', '12121' => 'md5'), $validator->getMd5()); 191 } 201 $validator->addHash('12344'); 202 $this->assertEquals(array('12345' => 'md5', '12344' => 'md5'), $validator->getMd5()); 203 204 $validator->addHash(array('12321', '12121')); 205 $this->assertEquals(array('12345' => 'md5', '12344' => 'md5', '12321' => 'md5', '12121' => 'md5'), $validator->getMd5()); 206 }extend.php http://xtraupload.googlecode.com/svn/trunk/ | PHP | 1 lines
1<?php /** * XtraUpload * * A turn-key open source web 2.0 PHP file uploading package requiring PHP v5 * * @package XtraUpload * @author Matthew Glinski * @copyright Copyright (c) 2006, XtraFile.com * @license http://xtrafile.com/docs/license * @link http://xtrafile.com * @since Version 2.0 * @filesource */ // ------------------------------------------------------------------------ /** * XtraUpload Extend Page Controller * * @package XtraUpload * @subpackage Controllers - Admin * @category Controllers * @author Matthew Glinski * @link http://xtrafile.com/docs/pages/admin/extend */ // ------------------------------------------------------------------------ class Extend extends Controller { private $installed=''; private $not_installed=''; // ------------------------------------------------------------------------ public function Extend() { parent::Controller(); $this->load->model('admin_access'); $this->load->helper('string'); $this->load->helper('text'); } // ------------------------------------------------------------------------s public function index() { redirect('admin/extend/view'); } // ------------------------------------------------------------------------ public function view() { $this->_getInstalledPlugins(); $this->_getNotInstalledPlugins(); $data['installed']=array(); $data['not_installed']=array(); foreach($this->installed as $name) { $data['installed'][$name] = simplexml_load_file(APPPATH."extend/".$name."/".$name.'.xml'); } foreach($this->not_installed as $name) { $data['not_installed'][$name] = simplexml_load_file(APPPATH."extend/".$name."/".$name.'.xml'); } $data['flashMessage'] = ''; if($this->session->flashdata('msg')) { $data['flashMessage'] = '<span class="info"><b>'.$this->session->flashdata('msg').'</b></span>'; } $this->load->view($this->startup->skin.'/header', array('headerTitle' => 'Plugin Manager')); $this->load->view($this->startup->skin.'/admin/extend/view', $data); $this->load->view($this->startup->skin.'/footer'); } // ------------------------------------------------------------------------ public function install($name) { $name = str_replace(array('../', '..'), '', $name); $num_rows = $this->db->get_where('extend', array('file_name' => $name))->num_rows(); if(file_exists(APPPATH."extend/".$name.'/'.$name.'.php') and file_exists(APPPATH."extend/".$name."/".$name.'.xml') and $num_rows == 0) { $xml = simplexml_load_file(APPPATH."extend/".$name."/".$name.'.xml'); $data = array( 'data' => serialize($xml), 'file_name' => $name, 'date' => time(), 'active' => '1', 'uid' => $this->session->userdata('id'), ); $this->db->insert('extend', $data); $this->load->extention($name); $this->$name->install(); $this->session->set_flashdata('msg', 'Plugin "'.ucwords(str_replace('_', ' ', $name)).'" Installed'); } $this->_updateCache(); redirect('admin/extend/view'); } // ------------------------------------------------------------------------ public function remove($name) { $this->load->extention($name); $this->$name->uninstall(); $this->db->delete('extend', array('file_name' => $name)); $this->session->set_flashdata('msg', 'Plugin "'.ucwords(str_replace('_', ' ', $name)).'" Uninstalled'); $this->_updateCache(); redirect('admin/extend/view'); } // ------------------------------------------------------------------------ public function turn_on($name) { $this->db->where('file_name', $name)->update('extend', array('active' => 1)); $this->session->set_flashdata('msg', 'Plugin "'.ucwords(str_replace('_', ' ', $name)).'" Activated'); $this->_updateCache(); redirect('admin/extend/view'); } // ------------------------------------------------------------------------ public function turn_off($name) { $this->db->where('file_name', $name)->update('extend', array('active' => 0)); $this->session->set_flashdata('msg', 'Plugin "'.ucwords(str_replace('_', ' ', $name)).'" Deactivated'); $this->_updateCache(); redirect('admin/extend/view'); } // ------------------------------------------------------------------------ private function _updateCache() { $extend_file_name = md5($this->config->config['encryption_key'].'extend'); $data = array(); $db1 = $this->db->get_where('extend', array('active' => 1)); foreach($db1->result() as $plugin) { $data[] = $plugin->file_name; } if(empty($data)) { @unlink(CACHEPATH . $extend_file_name); } else { $final = base64_encode(serialize($data)); file_put_contents(CACHEPATH . $extend_file_name, $final); } $this->load->library('remote_server_xml_rpc'); $this->remote_server_xml_rpc->update_cache(); } // ------------------------------------------------------------------------ private function _getInstalledPlugins() { if(is_array($this->installed)) { return $this->installed; } $this->installed = array(); $db1 = $this->db->get('extend'); foreach($db1->result() as $plugin) { $this->installed[] = $plugin->file_name; } return $this->installed; } // ------------------------------------------------------------------------ private function _getNotInstalledPlugins() { if(is_array($this->not_installed)) { return $this->not_installed; } $this->not_installed = array(); $dir = APPPATH."extend/"; // Open a known directory, and proceed to read its contents if (is_dir($dir)) { if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { if(is_dir($dir . $file) and $file != '.' and $file != '..' and $file != '.svn' and !in_array($file, $this->installed) ) { $this->not_installed[] = $file; } } closedir($dh); } } return $this->not_installed; } }class.cached_units.php http://glossword.googlecode.com/svn/trunk/ | PHP | 207 lines
1<?php 2/** 7/** 8 * Class to store PHP-variables in a cache. 9 * 112 { 113 $h = hash( 'md5', $s ); 114 $n = '1';ini.php https://bitbucket.org/joomla/joomla-platform/ | PHP | 210 lines
1<?php 2/** 82 // Check the memory cache for already processed strings. 83 $hash = md5($data.':'.(int) $sections); 84 if (isset(self::$cache[$hash])) {Protection.php https://PHPExcel.svn.codeplex.com/svn | PHP | 226 lines
29/** PHPExcel_IComparable */ 30require_once 'PHPExcel/IComparable.php'; 31 37 * @package PHPExcel_Style 38 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel) 39 */ 39 */ 40class PHPExcel_Style_Protection implements PHPExcel_IComparable 41{ 104 * 105 * Returns the PHPExcel_Style_Protection that is actual bound to PHPExcel_Style 106 * 121 * 122 * If no PHPExcel_Style_Protection has been bound to PHPExcel_Style then bind this one. Return the actual bound one. 123 *Openssl.php git://github.com/zendframework/zf2.git | PHP | 470 lines
1<?php 2/** 358 ++$count; 359 $fingerprints[$count] = md5($details['key']); 360 } 421 if ($details !== false) { 422 $fingerprint = md5($details['key']); 423 } else { 423 } else { 424 $fingerprint = md5("ZendFramework"); 425 }dokeos185_assignment_file.class.php https://bitbucket.org/chamilo/chamilo-migration-dev/ | PHP | 335 lines
1<?php 2//namespace migration; 3///** 4// * $Id: dokeos185_assignment_file.class.php 221 2009-11-13 14:36:41Z vanpouckesven $ 5// * @package migration.lib.platform.dokeos185 7// 8//require_once dirname(__FILE__) . '/../../lib/import/import_assignment_file.class.php'; 9//require_once dirname(__FILE__) . '/../../../repository/lib/content_object/document/document.class.php'; 9//require_once dirname(__FILE__) . '/../../../repository/lib/content_object/document/document.class.php'; 10//require_once dirname(__FILE__) . '/../../../application/weblcms/php/content_object_publication.class.php'; 11//require_once dirname(__FILE__) . '/../../../application/weblcms/php/content_object_publication_category.class.php'; 142// 143// $document_md5 = md5_file($old_mgdm->append_full_path(false, $old_rel_path . $filename)); 144// $document_id = $mgdm->get_document_from_md5($new_user_id, $document_md5); 188// 189// $mgdm->add_file_md5($new_user_id, $lcms_document->get_id(), $document_md5); 190// }menus.php http://webworks-webme.googlecode.com/svn/trunk/ | PHP | 228 lines
1<?php 2function Menu_containsPage($needle, $haystack) { 18) { 19 $md5=md5( 20 $parentid.'|'.$currentpage.'|'.$isadmin.'|'.$topParent.'|'.$search_options 21 ); 22 $cache=cache_load('menus', $md5); 23 if ($cache) { 103 } 104 cache_save('menus', $md5, $menuitems); 105 return $menuitems; 111 } 112 $md5=md5('ww_menudisplay|'.print_r($b, true)); 113 $cache=cache_load('menus', $md5); 224 } 225 cache_save('menus', $md5, $c); 226 return $c;api.py https://bitbucket.org/kmike/vkontakte/ | Python | 177 lines
5import warnings 6from hashlib import md5 7from functools import partial 13 14API_URL = 'http://api.vk.com/api.php' 15SECURE_API_URL = 'https://api.vk.com/method/' 20# See full list of VK API methods here: 21# http://vk.com/developers.php?o=-1&p=%D0%A0%D0%B0%D1%81%D1%88%D0%B8%D1%80%D0%B5%D0%BD%D0%BD%D1%8B%D0%B5_%D0%BC%D0%B5%D1%82%D0%BE%D0%B4%D1%8B_API&s=0 22# http://vk.com/developers.php?o=-1&p=%D0%9E%D0%BF%D0%B8%D1%81%D0%B0%D0%BD%D0%B8%D0%B5_%D0%BC%D0%B5%D1%82%D0%BE%D0%B4%D0%BE%D0%B2_API&s=0 70 param_str = "".join(["%s=%s" % (str(key), _encode(params[key])) for key in keys]) 71 return md5(param_str + str(api_secret)).hexdigest() 72 149 else: 150 # http://vkontakte.ru/developers.php?oid=-1&p=Взаимодействие_приложения_с_API 151 params = dict(quartz.php http://prails.googlecode.com/svn/trunk/ | PHP | 168 lines
1<?php 2/** 40 41 if (!$id) $id = md5(implode($time).$event); 42 53 $mail = ">> ".$base."/log/quartz.log 2>&1"; 54 $prog = (Quartz::_getFirstAvailable())." '".str_replace("://", "://".$_SERVER["PHP_AUTH_USER"].":".$_SERVER["PHP_AUTH_PW"]."@", $SERVER)."?event=".$event."'"; 55 $cron[] = $time["min"]." ".$time["hour"]." ".$time["day"]." ".$time["month"]." ".$time["week"]." ".$prog." ".$mail." # \$id: ".$id; 78 $idTime = Quartz::_normalizeTime($idTime); 79 if (!$id) $id = md5(implode($idTime).$event); 80 } 128 static function _getFirstAvailable() { 129 exec("whereis php", $list); 130 if (strpos(implode("\n", $list), "php ") === false) return null; 131 132 return "/usr/bin/env php -q ".__FILE__; 133 }Generator.php git://github.com/fzaninotto/Faker.git | PHP | 292 lines
1<?php 2 126 * 127 * @property string $md5 128 * @property string $sha1 217 } else { 218 if (PHP_VERSION_ID < 70100) { 219 mt_srand((int) $seed); 220 } else { 221 mt_srand((int) $seed, MT_RAND_PHP); 222 }registration.php http://cmsdamu.googlecode.com/svn/trunk/ | PHP | 447 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 22 * @copyright Copyright (c) 2010 Codefight CMS Team (http://codefight.org) 23 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 24 */ 83 'label' => 'Password', 84 'rules' => 'trim|required|matches[password_conf]|xss_clean|md5' 85 ), 168 | @process_view('data', 'master page') 169 | @see app/core/MY_Controller.php 170 */ 318 319 $newPassMD5 = md5($newPass); 320Source.php git://github.com/moodle/moodle.git | PHP | 188 lines
1<?php 2/** 160 } 161 return md5(serialize($info)); 162 }Alignment.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 538 lines
2/** 3 * PHPExcel 4 * 22 * @package PHPExcel_Style 23 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 32 * @package PHPExcel_Style 33 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) 34 */ 34 */ 35class PHPExcel_Style_Alignment implements PHPExcel_IComparable 36{ 158 * 159 * @return PHPExcel_Worksheet 160 */callback.php git://github.com/joomla/joomla-platform.git | PHP | 209 lines
1<?php 2/** 28 * The callback definition can be in several forms: 29 * - Standard PHP Callback array see <http://php.net/callback> [recommended] 30 * - Function name as a string eg. 'foo' for function foo() 64 { 65 // We have a standard php callback array -- do nothing 66 } 77 * WILL! disappear in a future version. If you are using this syntax change your code to use the standard 78 * PHP callback array syntax: <http://php.net/callback> 79 * 193 * 194 * @return string MD5 Hash : function cache id 195 * 206 207 return md5(serialize(array($callback, $args))); 208 }storage.php git://github.com/joomla/joomla-platform.git | PHP | 335 lines
1<?php 2/** 72 $config = JFactory::getConfig(); 73 $this->_hash = md5($config->get('secret')); 74 $this->_application = (isset($options['application'])) ? $options['application'] : null; 140 141 if ($path = JPath::find(self::addIncludePath(), strtolower($handler) . '.php')) 142 { 181 { 182 include_once JPATH_PLATFORM . '/joomla/cache/storage/helper.php'; 183 } 301 { 302 $name = md5($this->_application . '-' . $id . '-' . $this->_language); 303 $this->rawname = $this->_hash . '-' . $name;SilvercartNewsletter.php https://bitbucket.org/silvercart/silvercart/ | PHP | 244 lines
1<?php 2/** 232 public static function createConfirmationHash($salutation, $firstName, $surName, $email) { 233 $confirmationHash = md5( 234 mktime() .login.php http://xoxoshop2010.googlecode.com/svn/trunk/ | PHP | 265 lines
31include($phpbb_root_path . 'extension.inc'); 32include($phpbb_root_path . 'common.'.$phpEx); 33 134 135 $message = $lang['Error_login'] . '<br /><br />' . sprintf($lang['Click_return_login'], "<a href=\"login.$phpEx?redirect=$redirect\">", '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>'); 136 153 154 $message = $lang['Error_login'] . '<br /><br />' . sprintf($lang['Click_return_login'], "<a href=\"login.$phpEx?redirect=$redirect\">", '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>'); 155 197 $page_title = $lang['Login']; 198 include($phpbb_root_path . 'includes/page_header.'.$phpEx); 199 255 256 include($phpbb_root_path . 'includes/page_tail.'.$phpEx); 257 }ga.php git://github.com/h5bp/mobile-boilerplate.git | PHP | 0 lines
1<?php 2 63 64 $md5String = md5($message); 65 65 66 return "0x" . substr($md5String, 0, 16); 67 } 173 } 174?><?php 175 trackPageView();global.functions.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 36 unset( $row, $comment ); 37 $base_url = NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=comment&id=" . $id . "&checkss=" . md5( $id . session_id() . $global_config['sitekey'] ); 38 $generate_page = nv_generate_page( $base_url, $all_page, $per_page, $page, true, true, 'nv_urldecode_ajax', 'showcomment' ); 124 global $lang_global, $module_name; 125 $link = "<span class=\"edit_icon\"><a href=\"" . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=content&id=" . $id . "\">" . $lang_global['edit'] . "</a></span>"; 126 return $link; 131 global $lang_global, $module_name; 132 $link = "<span class=\"delete_icon\"><a href=\"javascript:void(0);\" onclick=\"nv_del_content(" . $id . ", '" . md5( $id . session_id() ) . "','" . NV_BASE_ADMINURL . "')\">" . $lang_global['delete'] . "</a></span>"; 133 return $link;Memcache.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 267 lines
22 * @package PHPExcel_CachedObjectStorage 23 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 32 * @package PHPExcel_CachedObjectStorage 33 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel) 34 */ 34 */ 35class PHPExcel_CachedObjectStorage_Memcache extends PHPExcel_CachedObjectStorage_CacheBase implements 36 PHPExcel_CachedObjectStorage_ICache 65 * @param string $pCoord Coordinate address of the cell to update 66 * @param PHPExcel_Cell $cell Cell to update 67 * @return void 183 $baseUnique = $this->_getUniqueID(); 184 $newCachePrefix = substr(md5($baseUnique), 0, 8) . '.'; 185 $cacheList = $this->getCellList();ezuser_test.php git://github.com/ezsystems/ezpublish.git | PHP | 102 lines
1<?php 2/** 26 27 // Set HashType to md5_password (to update the password_hash in the ezuser table) 28 ezpINIHelper::setINISetting( 'site.ini', 'UserSettings', 'HashType', 'md5_password' ); 50 /** 51 * Test for issue #16328: Wrong hash stored in database on hash update in ezUser.php 52 */ 62 // Not used in this test 63 $passwordHashMD5Password = $rows[0]['password_hash']; 64 85 // (using the username and not the email address, which caused issue #16328) 86 $hashMD5Expected = md5( "{$this->username}\n{$this->password}" ); 87 88 // Verify that the 2 password hashes saved above are the same 89 $this->assertEquals( $hashMD5Expected, $passwordHashMD5User ); 90configure.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 180 lines
11 * @license http://opensource.org/licenses/gpl-license.php GNU Public License 12 * @version $Id: configure.php 12592 2007-08-20 15:16:24Z bouchon $ 13 * @package squirrelmail 18// Must be run from the command line 19// Should be compatible with PHP 4.2 20if(getenv('SERVER_NAME') || php_sapi_name() != 'cli') 24 25// PHP 4.2 compatible, no effect on PHP 4.3+ 26if(!defined('STDIN')) 27{ 28 define('STDIN',fopen("php://stdin","r")); 29 define('STDOUT',fopen("php://stdout","r")); 29 define('STDOUT',fopen("php://stdout","r")); 30 define('STDERR',fopen("php://stderr","r")); 31}