Forgot Password For Funmobile / Lavalair
Started on the old forum in January 2008 · view the original in the archive · old links redirect here
TL;DR · summary of 11 replies
- Reply by modfiles suggests creating a random password function that is alphanumeric and not using time.
- Guest provides code for changing the password details including username and new password.
- Something else offers an advanced password generation method with letters and numbers, which can be changed based on a number generated randomly.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
i will try but i dont promise...or somebody have it post the code... 😮
www.inbuzunar.mobi -Your mobile portal pocket
bery bery very simple men.. create a password resset thingy..
this is the simple crazy steps..
code it well brother..
this is not the proper way lol just putting an idea for you to code
1 : create the sql query.. select distinct from ibwf_users where email like "mymail"
2 : then create a random pasword function
3 : well time to create mail sender
4 : sent the mail now "yes user you requested pasword resset coz you forgot your previous pasword your kind of a person that can be cosidered as old grandma who always forgot her eye glasses!
this is your new temporary password
password: 1288cfrt
yes you can edit the password when you login using temporary pasword, edit it to your desired password at the user settings menu!
thats it a password thingy thing ting walis! hehehehe atleast i gave you an idea
you can code it by your own..
i have seen the same topic in here before
yes but their problem is the passwords are md5ed passworded in sql
so use my sugestion the passsword reset thingy
Services
Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?
Below is a list of services I offer:
Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.
Rates
General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.
try this.. but havent tested yet 😛
CODE<?php include("config.php"); include("core.php"); if($mime== WEB) { echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>"; echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">"; }else{ echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>"; echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; } $bcon = connectdb(); if (!$bcon) { echo dberror($mime); } $action = $_GET["action"];
if($mime== WEB)
{
echo webhead($uthm,$stitle);
echo "
"; echo "Error! Cannot Connect To Database...
"; echo "This error happens usually when backing up the database, please be patient..."; echo " "; echo webfoot(); }else{ echo waphead($stitle); echo " "; echo "Error! Cannot Connect To Database...
"; echo "This error happens usually when backing up the database, please be patient..."; echo " "; echo wapfoot(); } if($action=="main") { if($mime== WEB) { echo webhead($uthm,$stitle); echo " "; echo "<img src="images/logo.jpg" alt="$stitle"/> "; echo "
"; echo "<form action="pass.php?action=pass" method="post">"; echo "Enter UserID: <input name="name" format="*x" maxlength="30"/> "; echo "Enter Email: <input name="email" maxlength="60"/> "; echo "<postfield type="hidden" name="name" value="$(name)"/>"; echo "<postfield type="hidden" name="email" value="$(email)"/>"; echo "<input type="submit" value="Go"/></form>"; echo "
"; echo " <a href="index.php">Main menu</a>"; echo " "; echo webfoot(); }else{ echo waphead($stitle); echo " "; echo "<img src="images/logo.jpg" alt="$stitle"/> "; echo "
"; echo "Enter UserID: <input name="name" format="*x" maxlength="30"/> "; echo "Enter Email: <input name="email" maxlength="60"/> "; echo "<anchor>Login<go href="pass.php" method="post">"; echo "<postfield name="name" value="$(name)"/>"; echo "<postfield name="email" value="$(email)"/>"; echo "</go>"; echo "</anchor>"; echo "
"; echo " <a href="index.php">Main menu</a>"; echo " "; echo wapfoot(); }
}else if($action=="pass") { $name = $_POST["name"]; $email = $_POST["email"]; if($mime== WEB) { echo webhead($uthm,$stitle); echo " "; $uinfo = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE name='".$name."'")); if($uinfo[0]==0) { echo "UserID doesn't exist
"; echo "<a href="pass.php?action=main">Back</a> ";
} else { $uinfo = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE name='".$name."' AND email='".$email."'")); if($uinfo[0]==0) { echo "Email did not match to the username
"; echo "<a href="pass.php?action=main">Back</a> ";
}
else
{
$tukmol = time();
mysql_query("UPDATE ibwf_users SET pass='".md5($tukmol)."' WHERE name='".$name."'");
$belat= mysql_fetch_array(mysql_query("SELECT name FROM ibwf_users WHERE name='".$name."'"));
$msg = "\n Username: ".$belat[0]." \n New Password: ".$belat." \n\n ".$stitle." is a nice friendly chat community we are glad to have you with us 🙂 please feel free to bring your mates along \n\nThank You\n".$stitle."";
$subj = "New password details for ".$stitle."";
$headers = 'From: admin@yourdomain.com' . "\r\n" .
'Reply-To: admin@yourdomain.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($email, $subj, $msg, $headers);
echo "Your new password has been sent successfully to $email
"; echo "<a href="index.php">Main menu</a>"; } } echo " "; echo webfoot(); }else{ echo waphead($stitle); echo " "; $uinfo = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE name='".$name."'")); if($uinfo[0]==0) { echo "UserID doesn't exist
"; echo "<a href="pass.php?action=main">Back</a> ";
} else { $uinfo = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE name='".$name."' AND email='".$email."'")); if($uinfo[0]==0) { echo "Email did not match to the username
"; echo "<a href="pass.php?action=main">Back</a> ";
}
else
{
$tukmol = time();
mysql_query("UPDATE ibwf_users SET pass='".md5($tukmol)."' WHERE name='".$name."'");
$belat= mysql_fetch_array(mysql_query("SELECT name FROM ibwf_users WHERE name='".$name."'"));
$msg = "\n Username: ".$kiss[0]." \n New Password: ".$belat." \n\n ".$stitle." is a nice friendly chat community we are glad to have you with us 🙂 please feel free to bring your mates along \n\nThank You\n".$stitle."";
$subj = "New password details for ".$stitle."";
$headers = 'From: admin@yourdomain.com' . "\r\n" .
'Reply-To: admin@yourdomain.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($email, $subj, $msg, $headers);
echo "Your new password has been sent successfully to $email
"; echo "<a href="index.php">Main menu</a>"; } } echo " "; echo wapfoot(); exit(); } } ?>
<?php include("config.php"); include("core.php"); if($mime== WEB) { echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";try this.. but havent tested yet 😛
CODE
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
}else{
echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
} $bcon = connectdb(); if (!$bcon) { echo dberror($mime); } $action = $_GET["action"];
if($mime== WEB)
{
echo webhead($uthm,$stitle);
echo "
"; echo "Error! Cannot Connect To Database...
"; echo "This error happens usually when backing up the database, please be patient..."; echo " "; echo webfoot(); }else{ echo waphead($stitle); echo " "; echo "Error! Cannot Connect To Database...
"; echo "This error happens usually when backing up the database, please be patient..."; echo " "; echo wapfoot(); } if($action=="main") { if($mime== WEB) { echo webhead($uthm,$stitle); echo " "; echo "<img src="images/logo.jpg" alt="$stitle"/> "; echo "
"; echo "<form action="pass.php?action=pass" method="post">"; echo "Enter UserID: <input name="name" format="*x" maxlength="30"/> "; echo "Enter Email: <input name="email" maxlength="60"/> "; echo "<postfield type="hidden" name="name" value="$(name)"/>"; echo "<postfield type="hidden" name="email" value="$(email)"/>"; echo "<input type="submit" value="Go"/></form>"; echo "
"; echo " <a href="index.php">Main menu</a>"; echo " "; echo webfoot(); }else{ echo waphead($stitle); echo " "; echo "<img src="images/logo.jpg" alt="$stitle"/> "; echo "
"; echo "Enter UserID: <input name="name" format="*x" maxlength="30"/> "; echo "Enter Email: <input name="email" maxlength="60"/> "; echo "<anchor>Login<go href="pass.php" method="post">"; echo "<postfield name="name" value="$(name)"/>"; echo "<postfield name="email" value="$(email)"/>"; echo "</go>"; echo "</anchor>"; echo "
"; echo " <a href="index.php">Main menu</a>"; echo " "; echo wapfoot(); }
}else if($action=="pass") { $name = $_POST["name"]; $email = $_POST["email"]; if($mime== WEB) { echo webhead($uthm,$stitle); echo " "; $uinfo = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE name='".$name."'")); if($uinfo[0]==0) { echo "UserID doesn't exist
"; echo "<a href="pass.php?action=main">Back</a> ";
} else { $uinfo = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE name='".$name."' AND email='".$email."'")); if($uinfo[0]==0) { echo "Email did not match to the username
"; echo "<a href="pass.php?action=main">Back</a> ";
}
else
{
$tukmol = time();
mysql_query("UPDATE ibwf_users SET pass='".md5($tukmol)."' WHERE name='".$name."'");
$belat= mysql_fetch_array(mysql_query("SELECT name FROM ibwf_users WHERE name='".$name."'"));
$msg = "\n Username: ".$belat[0]." \n New Password: ".$belat." \n\n ".$stitle." is a nice friendly chat community we are glad to have you with us 🙂 please feel free to bring your mates along \n\nThank You\n".$stitle."";
$subj = "New password details for ".$stitle."";
$headers = 'From: admin@yourdomain.com' . "\r\n" .
'Reply-To: admin@yourdomain.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($email, $subj, $msg, $headers);
echo "Your new password has been sent successfully to $email
"; echo "<a href="index.php">Main menu</a>"; } } echo " "; echo webfoot(); }else{ echo waphead($stitle); echo " "; $uinfo = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE name='".$name."'")); if($uinfo[0]==0) { echo "UserID doesn't exist
"; echo "<a href="pass.php?action=main">Back</a> ";
} else { $uinfo = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE name='".$name."' AND email='".$email."'")); if($uinfo[0]==0) { echo "Email did not match to the username
"; echo "<a href="pass.php?action=main">Back</a> ";
}
else
{
$tukmol = time();
mysql_query("UPDATE ibwf_users SET pass='".md5($tukmol)."' WHERE name='".$name."'");
$belat= mysql_fetch_array(mysql_query("SELECT name FROM ibwf_users WHERE name='".$name."'"));
$msg = "\n Username: ".$kiss[0]." \n New Password: ".$belat." \n\n ".$stitle." is a nice friendly chat community we are glad to have you with us 🙂 please feel free to bring your mates along \n\nThank You\n".$stitle."";
$subj = "New password details for ".$stitle."";
$headers = 'From: admin@yourdomain.com' . "\r\n" .
'Reply-To: admin@yourdomain.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($email, $subj, $msg, $headers);
echo "Your new password has been sent successfully to $email
"; echo "<a href="index.php">Main menu</a>"; } } echo " "; echo wapfoot(); exit(); } } ?>
lol you make the time as the random pasword nice try..
hehehe you got my simple idea... btw you need to create random pasword alphanumeric and not to use the time...
the time will go with upto how many characters lol.. sometimes you cant login with passwords that has 11 to 16 characters or more....
minimize it by creating random password function by 8-10 characters..
i made the script before.. wait let me see to my old usb
i will create a demo afterwards i need to upload it first...
Services
Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?
Below is a list of services I offer:
Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.
Rates
General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.
work on wapdesire lavalair???
if like my post click:
work on wapdesire lavalair???
works well in all scripts...
like mine! and like yours too!
thats special script.. hehehe resset thingy pasword!
Services
Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?
Below is a list of services I offer:
Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.
Rates
General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.
lol you make the time as the random pasword nice try.. hehehe you got my simple idea... btw you need to create random pasword alphanumeric and not to use the time... the time will go with upto how many characters lol.. sometimes you cant login with passwords that has 11 to 16 characters or more.... minimize it by creating random password function by 8-10 characters.. i made the script before.. wait let me see to my old usb i will create a demo afterwards i need to upload it first...
how many characters you want in password you can change here is example can change 5 to 6/7/8/9 etc mate
$pass = substr(preg_replace('/\W/', '', md5(rand())), 0, 5);
left wap stuff
lol you make the time as the random pasword nice try..
hehehe you got my simple idea... btw you need to create random pasword alphanumeric and not to use the time...
the time will go with upto how many characters lol.. sometimes you cant login with passwords that has 11 to 16 characters or more....
minimize it by creating random password function by 8-10 characters..
i made the script before.. wait let me see to my old usb
i do the coding right before i read your post 😛
by default, it generates 5 alphanumeric code and it will expire after quite some time if you dont use it so if ever that it wont work, you have to generate another one 🙂
lol you make the time as the random pasword nice try.. hehehe you got my simple idea... btw you need to create random pasword alphanumeric and not to use the time... the time will go with upto how many characters lol.. sometimes you cant login with passwords that has 11 to 16 characters or more.... minimize it by creating random password function by 8-10 characters.. i made the script before.. wait let me see to my old usb i will create a demo afterwards i need to upload it first...
ew password details for blabla username: blabla password:Array
$tukmol = time();
mysql_query("UPDATE ibwf_users SET pass='".md5($tukmol)."' WHERE name='".$name."'");
$belat= mysql_fetch_array(mysql_query("SELECT name FROM ibwf_users WHERE name='".$name."'"));
$msg = "\n Username: ".$belat[0]." \n New Password: ".$belat." \n\n ".$stitle." is a nice friendly chat community we are glad to have you with please feel free to bring your mates along \n\nThank You\n".$stitle."";
change: New Password: ".$belat. with $msg = "\n Username: ".$belat[0]." \n New Password: ".$tukmol."
you could change $tukmol to something like this below to make the Password more advanced:
CODE$inca = rand(1,26); if($inca=="1"){ $let = "a"; $two = "m"; }else if($inca=="2"){ $let = "b"; $two = "n"; }else if($inca=="3"){ $let = "c"; $two = "b"; }else if($inca=="4"){ $let = "d"; $two = "v"; }else if($inca="5"){ $let = "e"; $two = "c"; }else if($inca=="6"){ $let = "f"; $two = "x"; }else if($inca=="7"){ $let = "g"; $two = "z"; }else if($inca=="8"){ $let = "h"; $two = "l"; }else if($inca=="9"){ $let = "i"; $two = "k"; }else if($inca=="10"){ $let = "j"; $two = "j"; }else if($inca=="11"){ $let = "k"; $two = "h"; }else if($inca=="12"){ $let = "l"; $two = "g"; }else if($inca=="13"){ $let = "m"; $two = "d"; }else if($inca=="14"){ $let = "n"; $two = "s"; }else if($inca=="15"){ $let = "o"; $two = "f"; }else if($inca=="16"){ $let = "p"; $two = "a"; }else if($inca=="17"){ $let = "q"; $two = "p"; }else if($inca=="18"){ $let = "r"; $two = "o"; }else if($inca=="19"){ $let = "s"; $two = "i"; }else if($inca=="20"){ $let = "t"; $two = "u"; }else if($inca=="21"){ $let = "u"; $two = "y"; }else if($inca="22"){ $let = "v"; $two = "t"; }else if($inca=="23"){ $let = "w"; $two = "r"; }else if($inca=="24"){ $let = "x"; $two = "e"; }else if($inca=="25"){ $let = "y"; $two = "w"; }else if($inca=="26"){ $let = "z"; $two = "q"; }
$time = time();
$tukmol = "$let$time$two";
🙂
this sharing of thoughts really a delightful..
see if your ideas works you can change your destiny... lol
but if you dont want the resset thingy in ressend password then recode your core and reigster page.. or the update pass section..
function register($name,$pass,$passreminder,$usex,$bday,$uloc, $ubr)
a little bit of idea twister..
Services
Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?
Below is a list of services I offer:
Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.
Rates
General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.