PageRenderTime 215ms queryTime 10ms sortTime 9ms getByIdsTime 79ms findMatchingLines 55ms

100+ results results for 'php md5 repo:seanom/concrete5' (215 ms)

Not the results you expected?
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));
                    
                
Cookie.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 355 lines
                    
1<?php
                    
2/*
                    
9* It is also available through the world-wide-web at this URL:
                    
10* http://opensource.org/licenses/osl-3.0.php
                    
11* If you did not receive a copy of the license and are unable to
                    
23*  @version  Release: $Revision: 6851 $
                    
24*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25*  International Registered Trademark & Property of PrestaShop SA
                    
65		$this->_expire = isset($expire) ? (int)($expire) : (time() + 1728000);
                    
66		$this->_name = md5($name);
                    
67		$this->_path = trim(__PS_BASE_URI__.$path, '/\\').'/';
                    
282	/**
                    
283	  * Setcookie according to php version
                    
284	  */
                    
296		}
                    
297		if (PHP_VERSION_ID <= 50200) /* PHP version > 5.2.0 */
                    
298			return setcookie($this->_name, $content, $time, $this->_path, $this->_domain, 0);
                    
                
aws_s3.php git://github.com/gallery/gallery3-contrib.git | PHP | 330 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2
                    
12        if (!self::$_s3) {
                    
13            require_once(MODPATH . "aws_s3/lib/s3.php");
                    
14            S3::setAuth(module::get_var("aws_s3", "access_key"), module::get_var("aws_s3", "secret_key"));
                    
121
                    
122        $item->s3_item_hash = md5($item->relative_path());
                    
123
                    
234    static function validate_access_details($access_key, $secret_key, $bucket_name) {
                    
235        require_once(MODPATH . "aws_s3/lib/s3.php");
                    
236        S3::setAuth($access_key, $secret_key);
                    
                
class.Cache.inc.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 326 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
                    
33*
                    
34* Tested with Apache 1.3.24 and PHP 4.2.3
                    
35*
                    
126		//return $filename;
                    
127		return (string) md5($filename);
                    
128	} // end function
                    
                
odf.php https://bitbucket.org/chamilo/chamilo/ | PHP | 369 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 *
                    
52        if (! class_exists($this->config['ZIP_PROXY'])) {
                    
53            throw new OdfException($this->config['ZIP_PROXY'] . ' class not found - check your php settings');
                    
54        }
                    
68
                    
69        $tmp = tempnam($this->config['PATH_TO_TMP'], md5(uniqid()));
                    
70        copy($filename, $tmp);
                    
                
cas_user_request.class.php https://bitbucket.org/chamilo/chamilo-app-cas-user-dev/ | PHP | 221 lines
                    
1<?php
                    
2namespace application\cas_user;
                    
14
                    
15require_once dirname(__FILE__) . '/cas_account.class.php';
                    
16
                    
214        $cas_account->set_group('-');
                    
215        $cas_account->set_password(md5(Text :: generate_password()));
                    
216        $cas_account->set_status(CasAccount :: STATUS_ENABLED);
                    
                
contact-dist.php http://simplemodal.googlecode.com/svn/trunk/ | PHP | 203 lines
                    
1<?php
                    
2
                    
9 * Licensed under the MIT license:
                    
10 *   http://www.opensource.org/licenses/mit-license.php
                    
11 */
                    
94function smcf_token($s) {
                    
95	return md5("smcf-" . $s . date("WY"));
                    
96}
                    
130	}
                    
131	$headers .= "X-Mailer: PHP/SimpleModalContactForm";
                    
132
                    
                
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>
                    
                
People.Class.Session.php http://lussumo-vanilla.googlecode.com/svn/trunk/ | PHP | 214 lines
                    
1<?php
                    
2/**
                    
132		if (session_id()) {
                    
133			if (version_compare(phpversion(), '5.0.0', '>=')) {
                    
134				session_regenerate_id(true);
                    
137				session_destroy();
                    
138				session_id(md5(uniqid(rand(), true) . rand()));
                    
139				if ($Context->Configuration['SESSION_NAME']) {
                    
187	/**
                    
188	 * Start the PHP session
                    
189	 *
                    
201			$UseSsl = ($Context->Configuration['HTTP_METHOD'] === "https");
                    
202			if (version_compare(PHP_VERSION, '5.2.0', '>=')) {
                    
203				session_set_cookie_params(0, $Context->Configuration['COOKIE_PATH'],
                    
                
usuarios.php https://gestion001.svn.codeplex.com/svn | PHP | 110 lines
                    
52<head>
                    
53<?php include_once ("inc_head_adm.php"); ?>
                    
54<title><?php echo $titulo_seccion;?></title>
                    
62  <tr align="right">
                    
63    <td colspan="2" class="tr2" >&nbsp;<?php echo ($startRow_rs_usuarios_administrativos + 1) ?> a <?php echo min($startRow_rs_usuarios_administrativos + $maxRows_rs_usuarios_administrativos, $totalRows_rs_usuarios_administrativos) ?> de <?php echo $totalRows_rs_usuarios_administrativos ?> </td>
                    
64  </tr>
                    
71    <tr>
                    
72      <td class="tr1"><?php echo $row_rs_usuarios_administrativos['nombre1']; ?>&nbsp;<?php echo $row_rs_usuarios_administrativos['nombre2']; ?>&nbsp;<?php echo $row_rs_usuarios_administrativos['apellido1']; ?>&nbsp;<?php echo $row_rs_usuarios_administrativos['apellido2']; ?>&nbsp;(<?php echo $row_rs_usuarios_administrativos['Usuario']; ?>)</td>
                    
73      <td width="20%" class="tr1"><a href="usuarios_editar.php?idUsuario=<?php echo $row_rs_usuarios_administrativos['idUsuario']; ?>">Editar</a> -
                    
73      <td width="20%" class="tr1"><a href="usuarios_editar.php?idUsuario=<?php echo $row_rs_usuarios_administrativos['idUsuario']; ?>">Editar</a> -
                    
74          <a href="javascript:abrirlink('borrar','delete_main.php?tabla=Usuario&nombre_campo=idUsuario&idUsuario=<?php echo $row_rs_usuarios_administrativos['idUsuario']; ?>','<?php echo str_replace(" ",'',md5(microtime()))?>');">Borrar</a></td>
                    
75    </tr>
                    
106</table>
                    
107<?php include_once ("inc_bottom_adm.php");?>
                    
108</body>
                    
                
getLocations.php http://webpagetest.googlecode.com/svn/trunk/ | PHP | 200 lines
                    
1<?php
                    
2include 'common.inc';
                    
176    
                    
177    $server_hash = md5($server);
                    
178    
                    
180    if (!array_key_exists($server_hash, $remote_cache)) {
                    
181        $remote = json_decode(json_encode((array)simplexml_load_file("$server/getLocations.php?hidden=1")), true);
                    
182        if (is_array($remote) && array_key_exists('data', $remote) && array_key_exists('location', $remote['data'])) {
                    
                
PackageXmlParserTest.php git://github.com/c9s/Onion.git | PHP | 133 lines
                    
84        <dir name="/">
                    
85            <file install-as="Onion/Application.php" name="src/Onion/Application.php" role="php" md5sum="cd08c9e1a21ce6d2f7ef0c0fc2ed849f"/>
                    
86            <file install-as="Onion/Command/BuildCommand.php" name="src/Onion/Command/BuildCommand.php" role="php" md5sum="c6c609136de4828b2f4e9d1624dbfd6c"/>
                    
91            <file install-as="Onion/GlobalConfig.php" name="src/Onion/GlobalConfig.php" role="php" md5sum="b2de5f4a4f385dea7e86598d6f3f11d9"/>
                    
92            <file install-as="Onion/Onion.php" name="src/Onion/Onion.php" role="php" md5sum="6a4e7d381b3cb0d8d67d3a7e35ac2537"/>
                    
93            <file install-as="Onion/PackageConfigReader.php" name="src/Onion/PackageConfigReader.php" role="php" md5sum="22fd847bbffeec43e82563351540441f"/>
                    
93            <file install-as="Onion/PackageConfigReader.php" name="src/Onion/PackageConfigReader.php" role="php" md5sum="22fd847bbffeec43e82563351540441f"/>
                    
94            <file install-as="Onion/Packager.php" name="src/Onion/Packager.php" role="php" md5sum="2fffec686af34345d9faef2efc04eb4a"/>
                    
95            <file install-as="Onion/PackageXml/PackageXmlWriter.php" name="src/Onion/PackageXml/PackageXmlWriter.php" role="php" md5sum="0913c185e0731fc1f8b2a126d24a39fb"/>
                    
95            <file install-as="Onion/PackageXml/PackageXmlWriter.php" name="src/Onion/PackageXml/PackageXmlWriter.php" role="php" md5sum="0913c185e0731fc1f8b2a126d24a39fb"/>
                    
96            <file install-as="Onion/SpecUtils.php" name="src/Onion/SpecUtils.php" role="php" md5sum="3acf35cf3fd15ae23eef6dabb0d210bd"/>
                    
97            <file install-as="Onion/TestCommand/ParentCommand/SubCommand.php" name="src/Onion/TestCommand/ParentCommand/SubCommand.php" role="php" md5sum="a69e9e6477f7d4d82f30b5769eae073e"/>
                    
97            <file install-as="Onion/TestCommand/ParentCommand/SubCommand.php" name="src/Onion/TestCommand/ParentCommand/SubCommand.php" role="php" md5sum="a69e9e6477f7d4d82f30b5769eae073e"/>
                    
98            <file install-as="Onion/TestCommand/ParentCommand.php" name="src/Onion/TestCommand/ParentCommand.php" role="php" md5sum="9bec2094c780a962306c2febc669f8b8"/>
                    
99            <file install-as="bootstrap.php" name="tests/bootstrap.php" role="test" md5sum="a4dcfe19452fe6d10e9349fdb424b80d"/>
                    
                
Mail.php git://github.com/jakubkulhan/shopaholic.git | PHP | 458 lines
                    
1<?php
                    
2
                    
10 *
                    
11 * For more information please see http://nettephp.com
                    
12 *
                    
13 * @copyright  Copyright (c) 2004, 2009 David Grudl
                    
14 * @license    http://nettephp.com/license  Nette license
                    
15 * @link       http://nettephp.com
                    
17 * @package    Nette\Mail
                    
18 * @version    $Id: Mail.php 368 2009-06-25 14:26:59Z david@grudl.com $
                    
19 */
                    
