Jump to content

simple admin area


pea_1

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.