]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - include/conf.h
Use boolean to enable all the options instead of string compares.
[thirdparty/sarg.git] / include / conf.h
index e22ac6ab1ff87131dff21a7cf36bcc4fd1fb232a..560c08b0f91a2375342f77c52baf6a83b10fbac1 100755 (executable)
@@ -97,6 +97,9 @@ gdPoint points[4];
 #ifdef HAVE_LOCALE_H
 #include <locale.h>
 #endif
+#ifdef HAVE_EXECINFO_H
+#include <execinfo.h>
+#endif
 
 #if defined(HAVE_FOPEN64)
 #define _FILE_OFFSET_BITS 64
@@ -130,8 +133,6 @@ int mkstemps(char *template, int suffixlen);
 #define MAXLEN 20000
 #define MAXLOGS 255
 
-long long int my_atoll (const char *nptr);
-
 FILE *fp_tt;
 
 char outdir[MAXLEN];
@@ -167,13 +168,13 @@ char ltext110[50];
 char cdfrom[30];
 char cduntil[30];
 char LastLog[5];
-char RemoveTempFiles[4];
+int RemoveTempFiles;
 char ReplaceIndex[256];
 char Index[20];
-char OverwriteReport[4];
+int OverwriteReport;
 char u2[255];
 char RecordsWithoutUser[20];
-char UseComma[4];
+int UseComma;
 char MailUtility[PATH_MAX];
 char TopSitesNum[20];
 int TopUsersNum;
@@ -220,21 +221,21 @@ char ExcludeHosts[255];
 char ExcludeUsers[255];
 char DateFormat[2];
 char PerUserLimitFile[255];
-char PerUserLimit[20];
+int PerUserLimit;
 int UserIp;
 char MaxElapsed[255];
 char datetimeby[10];
 char csort[255];
 char CharSet[255];
 char UserInvalidChar[255];
-char Graphs[5];
+int Graphs;
 char GraphDaysBytesBarColor[255];
-char Privacy[10];
+int Privacy;
 char PrivacyString[255];
 char PrivacyStringColor[30];
 char IncludeUsers[MAXLEN];
 char ExcludeString[MAXLEN];
-char SuccessfulMsg[5];
+int SuccessfulMsg;
 char TopUserFields[255];
 char UserReportFields[255];
 char DataFile[MAXLEN];
@@ -242,18 +243,18 @@ char DataFileDelimiter[3];
 char DataFileFields[MAXLEN];
 char DataFileUrl[20];
 char SiteUserTimeDateType[10];
-char ShowReadStatistics[5];
+int ShowReadStatistics;
 char IndexSortOrder[5];
 char DansGuardianConf[MAXLEN];
-char DansguardianIgnoreDate[10];
+int DansguardianIgnoreDate;
 char SquidGuardConf[MAXLEN];
 char SquidGuarddbHome[255];
 char SquidGuardLogFormat[MAXLEN];
 char SquidGuardLogAlternate[MAXLEN];
-char SquidguardIgnoreDate[10];
-char ShowSargInfo[5];
-char BytesInSitesUsersReport[10];
-char ShowSargLogo[5];
+int SquidguardIgnoreDate;
+int ShowSargInfo;
+int BytesInSitesUsersReport;
+int ShowSargLogo;
 char ParsedOutputLog[MAXLEN];
 char ParsedOutputLogCompress[255];
 char DisplayedValues[20];
@@ -275,7 +276,7 @@ char hbc8[30];
 char hbc9[30];
 char hbc10[30];
 char IndexTree[10];
-char UserAuthentication[10];
+int UserAuthentication;
 char AuthUserFile[255];
 char AuthName[512];
 char AuthType[255];