22
                    
23require_once dirname(__FILE__) . '/../Mail/MailMimePart.php';
                    
24
                    
290		$part->setHeader('Content-Disposition', 'inline; filename="' . basename($file) . '"');
                    
291		$part->setHeader('Content-ID', '<' . md5(uniqid('', TRUE)) . '>');
                    
292		return $this->inlines[$file] = $part;
                    
                
Form.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 457 lines
                    
1<?php
                    
2
                    
28 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
                    
29 * @version    SVN: $Id: Form.php 245 2010-01-31 22:22:39Z flo $
                    
30 */
                    
62        } else {
                    
63            $this->setCsrfSecret(md5(__FILE__.php_uname()));
                    
64        }
                    
242    {
                    
243        return md5($this->csrfSecret.session_id().get_class($this));
                    
244    }
                    
421            switch (strtolower(substr($max, -1))) {
                    
422                // The 'G' modifier is available since PHP 5.1.0
                    
423                case 'g':
                    
                
genmenu.php http://opixido-ocms.googlecode.com/svn/trunk/ | PHP | 325 lines
                    
1<?php
                    
2
                    
82         */
                    
83        $this->cache2 = new GenCache('arbo' . md5($this->site->g_url->topRubId . '-' . $this->site->getCurId() . '_' . $this->nom_menu), GetParam('date_update_arbo'));
                    
84        if (!$this->cache2->cacheExists()) {
                    
                
phmagick.php http://bedita.googlecode.com/svn/trunk/ | PHP | 341 lines
                    
1<?php
                    
2/*
                    
51        if(is_null($this->escapeChars) ){
                    
52            $this->escapeChars = !( strtolower ( substr( php_uname('s'), 0, 3))  == "win" ) ;
                    
53        }
                    
86            $ext = end (explode('.', $source)) ;
                    
87            $this->destinationFile = dirname($source) . '/' . md5(microtime()) . '.' . $ext;
                    
88        }
                    
163        $base = dirname(__FILE__) . '/plugins';
                    
164        $plugins = glob($base . '/*.php');
                    
165        foreach($plugins as $plugin){
                    
166            include_once $plugin ;
                    
167            $name = basename($plugin, '.php');
                    
168            $className = 'phMagick_'.$name ;
                    
                
logs.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 336 lines
                    
1<?php
                    
2
                    
24$sql = "SELECT SQL_CALC_FOUND_ROWS * FROM `" . $db_config['prefix'] . "_logs` WHERE `id`!=0";
                    
25$base_url = NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op;
                    
26
                    
39	$checksess = filter_text_input( 'checksess', 'get', '', 1 );
                    
40	if ( $checksess != md5 ( "siteinfo_" . session_id() . "_" . $admin_info['userid'] ) )
                    
41	{
                    
42		nv_insert_logs( NV_LANG_DATA, $module_name, sprintf ( $lang_module['filter_check_log'], $op ), $admin_info['username'] . " - " . $admin_info['userid'], 0 );
                    
43		Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op );
                    
44		exit();
                    
276$xtpl->assign( 'OP', $op );
                    
277$xtpl->assign( 'checksess', md5 ( "siteinfo_" . session_id() . "_" . $admin_info['userid'] ) );
                    
278$xtpl->assign( 'URL_DEL', $base_url . "&" . NV_OP_VARIABLE . "=logs_del" );
                    
278$xtpl->assign( 'URL_DEL', $base_url . "&" . NV_OP_VARIABLE . "=logs_del" );
                    
279$xtpl->assign( 'URL_CANCEL', NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op );
                    
280$xtpl->assign( 'DISABLE', $disabled );
                    
                
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 payload
                    
                
user_add.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 275 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();
                    
                
Fuzzer.pm https://code.google.com/p/perl-http-fuzzer/ | Perl | 376 lines
                    
88=item BASE64
                    
89=item MD5
                    
90=item SHA1
                    
94
                    
95 my $url = 'login.php?username=URLENCODE{{username}}&password=URLENCODE{SHA1{{username}:{password}}}';
                    
96 
                    
                
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	 *
                    
                
_md5_8php_source.html http://openbiz-cubi.googlecode.com/svn/trunk/ | HTML | 132 lines
                    
34<a name="l00026"></a>00026 
                    
35<a name="l00035"></a><a class="code" href="class_zend___validate___file___md5.html">00035</a> <span class="keyword">class </span><a class="code" href="class_zend___validate___file___md5.html">Zend_Validate_File_Md5</a> <span class="keyword">extends</span> <a class="code" href="class_zend___validate___file___hash.html">Zend_Validate_File_Hash</a>
                    
36<a name="l00036"></a>00036 {
                    
36<a name="l00036"></a>00036 {
                    
37<a name="l00040"></a><a class="code" href="class_zend___validate___file___md5.html#a0e9755eea7ef4ea25cd96ff8ced4d734">00040</a>     <span class="keyword">const</span> <a class="code" href="class_zend___validate___file___md5.html#a0e9755eea7ef4ea25cd96ff8ced4d734">DOES_NOT_MATCH</a> = <span class="stringliteral">&#39;fileMd5DoesNotMatch&#39;</span>;
                    
38<a name="l00041"></a>00041     <span class="keyword">const</span> NOT_DETECTED   = <span class="stringliteral">&#39;fileMd5NotDetected&#39;</span>;
                    
62<a name="l00081"></a>00081 
                    
63<a name="l00087"></a><a class="code" href="class_zend___validate___file___md5.html#a8ffe7cebad881b26dc1bb014dea34d4b">00087</a>     <span class="keyword">public</span> function <a class="code" href="class_zend___validate___file___md5.html#a8ffe7cebad881b26dc1bb014dea34d4b">getMd5</a>()
                    
64<a name="l00088"></a>00088     {
                    
78<a name="l00109"></a>00109 
                    
79<a name="l00116"></a><a class="code" href="class_zend___validate___file___md5.html#a838c699d63acedd05f69035892db10fd">00116</a>     <span class="keyword">public</span> function <a class="code" href="class_zend___validate___file___md5.html#a838c699d63acedd05f69035892db10fd">setMd5</a>($options)
                    
80<a name="l00117"></a>00117     {
                    
95<a name="l00139"></a>00139 
                    
96<a name="l00146"></a><a class="code" href="class_zend___validate___file___md5.html#addb853ff803761b2c0bb04759046d2a4">00146</a>     <span class="keyword">public</span> function <a class="code" href="class_zend___validate___file___md5.html#addb853ff803761b2c0bb04759046d2a4">addMd5</a>($options)
                    
97<a name="l00147"></a>00147     {
                    
                
PDO.php git://github.com/evert/SabreDAV.git | PHP | 331 lines
                    
1<?php
                    
2
                    
270
                    
271        return '"' . md5($cardData) . '"';
                    
272
                    
307
                    
308        return '"' . md5($cardData) . '"';
                    
309
                    
                
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	 *
                    
                
default.py http://seppius-xbmc-repo.googlecode.com/svn/trunk/ | Python | 407 lines
                    
21try:
                    
22    from hashlib import md5
                    
23except:
                    
23except:
                    
24    from md5 import md5
                    
25
                    
92    err=0
                    
93    m = hashlib.md5()
                    
94    m.update(str(n))
                    
125def get_inf_db(n):
                    
126    m = hashlib.md5()
                    
127    m.update(str(n))
                    
336        sts=kbd.getText();
                    
337        params['href'] = 'http://serialonline.net/index.php?do=search'
                    
338	post={}
                    
                
cnt1.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&amp;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        					  )
                    
                
sys_repair.php http://pj-photohost.googlecode.com/svn/trunk/ | PHP | 286 lines
                    
1<?php
                    
2require_once(dirname(__FILE__).'/config.php');
                    
3CheckPurview('sys_ArcBatch');
                    
4require_once(dirname(__FILE__).'/../include/oxwindow.class.php');
                    
5ShowMsg("?????????????????????????????<br /><a href='index_body.php'>&lt;&lt;?????&gt;&gt;</a>", "javascript:;");
                    
9	$win = new OxWindow();
                    
10	$win->Init("sys_repair.php","js/blank.js","POST' enctype='multipart/form-data' ");
                    
11	$win->mainTitle = "??????";
                    
11	$win->mainTitle = "??????";
                    
12	$wecome_info = "<a href='index_body.php'>????</a> &gt;&gt; ????????";
                    
13	$win->AddTitle('?????????????????????');
                    
25    <br />
                    
26    <a href='sys_repair.php?dopost=1' style='font-size:14px;color:red'><b>???????????&gt;&gt;</b></a>
                    
27    <br /><br /><br />
                    
72	$upsqls[] = "INSERT INTO `#@__sysconfig` (`aid` ,`varname` ,`info` ,`value` ,`type` ,`groupid`) VALUES (713, 'cfg_need_typeid2', '???????', 'N', 'bool', 6); ";
                    
73  $upsqls[] = "INSERT INTO `#@__sysconfig` (`aid` ,`varname` ,`info` ,`value` ,`type` ,`groupid`) VALUES (715, 'cfg_mb_pwdtype', '???????????32 — 32?md5????<br />l16 — ?16?? r16 — ?16?? m16 — ??16?', '32', 'string', 4); ";
                    
74  $upsqls[] = "Update `#@__sysconfig` set `groupid` = '8' where `varname` like 'cfg_group_%'; ";
                    
                
UsersController.php git://github.com/CauanCabral/Comitiva.git | PHP | 471 lines
                    
1<?php
                    
2class UsersController extends AppController
                    
441
                    
442		$token = sha1(md5($this->request->data['User']['password']) . time());
                    
443
                    
                
user_waiting.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 229 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'] ) . ", 
                    
74		$subject = $lang_module['adduser_register'];
                    
75		$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'] );
                    
76		$message .= "<br /><br />------------------------------------------------<br /><br />";
                    
                
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() ) );
                    
201		
                    
                
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;
                    
                
group__axutil__md5.html git://pkgs.fedoraproject.org/axis2c | HTML | 284 lines
                    
46<tr><td class="memItemLeft" nowrap align="right" valign="top">AXIS2_EXTERN <br>
                    
47axutil_md5_ctx_t *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__axutil__md5.html#gb1b0077f4d73b00f536914cf44b81437">axutil_md5_ctx_create</a> (const <a class="el" href="structaxutil__env.html">axutil_env_t</a> *env)</td></tr>
                    
48
                    
48
                    
49<tr><td class="memItemLeft" nowrap align="right" valign="top">AXIS2_EXTERN void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__axutil__md5.html#g15ae76fd76cb90f4325f88fcf34ea754">axutil_md5_ctx_free</a> (axutil_md5_ctx_t *md5_ctx, const <a class="el" href="structaxutil__env.html">axutil_env_t</a> *env)</td></tr>
                    
50
                    
54<tr><td class="memItemLeft" nowrap align="right" valign="top">AXIS2_EXTERN <br>
                    
55axis2_status_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__axutil__md5.html#g7954e033ab5182e623ade60ae1f7051f">axutil_md5_final</a> (axutil_md5_ctx_t *context, const <a class="el" href="structaxutil__env.html">axutil_env_t</a> *env, unsigned char digest[AXIS2_MD5_DIGESTSIZE])</td></tr>
                    
56
                    
152</div><p>
                    
153<a class="anchor" name="g15ae76fd76cb90f4325f88fcf34ea754"></a><!-- doxytag: member="axutil_md5.h::axutil_md5_ctx_free" ref="g15ae76fd76cb90f4325f88fcf34ea754" args="(axutil_md5_ctx_t *md5_ctx, const axutil_env_t *env)" -->
                    
154<div class="memitem">
                    
187</div><p>
                    
188<a class="anchor" name="g7954e033ab5182e623ade60ae1f7051f"></a><!-- doxytag: member="axutil_md5.h::axutil_md5_final" ref="g7954e033ab5182e623ade60ae1f7051f" args="(axutil_md5_ctx_t *context, const axutil_env_t *env, unsigned char digest[AXIS2_MD5_DIGESTSIZE])" -->
                    
189<div class="memitem">
                    
                
jMinifier.class.php https://bitbucket.org/doubleface/jelix-trunk | PHP | 285 lines
                    
1<?php
                    
2/**
                    
16
                    
17require_once "Minify/Controller/MinApp.php";
                    
18require_once 'Minify/Source.php';
                    
18require_once 'Minify/Source.php';
                    
19require_once 'Minify.php';
                    
20
                    
52     * Cache file locking. Set to false of filesystem is NFS. On at least one 
                    
53     * NFS system flock-ing attempts stalled PHP for 30 seconds!
                    
54     */
                    
90        //compute a hash of source files to manage cache
                    
91        $sourcesHash = md5(implode(';', $fileList));
                    
92
                    
                
sync.php git://github.com/davidpersson/media.git | PHP | 479 lines
                    
1<?php
                    
2/**
                    
9 *
                    
10 * PHP version 5
                    
11 * CakePHP version 1.3
                    
15 * @copyright  2007-2013 David Persson <nperson@gmx.de>
                    
16 * @license    http://www.opensource.org/licenses/mit-license.php The MIT License
                    
17 * @link       http://github.com/davidpersson/media
                    
317		}
                    
318		if ($this->__dbItem['checksum'] == $this->__File->md5(true)) {
                    
319			return;
                    
332				'id' => $this->__dbItem['id'],
                    
333				'checksum' => $this->__File->md5(true),
                    
334			);
                    
432				'file' => $File->pwd(),
                    
433				'checksum' => $File->md5(true)
                    
434			);
                    
                
user_waiting.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 222 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 />";
                    
                
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;
                    
                
CreateBlobOptionsTest.php https://hg.codeplex.com/bukuphpjs | PHP | 327 lines
                    
14 * 
                    
15 * PHP version 5
                    
16 *
                    
18 * @package   Tests\Unit\WindowsAzure\Blob\Models
                    
19 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
20 * @copyright 2012 Microsoft Corporation
                    
34 * @package   Tests\Unit\WindowsAzure\Blob\Models
                    
35 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
                    
36 * @copyright 2012 Microsoft Corporation
                    
98     * @covers WindowsAzure\Blob\Models\CreateBlobOptions::setContentMD5
                    
99     * @covers WindowsAzure\Blob\Models\CreateBlobOptions::getContentMD5
                    
100     */
                    
108        // Test
                    
109        $options->setContentMD5($expected);
                    
110        
                    
                
Template.php git://github.com/jakubkulhan/shopaholic.git | PHP | 472 lines
                    
17 * @package    Nette\Templates
                    
18 * @version    $Id: Template.php 298 2009-05-03 16:13:22Z david@grudl.com $
                    
19 */
                    
22
                    
23require_once dirname(__FILE__) . '/../Object.php';
                    
24
                    
178				$blocks = array();
                    
179				unset($php);
                    
180				foreach (token_get_all($content) as $token) {
                    
183							$res .= $token[1];
                    
184							unset($php);
                    
185						} else {
                    
186							if (!isset($php)) {
                    
187								$res .= $php = "\x01@php:p" . count($blocks) . "@\x02";
                    
188								$php = & $blocks[$php];
                    
                
profile.php http://online-wholesale.googlecode.com/svn/trunk/ | PHP | 96 lines
                    
2    <div class="menu">
                    
3		<?php include('modules/members/dashboard.php');?>
                    
4    </div>
                    
5    <div class="persons">
                    
6    <?php
                    
7        $sql    = 'SELECT * FROM members WHERE username="'.$_SESSION['user'].'"';
                    
10    ?>
                    
11    <?php if(isset($_GET['action']) && $_GET['action'] == "updated"){
                    
12        if($_POST['password'] != ""){
                    
12        if($_POST['password'] != ""){
                    
13            $sql = 'UPDATE members SET password = "'.md5($_POST['password']).'", name = "'.$_POST['name'].'", mobile = "'.$_POST['mobile'].'" WHERE username = "'.$_SESSION['user'].'"';
                    
14        }else{
                    
34                    <td align="left">
                    
35                    <input type="text" name="username" id="username" disabled="disabled" value="<?php echo $rs['username']; ?>"/>
                    
36                    </td>
                    
                
projectname.php git://git.savannah.nongnu.org/savane-cleanup.git | PHP | 129 lines
                    
1<?php
                    
2# <one line to give a brief idea of what this does.>
                    
22
                    
23require_once('../include/init.php');
                    
24require_once('../include/exit.php');
                    
24require_once('../include/exit.php');
                    
25require_once('../include/account.php');
                    
26require_once('../include/Group.class');
                    
52	  htmlspecialchars($form_comments), time(),
                    
53	  $random_num, md5($random_num)
                    
54        );
                    
89
                    
90print '<form action="license.php" method="post">';
                    
91
                    
99print '<input type="hidden" name="group_id" value="'.$group_id.'" />';
                    
100print '<input type="hidden" name="rand_hash" value="'.(isset($rand_hash) ? $rand_hash : md5($random_num)).'" />';
                    
101
                    
                
index.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) {
                    
113
                    
                
String.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 374 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Lithium: the most rad php framework
                    
4 *
                    
6 *                Copyright 2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
7 * @license       http://opensource.org/licenses/mit-license.php The MIT License
                    
8 */
                    
62	 * @param string $string String to hash.
                    
63	 * @param string $type Method to use (sha1/sha256/md5, or any method supported
                    
64	 *        by the `hash()` function).
                    
79		}
                    
80		return md5($string);
                    
81	}
                    
                
CAssetManager.php https://bitbucket.org/Shcoder/funny.git | PHP | 317 lines
                    
1<?php
                    
2/**
                    
46	 * In particular, symbolic links are supported only on Linux/Unix, and Windows Vista/2008 or greater.
                    
47	 * The latter requires PHP 5.3 or greater.
                    
48	 *
                    
66	 * @var integer the permission to be set for newly generated asset files.
                    
67	 * This value will be used by PHP chmod function.
                    
68	 * Defaults to 0666, meaning the file is read-writable by all users.
                    
73	 * @var integer the permission to be set for newly generated asset directories.
                    
74	 * This value will be used by PHP chmod function.
                    
75	 * Defaults to 0777, meaning the directory can be read, written and executed by all users.
                    
291	 * Generate a CRC32 hash for the directory path. Collisions are higher
                    
292	 * than MD5 but generates a much smaller hash string.
                    
293	 * @param string $path string to be hashed.
                    
                
download.py http://weevely.googlecode.com/svn/trunk/ | Python | 200 lines
                    
25        V('shell.sh',  "base64", "base64 -w 0 %s"),
                    
26        V('shell.php', "copy", "copy('compress.zlib://%s','%s') && print(1);"),
                    
27        V('shell.php',  "symlink", "symlink('%s','%s') && print(1);")
                    
42        self.encoder_callable = False
                    
43        self.md5_callable = False
                    
44        
                    
62        else:
                    
63            self.mprint('[%s] PHP \'base64_encode\' transfer methods not available.' % self.name)
                    
64
                    
156    
                    
157            response_md5 = md5(response).hexdigest()
                    
158            remote_md5 = self.modhandler.load('file.check').run({'rpath' : remote_path, 'mode' : 'md5'})
                    
162                return response
                    
163            elif not  remote_md5 == response_md5:
                    
164                self.mprint('[%s] MD5 hash of \'%s\' file mismatch, file corrupted' % (self.name, local_path))
                    
                
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'])); 
                    
390    
                    
                
XmlFileLoader.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 402 lines
                    
1<?php
                    
2
                    
73
                    
74        $this->container->getParameterBag()->add($xml->parameters->getArgumentsAsPhp('parameter'));
                    
75    }
                    
84            $this->currentDir = dirname($file);
                    
85            $this->import((string) $import['resource'], (Boolean) $import->getAttributeAsPhp('ignore-errors'));
                    
86        }
                    
112                $method = 'set'.str_replace('-', '', $key);
                    
113                $definition->$method((string) $service->getAttributeAsPhp($key));
                    
114            }
                    
120
                    
121        $definition->setArguments($service->getArgumentsAsPhp('argument'));
                    
122
                    
137        foreach ($service->call as $call) {
                    
138            $definition->addMethodCall((string) $call['method'], $call->getArgumentsAsPhp('argument'));
                    
139        }
                    
                
QueueStorageTest.php https://PHPAzure.svn.codeplex.com/svn | PHP | 385 lines
                    
42 */
                    
43require_once dirname(__FILE__) . '/../../TestHelper.php';
                    
44require_once dirname(__FILE__) . '/../../TestConfiguration.php';
                    
44require_once dirname(__FILE__) . '/../../TestConfiguration.php';
                    
45require_once 'PHPUnit/Framework/TestCase.php';
                    
46
                    
55 * @copyright  Copyright (c) 2009 - 2010, RealDolmen (http://www.realdolmen.com)
                    
56 * @license    http://phpazure.codeplex.com/license
                    
57 */
                    
57 */
                    
58class Microsoft_WindowsAzure_QueueStorageTest extends PHPUnit_Framework_TestCase
                    
59{
                    
63            $suite  = new PHPUnit_Framework_TestSuite("Microsoft_WindowsAzure_QueueStorageTest");
                    
64            $result = PHPUnit_TextUI_TestRunner::run($suite);
                    
65        }
                    
                
PublicAction.class.php http://thinkphp.googlecode.com/svn/trunk/ | PHP | 231 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
                    
4// +----------------------------------------------------------------------
                    
4// +----------------------------------------------------------------------
                    
5// | Copyright (c) 2009 http://thinkphp.cn All rights reserved.
                    
6// +----------------------------------------------------------------------
                    
79        $info = array(
                    
80            '????'=>PHP_OS,
                    
81            '????'=>$_SERVER["SERVER_SOFTWARE"],
                    
81            '????'=>$_SERVER["SERVER_SOFTWARE"],
                    
82            'PHP????'=>php_sapi_name(),
                    
83            'ThinkPHP??'=>THINK_VERSION.' [ <a href="http://thinkphp.cn" target="_blank">??????</a> ]',
                    
140        $map["status"]	=	array('gt',0);
                    
141		if($_SESSION['verify'] != md5($_POST['verify'])) {
                    
142			$this->error('??????');
                    
                
read.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 262 lines
                    
1<?php
                    
2
                    
25
                    
26	if( $module == "global" and preg_match( "/^block\.global\.([a-zA-Z0-9\-\_]+)\.php$/", $admin_file, $m ) )
                    
27	{
                    
30	}
                    
31	elseif( preg_match( "/^block\.(global|module)\.([a-zA-Z0-9\-\_]+)\_" . $dirlang . "\.php$/", $admin_file, $m ) )
                    
32	{
                    
37	{
                    
38		$include_lang = NV_ROOTDIR . "/language/" . $dirlang . "/admin_" . $module . ".php";
                    
39	}
                    
41	{
                    
42		$include_lang = NV_ROOTDIR . "/language/" . $dirlang . "/" . $module . ".php";
                    
43	}
                    
45	{
                    
46		$include_lang = NV_ROOTDIR . "/language/" . $dirlang . "/" . $module . ".php";
                    
47	}
                    
                
Bootstrap.php https://bitbucket.org/Shcoder/funny.git | PHP | 319 lines
                    
1<?php
                    
2/**
                    
5 * @copyright Copyright &copy; Christoffer Niska 2011-
                    
6 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
                    
7 * @version 2.0.2
                    
288		{
                    
289			$key = __CLASS__.'.'.md5($name.$selector.serialize($options));
                    
290			$options = !empty($options) ? CJavaScript::encode($options) : '';
                    
                
SMW_SemanticData.php git://pkgs.fedoraproject.org/mediawiki-semantic | PHP | 321 lines
                    
1<?php
                    
2/**
                    
164	 * Generate a hash value to simplify the comparison of this data
                    
165	 * container with other containers. The hash uses PHP's md5
                    
166	 * implementation, which is among the fastest hash algorithms that
                    
166	 * implementation, which is among the fastest hash algorithms that
                    
167	 * PHP offers.
                    
168	 *
                    
171	public function getHash() {
                    
172		$ctx = hash_init( 'md5' );
                    
173
                    
                
tests.clj git://github.com/kriyative/cynojure.git | Clojure | 148 lines
                    
6;; distribution terms for this software are covered by the Eclipse
                    
7;; Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
                    
8;; which can be found in the file epl-v10.html at the root of this
                    
30  (is (= (ip-to-dotted (dotted-to-ip "127.0.0.1")) "127.0.0.1"))
                    
31  (is (= (md5-sum "foobar") "3858f62230ac3c915f300c664312c63f"))
                    
32  (is (not (nil? (get-system-classpaths))))
                    
                
testNetDNSBL.php http://nothing-at-all.googlecode.com/svn/trunk/ | PHP | 241 lines
                    
13 * that is available through the world-wide-web at the following URI:
                    
14 * http://www.php.net/license/3_01.txt.  If you did not receive a copy of
                    
15 * the PHP License and are unable to obtain it through the web, please
                    
15 * the PHP License and are unable to obtain it through the web, please
                    
16 * send a note to license@php.net so we can mail you a copy immediately.
                    
17 *
                    
24 * @copyright 2004-2007 Sebastian Nohn <sebastian@nohn.net>
                    
25 * @license   http://www.php.net/license/3_01.txt  PHP License 3.01
                    
26 * @version   CVS: $Id: testNetDNSBL.php,v 1.18 2007/08/10 14:59:04 nohn Exp $
                    
32require_once "Net/DNSBL.php";
                    
33require_once "PHPUnit/Framework/TestCase.php";
                    
34
                    
42 * @author   Sebastian Nohn <sebastian@nohn.net>
                    
43 * @license  http://www.php.net/license/3_01.txt  PHP License 3.01
                    
44 * @version  Release: 1.3.0
                    
                
ObjectCache.php git://github.com/zendframework/zf2.git | PHP | 285 lines
                    
206     * @return void
                    
207     * @see    http://php.net/manual/language.oop5.overloading.php#language.oop5.overloading.members
                    
208     */
                    
222     * @return mixed
                    
223     * @see http://php.net/manual/language.oop5.overloading.php#language.oop5.overloading.members
                    
224     */
                    
238     * @return bool
                    
239     * @see    http://php.net/manual/language.oop5.overloading.php#language.oop5.overloading.members
                    
240     */
                    
255     * @return void
                    
256     * @see    http://php.net/manual/language.oop5.overloading.php#language.oop5.overloading.members
                    
257     */
                    
266     * @return string
                    
267     * @see    http://php.net/manual/language.oop5.magic.php#language.oop5.magic.tostring
                    
268     */
                    
                
Fn.php http://chenjin.googlecode.com/svn/trunk/ | PHP | 637 lines
                    
1<?php
                    
2/**
                    
5 * @author mole <mole.chen@foxmail.com>
                    
6 * @version $Id: Fn.php 244 2012-04-01 02:25:09Z mole1230 $
                    
7 */
                    
46		$keyLength = strlen($key);
                    
47		$string = (strtolower($operation) == 'decode') ? base64_decode($string) : substr(md5($string . $key) , 0, 8) . $string;
                    
48		$stringLength = strlen($string);
                    
73		if (strtolower($operation) == 'decode') {
                    
74			if (substr($result, 0, 8) == substr(md5(substr($result, 8) . $key) , 0, 8)) {
                    
75				return substr($result, 8);
                    
234	/**
                    
235	 * ??PHP???? trim ???????
                    
236	 *
                    
                
rapidshare.php https://bitbucket.org/lgorence/quickpress.git | PHP | 215 lines
                    
1<?php
                    
2/*
                    
89				6:Short host (Use the short host to get the best download mirror: http://rs$serverid$shorthost.rapidshare.com/files/$fileid/$filename)
                    
90				7:MD5 (hexadecimal)
                    
91
                    
                
Bootstrap.php https://bitbucket.org/pravinchandar/yii-bootstrap | PHP | 317 lines
                    
1<?php
                    
2/**
                    
5 * @copyright Copyright &copy; Christoffer Niska 2011-
                    
6 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
                    
7 * @version 1.1.0
                    
285		{
                    
286			$key = __CLASS__.'.'.md5($name.$selector.serialize($options).$defaultSelector);
                    
287			$options = !empty($options) ? CJavaScript::encode($options) : '';
                    
                
tco.php http://ymscorp.googlecode.com/svn/trunk/ | PHP | 120 lines
                    
1<?php //00d4b
                    
2// *************************************************************************
                    
33// *************************************************************************
                    
34if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');@dl($__ln);if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}@dl($__ln);}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the site administrator.');exit(199);
                    
35?>
                    
112IqCNQOUXO0UzpVMsxtKoexfFWae1kZWSf+B5WFAjCzaFVqc9Yet/xmLMb98VwDjjKdDb6+3iT1jn
                    
113a2oDK8oU8pXfVoP56FzEQZW1NBMD5c0gPb7pvxAlKQ51wfLbrK3WnMDKkn9wTdcvojLV2KFncWQF
                    
114pqejdB4a+rbWH086Pvf65hXB+5FGlTGNlX/0y+Hl6IoJBlUI5uXPQ3Z/z2sdoRz255ComQRq9sAd
                    
                
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">
                    
                
edit.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 160 lines
                    
1<?php
                    
2
                    
11
                    
12if ( $nv_Request->isset_request( 'idfile,savedata', 'post' ) and $nv_Request->get_string( 'savedata', 'post' ) == md5( session_id() ) )
                    
13{
                    
57    }
                    
58    Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=interface&dirlang=" . $dirlang . "" );
                    
59    die();
                    
65
                    
66if ( $nv_Request->isset_request( 'idfile,checksess', 'get' ) and $nv_Request->get_string( 'checksess', 'get' ) == md5( $nv_Request->get_int( 'idfile', 'get' ) . session_id() ) )
                    
67{
                    
91        
                    
92        $contents .= "<form action=\"" . NV_BASE_ADMINURL . "index.php\" method=\"post\">";
                    
93        $contents .= "<input type=\"hidden\" name =\"pozauthor[langtype]\"value=\"" . $array_translator['langtype'] . "\" />";
                    
149        $contents .= "<input type=\"hidden\" name =\"dirlang\"value=\"" . $dirlang . "\" />";
                    
150        $contents .= "<input type=\"hidden\" name =\"savedata\" value=\"" . md5( session_id() ) . "\" />";
                    
151        $contents .= "<center><input type=\"submit\" value=\"" . $lang_module['nv_admin_edit_save'] . "\" /></center>";
                    
                
auth_login.php git://pkgs.fedoraproject.org/cacti | PHP | 365 lines
                    
41		$username = str_replace("\\", "\\\\", $_SERVER["REDIRECT_REMOTE_USER"]);
                    
42	}elseif (isset($_SERVER["HTTP_PHP_AUTH_USER"])) {
                    
43		$username = str_replace("\\", "\\\\", $_SERVER["HTTP_PHP_AUTH_USER"]);
                    
227			case '2': /* default console page */
                    
228				header("Location: " . $config['url_path'] . "index.php");
                    
229
                    
231			case '3': /* default graph page */
                    
232				header("Location: " . $config['url_path'] . "graph_view.php");
                    
233
                    
289<body bgcolor="#FFFFFF" onload="document.login.login_username.focus()">
                    
290	<form name="login" method="post" action="<?php print basename($_SERVER["PHP_SELF"]);?>">
                    
291	<input type="hidden" name="action" value="login">
                    
301		<tr>
                    
302			<td colspan="2"><center><?php if ($cacti_logo != '') { ?><img src="<?php echo $cacti_logo; ?>" border="0" alt=""><?php } ?></center></td>
                    
303		</tr>
                    
                
class.login.php http://sudeep-co-in.googlecode.com/svn/trunk/ | PHP | 298 lines
                    
1<?php
                    
2	//start session
                    
19		//encryption
                    
20		var $encrypt = true;		//set to true to use md5 encryption for the password
                    
21
                    
40			if($this->encrypt == true){
                    
41				$password = md5($password);	
                    
42			}
                    
156			{
                    
157				$newpassword = md5($newpassword);	
                    
158			}
                    
267		    { 
                    
268		    	$password = md5($password); 
                    
269		    } 
                    
                
image.php git://github.com/enormego/EightPHP.git | PHP | 463 lines
                    
1<?php
                    
2/**
                    
6 * @subpackage	Helpers
                    
7 * @author		EightPHP Development Team
                    
8 * @copyright	(c) 2009-2010 EightPHP
                    
8 * @copyright	(c) 2009-2010 EightPHP
                    
9 * @license		http://license.eightphp.com
                    
10 */
                    
387	public static function AddLayerAnimation($imageString, $image) {
                    
388		$prefix = md5($file.time().$_SERVER['REMOTE_ADDR']);
                    
389		$original = '/tmp/'.$prefix.".original.gif";
                    
434		
                    
435		$prefix = md5($file.rand(0,1000).time().$_SERVER['REMOTE_ADDR']);
                    
436		$orginal = '/tmp/'.$prefix.".original.gif";
                    
                
class.iCalEvent.inc.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 405 lines
                    
1<?php
                    
2/* vim: set expandtab tabstop=4 shiftwidth=4: */
                    
20*/
                    
21include_once 'class.iCalBase.inc.php';
                    
22
                    
32* @license GNU General Public License v3
                    
33* @link http://code.google.com/p/flaimo-php/
                    
34* @package iCalendar
                    
78	/**
                    
79	* Automaticaly created: md5 value of the start date + end date
                    
80	*
                    
298            $rawid = (string) $this->startdate . 'plus' .  $this->enddate;
                    
299            $this->uid = (string) md5($rawid);
                    
300        }
                    
                
Memcacheq.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 428 lines
                    
1<?php
                    
2/**
                    
76        if (!extension_loaded('memcache')) {
                    
77            require_once 'Zend/Queue/Exception.php';
                    
78            throw new Zend_Queue_Exception('Memcache extension does not appear to be loaded');
                    
96        if ($result === false) {
                    
97            require_once 'Zend/Queue/Exception.php';
                    
98            throw new Zend_Queue_Exception('Could not connect to MemcacheQ');
                    
235    {
                    
236        require_once 'Zend/Queue/Exception.php';
                    
237        throw new Zend_Queue_Exception('count() is not supported in this adapter');
                    
267            'body'       => $message,
                    
268            'md5'        => md5($message),
                    
269        );
                    
272        if ($result === false) {
                    
273            require_once 'Zend/Queue/Exception.php';
                    
274            throw new Zend_Queue_Exception('failed to insert message into queue:' . $queue->getName());
                    
                
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 file
                    
                
mail.php https://bitbucket.org/tolukemi/opencart.git | PHP | 406 lines
                    
1<?php
                    
2class Mail {
                    
80
                    
81		$boundary = '----=_NextPart_' . md5(time());
                    
82
                    
95		$header .= 'Return-Path: ' . $this->from . $this->newline;
                    
96		$header .= 'X-Mailer: PHP/' . phpversion() . $this->newline;
                    
97		$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;
                    
158			} else {
                    
159				if (substr(PHP_OS, 0, 3) != 'WIN') {
                    
160					socket_set_timeout($handle, $this->timeout, 0);
                    
358					foreach ($results as $result) {
                    
359						if (substr(PHP_OS, 0, 3) != 'WIN') {
                    
360							fputs($handle, $result . $this->crlf);
                    
                
user.rb https://github.com/nnandosouza/catarse.git | Ruby | 199 lines
                    
94  def display_nickname
                    
95    if nickname =~ /profile\.php/
                    
96      name
                    
125  def remember_me_hash
                    
126    Digest::MD5.new.update("#{self.provider}###{self.uid}").to_s
                    
127  end
                    
161    return unless email
                    
162    "http://gravatar.com/avatar/#{Digest::MD5.new.update(email)}.jpg?default=#{image_url or "http://catarse.me/images/user.png"}"
                    
163  end
                    
                
Array.php https://bitbucket.org/skajdo/zf1.git | PHP | 356 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Array.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
25 */
                    
26//require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
                    
27
                    
28/**
                    
29 * Class for using a standard PHP array as a queue
                    
30 *
                    
148             */
                    
149            //require_once 'Zend/Queue/Exception.php';
                    
150            throw new Zend_Queue_Exception('Queue does not exist');
                    
182            'body'       => $message,
                    
183            'md5'        => md5($message),
                    
184            'handle'     => null,
                    
                
api.php http://kv-webme.googlecode.com/svn/trunk/ | PHP | 472 lines
                    
58	}
                    
59	require_once SCRIPTBASE.'/ww.incs/common.php';
                    
60	$smarty=Products_setupSmarty();
                    
91	}
                    
92	$md5=$_REQUEST['md5'];
                    
93	if ($md5!=md5($order['invoice'])) {
                    
93	if ($md5!=md5($order['invoice'])) {
                    
94		echo ''.__('MD5 check failed. this voucher has been tampered with.').'';
                    
95		Core_quit();
                    
137function OnlineStore_checkVoucher($params) {
                    
138	require_once dirname(__FILE__).'/frontend/voucher-libs.php';
                    
139	if (!isset($params['code']) || !isset($params['email'])) {
                    
184function OnlineStore_getQrCode() {
                    
185	require_once SCRIPTBASE.'/ww.incs/phpqrcode.php';
                    
186	$url=base64_decode($_REQUEST['b64']);
                    
                
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	{
                    
                
Font.php git://github.com/benkeen/generatedata.git | PHP | 641 lines
                    
22 * @package	PHPExcel_Style
                    
23 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license	http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package	PHPExcel_Style
                    
34 * @copyright  Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
35 */
                    
36class PHPExcel_Style_Font implements PHPExcel_IComparable
                    
37{
                    
153			$this->_strikethrough	= NULL;
                    
154			$this->_color			= new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor, $isConditional);
                    
155		} else {
                    
155		} else {
                    
156			$this->_color	= new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK, $isSupervisor);
                    
157		}
                    
                
SQLiteDB.php http://ds-pro-chat.googlecode.com/svn/trunk/ | PHP | 123 lines
                    
1<?php
                    
2
                    
73
                    
74SQLite_Create_Function($DB, 'MD5WithSalt',		'fSQLite_MD5WithSalt', 2);
                    
75
                    
76
                    
77Function fSQLite_MD5WithSalt($Str, $salt)
                    
78{
                    
78{
                    
79	Return MD5($salt . $Str . $salt);
                    
80}
                    
                
order.php http://nukeviet-shop.googlecode.com/svn/trunk/ | PHP | 94 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" );
                    
                
PublicAction.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('????');
                    
                
mdl.passport.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 303 lines
                    
1<?php
                    
2require_once('plugin.php');
                    
119        srand((double)microtime() * 1000000);
                    
120        $encrypt_key = md5(rand(0, 32000));
                    
121        $ctr = 0;
                    
133        for ($i = 0;$i < strlen($txt); $i++) {
                    
134            $md5 = $txt[$i];
                    
135            $tmp .= $txt[++$i] ^ $md5;
                    
140    function passport_key($txt, $encrypt_key) {
                    
141        $encrypt_key = md5($encrypt_key);
                    
142        $ctr = 0;
                    
204    function setCookie($name,$value,$expire=false,$path=null){
                    
205        $cookiePath = substr(PHP_SELF, 0, strrpos(PHP_SELF, '/')).'/';
                    
206        $cookieLife = 3600;
                    
211        if( empty($_COOKIE['TaoLoginAuthAc']) ){
                    
212            $strkey = md5(time().$this->mKey());
                    
213            $this->setCookie('TaoLoginAuthAc',$strkey,null);
                    
                
FacebookRequest.cs https://facebook.svn.codeplex.com/svn | C# | 174 lines
                    
17        /// <summary>The URL of the Facebook API REST application.</summary>
                    
18        internal const String FACEBOOK_REST_URL = "https://api.facebook.com/restserver.php";
                    
19
                    
130        /// <param name="arguments">The list of arguments being passed into the method request.</param>
                    
131        /// <returns>A <see cref="String" /> containing a request signature generated according to the documentation provided by Facebook in the article <a href="http://wiki.developers.facebook.com/index.php/How_Facebook_Authenticates_Your_Application">How Facebook Authenticates Your Application</a>.</returns>
                    
132        internal static String ComputeSignature(String secret, IDictionary<String, Object> arguments)
                    
149            var seedBytes = Encoding.ASCII.GetBytes(seed);
                    
150            var sig = MD5.Create().ComputeHashString(seed);
                    
151
                    
                
install_check.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 338 lines
                    
1<?php
                    
2
                    
18
                    
19$filename = NV_ROOTDIR . '/' . NV_TEMP_DIR . '/' . NV_TEMPNAM_PREFIX . 'auto_' . md5( $global_config['sitekey'] . session_id() ) . '.zip';
                    
20
                    
22{
                    
23	require_once NV_ROOTDIR . '/includes/class/pclzip.class.php';
                    
24
                    
29
                    
30	if( $overwrite != md5( $filename . $global_config['sitekey'] . session_id() ) )
                    
31	{
                    
51	{
                    
52		$temp_extract_dir = NV_TEMP_DIR . '/' . md5( $filename . $global_config['sitekey'] . session_id() );
                    
53
                    
218		$xtpl->assign( 'MODULE_NAME', $module_name );
                    
219		$xtpl->assign( 'CHECKSESS', md5( $filename . $global_config['sitekey'] . session_id() ) );
                    
220
                    
                
ARC2_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  }
                    
                
co_do.php http://jqbird.googlecode.com/svn/trunk/ | PHP | 291 lines
                    
1<?php
                    
2require_once(dirname(__FILE__)."/config.php");
                    
2require_once(dirname(__FILE__)."/config.php");
                    
3require_once(DEDEINC."/oxwindow.class.php");
                    
4if(!isset($nid))
                    
7}
                    
8$ENV_GOBACK_URL = empty($_COOKIE["ENV_GOBACK_URL"]) ? "co_url.php" : $_COOKIE["ENV_GOBACK_URL"];
                    
9
                    
21	$dsql->ExecuteNoneQuery("Delete From `#@__co_urls` where nid='$nid'");
                    
22	ShowMsg("????????!","co_main.php");
                    
23	exit();
                    
44		}
                    
45		ShowMsg("?????????????!","co_main.php");
                    
46		exit();
                    
55			{
                    
56				$nhash = md5($arr['url']);
                    
57				$nid = $row['nid'];
                    
                
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_Fill
                    
                
login.php https://bitbucket.org/jon0/jobislanddev | PHP | 341 lines
                    
32else
                    
33    ("Location: index.php");
                    
34
                    
37{
                    
38    //Image Verification Start -- Check if string entered matches the md5 hash by the generated string
                    
39    $number = $_POST['number'];
                    
182{
                    
183    document.location.href= "login.php"
                    
184}
                    
285<!-- 2 ways to pass form, using PHP_SELF or just putting in the location and file name. Both works fine. -->
                    
286<form action="<?php echo $_SERVER['PHP_SELF']?>" method="post">
                    
287<table border="0" align="center">
                    
316<p style="font-weight: bold; font-size: 14;" align="center">Came here by mistake? Click <b><a href="./../login.php">here to go back to the home page!</a></b>
                    
317<?php
                    
318}
                    
                
Fill.php git://github.com/Dolibarr/dolibarr.git | PHP | 400 lines
                    
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
                    
33 * @package	PHPExcel_Style
                    
34 * @copyright  Copyright (c) 2006 - 2011 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_Fill
                    
                
QFileUploader.class.php git://github.com/qcodo/qcodo.git | PHP | 270 lines
                    
1<?php
                    
2	class QFileUploader extends QControl {
                    
90			$strToReturn = parent::GetEndScript();
                    
91			$strUniqueHash = substr(md5(microtime() . rand(0, 1000000)), 4, 16);
                    
92
                    
236
                    
237					$strNewFilePath = $this->strTemporaryUploadFolder . '/' . md5(microtime());
                    
238					copy($strFile, $strNewFilePath);
                    
                
PublicAction.class.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 165 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------
                    
2// +----------------------------------------------------------------------
                    
3// | ?????????? (Build on ThinkPHP)
                    
4// +----------------------------------------------------------------------
                    
104
                    
105		if ($_SESSION['verify'] != md5($_POST['verify']))
                    
106		{
                    
120		{
                    
121			if ($auth_info['admin_pwd'] != md5($_POST['admin_pwd']))
                    
122			{
                    
                
string.pm http://kbzb.googlecode.com/svn/trunk/ | Perl | 372 lines
                    
157#
                    
158# http://www.some-site.com//index.php
                    
159#
                    
161#
                    
162# http://www.some-site.com/index.php
                    
163#
                    
232	{
                    
233#@		case 'unique' : return md5(uniqid(mt_rand()));
                    
234#@		  break;
                    
                
user_password.php git://github.com/FSB/Fire-Soft-Board-2.git | PHP | 343 lines
                    
1<?php
                    
2/**
                    
7 * @version $Id$
                    
8 * @license http://opensource.org/licenses/gpl-2.0.php GNU GPL 2
                    
9 */
                    
17
                    
18// Necessite le fichier de langue lg_forum_register.php pour le test du mot de passe
                    
19Fsb::$session->load_lang('lg_forum_register');
                    
234		{
                    
235			$confirm_hash = md5(rand(0, time()));
                    
236
                    
243				'NICKNAME' =>		Fsb::$session->data['u_nickname'],
                    
244				'U_CONFIRM' =>		Fsb::$cfg->get('fsb_path') . '/index.' . PHPEXT . '?p=login&id=' . Fsb::$session->id() . '&confirm=' . urlencode($confirm_hash),
                    
245				'U_FORUM' =>		Fsb::$cfg->get('fsb_path'),
                    
290			Fsb::$session->logout();
                    
291			Http::redirect(ROOT . 'index.' . PHPEXT);
                    
292		}
                    
                
ThumbnailFactory.php git://github.com/boxuk/obscura.git | PHP | 401 lines
                    
1<?php
                    
2
                    
12 * @copyright Copyright (c) 2010, Box UK
                    
13 * @license http://opensource.org/licenses/mit-license.php MIT License
                    
14 * @link http://github.com/boxuk/obscura
                    
358            'thumb-%s%s',
                    
359            md5(serialize($config)),
                    
360            $extension
                    
                
ReferenceIDoitObjects.pm https://github.com/Sanzzes/rt-extension-referenceidoitobjects.git | Perl | 236 lines
                    
97AJAX proxy. This extension already provides such a proxy located under C<etc/>.
                    
98It's written in PHP, so you have to install PHP 5.2 or higher and the PHP
                    
99extension C<curl> on the same machine where RT is installed. Make this little
                    
101C<$l_url> to the URL of i-doit's API, e. g.
                    
102C<http://example.org/i-doit/index.php?api=jsonrpc>. In RT's site configuration
                    
103C<$IDoitAPI> has to be set to this script, e. g.
                    
103C<$IDoitAPI> has to be set to this script, e. g.
                    
104C<http://rt.example.org/path/to/i-doit_api_proxy.php>.
                    
105
                    
113
                    
114The user's password is encoded as a MD5 hash.
                    
115
                    
                
class.Solar_Smtp_Adapter_CramMd5Auth.Properties https://bitbucket.org/solarphp/docs | Properties File | 282 lines
                    
7            <tr>
                    
8                <td width="20%" align="left"><a accesskey="p" href="class.Solar_Smtp_Adapter_CramMd5Auth.Constants">Prev</a></td>
                    
9                <th width="60%" align="center">Solar_Smtp_Adapter_CramMd5Auth</th>
                    
9                <th width="60%" align="center">Solar_Smtp_Adapter_CramMd5Auth</th>
                    
10                <td width="20%" align="right"><a accesskey="n" href="class.Solar_Smtp_Adapter_CramMd5Auth.Methods">Next</a></td>
                    
11            </tr>
                    
14
                    
15<div id="class.Solar_Smtp_Adapter_CramMd5Auth.Properties" class="section">
                    
16
                    
18
                    
19<p class="para">Properties existing in the <code class="literal">Solar_Smtp_Adapter_CramMd5Auth</code> class.</p>
                    
20
                    
30
                    
31<div id="class.Solar_Smtp_Adapter_CramMd5Auth.Properties._Solar_Smtp_Adapter">
                    
32<h3><code class="literal">$_Solar_Smtp_Adapter</code> </h3>
                    
                
passport.discuz.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 215 lines
                    
1<?php
                    
2class passport_discuz extends modelFactory {
                    
32        $passport_key = $this->system->getConf('plugin.passport.discuz.config.PrivateKey');
                    
33        if($_GET['verify'] != md5($_GET['action'].$_GET['auth'].$_GET['forward'].$passport_key)) {
                    
34            return false;
                    
110        if (substr($this->_config['URL'],-1)=="/")
                    
111               $shop_loginapi_url = $this->_config['URL']."api/shopex.php";
                    
112        else{
                    
115            else
                    
116                $shop_loginapi_url = $this->_config['URL']."/api/shopex.php";
                    
117        }
                    
117        }
                    
118        header('Location: '.$shop_loginapi_url.'?action=login&auth='.rawurlencode($auth).'&forward='.rawurlencode($rurl).'&verify='.md5('login'.$auth.$rurl.$this->_config['PrivateKey']));
                    
119        exit;
                    
143        );
                    
144        $rurl.="index.php?passport-create.html";
                    
145        $this->setPlugCookie(1);
                    
                
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    }
                    
                
UserEditController.php http://geocontexter.googlecode.com/svn/trunk/ | PHP | 227 lines
                    
1<?php
                    
2/**
                    
11 * @package GeoContexter
                    
12 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
                    
13 * @author Armand Turpel <geocontexter@gmail.com>
                    
134            {
                    
135                $params['user_password'] = md5($user_password);
                    
136            }
                    
                
waPageEdit.action.php git://github.com/webasyst/webasyst-framework.git | PHP | 131 lines
                    
1<?php
                    
2
                    
116
                    
117        return md5($hash);
                    
118    }
                    
                
Compress.php git://pkgs.fedoraproject.org/horde | PHP | 122 lines
                    
1<?php
                    
2/**
                    
5 *
                    
6 * $Horde: framework/Compress/Compress.php,v 1.7.12.14 2009/01/06 15:22:58 jan Exp $
                    
7 *
                    
24     *                       in $driver[0]/lib/Compress/ for the subclass
                    
25     *                       implementation named $driver[1].php.
                    
26     * @param array $params  A hash containing any additional configuration or
                    
41            if (!empty($app)) {
                    
42                include_once $app . '/lib/Compress/' . $driver . '.php';
                    
43            } else {
                    
43            } else {
                    
44                include_once 'Horde/Compress/' . $driver . '.php';
                    
45            }
                    
74
                    
75        $signature = md5(serialize(array($driver, $params)));
                    
76        if (!isset($instances[$signature])) {
                    
                
shopcar.class.php http://jqbird.googlecode.com/svn/trunk/ | PHP | 211 lines
                    
1<?php
                    
2define("DE_ItemEcode",'Shop_De_');//?????Cookie??,????????????!
                    
8
                    
9	//php5????PHP>=5.0
                    
10	function __construct()
                    
18
                    
19	//?????PHP<5.0
                    
20	function MemberShops()
                    
138		srand((double)microtime() * 1000000);
                    
139		$encrypt_key = md5(rand(0, 32000));
                    
140		$ctr = 0;
                    
165		global $cfg_cookie_encode;
                    
166		$encrypt_key = md5(strtolower($cfg_cookie_encode));
                    
167		$ctr = 0;
                    
                
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	}
                    
                
WaxCacheBackgroundMemcache.php git://github.com/phpwax/phpwax.git | PHP | 101 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3	* @package PHP-Wax
                    
4  */
                    
7 *	Engine for caching of data / objects to file.
                    
8 *  @package PHP-Wax
                    
9 */
                    
66		if(($age > $this->lifetime) && !$_GET['no-wax-cache'] && !$this->locked()){
                    
67			$cmd = "php ".dirname(__FILE__)."/WaxRegenMemcacheCache.php ".$this->identifier.$this->meta_suffix." {$this->server} {$this->port} > /dev/null &";
                    
68			exec($cmd);
                    
86    while(strpos($uri, "  ")) $uri = str_replace("  ", " ", $uri);
                    
87    if(strlen($uri)) $str.='-'.md5(str_replace("nowaxcache1", "", str_replace(" ", "-",$uri)));
                    
88
                    
88
                    
89    if(count($data)) $str .= "-d-".md5(serialize($data));
                    
90    if(count($sess)) $str .= "-s-".md5(serialize(Session::get()));
                    
                
del_cat.php http://nuke-viet.googlecode.com/svn/trunk/ | PHP | 201 lines
                    
1<?php
                    
2
                    
30			{
                    
31				if( $delallcheckss == md5( $catid . session_id() . $global_config['sitekey'] ) )
                    
32				{
                    
112						nv_del_moduleCache( $module_name );
                    
113						Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=cat&parentid=" . $parentid . "" );
                    
114						die();
                    
149							nv_del_moduleCache( $module_name );
                    
150							Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=cat&parentid=" . $parentid . "" );
                    
151							die();
                    
156				{
                    
157					$contents = "ERR_ROWS_" . $catid . "_" . md5( $catid . session_id() . $global_config['sitekey'] ) . "_" . sprintf( $lang_module['delcat_msg_rows'], $check_rows );
                    
158				}
                    
162		{
                    
163			if( $delallcheckss == md5( $catid . session_id() ) )
                    
164			{
                    
                
install.php http://feed-on-feeds.googlecode.com/svn/trunk/ | PHP | 363 lines
                    
40
                    
41$php_ok = (function_exists('version_compare') && version_compare(phpversion(), '4.3.2', '>='));
                    
42$xml_ok = extension_loaded('xml');
                    
113<?php
                    
114if($php_ok) echo "<span class='pass'>PHP ok...</span> ";
                    
115else
                    
116{
                    
117    echo "<br><span class='fail'>Your PHP version is too old!</span>  Feed on Feeds requires at least PHP 4.3.2.  Sorry!";
                    
118    echo "</div></body></html>";
                    
160{
                    
161    echo "<br><span class='warn'>Your PHP installation is missing the iconv extension!</span>  The number of international languages that Feed on Feeds can handle will be reduced.<br>";
                    
162}
                    
174Creating tables...
                    
175<?php
                    
176
                    
                
users.php http://yt-cache.googlecode.com/svn/trunk/ | PHP | 214 lines
                    
7
                    
8require_once "phprd/error-log/error.php";
                    
9
                    
42	public function login_http($realm="Restricted") {
                    
43		if (isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW'])) {
                    
44    	$username = mysql_escape_string(trim($_SERVER['PHP_AUTH_USER']));
                    
44    	$username = mysql_escape_string(trim($_SERVER['PHP_AUTH_USER']));
                    
45    	$password = mysql_escape_string(trim($_SERVER['PHP_AUTH_PW']));
                    
46    	$r=$this->login_user($username,$password);
                    
129				$username=mysql_real_escape_string($username);
                    
130				$password=md5($password);
                    
131				$find=array("username"=>$username);
                    
148		$fh=fopen($userdb,"a");
                    
149		$user=array("username"=>$username,"password"=>md5($password),"email"=>$email,"group"=>$group);
                    
150		fseek($fh,0,SEEK_END);
                    
                
dupselect.php http://rtoss.googlecode.com/svn/ | PHP | 164 lines
                    
28	if($a['size'] != $b['size']) return $a['size'] > $b['size'] ? -1 : 1;
                    
29	if($a['md5'] != $b['md5']) return strnatcmp($a['md5'], $b['md5']);
                    
30	
                    
74		}
                    
75		$ary['names'][$file['path']] = array('md5'=>$file['md5'],'size'=>$file['size']);
                    
76	}
                    
143	foreach($my_ary['files'] as $f) {
                    
144		if($perv_md5 != $f['md5']) {
                    
145			$twostar=false;
                    
158		
                    
159		echo '<label><input type="checkbox" name="files[]" value="'.$f['path'].'"'.(!$deselect ? ' checked=checked':'').'/>'.$f['path'].' ('.$f['md5'].($perv_md5 != $f['md5'] && $f['depth']>$normal_depth?') <b>(*)</b>':($perv_md5 == $f['md5'] && $twostar==false && $perv_depth>$normal_depth && $f['depth']>$normal_depth?') <b>(**)</b>':')'))."</label><br/>\n";
                    
160		if($perv_depth>$normal_depth && $f['depth']>$normal_depth) $twostar=true;
                    
160		if($perv_depth>$normal_depth && $f['depth']>$normal_depth) $twostar=true;
                    
161		$perv_md5 = $f['md5']; $perv_depth = $f['depth'];
                    
162	}
                    
                
upload.php git://github.com/KumbiaPHP/KumbiaPHP.git | PHP | 385 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * KumbiaPHP web & app Framework
                    
4 *
                    
12 *
                    
13 * @copyright  Copyright (c) 2005 - 2020 KumbiaPHP Team (http://www.kumbiaphp.com)
                    
14 * @license    https://github.com/KumbiaPHP/KumbiaPHP/blob/master/LICENSE   New BSD License
                    
201        // Genera el nombre de archivo
                    
202        $name = md5(time());
                    
203
                    
220        if ($_FILES[$this->_name]['error'] > 0) {
                    
221            $error = array(UPLOAD_ERR_INI_SIZE => 'el archivo excede el tamaño máximo (' . ini_get('upload_max_filesize') . 'b) permitido por el servidor', UPLOAD_ERR_FORM_SIZE => 'el archivo excede el tamaño máximo permitido', UPLOAD_ERR_PARTIAL => 'se ha subido el archivo parcialmente', UPLOAD_ERR_NO_FILE => 'no se ha subido ningún archivo', UPLOAD_ERR_NO_TMP_DIR => 'no se encuentra el directorio de archivos temporales', UPLOAD_ERR_CANT_WRITE => 'falló al escribir el archivo en disco', UPLOAD_ERR_EXTENSION => 'una extensión de php ha detenido la subida del archivo');
                    
222
                    
347        return $this->_cond(
                    
348            !$this->_allowScripts && preg_match('/\.(php|phtml|php3|php4|js|shtml|pl|py|rb|rhtml)$/i', $_FILES[$this->_name]['name']),
                    
349            'no esta permitido subir scripts ejecutables'
                    
                
translateone.php https://bitbucket.org/bekket/lviveurorent.git | PHP | 295 lines
                    
1<?php
                    
2/**
                    
79		//get title:
                    
80		$tbl_jf_content->store_jf($lang_id, $reference_id, 'content', 'title', $tsl_title, md5($content->title), $content->title, $published);
                    
81		
                    
82		//get introtext:
                    
83		$tbl_jf_content->store_jf($lang_id, $reference_id, 'content', 'introtext', $tsl_introtext, md5($content->introtext), $content->introtext, $published);
                    
84		
                    
85		//get fulltext:
                    
86		$tbl_jf_content->store_jf($lang_id, $reference_id, 'content', 'fulltext', $tsl_fulltext, md5($content->fulltext), $content->fulltext, $published);
                    
87		
                    
88		//get metakey:
                    
89		$tbl_jf_content->store_jf($lang_id, $reference_id, 'content', 'metakey', $tsl_metakey, md5($content->metakey), $content->metakey, $published);
                    
90		
                    
91		//get metadesk:
                    
92		$tbl_jf_content->store_jf($lang_id, $reference_id, 'content', 'metadesc', $tsl_metadesc, md5($content->metadesc), $content->metadesc, $published);
                    
93		
                    
                
Icon.php http://rsslounge.googlecode.com/svn/trunk/ | PHP | 290 lines
                    
1<?PHP
                    
2
                    
165        if($type!='jpg' && $type!='png' && $type!='ico' && $type!='gif') {
                    
166            $tmp = $path . md5($url);
                    
167            file_put_contents($tmp, $data);
                    
190        // write icon in file
                    
191        $target = md5($url) . '.' . $type;
                    
192        file_put_contents($path . $target, $data);
                    
                
myop.php http://thinksns-2.googlecode.com/svn/trunk/ | PHP | 133 lines
                    
1<?php
                    
2//???
                    
2//???
                    
3require_once './common.php';
                    
4
                    
88
                    
89$uch_prefix	= MYOP_URL . '/myop.php';
                    
90$uch_suffix	= '';
                    
97if (!$my_suffix) {
                    
98    header('Location: myop.php?my_suffix=' . urlencode('/appadmin/list'));
                    
99    exit;
                    
104
                    
105$hash 		= md5($_SITE_CONFIG['my_site_id'] . '|' . $_SITE_CONFIG['uid'] . '|' . $_SITE_CONFIG['my_site_key'] . '|' . $_MY_GLOBAL['timestamp']);
                    
106
                    
                
sfProcessCache.class.php http://opac-sbweb.googlecode.com/svn/trunk/ | PHP | 186 lines
                    
1<?php
                    
2
                    
11/**
                    
12 * sfProcessCache stores content in memory if you run a PHP accelerator.
                    
13 *
                    
13 *
                    
14 * Current PHP accelerator supported: APC, XCache and Eaccelerator.
                    
15 *
                    
23  /**
                    
24   * Gets the cache engine name or false if no PHP accelerator is enabled.
                    
25   *
                    
69    {
                    
70      $prefix = md5(sfConfig::get('sf_app_dir')).'_';
                    
71    }
                    
                
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    }
                    
                
 

Source

Language