ma ho letto l articolo, comunque cosa dovrei fare questa e la funzione tu cosa faresti o come faresti ? grazie comunque
Codice PHP:
function LoginAdministrator($login,$pass,$remember=false)
    {
    global 
$dbcore $smarty;
    
$pass md5($pass);
    
$sql mysql_query(  "select *
                                    from amministrator
                                    where`nick` ='
{$login}
                                    and `pass` = '
{$pass}'
                                    and `stato` = 1 
                                    and `tipo` = 3 
                                    limit  1"
) or die (mysql_error());
            
$result mysql_num_rows($sql);            
            if(
$result ==1)
            {
            
ob_start ();
            
session_start();
           
$_SESSION['areaprivata_login']=$login;
           
$_SESSION['areaprivata_password']=$pass;
           
ob_clean();
           return 
true;   
           }
           else
           {
            return 
false;
      }