mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
*** empty log message ***
git-svn-id: http://piwigo.org/svn/trunk@14 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -18,17 +18,17 @@ function generate_key()
|
||||
{
|
||||
global $conf;
|
||||
$md5 = md5( substr( microtime(), 2, 6 ).$conf['session_keyword'] );
|
||||
$init = "";
|
||||
$init = '';
|
||||
for ( $i = 0; $i < strlen( $md5 ); $i++ )
|
||||
{
|
||||
if ( is_numeric( $md5[$i] ) )
|
||||
{
|
||||
$init.= "$md5[$i]";
|
||||
$init.= $md5[$i];
|
||||
}
|
||||
}
|
||||
$init = substr( $init, 0, 8 );
|
||||
mt_srand( $init );
|
||||
$key = "";
|
||||
$key = '';
|
||||
for ( $i = 0; $i < $conf['session_id_size']; $i++ )
|
||||
{
|
||||
$c = mt_rand( 0, 2 );
|
||||
|
||||
Reference in New Issue
Block a user