Making change password

11/01/2010 05:58 marlyandedsel#1
anyone knows how to code change password using php?

i got flat file for my co, my conquer path user is C:\OldCODB\Users
my conquer path characters is C:\OldCODB\Users\Characters


if you just give me hint or ideas on this, thanks for this in advance.
11/01/2010 07:37 FuriousFang#2
Ideas: I've actually never done php to the level you're talking about. I'd imagine it would be connecting to the database, retrieving the password, and then replacing it if it's correct or if their secret answer is correct.

I'm going to learn how to do that in December when my server is almost complete. =\ Sorry that I couldn't be of bigger help. Good luck!

Sincerely,
Fang
11/01/2010 08:27 ryuchetval#3
you would need a c# based website...as the epic webserver
11/01/2010 09:08 marlyandedsel#4
Quote:
Originally Posted by FuriousFang View Post
Ideas: I've actually never done php to the level you're talking about. I'd imagine it would be connecting to the database, retrieving the password, and then replacing it if it's correct or if their secret answer is correct.

I'm going to learn how to do that in December when my server is almost complete. =\ Sorry that I couldn't be of bigger help. Good luck!

Sincerely,
Fang

Thanks for the thought, I'm going to learn this php coding hope its not ganna be hard. but still need some sample, I think Im going to look at my reg page and take some of it.
11/01/2010 09:10 marlyandedsel#5
Quote:
Originally Posted by ryuchetval View Post
you would need a c# based website...as the epic webserver

I am not using epic webserver, Im just using my appserv and it doesn't need that epic, I dont know why but when im using my appserv its working fine, the epicwebserver has a bug maybe it has some error in the coding
11/01/2010 19:06 _DreadNought_#6
you guys are all full of bullshit. you JUST need the php file website to be hosted on the computer where the server is being handled(Ex: Server status, player count etc)

I dont know much but I do know that just assign 3 values(strings)
Code:
$account;
$password;
$newpassword;
assign $password to whatever they putin to be there real password and $newpassword as what they want there new password to be and $account to there account

Simply just try and validate there account exists
Code:
#The code that checks if a file exists
if the value is true open the file and see if it contains the string ($password) if it does then replace it with the new password if not then the password is wrong.

That's probably not the most efficient way to do it but it will work.
11/02/2010 02:48 .Beatz#7
I would suggest if you want a password change on your site you have people register with the following...

Account Name:
Password:
Secret word/number:
Some other privacy thing:
possibly something else...

Then you would just need to make a page that people have to type all their info in etc like Dreadnaught said. It is not hard and if people stopped to think about things then they would realise that it is soo easy to make a few checks and a change here or there.
11/02/2010 03:40 marlyandedsel#8
Quote:
Originally Posted by _DreadNought_ View Post
you guys are all full of bullshit. you JUST need the php file website to be hosted on the computer where the server is being handled(Ex: Server status, player count etc)

I dont know much but I do know that just assign 3 values(strings)
Code:
$account;
$password;
$newpassword;
assign $password to whatever they putin to be there real password and $newpassword as what they want there new password to be and $account to there account

Simply just try and validate there account exists
Code:
#The code that checks if a file exists
if the value is true open the file and see if it contains the string ($password) if it does then replace it with the new password if not then the password is wrong.

That's probably not the most efficient way to do it but it will work.

All your thoughts are useful thanks for that, but i just don't like the way you talk "BULSHIT" this forum use for learning, suggesting, opinion, Ideas, etc. not like the words you use "bulshit". but the rest thanks for your ideas it really helps alot.
11/02/2010 11:28 Korvacs#9
I would suggest you have a read on google about php based forms and sql implementation, there will be lots of information about this topic.