Jump to content


Photo

Dreamweaver cms and md5 security???


  • Please log in to reply
1 reply to this topic

#1 richardsussex

richardsussex
  • Members
  • Pip
  • Newbie
  • 3 posts
  • LocationEngland

Posted 07 October 2003 - 07:22 PM

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???

#2 AciD

AciD
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 20 October 2003 - 08:47 PM

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 HERECODE FOR EDITING HERE CODE FOR EDITING HERECODE FOR EDITING HERE CODE FOR EDITING HERECODE FOR EDITING HERE CODE FOR EDITING HERECODE FOR EDITING HERE CODE FOR EDITING HERECODE FOR EDITING HERE CODE FOR EDITING HERE";}else {echo "Invalid Password!";}}?>





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users