mirror of
https://github.com/gigablast/open-source-search-engine.git
synced 2024-10-04 12:17:35 +03:00
more collection fixes
This commit is contained in:
parent
fa59c62264
commit
8edfc2ce70
@ -1129,11 +1129,8 @@ bool gotResults ( void *state ) {
|
||||
if ( collLen == 4 && strncmp ( coll, "main", 4) == 0 ) isMain = true;
|
||||
|
||||
// print "in collection ***" if we had a collection
|
||||
if ( collLen > 0 && ! isMain && isAdmin ) {
|
||||
sb.safePrintf (" in collection <b>");
|
||||
sb.safeMemcpy ( coll , collLen );
|
||||
sb.safeMemcpy ( "</b>" , 5 );
|
||||
}
|
||||
if ( collLen > 0 && ! isMain ) // && isAdmin )
|
||||
sb.safePrintf (" in collection <b>%s</b>",coll);
|
||||
|
||||
|
||||
char *pwd = si->m_pwd;
|
||||
@ -2410,7 +2407,7 @@ static bool printResult ( SafeBuf &sb,
|
||||
mr->m_docId );
|
||||
|
||||
// the new links
|
||||
if ( si->m_format == FORMAT_HTML ) {
|
||||
if ( si->m_format == FORMAT_HTML && g_conf.m_isMattWells ) {
|
||||
//sb.safePrintf(" - <a href=\"/scoring?"
|
||||
// "c=%s&\">scoring</a>",
|
||||
// coll );
|
||||
@ -4727,6 +4724,9 @@ bool printLogoAndSearchBox ( SafeBuf &sb , HttpRequest *hr , long catId ) {
|
||||
|
||||
|
||||
sb.safePrintf(" " );
|
||||
|
||||
|
||||
if ( g_conf.m_isMattWells ) {
|
||||
// SEO functionality not included yet - so redir to gigablast.
|
||||
if ( g_conf.m_isMattWells )
|
||||
sb.safePrintf("<a title=\"Rank higher in "
|
||||
@ -4740,6 +4740,8 @@ bool printLogoAndSearchBox ( SafeBuf &sb , HttpRequest *hr , long catId ) {
|
||||
"seo</a>"
|
||||
" "
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
if (catId <= 0 )
|
||||
sb.safePrintf("<a title=\"Browse the DMOZ directory\" "
|
||||
@ -4758,12 +4760,12 @@ bool printLogoAndSearchBox ( SafeBuf &sb , HttpRequest *hr , long catId ) {
|
||||
// i'm not sure why this was removed. perhaps
|
||||
// because it is not working yet because of
|
||||
// some bugs...
|
||||
"<!-- <a title=\"Advanced web search\" "
|
||||
"<a title=\"Advanced web search\" "
|
||||
"href=/adv.html>"
|
||||
"advanced"
|
||||
"</a>"
|
||||
|
||||
" -->"
|
||||
" "
|
||||
|
||||
"<a title=\"Add your url to the index\" "
|
||||
"href=/addurl>"
|
||||
|
@ -155,7 +155,15 @@ bool printWebHomePage ( SafeBuf &sb , HttpRequest *r ) {
|
||||
// submit to https now
|
||||
sb.safePrintf("<form method=get "
|
||||
"action=/search name=f>\n");
|
||||
|
||||
CollectionRec *cr = g_collectiondb.getRec ( r );
|
||||
if ( cr )
|
||||
sb.safePrintf("<input type=hidden name=c value=\"%s\">",
|
||||
cr->m_coll);
|
||||
|
||||
sb.safePrintf("<input name=q type=text size=60 value=\"\"> <input type=\"submit\" value=\"Search\">\n");
|
||||
|
||||
|
||||
sb.safePrintf("\n");
|
||||
sb.safePrintf("</form>\n");
|
||||
sb.safePrintf("<br>\n");
|
||||
|
Loading…
Reference in New Issue
Block a user