23.07.2014, 10:25
Theres a few problems with the script you are using which is, in my opinion, very poorly made.
1) It relies on fixed keys (Id, Password, Admin), instead of reading the keys you have in your player.ini file. So you'll need to change ucp.php so it'll read your own keys and not the ones from the demo file (Key, Level, AdminLevel, Band, PermBand, Warnings, Boombox, AlreadyBoombox, Disabled, ...).
Change:
2) ucp.php expects the password to be hashed using Whirlpool, the one you provided is just plain text. So either make sure your server hashes your passwords first (WP_Hash by ******), or change the script to use plain text, which is not recommended.
3) This is not a good script, don't use it
1) It relies on fixed keys (Id, Password, Admin), instead of reading the keys you have in your player.ini file. So you'll need to change ucp.php so it'll read your own keys and not the ones from the demo file (Key, Level, AdminLevel, Band, PermBand, Warnings, Boombox, AlreadyBoombox, Disabled, ...).
Change:
PHP код:
$user['Password'] = $file->get(null, 'Password');
$user["Money"] = $file->get(null, 'Money');
$user["Score"] = $file->get(null, 'Score');
$user["Admin"] = $file->get(null, 'Admin');
$user["VIP"] = $file->get(null, 'VIP');
$user["Skin"] = $file->get(null, 'Skin');
$user["ID"] = $file->get(null, 'ID');
$user["RegOn"] = $file->get(null, 'RegDate');
PHP код:
$hashed = hash('whirlpool', $password1);