Jump to content

Dreamweaver cms and md5 security???


Recommended Posts

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

Link to comment
Share on other sites

  • 2 weeks later...

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!";

}

}

?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.