View Single Post
  #19  
Old 28th November 2012, 04:58
firefly's Avatar
firefly firefly is offline
Senior Member
 
Join Date: Dec 2009
P2P
Posts: 74
Default
Quote:
Originally Posted by Joco1114 View Post
I got the solution with login. There was the problem with mksecret() function in functions\function_main.php. It seems the genereated secret string stored in the mysql table was re-read incorrectly. That's because I use special accents (like: áűőúöüóí) and I had conflict with the codepages in PHP and in MySQL. Here is my mksecret():

PHP Code:
function mksecret($len 20)
{
    
$ret "";
    
$chars "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";

    
$size strlen$chars );
    for( 
$i 0$i $len$i++ ) {
        
$ret .= $charsrand0$size ) ];
    }
    return 
$ret;

As it seems it generated only "readable" secret string contain [a-zA-Z0-9] chars. No accents! :)

PS: I'm waiting your complete version impatiently. :)
I will have a look... what is your language?

Pretty soon, I'm busy make language pack, its very time consuming ....
__________________
Can install Gazelle

Last edited by firefly; 28th November 2012 at 05:12.
Reply With Quote