if( $accounts = $this->mysqli->query("SELECT * FROM `".DB_DB."`.`staff` WHERE `login`=\"$login\"") )
{
$row_cnt = $accounts->num_rows;
if( $row_cnt != NULL )
{
while($row = $accounts->fetch_assoc())
{
if( strcmp( $row['password'] , md5($pass) ) == 0)
{
$this->group = $row['group'];
return true;
}
else
return false;
}
$accounts->close();
}
else
return false;
}
else
return false;