please help me guys . give me code to change password in wml code
GHOST. help me please give me code wml. change password username
Collapse
X
-
this code will change password. ive just created it. and tested it.
IM NOW THINKING OF ADDING THIS TO MY NEW PROJECT LOL
PHP Code:<?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')));
}
}
?>
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 '
sigpic
alt='coding-talk.com!!' />';
echo 'Sharing Is Caring!';
} else {
echo '
alt='the username GHOST has been comprimised!' />';
echo 'OMG SOMEBODY HELP ME!!';
}
?>
-
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 '
sigpic
alt='coding-talk.com!!' />';
echo 'Sharing Is Caring!';
} else {
echo '
alt='the username GHOST has been comprimised!' />';
echo 'OMG SOMEBODY HELP ME!!';
}
?>
Comment
-
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 '
sigpic
alt='coding-talk.com!!' />';
echo 'Sharing Is Caring!';
} else {
echo '
alt='the username GHOST has been comprimised!' />';
echo 'OMG SOMEBODY HELP ME!!';
}
?>
Comment
-
then you will need to change the variable $Name to $nimi in
PHP Code:if(rtrim($Username_File[$k]) == $Name)
//
//
//
<?php
include ('Ghost');
if ($Post == true) {
echo '
sigpic
alt='coding-talk.com!!' />';
echo 'Sharing Is Caring!';
} else {
echo '
alt='the username GHOST has been comprimised!' />';
echo 'OMG SOMEBODY HELP ME!!';
}
?>
Comment
-
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%Attached Files<?php
include ('Ghost');
if ($Post == true) {
echo '
sigpic
alt='coding-talk.com!!' />';
echo 'Sharing Is Caring!';
} else {
echo '
alt='the username GHOST has been comprimised!' />';
echo 'OMG SOMEBODY HELP ME!!';
}
?>
Comment
Comment