Hiroyuki Ikezoe
ikezo****@users*****
Sun Dec 31 21:52:12 JST 2006
Index: kazehakase/module/search/kz-search-common.h diff -u /dev/null kazehakase/module/search/kz-search-common.h:1.1 --- /dev/null Sun Dec 31 21:52:12 2006 +++ kazehakase/module/search/kz-search-common.h Sun Dec 31 21:52:12 2006 @@ -0,0 +1,50 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ + +/* + * Copyright (C) 2004 Hiroyuki Ikezoe + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef __KZ_SEARCH_COMMON_H__ +#define __KZ_SEARCH_COMMON_H__ + +G_BEGIN_DECLS + +#define DTD "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">" +#define HEAD "<head>\n" \ + " <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>" \ + " <title>Full-text search in history</title>\n" \ + " <link rel=\"stylesheet\" type=\"text/css\" href=\"history-search:?css=search-result.css\">\n" \ + "</head>\n" +#define HEADER "" +#define CONTENT "<div class=\"content\">\n" \ + " <div class=\"header\"><span class=\"title\"><a href=\"%s\">%s</a></span></div>\n" \ + " <div class=\"summary\"><img src=\"%s\" class=\"thumbnail\">\n" \ + " <span class=\"sentence\">%s</span>\n" \ + " </div>\n" \ + " <div class=\"footer\">\n" \ + " <span class=\"uri\">%s</span>\n" \ + " %s\n" \ + " <span class=\"date\">%s</span>\n" \ + " </div>\n" \ + "</div>\n" +#define FOOTER "<div class=\"footer\">\n" \ + "Powered by <a href=\"%s\">%s</a> version %s\n" \ + "</div>\n" + +G_END_DECLS + +#endif /* __KZ_SEARCH_COMMON_H__ */ Index: kazehakase/module/search/kz-search-hyper-estraier.c diff -u kazehakase/module/search/kz-search-hyper-estraier.c:1.22 kazehakase/module/search/kz-search-hyper-estraier.c:1.23 --- kazehakase/module/search/kz-search-hyper-estraier.c:1.22 Sun Dec 31 21:50:37 2006 +++ kazehakase/module/search/kz-search-hyper-estraier.c Sun Dec 31 21:52:12 2006 @@ -338,7 +338,7 @@ if (!ret) g_warning("db close error: %s", est_err_msg(ecode)); - g_string_append_printf(html, FOOTER, _EST_PROJURL, _EST_VERSION); + g_string_append_printf(html, FOOTER, _EST_PROJURL, "Hyper Estraier", _EST_VERSION); g_string_append(html, "</body></html>"); return g_string_free(html, FALSE);