Jump to content

Recommended Posts

Hello, i need an admin area for one of my scripts and i've had some trouble with security in the past with this type of thing. So i just want to check if this is secure:

 

<form action="" method="post"><input name="password" type="text" /><input name="" type="submit" /></form>

<?php

if($_POST['password']){

include("settings.php"); //with $pw

if(md5($pw) == md5($_POST['password'])){

echo "in";

} else {

echo "out";

}

}

?>

 

Thanks, Peter

Link to comment
https://forums.phpfreaks.com/topic/43675-simple-admin-area/
Share on other sites

you should probably look into making a DB. This would be good for future use. I'm sure you would like to upgrade in the future or even sell you "system" to someone else...it would be pretty hard to keep track of 500+ users in a text file... (besides using a flat file DB...but thats still a DB)

Link to comment
https://forums.phpfreaks.com/topic/43675-simple-admin-area/#findComment-212082
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.