richardsussex Posted October 7, 2003 Share Posted October 7, 2003 Hi there, I have just finished a basic CMS for my website, using Dreamweaver!! I now want to make the page where i modify my content to have password security so only i can edit my content!! I have incorperated a membership system into another site I have built!! I dont really need a membership system on the new site!! I just want one admin login!! Im thinking md5() is the way to go?? Any tips or ideas would be great??? Quote Link to comment https://forums.phpfreaks.com/topic/1127-dreamweaver-cms-and-md5-security/ Share on other sites More sharing options...
AciD Posted October 20, 2003 Share Posted October 20, 2003 Heres something you can try Put this on the page of admin editing: <?php $password = "hamsters"; $md5pass = MD5($password); if ($checkauth != NULL) { echo "<form action=\'admin.php\' method=post> <b>Password:</b><br> <input type=\'text\' name=\'checkauth\' length=\'10\'><br> <input type=\'submit\' value=\'Log in...\'></form>"; } else { $checkauth2 = MD5(\'$checkauth\'); if ($md5pass == $checkauth2) { echo " CODE FOR EDITING HERE CODE FOR EDITING HERE CODE FOR EDITING HERE CODE FOR EDITING HERE CODE FOR EDITING HERE CODE FOR EDITING HERE CODE FOR EDITING HERE CODE FOR EDITING HERE CODE FOR EDITING HERE CODE FOR EDITING HERE CODE FOR EDITING HERE CODE FOR EDITING HERE"; } else { echo "Invalid Password!"; } } ?> Quote Link to comment https://forums.phpfreaks.com/topic/1127-dreamweaver-cms-and-md5-security/#findComment-3999 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.