Basta spostarla...Codice PHP:function auth_login($uname, $passw){
global $_CONFIG;
$result = mysql_query("
SELECT *
FROM ".$_CONFIG['table_utenti']."
WHERE username='".$uname."' and password=('".md5($passw)."') and temp='0'"
);
if(mysql_num_rows($result) != 1){
echo "Ciaoooo
";
return array(AUTH_INVALID_PARAMS, NULL);
}else{
$data = mysql_fetch_array($result);
return array(AUTH_LOGEDD_IN, $data);
}
}
![]()

Rispondi quotando