require_once("../database.php");
if(isset($_POST[s2]))
{
$MyUsername1 = strip_tags($_POST[username1]);
$MyPassword1 = strip_tags($_POST[password1]);
if(empty($MyUsername1) || empty($MyPassword1))
{
$MyError = "
De gevraagde gegevens moeten ingevuld worden.";
}
elseif((strlen($MyUsername1) < 4) || ($MyUsername1 > 20) || (ereg("[[:punct:]]", $MyUsername1)))
{
$MyError = "Uw gebruikersnaam?";
}
elseif((strlen($MyPassword1) < 4) || ($MyPassword1 > 20) || (ereg("[[:punct:]]", $MyPassword1)))
{
$MyError = "Uw paswoord?";
}
else
{
$MyPassword5 = md5($MyPassword1);
$q1 = "select * from oneshop_handel where MerchantID = '$MyUsername1' and MerchantPass = '$MyPassword5' ";
$r1 = mysql_query($q1);
if(!$r1)
{
header("location:foutmelding.php");
exit();
}
else
{
if(mysql_num_rows($r1) == '1')
{
$_SESSION[mun] = $MyUsername1;
header("location:index.php");
exit();
}
}
}
}
?>
Administrator controle paneel