query("fullparse:false,start:0,count:$num");
	 * $fpdb->doquery($queryId);
	 *
	 * $fpdb->getQuery
	 */
	$q = new FPDB_Query(array(
		'fullparse' => false,
		'start' => 0,
		'count' => $num
	), null);
	$string = '
';
	$count = 0;
	while ($q->hasmore()) {
		list ($id, $entry) = $q->getEntry();
		$link = get_permalink($id);
		$string .= '- ';
		$admin = BLOG_BASEURL . "admin.php?p=entry&entry=";
		if (user_loggedin()) // if loggedin prints a "edit" link
			$string .= "[" . $lang ['plugin'] ['lastentries'] ['edit'] . "]";
		$string .= "{$entry['subject']}\n";
		$count++;
	}
	if ($string == '
') {
		$string .= '- ' . $lang ['plugin'] ['lastentries'] ['add_entry'] . '';
		$subject = $lang ['plugin'] ['lastentries'] ['no_entries'];
	} else
		$subject = $lang ['plugin'] ['lastentries'] ['subject_before_count'] . $count . $lang ['plugin'] ['lastentries'] ['subject_after_count'];
	$string .= '
';
	$widget = array();
	$widget ['subject'] = $subject;
	$widget ['content'] = $string;
	return $widget;
}
register_widget('lastentries', 'LastEntries', 'plugin_lastentries_widget');
?>