php
require_once ("zawierać/common.php ");
jeżeli ($_POST ["hiden"] == " (1)") {
$uname=$_POST ["uname"];
$pword=$_POST ["pword"];
jeżeli ($uname! = "" && $pword! = "") {
$qry= " wybiórka * od tn_users dokąd username='$ uname' i password='$ pword'";
$selectQry=SelectQry ($qry);
$userid=$selectQry [(0)] ["userid"];
jeżeli ($userid! = "") {
ob_start ();
session_start ();
$_SESSION ["tnvname"] =$uname;
$_SESSION ["tnvid"] =$userid;
$role=$selectQry [(0)] ["rola"];
$usertyp=$selectQry [(0)] ["user_typ"];
chodnikowiec ("Lokacja: home.php");
}
}
}
? >
|