// otestovat, zda jsme prihlaseni
$errmsg = "";
require("tools.php");
if(CheckVisit())
header("Location: menu.php");
if(isset($_POST["username"]))
{
ConnectDb();
$jmeno = AvoidSqlInject2($_POST['username']);
$heslo = AvoidSqlInject($_POST['pass']);
$strSQL = "SELECT id FROM firma WHERE jmeno='$jmeno' AND heslo='$heslo'";
$result = mysql_query($strSQL);
if(mysql_num_rows($result) == 1)
{
SetVisit($jmeno);
header("Location: menu.php");
}
else
{
$errmsg="Username and password combination does not match.";
}
}
?>
PORCUS ČR, spol. s r.o.
|
|
PORCUS Activation system login
if(strlen($errmsg))
echo "$errmsg ";
?>
| |
|
|