функция signin ()
{
if (isset ($ _ POST ['signin']))
{
global $ con;
global $ db;
$ name = $ _ POST ['uname'];
$ pwd = $ _ POST ['pass'];
$ name = stripcslashes ($ name);
$ pwd = stripcslashes ($ pwd);
if ($ name! = '' && $ pwd! = '')
{
$ query = mysqli_query ($ con, "select * from banmoh, где username = '". $ Name. "' И пароль = '". $ Pwd. "'") Или d * 1054. * (mysqli_error ());
$ res = mysqli_fetch_row ($ query);
if ($ res)
{
session_start ();
$ _ SESSION ['uname'] = $ name;
$ _ SESSION ['pass'] = $ pwd;
header ('location: dashboard. php ');
}
else
{
header (' location: index. php? Error ');
}
}
}