/** Automatic Login.
* Supposing that the user is not signed on, simply redirect to a page
* containing the user slot (may be also only the PHP and not the template)
*/
function login($username, $passwd) {
$goto = & new url();
header("Location: index.php?page=home&action=login&username=".$username."&passwd="
.$passwd."&goto=".urlencode($goto->Build()));
exit();
}