mirror of
https://github.com/privacore/open-source-search-engine.git
synced 2025-07-15 02:36:08 -04:00
parm simplifcations
This commit is contained in:
3
Conf.cpp
3
Conf.cpp
@ -172,6 +172,9 @@ bool Conf::init ( char *dir ) { // , long hostId ) {
|
||||
// hack this off until the overrun bug is fixed
|
||||
g_conf.m_datedbMaxCacheMem = 0;
|
||||
|
||||
// force on for now
|
||||
g_conf.m_useStatsdb = true;
|
||||
|
||||
// hard-code disable this -- could be dangerous
|
||||
g_conf.m_bypassValidation = true;//false;
|
||||
// this could too! (need this)
|
||||
|
31
PageRoot.cpp
31
PageRoot.cpp
@ -136,10 +136,12 @@ bool printWebHomePage ( SafeBuf &sb , HttpRequest *r ) {
|
||||
|
||||
sb.safePrintf("<br><br>\n");
|
||||
sb.safePrintf("<br><br><br>\n");
|
||||
sb.safePrintf("<b>web</b> "
|
||||
"<a href=http://www.gigablast.com/seo>seo</a> "
|
||||
" "
|
||||
"<a href=\"/Top\">directory</a> "
|
||||
sb.safePrintf("<b>web</b> ");
|
||||
if ( g_conf.m_isMattWells )
|
||||
sb.safePrintf("<a href=http://www.gigablast.com/seo>seo</a> "
|
||||
" "
|
||||
);
|
||||
sb.safePrintf( "<a href=\"/Top\">directory</a> "
|
||||
" \n");
|
||||
sb.safePrintf("<a href=/adv.html>advanced search</a>");
|
||||
sb.safePrintf(" ");
|
||||
@ -177,6 +179,7 @@ bool printWebHomePage ( SafeBuf &sb , HttpRequest *r ) {
|
||||
sb.safePrintf("</td></tr>\n");
|
||||
|
||||
|
||||
/*
|
||||
sb.safePrintf("<tr valign=top>\n");
|
||||
// 204x143
|
||||
sb.safePrintf("<td><img height=52px width=75px "
|
||||
@ -187,6 +190,7 @@ bool printWebHomePage ( SafeBuf &sb , HttpRequest *r ) {
|
||||
sb.safePrintf("<br><br></td></tr>\n");
|
||||
sb.safePrintf("\n");
|
||||
sb.safePrintf("\n");
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
@ -200,6 +204,7 @@ bool printWebHomePage ( SafeBuf &sb , HttpRequest *r ) {
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
sb.safePrintf("<tr valign=top>\n");
|
||||
sb.safePrintf("<td align=center><img src=%s/gears.png "
|
||||
"height=50 width=50></div></td>\n"
|
||||
@ -210,15 +215,17 @@ bool printWebHomePage ( SafeBuf &sb , HttpRequest *r ) {
|
||||
sb.safePrintf("</td></tr>\n");
|
||||
sb.safePrintf("\n");
|
||||
sb.safePrintf("\n");
|
||||
*/
|
||||
|
||||
sb.safePrintf("<tr valign=top>\n");
|
||||
sb.safePrintf("<td align=center><center><img src=%s/dollargear.png "
|
||||
"height=50 width=50></center></div></center></td>\n"
|
||||
, root );
|
||||
sb.safePrintf("<td><font size=+1><b>The SEO Search Engine</b></font><br>\n");
|
||||
sb.brify2("When it comes to search-engine based SEO, Gigablast is the place to be. With a frothy set of unique and effective <a href=http://www.gigablast.com/seo>SEO tools</a>, you will find all you need to execute a simple yet effective SEO strategy. Stop the guesswork, and let a search engine tell you how to SEO it.",85);
|
||||
sb.safePrintf("</td></tr>\n");
|
||||
|
||||
if ( g_conf.m_isMattWells ) {
|
||||
sb.safePrintf("<tr valign=top>\n");
|
||||
sb.safePrintf("<td align=center><center><img src=%s/dollargear.png "
|
||||
"height=50 width=50></center></div></center></td>\n"
|
||||
, root );
|
||||
sb.safePrintf("<td><font size=+1><b>The SEO Search Engine</b></font><br>\n");
|
||||
sb.brify2("When it comes to search-engine based SEO, Gigablast is the place to be. With a frothy set of unique and effective <a href=http://www.gigablast.com/seo>SEO tools</a>, you will find all you need to execute a simple yet effective SEO strategy. Stop the guesswork, and let a search engine tell you how to SEO it.",85);
|
||||
sb.safePrintf("</td></tr>\n");
|
||||
}
|
||||
|
||||
/*
|
||||
sb.safePrintf("<tr valign=top>\n");
|
||||
|
@ -1721,7 +1721,7 @@ bool Pages::printAdminLinks ( SafeBuf *sb,
|
||||
|
||||
//long matt1 = atoip ( MATTIP1 , gbstrlen(MATTIP1) );
|
||||
//long matt2 = atoip ( MATTIP2 , gbstrlen(MATTIP2) );
|
||||
for ( long i = PAGE_STATS ; i < s_numPages ; i++ ) {
|
||||
for ( long i = PAGE_MASTER ; i < s_numPages ; i++ ) {
|
||||
// do not print link if no permission for that page
|
||||
//if ( (s_pages[i].m_perm & user) == 0 ) continue;
|
||||
//if ( ! g_users.hasPermission(username,i) ) continue;
|
||||
@ -1918,7 +1918,7 @@ char *Pages::printAdminLinks ( char *p ,
|
||||
|
||||
//long matt1 = atoip ( MATTIP1 , gbstrlen(MATTIP1) );
|
||||
//long matt2 = atoip ( MATTIP2 , gbstrlen(MATTIP2) );
|
||||
for ( long i = PAGE_STATS ; i < s_numPages ; i++ ) {
|
||||
for ( long i = PAGE_MASTER ; i < s_numPages ; i++ ) {
|
||||
// do not print link if no permission for that page
|
||||
//if ( (s_pages[i].m_perm & user) == 0 ) continue;
|
||||
//if ( ! g_users.hasPermission(username,i) ) continue;
|
||||
|
Reference in New Issue
Block a user