I need help regarding PHP!
#8

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:
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'); 
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.

PHP код:
$hashed hash('whirlpool'$password1); 
3) This is not a good script, don't use it
Reply


Messages In This Thread
I need help regarding PHP! - by WildOne - 22.07.2014, 11:06
Re: I need help regarding PHP! - by Kaperstone - 22.07.2014, 11:36
Re: I need help regarding PHP! - by GWMPT - 22.07.2014, 12:19
Re: I need help regarding PHP! - by WildOne - 23.07.2014, 05:11
Re: I need help regarding PHP! - by Mark_Weston - 23.07.2014, 05:45
Re: I need help regarding PHP! - by mamorunl - 23.07.2014, 09:39
Re: I need help regarding PHP! - by Vince - 23.07.2014, 10:12
Re: I need help regarding PHP! - by Sinner - 23.07.2014, 10:25
Re: I need help regarding PHP! - by NewerthRoleplay - 23.07.2014, 16:12

Forum Jump:


Users browsing this thread: 3 Guest(s)