parm simplifcations

This commit is contained in:
Matt Wells
2014-01-09 19:00:21 -08:00
parent 501f49c81b
commit 645360b730
4 changed files with 472 additions and 368 deletions

@ -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)

@ -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> &nbsp;&nbsp;&nbsp;&nbsp; "
"<a href=http://www.gigablast.com/seo>seo</a> "
"&nbsp;&nbsp;&nbsp;&nbsp; "
"<a href=\"/Top\">directory</a> "
sb.safePrintf("<b>web</b> &nbsp;&nbsp;&nbsp;&nbsp; ");
if ( g_conf.m_isMattWells )
sb.safePrintf("<a href=http://www.gigablast.com/seo>seo</a> "
"&nbsp;&nbsp;&nbsp;&nbsp; "
);
sb.safePrintf( "<a href=\"/Top\">directory</a> "
"&nbsp;&nbsp;&nbsp;&nbsp; \n");
sb.safePrintf("<a href=/adv.html>advanced search</a>");
sb.safePrintf(" &nbsp;&nbsp;&nbsp;&nbsp; ");
@ -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;

802
Parms.cpp

File diff suppressed because it is too large Load Diff