/* 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 LogSummary(void); void ExtProcesstLogVars(pentry entries[], int x) { /* register int i; for(i=0;iTable Tips
"); printf("This table holds the non-archived logged and MD5 signed operations that have taken place in the system. " "Usually data is available here only for the current month. When possible context related info is provided below. " "Current iDNS version does not save delete (Del) operation data.

tLogMonth " "allows access to all archived (read-only and compressed) monthly tLog data sets. These archives are created from the " "command line usually by crontab operation."); LogSummary(); CloseFieldSet(); }//void ExttLogButtons(void) void ExttLogAuxTable(void) { }//void ExttLogAuxTable(void) void ExttLogGetHook(entry gentries[], int x) { register int i; for(i=0;i"); if(strcmp(gcFilter,"uLog")) printf(""); else printf(""); if(strcmp(gcFilter,"cLabel")) printf(""); else printf(""); if(strcmp(gcFilter,"uLogType")) printf(""); else printf(""); if(strcmp(gcFilter,"uLoginClient")) printf(""); else printf(""); if(strcmp(gcFilter,"cLogin")) printf(""); else printf(""); if(strcmp(gcFilter,"cHost")) printf(""); else printf(""); if(strcmp(gcFilter,"uTablePK")) printf(""); else printf(""); if(strcmp(gcFilter,"uZone")) printf(""); else printf(""); if(strcmp(gcFilter,"None")) printf(""); else printf(""); printf(""); }//void ExttLogListFilter(void) void ExttLogNavBar(void) { if(uOwner) GetClientOwner(uOwner,&guReseller); printf(LANG_NBB_SKIPFIRST); printf(LANG_NBB_SKIPBACK); printf(LANG_NBB_SEARCH); printf(LANG_NBB_LIST); printf(LANG_NBB_SKIPNEXT); printf(LANG_NBB_SKIPLAST); printf("   \n"); }//void ExttLogNavBar(void) void LogSummary(void) { if(uLog && cLabel[0] && guPermLevel>10 && uTablePK[0] && cTableName[0]) { unsigned uTPK=0; sscanf(uTablePK,"%u",&uTPK); printf("

LogSummary
\n"); if(!strcmp(cTableName,"tZone")) { printf("tZone

\n"); printf("%s
\n",ForeignKey("tZone","cZone",uTPK)); printf("
\n"); } else if(!strcmp(cTableName,"tResource")) { unsigned uZone=0; unsigned uRRType=0; char *cResourceTable="tResource"; if(!strcmp(cLabel,"Del")) cResourceTable="tDeletedResource"; sscanf(ForeignKey(cResourceTable,"uZone",uTPK),"%u",&uZone); sscanf(ForeignKey(cResourceTable,"uRRType",uTPK),"%u",&uRRType); if( uTPK && uZone && uRRType) { if(!strcmp(cLabel,"Del")) printf("" "tDeletedResource
\n",uTPK); else printf("tResource" "
\n",uTPK); printf("cZone=%s
\n",ForeignKey("tZone","cZone",uZone)); printf("cName=%s
\n",ForeignKey(cResourceTable,"cName",uTPK)); printf("RRType=%s
\n",ForeignKey("tRRType","cLabel",uRRType)); printf("cParam1=%s
\n",ForeignKey(cResourceTable,"cParam1", uTPK)); printf("cParam2=%s
\n",ForeignKey(cResourceTable,"cParam2", uTPK)); printf("cComment=%s
\n",ForeignKey(cResourceTable,"cComment", uTPK)); } if(uLoginClient) { printf("Contact=%s
\n", uLoginClient, ForeignKey(TCLIENT,"cLabel",uLoginClient)); } } else if(1) { printf("No summary available for %s\n",cTableName); } } }//void LogSummary(void);