其實這是一個簡單的小技巧
使用DW2004建立用戶登陸功能後(Application/User Authentication/Log in user)
得到以下代碼:
... ... ... ...
... ... ... ...
if (isset($_POST['username'])) {
$loginUsername=$_POST['username'];
$password=md5($_POST['password']);注重原句為:$password=$_POST['password'];
$MM_fldUserAuthorization = "adclass";
$MM_redirectLoginSuccess = "loginok.php";
$MM_redirectLoginFailed = "sorry.php";
$MM_redirecttoReferrer = false;
mysql_select_db($database_conn, $conn);
... ... ... ...
... ... ... ...
只要套上 md5() 就加密了,不信? 趕緊打開數據庫看看吧...