GHOST. help me please give me code wml. change password username

Started on the old forum in October 2012 · view the original in the archive · old links redirect here

10 replies · 867 views · started 14 years ago · 1 min read

2 participants
weet2012 Junior · 12 posts #1

please help me guys . give me code to change password in wml code

Ghost Senior · 366 posts #2

this code will change password. ive just created it. and tested it.

IM NOW THINKING OF ADDING THIS TO MY NEW PROJECT LOL

<?php
$Name = 'Ghost'; /** added for example only */
$New_Pass = 'SOME TEXT HERE'; /** added for example only */

$New_Pass = crypt($New_Pass,'password');
$Password_File = file('pass.txt');/** password file loc */
$Username_File = file('user.txt');/** username file loc */
for($k = 0; $k<count($Username_File); $k++)/** count username file */
{
if(rtrim($Username_File[$k]) == $Name)/** match username with name in file */
{/** using [$k] we get location of password from seperate file and delete it. */
file_put_contents('pass.txt', str_replace($Password_File[$k], $New_Pass."\r\n", file_get_contents('pass.txt')));
}
}
?>

you would then of course have to create a form for user to input new password. and change the file locations in this code to match file locs in the script. and then call this code to execute the command. removing the example $Name and $New_Pass lines at top of course. they are only in this code for example

you could also use this code with a slight modification to change the members username also. but not sure if thats a great idea. letting users have free range on changing there names.

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
weet2012 Junior · 12 posts #3

thanks ghost, but can u post the code without example, so i can understand

Added after 2 minutes:

and this code can working in ur script mobilechat wml?

Ghost Senior · 366 posts #4

dude im not trying to be mean. but you need to do some things for yourself. yes this code will work in any markup language wml, html, xhtml etc,

this is the raw code for what you want to do. its not an example, all you need to do is change the file locations. delete the 1st 2 lines. and create the wml form for it and point that form to the file with this code in.

the reason i gave you the raw code is for you to learn. and also i dont know what script or version your using of my work. so its hard for me to get it exactly right for that precise version.

1 last thing. asking for fully completed code all time will never help you learn. you learn by doing.

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
weet2012 Junior · 12 posts #5

ok dude . thanks for ur help 🙂 i will try this code.

Ghost Senior · 366 posts #6

if after some time of trying and your not able to still work it out. i will try to help. but in future i need to know more about the script. not just mobilechat wml but i need to know version number also. each version is modded differently that is why they have numbers. goodluck

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
weet2012 Junior · 12 posts #7

and i'll wait ur new project of mobilechat wml. i think v4. lol.

Added after 3 minutes:

iam now using mobilechat wml v3

Ghost Senior · 366 posts #8

then you will need to change the variable $Name to $nimi in

if(rtrim($Username_File[$k]) == $Name)
//
//
//
<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
Ghost Senior · 366 posts #9

Decided to do it.

ok here is the fully working change/modify password script for mobilechat wml v3

README-FIRST.txt file included. PLEASE READ IT.

i have tested this on mobilechat wml v3 and its working 100%

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
Attachments: updatepassword.zip
weet2012 Junior · 12 posts #10

thanks a lot dude. its working 100%

thanks a lot dude. its working 100%

Ghost Senior · 366 posts #11

your welcome.

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close