【发布时间】:2015-05-01 08:35:21
【问题描述】:
当用户注册他们的帐户时,我有一个脚本及其存储的用户密码加密,当我在管理面板中显示用户所有信息和密码时,它显示加密的密码,但我想在我的管理面板中显示这个密码,因为下面的 MD5 是注册表单代码
if ($input->p['a'] == "submit") {
verifyajax();
$username = $input->pc['username'];
$password = $input->pc['password'];
$password2 = $input->pc['password2'];
$fullname = $input->pc['fullname'];
$email = $input->pc['email'];
$email2 = $input->pc['email2'];
$inputs = array("username" => $username, "password" => $password, "fullname" => $fullname, "email" => $email, "email2" => $email2);
$newdata = array("type" => $membership_bonus, "upgrade_ends" => $membership_expires, "money" => $account_balance, "purchase_balance" => $purchase_balance, "fullname" => $fullname, "comes_from" => $_SESSION['comes_from'], "username" => $username, "password" => md5($password), "email" => $email, "ref1" => $referrer, "signup" => $signupdate, "country" => $country, "computer_id" => $computerid, "signup_ip" => $_SERVER['REMOTE_ADDR'], "gateways" => $usrgateway, "umobile" => $umobile);
在管理面板中,当我显示用户密码时,我使用以下代码,但它显示加密密码。
<tr>
<td>Password:</td>
<td><input name=\"email\" type=\"text\" value=\"";
echo $member['password'];
echo "\" /></td>
</tr>
我应该怎么做才能在我的管理面板中显示 MD5 密码。
【问题讨论】:
标签: php encryption md5