added sorting by site # inlinks/pop to menu for testing

This commit is contained in:
mwells 2014-10-01 12:09:43 -07:00
parent 854767e074
commit c7a5073139
2 changed files with 12 additions and 0 deletions

View File

@ -8594,6 +8594,13 @@ bool printSearchFiltersBar ( SafeBuf *sb , HttpRequest *hr ) {
s_mi[n].m_icon = NULL;
n++;
s_mi[n].m_menuNum = 1;
s_mi[n].m_title = "Sorted by site inlinks";
s_mi[n].m_cgi = "sortby=3";
s_mi[n].m_icon = NULL;
n++;
// languages
s_mi[n].m_menuNum = 2;

View File

@ -698,6 +698,11 @@ bool SearchInput::setQueryBuffers ( HttpRequest *hr ) {
m_sbuf1.safePrintf("gbrevsortby:gbspiderdate");
}
if ( m_sortBy == 3 ) {
if ( m_sbuf1.length() ) m_sbuf1.pushChar(' ');
m_sbuf1.safePrintf("gbsortby:gbsitenuminlinks");
}
char *ft = m_filetype;
if ( ft && strcasecmp(ft,"any")==0 ) ft = NULL;
if ( ft && ! ft[0] ) ft = NULL;