mirror of
https://github.com/gigablast/open-source-search-engine.git
synced 2024-10-04 12:17:35 +03:00
pretty ups
This commit is contained in:
parent
89249ecec8
commit
546d726487
@ -26,7 +26,7 @@ char *g_contentTypeStrings [] = {
|
||||
"css" , // 15
|
||||
"json" , // 16
|
||||
"image", // 17
|
||||
"status" // 18
|
||||
"spiderstatus" // 18
|
||||
};
|
||||
|
||||
HttpMime::HttpMime () { reset(); }
|
||||
|
@ -4170,6 +4170,19 @@ bool printResult ( State0 *st, long ix , long *numPrintedSoFar ) {
|
||||
sb->safePrintf("&rand64=%llu\">respider</a>",rand64);
|
||||
}
|
||||
|
||||
if ( si->m_format == FORMAT_HTML ) {
|
||||
sb->safePrintf (" - "
|
||||
"<a style=color:blue; "
|
||||
"href=\"/search?sb=1&c=%s&"
|
||||
"q=url2%%3A"
|
||||
, coll
|
||||
);
|
||||
sb->urlEncode ( url , gbstrlen(url) , false );
|
||||
sb->safePrintf ( "\">"
|
||||
"spider info</a>"
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
// show rainbow sections link
|
||||
//
|
||||
@ -4209,19 +4222,6 @@ bool printResult ( State0 *st, long ix , long *numPrintedSoFar ) {
|
||||
mr->m_docId );
|
||||
}
|
||||
|
||||
if ( si->m_format == FORMAT_HTML && ( isAdmin || cr->m_isCustomCrawl)){
|
||||
sb->safePrintf (" - "
|
||||
"<a style=color:green; "
|
||||
"href=\"/search?sb=1&c=%s&"
|
||||
"q=url2%%3A"
|
||||
, coll
|
||||
);
|
||||
sb->urlEncode ( url , gbstrlen(url) , false );
|
||||
sb->safePrintf ( "\">"
|
||||
"spider info</a>"
|
||||
);
|
||||
}
|
||||
|
||||
// this stuff is secret just for local guys!
|
||||
if ( si->m_format == FORMAT_HTML && ( isAdmin || cr->m_isCustomCrawl)){
|
||||
// now the ip of url
|
||||
|
19
XmlDoc.cpp
19
XmlDoc.cpp
@ -26046,7 +26046,8 @@ SafeBuf *XmlDoc::getSpiderReplyMetaList2 ( SpiderReply *reply ) {
|
||||
|
||||
// the ptr_* were all zero'd out, put the ones we want to keep back in
|
||||
SafeBuf tmp;
|
||||
tmp.safePrintf("<title>Spider Status: %s</title>",
|
||||
// was "Spider Status: %s" but that is unnecessary
|
||||
tmp.safePrintf("<title>%s</title>",
|
||||
mstrerror(m_indexCode));
|
||||
|
||||
// if we are a dup...
|
||||
@ -34147,6 +34148,7 @@ bool XmlDoc::printMenu ( SafeBuf *sb ) {
|
||||
CollectionRec *cr = getCollRec();
|
||||
if ( ! cr ) return false;
|
||||
|
||||
/*
|
||||
char *coll = cr->m_coll;
|
||||
|
||||
long long d = m_docId;
|
||||
@ -34167,23 +34169,24 @@ bool XmlDoc::printMenu ( SafeBuf *sb ) {
|
||||
"<a href=/print?c=%s&d=%lli&page=2&recompute=1>"
|
||||
"page inlinks</a> | "
|
||||
"<a href=/print?c=%s&d=%lli&page=3>site inlinks</a> | "
|
||||
"<a href=/print?c=%s&d=%lli&page=4>sections</a> | "
|
||||
"<a href=/print?c=%s&d=%lli&page=5>indexed terms</a> | "
|
||||
//"<a href=/print?c=%s&d=%lli&page=4>sections</a> | "
|
||||
"<a href=/print?c=%s&d=%lli&page=5>indexed terms</a>"
|
||||
// the breakdown of when it was spidered and when it
|
||||
// is due to be spidered again. and any errors
|
||||
// encountered when spidering
|
||||
"<a href=/print?c=%s&d=%lli&page=6>spider stats</a> | "
|
||||
"<a href=/print?c=%s&d=%lli&page=7>cached page</a>"
|
||||
//"<a href=/print?c=%s&d=%lli&page=6>spider stats</a> |"
|
||||
//" <a href=/print?c=%s&d=%lli&page=7>cached page</a>"
|
||||
"<br>"
|
||||
"<br>"
|
||||
,coll,d//ue.getBufStart()
|
||||
,coll,d//ue.getBufStart()
|
||||
,coll,d//ue.getBufStart()
|
||||
//,coll,d//ue.getBufStart()
|
||||
,coll,d//ue.getBufStart()
|
||||
,coll,d//ue.getBufStart()
|
||||
,coll,d//ue.getBufStart()
|
||||
,coll,d//ue.getBufStart()
|
||||
//,coll,d//ue.getBufStart()
|
||||
//,coll,d//ue.getBufStart()
|
||||
);
|
||||
*/
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user