Thread: login problem
View Single Post
  #4  
Old 31st July 2008, 14:02
bestmd bestmd is offline
Member
 
Join Date: Jul 2008
Posts: 5
Thumbs up
Quote:
Originally Posted by korn3l View Post
I checked that. you can confirm the accounts and it works. The only problem is that when I enter the name and password the page just refreshes :(


EDIT:

I managed to get it work
Mmmm, the problem is in function mksecret();
Open include/bittorrent.php, search function mksecret,
and remove, after put there this function:
PHP Code:
function mksecret($length 20) {
$set = array("a","A","b","B","c","C","d","D","e","E","f","F","g","G","h","H","i","I","j","J","k","K","l","L","m","M","n","N","o","O","p","P","q","Q","r","R","s","S","t","T","u","U","v","V","w","W","x","X","y","Y","z","Z","1","2","3","4","5","6","7","8","9");
    
$str;
    for(
$i 1$i <= $length$i++)
    {
        
$ch rand(0count($set)-1);
        
$str .= $set[$ch];
    }
    return 
$str;

Reply With Quote