//=-- MagicStats.h - A better way of managing web statistics --------*- C++ -*-=
//
//  MagicStats is a new and better way of managing web page statistics.  Not
//    only is it a free package, but it is the most easily extensible package
//    available.
//
//  This file should only be included from MagicStats.cpp.
//
//=----------------------------------------------------------------------------=
//  This file is copyright (c) 1997-2000 Chris Lattner
//=----------------------------------------------------------------------------=

#include "PlatformAbstraction.h"
#include "ResourceManager.h"
#include "PluginManager.h"
#include "EnginePlugin.h"
#include "Options.h"
#include "Plugin.h"
#include "VarTable.h"

//=---------------------------------------------------------------------------=
//                      Static Variable Initialization
//=---------------------------------------------------------------------------=

// Version number of MagicStats...
//
String MSOptions::Version                      = "2.0pr14"
#ifdef WINDOWS
"-win32"
#endif
;

// MagicStatsURL - The URL of the main MagicStats web page...
//
String MSOptions::MagicStatsURL                = "http://www.nondot.org/MagicStats/";


// Default values for the security settings...
//
int MSOptions::MinimumRefreshDelay             = 15;
int MSOptions::AllowAlternateLogs              = 1;
int MSOptions::AllowWebUserAdmin               = 1;
int MSOptions::AllowWebServerAdmin             = 1;
int MSOptions::AllowDynaStats                  = 1;



//=---------------------------------------------------------------------------=
//              WINDOWS Specific Variable initialization below
//=---------------------------------------------------------------------------=

#ifdef WINDOWS

// Default values for the server settings...
//
CSString MSOptions::AccessLogType            = "Monolithic";

VTExp   *MSOptions::AccessLog                = new VTStrExp(-1, 
               "C:\\Program Files\\MagicStats\\access_log.txt");

// Default values for the user settings...
//
String   MSOptions::DataFilename             = 
               "C:\\Program Files\\MagicStats\\MagicStats.dat";
String   MSOptions::MagicStatsCfgFilename    = 
               "C:\\Program Files\\MagicStats\\MagicStats.cfg";


#elif defined(UNIX)
//=---------------------------------------------------------------------------=
//                UNIX Specific Variable initialization below
//=---------------------------------------------------------------------------=

// Default values for the server settings...
//
CSString MSOptions::AccessLogType         = "Monolithic";
VTExp   *MSOptions::AccessLog             = new VTStrExp(-1, 
                                    "/usr/local/httpd/logs/access_log");

// Default values for the user settings...
//
String   MSOptions::DataFilename          = "~/.MagicStats/MagicStats.dat";
String   MSOptions::MagicStatsCfgFilename = "~/.MagicStats/MagicStats.cfg";

// Winderz defines this, and is used for optimization, we just need it so we
//   don't get a compile time error...
//
#define __cdecl

#else
#error __FILE__: Unknown Platform Defined!
#endif
