user["lastlogin"]);
printf(" "._('from: 
 %1$s ')."
",$mem->user["lastip"]);
if ($mem->user["lastfail"]) {
	printf(_("%1\$d login failed since last login")."
",$mem->user["lastfail"]);
}
$mem->resetlast();
# use MagpieRSS to syndicate content from another site if available
# this should work, since the debian package installs it in
# /usr/share/php, which is in the include path
$rss_url = variable_get('rss_feed');
$inc = @include_once('magpierss/rss_fetch.inc');
if ($inc && $rss_url) {
  $rss = fetch_rss($rss_url);
  if ($rss) {
    echo "
" . _("Latest news") . "
";
    foreach ($rss->items as $item) {
      $href = $item['link'];
      $title = $item['title'];
      echo "
";
      echo '
'.$item['pubdate'] .' - ';
      echo '
'.$item['dc']['creator'].'';
      echo $item['summary'];
    }
  }
}
if($admin->enabled) {
  $expiring = $admin->renew_get_expiring_accounts();
  if(is_array($expiring) && count($expiring) > 0) {
    echo "
" . _("Expired or about to expire accounts") . "
\n";
    echo "
\n";
    echo "| "._("uid")." | "._("Last name, surname")." | "._("Expiry")." | 
|---|
\n";
    foreach($expiring as $account) {
      echo "| {$account['uid']}";
      if($admin->checkcreator($account['uid']))
	echo " | {$account['nom']}, {$account['prenom']}";
      else
	echo " | {$account['nom']}, {$account['prenom']}";
      echo " | {$account['expiry']} | 
\n";
    }
    echo "
\n";
  }
}
?>