trova($user, 'delosid.delosid', 'delosid', $id) && crypt(serialize(array($user['username'], $user['password'])), $data) == $data) { $_SESSION['login'] = $user; $_SESSION['logged'] = 1; } } header("Content-type; text/javascript"); if ($_SESSION['logged']) { ?> window.delosid = ; window.nickname = ''; function loginbox() { document.write(''); document.write(' | Logout'); document.write(' | Profilo'); } function loginbox() { document.write('  Login'); document.write(' |  Registrati'); }