If you're not using a database to store the login and pass, I'd suggest md5()
If you have
$varlog="QWEtr23twesfdv";
$varpas="ADWFeart35t2345";
((both the above are random text/number, do not use, instead make a page to determine what the
<?
$log="Admin";
echo md5($admin);
?>
is, same for password))
It would be more secure than simple plain text as MD5() is, as of now, irreversible
you would then have
if(md5($POST['user])==$varlog and md5($POST['pwd])==$varpas) { login(); }
also, only having a log in to stop people viewing these pages is not a good idea (unless you have a checker on every page to make sure you are logged in, and/or correct admin)
Programs such as IntelliTamper (www.intellitamper.com I believe) can view a file list of any webserver. If your pages aren't protected as said above, you're in trouble =P
Have fun.