/* FILE $Id$ (Built initially by unixservice.com mysqlRAD2) PURPOSE Non schema-dependent table and application table related functions. AUTHOR (C) 2001-2009 Gary Wallis and Hugo Urquiza. */ //ModuleFunctionProtos() void tHitNavList(void); static void htmlRecordContext(void); static char cSearch[100]={""}; void ExtProcesstHitVars(pentry entries[], int x) { register int i; for(i=0;iTable Tips
"); printf("This table holds the non-archived (usually the current month only) per tZone.cZone Dns/BIND named daemon " "query hits (cluster wide.) Not real time data: This data is collected from all cluster NSs and then " "aggregated here usually only once a day. When possible some context related info is provided below.

" "tHitMonth allows access to all archived (read-only and compressed)" "monthly tHit data sets. These archives are created from the command line usually by crontab operation."); printf("

Search Tools
"); printf("Enter the complete or the first part of a cZone. You can use %% and _ SQL LIKE matching chars.
"); printf("
",cSearch); if(cZone[0]) htmlRecordContext(); tHitNavList(); CloseFieldSet(); }//void ExttHitButtons(void) void ExttHitAuxTable(void) { }//void ExttHitAuxTable(void) void ExttHitGetHook(entry gentries[], int x) { register int i; for(i=0;i"); if(strcmp(gcFilter,"uHit")) printf(""); else printf(""); if(strcmp(gcFilter,"None")) printf(""); else printf(""); printf(""); }//void ExttHitListFilter(void) void ExttHitNavBar(void) { printf(LANG_NBB_SKIPFIRST); printf(LANG_NBB_SKIPBACK); printf(LANG_NBB_SEARCH); if(uOwner) printf(LANG_NBB_LIST); printf(LANG_NBB_SKIPNEXT); printf(LANG_NBB_SKIPLAST); printf("   \n"); }//void ExttHitNavBar(void) void tHitNavList(void) { MYSQL_RES *res; MYSQL_ROW field; sprintf(gcQuery,"SELECT uHit,cZone,uHitCount FROM tHit ORDER BY uHitCount DESC LIMIT 20"); mysql_query(&gMysql,gcQuery); if(mysql_errno(&gMysql)) { printf("

tHitNavList
\n"); printf("%s",mysql_error(&gMysql)); return; } res=mysql_store_result(&gMysql); if(mysql_num_rows(res)) { printf("

tHitNavList Top 20 by uHitCount
\n"); while((field=mysql_fetch_row(res))) printf("%s/%s
\n",field[0],field[1],field[2]); } mysql_free_result(res); }//void tHitNavList(void) void htmlRecordContext(void) { MYSQL_RES *res; printf("

Record Context Info
"); sprintf(gcQuery,"SELECT uZone FROM tZone WHERE cZone='%s'",cZone); mysql_query(&gMysql,gcQuery); if(mysql_errno(&gMysql)) { printf("

tHitNavList
\n"); printf("%s",mysql_error(&gMysql)); return; } res=mysql_store_result(&gMysql); printf("This cZone is "); if(mysql_num_rows(res)==0) printf("not "); printf("a current tZone.cZone
\n"); mysql_free_result(res); }//void htmlRecordContext(void)