#include "gb-include.h" #include "Indexdb.h" // makeKey(int64_t docId) #include "Titledb.h" #include "Spider.h" #include "Tagdb.h" #include "Dns.h" //#include "PageResults.h" // for query buf, g_qbuf #include "Collectiondb.h" //#include "CollectionRec.h" #include "Clusterdb.h" // for getting # of docs indexed //#include "Checksumdb.h" // should migrate to this one, though #include "Pages.h" #include "Query.h" // MAX_QUERY_LEN #include "SafeBuf.h" #include "LanguageIdentifier.h" #include "LanguagePages.h" #include "Users.h" #include "Address.h" // getIPLocation #include "Proxy.h" //char *printNumResultsDropDown ( char *p, int32_t n, bool *printedDropDown); bool printNumResultsDropDown ( SafeBuf& sb, int32_t n, bool *printedDropDown); //static char *printTopDirectory ( char *p, char *pend ); static bool printTopDirectory ( SafeBuf& sb , char format ); // this prints the last five queries //static int32_t printLastQueries ( char *p , char *pend ) ; //static char *expandRootHtml ( char *p , int32_t plen , /* static bool expandRootHtml ( SafeBuf& sb, uint8_t *html , int32_t htmlLen , char *q , int32_t qlen , HttpRequest *r , TcpSocket *s , int64_t docsInColl , CollectionRec *cr ) ; */ bool sendPageRoot ( TcpSocket *s, HttpRequest *r ){ return sendPageRoot ( s, r, NULL ); } bool printNav ( SafeBuf &sb , HttpRequest *r ) { /* char *root = ""; char *rootSecure = ""; if ( g_conf.m_isMattWells ) { root = "http://www.gigablast.com"; rootSecure = "https://www.gigablast.com"; } sb.safePrintf("