package TWikicfg ;

sub new { 
	my $dummy = shift;
	my $config = shift;
	unshift @_,$dummy ;

   my ( $proto ) =@_ ;
   my $class = ref($proto) || $proto ;
   my $self;

	$self->{config}=$config;
   bless ( $self );

   return $self ;
}

sub TWikicfg

{ 
   my $self = shift;
	my $config = $self->{config} ;


# Module of TWiki Collaboration Platform, http://your.domain.com/twiki
#
# Configuration file for TWiki, held in 'lib' directory.
#
# See 'setlib.cfg' in 'bin' directory to configure non-standard location
# for 'lib' directory or Perl modules.
#
# Copyright (C) 1999-2004 Peter Thoeny, peter@thoeny.com
#
# For licensing info read license.txt file in the TWiki root.
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details, published at 
# http://www.gnu.org/copyleft/gpl.html
#
# Notes:
# - Latest version at http://twiki.org/
# - Installation instructions in $config->{TWiki}->{dataDir}/TWiki/TWikiDocumentation.txt
# - Customize variables in $config->{fileConfig}.pm when installing TWiki.
# - Optionally create a new plugin or customize DefaultPlugin.pm for
#   custom extensions of rendering rules.
# - Upgrading TWiki is easy as long as you only customize DefaultPlugin.pm.
# - Variables that can be accessed from topics (see details in
#   TWikiDocumentation.html) :
#       %TOPIC%          name of current topic
#       %WEB%            name of current web
#       %SCRIPTURL%      base TWiki script URL (place of view, edit...)
#       %SCRIPTURLPATH%  like %SCRIPTURL%, but path only (cut protocol and domain)
#       %SCRIPTSUFFIX%   script suffix (empty by default, ".pl" if required)
#       %PUBURL%         public URL (root of attachment URL)
#       %PUBURLPATH%     path of public URL
#       %ATTACHURL%      attachment URL of current topic
#       %ATTACHURLPATH%  path of attachment URL of current topic
#       %DATE%           today's date
#       %WIKIVERSION%    tool version
#       %USERNAME%       login user name
#       %WIKIUSERNAME%   wiki user name
#       %MAINWEB%        main web name (Main)
#       %TWIKIWEB%       TWiki system web name (TWiki)
#       %HOMETOPIC%      home topic name (WebHome)
#       %NOTIFYTOPIC%    notify topic name (WebNotify)
#       %WIKIUSERSTOPIC% user list topic name (TWikiUsers)
#       %WIKIPREFSTOPIC% site-level preferences topic name (TWikiPreferences)
#       %WEBPREFSTOPIC%  web preferences topic name (WebPreferences)
#       %STATISTICSTOPIC statistics topic name (WebStatistics)
#       %INCLUDE{...}%   server side include
#       %SEARCH{...}%    inline search


# variables that need to be changed when installing on a new server:
# ==================================================================
# ---- Windows paths should normally be written as "c:/foo" not "c:\foo" 
# ---- (which doesn't do what you may think it does).  You can use '\' 
# ---- without problems inside single quotes, e.g. 'c:\foo'.
#                   URL for TWiki host :    (e.g. "http://myhost.com:123")
$config->{TWiki}->{defaultUrlHost}   = "http://your.domain.com";
#                   %SCRIPTURLPATH% : cgi-bin URL path for TWiki:
$config->{TWiki}->{scriptUrlPath}    = "/twikioo/bin";
#                   URL path to scripts used to render links.  Change if using redirection to shorten URLs
$config->{TWiki}->{dispScriptUrlPath} = $config->{TWiki}->{scriptUrlPath};
#                   URL path to view script used to render links, relative to $config->{TWiki}->{dispScriptUrlPath}
$config->{TWiki}->{dispViewPath}     = "/view";
#                   %PUBURLPATH% : Public data URL path for TWiki (root of attachments) :
$config->{TWiki}->{pubUrlPath}       = "/twikioo/pub";
#                   Public data directory (file path not URL), must match $config->{TWiki}->{pubUrlPath} :
$config->{TWiki}->{pubDir}           = "/home/httpd/twikioo/pub";
#                   Template directory :
$config->{TWiki}->{templateDir}      = "/home/httpd/twikioo/templates";
#                   Data (topic files) root directory (file path not URL):
$config->{TWiki}->{dataDir}          = "/home/httpd/twikioo/data";
#                   Log directory for log files, debug and warning files. Default "$config->{TWiki}->{dataDir}" :
$config->{TWiki}->{logDir}           = "$config->{TWiki}->{dataDir}";
#                   Library directory of TWiki:
$config->{TWiki}->{libDir}          = "/home/httpd/twikioo/lib";


# FIGURE OUT THE OS WE'RE RUNNING UNDER - from CGI.pm
# ==================================================================
# Some systems support the $^O variable.  If not
# available then require() the Config library
unless ($config->{TWiki}->{OS}) {
    unless ($config->{TWiki}->{OS} = $^O) {
        require Config;
        $config->{TWiki}->{OS} = $Config::Config{'osname'};
    }
}
$config->{TWikicfg}->{detailedOS} = $config->{TWiki}->{OS};		# Save more detailed OS information
if ($config->{TWiki}->{OS}=~/darwin/i) { 		# MacOS X, suggested by Todd Jonker on Codev
  $config->{TWiki}->{OS} = 'UNIX';
} elsif ($config->{TWiki}->{OS}=~/Win/i) {
  $config->{TWiki}->{OS} = 'WINDOWS';
} elsif ($config->{TWiki}->{OS}=~/vms/i) {
  $config->{TWiki}->{OS} = 'VMS';
} elsif ($config->{TWiki}->{OS}=~/bsdos/i) {
  $config->{TWiki}->{OS} = 'UNIX';
} elsif ($config->{TWiki}->{OS}=~/dos/i) {
  $config->{TWiki}->{OS} = 'DOS';
} elsif ($config->{TWiki}->{OS}=~/^MacOS$/i) {	# MacOS 9 or earlier
    $config->{TWiki}->{OS} = 'MACINTOSH';
} elsif ($config->{TWiki}->{OS}=~/os2/i) {
    $config->{TWiki}->{OS} = 'OS2';
} else {
    $config->{TWiki}->{OS} = 'UNIX';
}

# variables that might need to be changed:
# ==================================================================
#                   %SCRIPTSUFFIX% : Suffix of TWiki Perl scripts (e.g. ".pl") :
$config->{TWiki}->{scriptSuffix}     = "";
#                   Regex security filter for uploaded (attached) files :
#                   (Matching filenames will have a ".txt" appended)
#		    WARNING: Be sure to update this list with any
#		    configuration or script filetypes that are
#		    automatically run by your web server
$config->{TWiki}->{uploadFilter}       = "^(\.htaccess|.*\.(?:php[0-9s]?|phtm[l]?|pl|py|cgi))\$";
#                   Set ENV{'PATH'} explicitly for taint checks ( #!perl -T option ) :
#                   (Note: PATH environment variable is not changed if set to "")
# $config->{TWiki}->{safeEnvPath} - safe operating system PATH setting for use by TWiki scripts.
#
# ---- Check notes for your operating system and use appropriate line as model
# ---- Comment out unused lines (put '#' at start) and uncomment required line.
# ---- All Windows paths use '/' not '\' for simplicity.
#
# As long as you use full pathnames for $config->{TWiki}->{egrepCmd} and similar (below),
# this path value is used only to find a shell (or cmd.exe) and by RCS programs 
# to find 'diff'.
#
# >> Unix or Linux - ensure 'diff' and shell (Bourne or bash type) is found on 
# this path.
# Separator is ':'
$config->{TWiki}->{safeEnvPath}      = "/bin:/usr/bin";	# Unix/Linux

# >> Windows: Cygwin Perl and RCS - ensure 'diff' and 'bash' found on this path.
# Same format as Unix PATH, separator is ':' not ';'.  You must NOT use 
# 'c:/foo' type paths, because ':' is taken as separator, meaning that 
# 'c' is interpreted as a relative pathname, giving Perl 'Insecure 
# directory in $ENV{PATH}' error on using 'Diffs' link.
# Separator is ':'
# $config->{TWiki}->{safeEnvPath}      = "/bin";		# Cygwin - uncomment, no need to customise

# >> Windows: ActiveState Perl, with Cygwin RCS and PERL5SHELL set to
# 'c:/cygwin/bin/bash.exe -c'.  Same format as the normal Windows PATH, 
# separator is ':' not ';'.  It's best to avoid 'c:/foo' type paths, 
# because in some cases these can cause a Perl 'Insecure directory 
# in $ENV{PATH}' error on using 'Diffs' link.  Since this setting is
# for Cygwin RCS, the best alternative is to convert 'c:/foo' to 
# '/c/cygdrive/foo' - odd looking but it works!  The Windows system directory 
# (e.g. /cygdrive/c/winnt/system32) is required in this path for commands 
# using pipes to work (e.g. using the 'Index' link).
# NOTE: Customise this path based on your Cygwin and Windows directories
# Separator is ';'
# $config->{TWiki}->{safeEnvPath}      = "/cygdrive/c/YOURCYGWINDIR/bin;/cygdrive/c/YOURWINDOWSDIR/system32";

# >> Windows: ActiveState Perl, with non-Cygwin RCS, OR no PERL5SHELL setting.
# Windows PATH, separator is ';'.  The Windows system directory 
# (e.g. c:\winnt\system32) is required in this path for commands using pipes 
# to work (e.g. using the 'Index' link). Must NOT use '/' in pathnames
# as this upsets cmd.exe - single '\' is OK using Perl single-quoted string.
# FIXME: needs testing, not currently recommended.
# NOTE: Customise this path based on your RCS and Windows directories
# Separator is ';'
# $config->{TWiki}->{safeEnvPath}      = 'c:\YOUR_RCSPROGDIR\bin;c:\YOURWINDOWSDIR\system32';

#                   Mail program used in case Net::SMTP is not installed.
#                   See also SMTPMAILHOST in TWikiPreferences.
#		    Windows: this setting is ignored, just use Net::SMTP.
$config->{TWiki}->{mailProgram}      = "/usr/sbin/sendmail -t -oi -oeq";
#                   Prevent spambots from grabbing addresses, default "":
#                   e.g. set to "NOSPAM" to get "user@somewhereNOSPAM.com"
$config->{TWiki}->{noSpamPadding}    = "";
#                   Pathname of mime types file that maps file suffixes to MIME types :
#                   For Apache server set this to Apache's mime.types file pathname.
#                   Default "$config->{TWiki}->{dataDir}/mime.types"
$config->{TWiki}->{mimeTypesFilename} = "$config->{TWiki}->{dataDir}/mime.types";
#                   RCS directory (find out by 'which rcs') :
$config->{TWiki}->{rcsDir}           = '/usr/bin';			# Unix, Linux and Cygwin
#                   Initialise RCS file, ignored if empty string,
#                   needed on Windows for binary files. Added JET 22-Feb-01
$config->{TWiki}->{rcsArg}           = "";
$config->{TWiki}->{rcsArg} = "-x,v" if( $config->{TWiki}->{OS} eq "WINDOWS" );
#                   null device /dev/null for unix, NUL for windows
$config->{TWiki}->{nullDev} = {
    UNIX=>'/dev/null', OS2=>'', WINDOWS=>'NUL', DOS=>'NUL', MACINTOSH=>'', VMS=>''
    }->{$config->{TWiki}->{OS}};
#                   Store RCS history files in directory (RCS under content dir), default "0"
#                   Don't change this in a working installation, only change when initially setting up a TWiki installation
#                   You also need to create an RCS directory for each Web.  TWiki will create RCS directories under pub for attachments historys.
$config->{TWiki}->{useRcsDir}        = "0";
# This should enable gathering of extra error information on most OSes.  However, won't work on NT4 unless unix like shell is used
$config->{TWiki}->{endRcsCmd}        = "";
$config->{TWiki}->{endRcsCmd}        = " 2>&1" if( $config->{TWiki}->{OS} eq "UNIX" );
#                   Command quote ' for unix, \" for Windows
$config->{TWiki}->{cmdQuote}         = "'";
$config->{TWiki}->{cmdQuote}         = "\"" if( $config->{TWiki}->{OS} eq "WINDOWS" );


# Choice and configuration of Storage implementation
# Currently select either:
# RcsWrap - use RCS executables, see TWiki::Store::RcsWrap.pm for explanation of storeSettings
# RcsLite - use a 100% Perl simplified implementation of Perl (NOT yet ready for production use)
$config->{TWiki}->{storeTopicImpl} = "RcsWrap"; 
#$config->{TWiki}->{storeTopicImpl} = "RcsLite";

#                   NOTE: You might want to avoid c: at start of cygwin unix command for
#                   Windows, seems to cause a problem with pipe used in search
#                   Unix ls command :  (deprecated since 01 Nov 2003)
$config->{TWiki}->{lsCmd}            = "/bin/ls";
#                   Unix egrep command :
$config->{TWiki}->{egrepCmd}         = "/bin/egrep";
#                   Unix fgrep command :
$config->{TWiki}->{fgrepCmd}         = "/bin/fgrep";

#display Time in the following timezones (this only effects the display of times, all internal storage is still in GMT)
# gmtime / servertime
$config->{TWiki}->{displayTimeValues}	= "gmtime";

# internationalisation setup:
# ==================================================================
# See the output of the 'testenv' script for help with these settings.

# Set $config->{TWiki}->{useLocale} to 1 to enable internationalisation support for
# 8-bit character sets
$config->{TWiki}->{useLocale} = 0;

# Site-wide locale - used by TWiki and external programs such as grep,
# and to specify the character set for the user's web browser.  The
# language part also prevents English plural handling for non-English
# languages.  Ignored if $config->{TWiki}->{useLocale} is 0.
#
# Locale names are not standardised - check 'locale -a' on your system to
# see what's installed, and check this works using command line tools.  You
# may also need to check what charsets your browsers accept - the
# 'preferred MIME names' at http://www.iana.org/assignments/character-sets
# are a good starting point.
#
# WARNING: Topics are stored in site character set format, so data conversion of
# file names and contents will be needed if you change locales after
# creating topics whose names or contents include 8-bit characters.
#
$config->{TWiki}->{siteLocale} = "en_US.ISO-8859-1";
#
# Examples only:  (choose suitable locale + charset for your own site)
#   $config->{TWiki}->{siteLocale} = "de_AT.ISO-8859-15";	# Austria with ISO-8859-15 for Euro
#   $config->{TWiki}->{siteLocale} = "ru_RU.KOI8-R";	# Russia
#   $config->{TWiki}->{siteLocale} = "ja_JP.eucjp";	# Japan
#   $config->{TWiki}->{siteLocale} = "C";			# English only, no I18N features

# Site character set override - set this only if you must match a specific
# locale (from 'locale -a') whose character set is not supported by your
# chosen conversion module (i.e. Encode for Perl 5.8 or higher, or
# Unicode::MapUTF8 for other Perl versions).  For example, the locale
# 'ja_JP.eucjp' exists on your system but only 'euc-jp' is supported by
# Unicode::MapUTF8, set $config->{TWiki}->{siteCharsetOverride} to 'euc-jp'.  Leave this as ""
# if you don't have this problem.
$config->{TWiki}->{siteCharsetOverride} = "";
# $config->{TWiki}->{siteCharsetOverride} = "euc-jp";

# Set $config->{TWiki}->{localeRegexes} to 0 to force explicit listing of national chars in
# regexes, rather than relying on locale-based regexes. Intended for Perl
# 5.6 or higher on platforms with broken locales: should only be set if
# you have locale problems with Perl 5.6 or higher.
$config->{TWiki}->{localeRegexes} = 1;

# If a suitable working locale is not available (i.e. $config->{TWiki}->{useLocale} is 0), OR 
# you are using Perl 5.005 (with or without working locales), OR
# $config->{TWiki}->{localeRegexes} is 0, you can use WikiWords with accented national
# characters by putting any '8-bit' accented national characters within
# these strings - i.e. $config->{TWiki}->{upperNational} should contain upper case non-ASCII
# letters.  This is termed 'non-locale regexes' mode.
#
# If 'non-locale regexes' is in effect, WikiWord linking will work, but 
# some features such as sorting of WikiWords in search results may not.  
# These features depend on $config->{TWiki}->{useLocale}, which can be set independently of
# $config->{TWiki}->{localeRegexes}, so they will work with Perl 5.005 as long as 
# $config->{TWiki}->{useLocale} is set to 1 and you have working locales.
#
# Using the recommended setup of Perl 5.6.1 with working locales avoids the
# need to set these parameters.
$config->{TWiki}->{upperNational} = '';		# Upper case
$config->{TWiki}->{lowerNational} = '';		# Lower case

# variables that probably do not change:
# ==================================================================

# RCS keyword handling: change this to '' only if you want TWiki pages to
# include automatically-updated RCS ID keyword strings.  Leave this as
# '-ko' if you don't know what that means!  Default setting ensures that
# contents of TWiki pages are not changed by RCS. RcsLite always works in 
# '-ko' mode.
$config->{TWiki}->{keywordMode} = '-ko';

# Settings for Rcs (standard RCS programs) and RcsLite (built-in)
@{$config->{TWiki}->{storeSettings}} = 
  (
    # RcsLite and Rcs
    dataDir         => $config->{TWiki}->{dataDir},
    pubDir          => $config->{TWiki}->{pubDir},
    attachAsciiPath => "\.(txt|html|xml|pl)\$",
    dirPermission   => 0775,
    useRcsDir       => $config->{TWiki}->{useRcsDir},

    # Rcs only 
    initBinaryCmd => "$config->{TWiki}->{rcsDir}/rcs $config->{TWiki}->{rcsArg} -q -i -t-none -kb %FILENAME% $config->{TWiki}->{endRcsCmd}",
    tmpBinaryCmd  => "$config->{TWiki}->{rcsDir}/rcs $config->{TWiki}->{rcsArg} -q -kb %FILENAME% $config->{TWiki}->{endRcsCmd}",
    ciCmd         => "$config->{TWiki}->{rcsDir}/ci $config->{TWiki}->{rcsArg} -q -l -m$config->{TWiki}->{cmdQuote}%COMMENT%$config->{TWiki}->{cmdQuote} -t-none -w$config->{TWiki}->{cmdQuote}%USERNAME%$config->{TWiki}->{cmdQuote} %FILENAME% $config->{TWiki}->{endRcsCmd}",
    coCmd         => "$config->{TWiki}->{rcsDir}/co $config->{TWiki}->{rcsArg} -q -p%REVISION% $config->{TWiki}->{keywordMode} %FILENAME% $config->{TWiki}->{endRcsCmd}",
    histCmd       => "$config->{TWiki}->{rcsDir}/rlog $config->{TWiki}->{rcsArg} -h %FILENAME% $config->{TWiki}->{endRcsCmd}",
    infoCmd       => "$config->{TWiki}->{rcsDir}/rlog $config->{TWiki}->{rcsArg} -r%REVISION% %FILENAME% $config->{TWiki}->{endRcsCmd}",
    diffCmd       => "$config->{TWiki}->{rcsDir}/rcsdiff $config->{TWiki}->{rcsArg} -q -w -B -r%REVISION1% -r%REVISION2% $config->{TWiki}->{keywordMode} --unified=%CONTEXT% %FILENAME% $config->{TWiki}->{endRcsCmd}",
    breakLockCmd  => "$config->{TWiki}->{rcsDir}/rcs $config->{TWiki}->{rcsArg} -q -l -M %FILENAME% $config->{TWiki}->{endRcsCmd}",
    ciDateCmd     => "$config->{TWiki}->{rcsDir}/ci -l $config->{TWiki}->{rcsArg} -q -mnone -t-none -d$config->{TWiki}->{cmdQuote}%DATE%$config->{TWiki}->{cmdQuote} -w$config->{TWiki}->{cmdQuote}%USERNAME%$config->{TWiki}->{cmdQuote} %FILENAME% $config->{TWiki}->{endRcsCmd}",
    delRevCmd     => "$config->{TWiki}->{rcsDir}/rcs $config->{TWiki}->{rcsArg} -q -o%REVISION% %FILENAME% $config->{TWiki}->{endRcsCmd}",
    unlockCmd     => "$config->{TWiki}->{rcsDir}/rcs $config->{TWiki}->{rcsArg} -q -u %FILENAME%  $config->{TWiki}->{endRcsCmd}",
    lockCmd       => "$config->{TWiki}->{rcsDir}/rcs $config->{TWiki}->{rcsArg} -q -l %FILENAME% $config->{TWiki}->{endRcsCmd}",
    tagCmd       => "$config->{TWiki}->{rcsDir}/rcs $config->{TWiki}->{rcsArg} -N%TAG%:%REVISION% %FILENAME% $config->{TWiki}->{endRcsCmd}",
  );

#                   Regex security filter for web name, topic name, user name :
$config->{TWiki}->{securityFilter}     = "[\\\*\?\~\^\$\@\%\`\"\'\&\;\|\<\>\x00-\x1F]";
#                   Default user name, default "guest" :
$config->{TWiki}->{defaultUserName}    = "guest";
#                   Deprecated, replaced by %WIKITOOLNAME% preferences variable :
$config->{TWiki}->{wikiToolName}     = "TWiki";
#                   Deprecated, here for compatibility :
$config->{TWiki}->{wikiHomeUrl}      = "http://your.domain.com/twiki";
#                   Site Web.Topic name, e.g. "Main.TokyoOffice". Default "" :
$config->{TWiki}->{siteWebTopicName} = "";
#                   %MAINWEB% : Name of Main web, default "Main" :
$config->{TWiki}->{mainWebname}        = "Main";
#                   %TWIKIWEB% : Name of TWiki system web, default "TWiki" :
$config->{TWiki}->{twikiWebname}       = "TWiki";
#                   Pathname of debug file :
$config->{TWiki}->{debugFilename}      = "$config->{TWiki}->{logDir}/debug.txt";
#                   Pathname of warning file. Default "$config->{TWiki}->{logDir}/warning.txt" :
#                   (no warnings are written if empty)
$config->{TWiki}->{warningFilename}    = "$config->{TWiki}->{logDir}/warning.txt";
#                   Password file format/encoding method :
#                   htpasswd:plain, htpasswd:crypt, htpasswd:md5 (currently unsupported),
#                   htpasswd:sha1, htdigest:md5, none:
#default htpasswd:crypt;
$config->{TWiki}->{htpasswdFormatFamily} = "htpasswd";
if( $config->{TWiki}->{OS} eq "WINDOWS" ) {
	$config->{TWiki}->{htpasswdEncoding}	= "sha1";	#windows apache 
} else {
	$config->{TWiki}->{htpasswdEncoding}	= "crypt";
}
#                   Pathname of user name/password file for authentication :
if ( $config->{TWiki}->{htpasswdFormatFamily} eq "htpasswd" ) {
	$config->{TWiki}->{htpasswdFilename}   = "$config->{TWiki}->{dataDir}/.htpasswd";
} elsif ( $config->{TWiki}->{htpasswdFormatFamily} eq "hdigest" ) {
	$config->{TWiki}->{htpasswdFilename}   = "$config->{TWiki}->{dataDir}/.htdigest";
}
#                   Authentication "realm" (must be the same as in
#                   password file, MUST NOT contain colons):
$authRealm          = "Enter your WikiName. (First name and last name, no space, no dots, capitalized, e.g. JohnSmith). Cancel to register if you do not have one.";
#                   Pathname of log file :
$config->{TWiki}->{logFilename}        = "$config->{TWiki}->{logDir}/log%DATE%.txt";
#                   Pathname of remote users file that maps IP to user :
$config->{TWiki}->{remoteUserFilename} = "$config->{TWiki}->{dataDir}/remoteusers.txt";
#                   %WIKIUSERSTOPIC% : Name of users list topic :
$config->{TWiki}->{wikiUsersTopicname} = "TWikiUsers";
#                   Pathname of WebUsers topic, used to map Intranet login name
#                   (e.g. 'fsmith') to Wiki name (e.g. 'FredSmith') :
$config->{TWiki}->{userListFilename}   = "$config->{TWiki}->{dataDir}/$config->{TWiki}->{mainWebname}/$config->{TWiki}->{wikiUsersTopicname}.txt";
#                   Map login name to Wiki name, default "1", set to "0" for .htpasswd authenticated sites :
$config->{TWiki}->{doMapUserToWikiName} = "1";
#                   %HOMETOPIC% : Name of main topic in a web, default "WebHome" :
$config->{TWiki}->{mainTopicname}      = "WebHome";
#                   %NOTIFYTOPIC% : Name of topic for email notifications, default "WebNotify" :
$config->{TWiki}->{notifyTopicname}  = "WebNotify";
#                   %WIKIPREFSTOPIC% : Name of site-level preferences topic, default "TWikiPreferences" :
$config->{TWiki}->{wikiPrefsTopicname} = "TWikiPreferences";
#                   %WEBPREFSTOPIC% : Name of preferences topic in a web, default "WebPreferences" :
$config->{TWiki}->{webPrefsTopicname}  = "WebPreferences";
#                   %STATISTICSTOPIC% : Name of statistics topic, default "WebStatistics" :
$config->{TWiki}->{statisticsTopicname} = "WebStatistics";
#                   Number of top viewed topics to show in statistics topic, default "10" :
$config->{TWiki}->{statsTopViews}      = "10";
#                   Number of top contributors to show in statistics topic, default "10" :
$config->{TWiki}->{statsTopContrib}    = "10";
#                   Statistics debugging - write invalid logfile lines to debug log
$config->{TWiki}->{doDebugStatistics}  = "0";
#                   Show how many revision links, "0" for all, default "3" :
$config->{TWiki}->{numberOfRevisions}  = "3";
#                   Number of seconds a topic is locked during edit, default "3600" :
$config->{TWiki}->{editLockTime}       = "3600";
#                   Group of users that can use cmd=repRev
#                   or that ALWAYS have edit powers (set $config->{TWiki}->{doSuperAdminGroup}=1)
$config->{TWiki}->{superAdminGroup}    = "TWikiAdminGroup";

# flag variables that could change:
# ==================================================================
# values are "0" for no, or "1" for yes
#                   Keep same revision if topic is saved again within edit lock time. Default "1"
$config->{TWiki}->{doKeepRevIfEditLock} = "1";
#                   Build $config->{TWiki}->{scriptUrlPath} from $query->url parameter. Default "0".
#                   Note that links are incorrect after failed authentication if "1"
$config->{TWiki}->{doGetScriptUrlFromCgi} = "0";
#                   Remove port number from URL. Default "0"
$config->{TWiki}->{doRemovePortNumber} = "0";
#                   Remove IMG tags in mailnotify. Default "1"
$config->{TWiki}->{doRemoveImgInMailnotify} = "1";
#                   Remember remote user by matching the IP address
#                   in case REMOTE_USER is empty. Default "0"
#                   (Note: Does not work reliably with dynamic IP addresses)
$config->{TWiki}->{doRememberRemoteUser} = "0";
#                   Change non existing plural topic name to singular,
#                   e.g. TestPolicies to TestPolicy. Default "1"
$config->{TWiki}->{doPluralToSingular} = "1";
#                   Hide password in registration email
$config->{TWiki}->{doHidePasswdInRegistration} = "1";
#                   Remove ".." from %INCLUDE{""}% filename, to
#                   prevent includes of "../../file". Default "1"
$config->{TWiki}->{doSecureInclude}    = "1";
#                   Log topic views to $config->{TWiki}->{logFilename}. Default "1"
$config->{TWiki}->{doLogTopicView}     = "1";
#                   Log topic edits to $config->{TWiki}->{logFilename}. Default "1"
$config->{TWiki}->{doLogTopicEdit}     = "1";
#                   Log topic saves to $config->{TWiki}->{logFilename}. Default "1"
$config->{TWiki}->{doLogTopicSave}     = "1";
#                   Log renames to $config->{TWiki}->{logFilename}. Default "1".  Added JET 22-Feb-01
$config->{TWiki}->{doLogRename}        = "1";
#                   Log view attach to $config->{TWiki}->{logFilename}. Default "1"
$config->{TWiki}->{doLogTopicAttach}   = "1";
#                   Log file upload to $config->{TWiki}->{logFilename}. Default "1"
$config->{TWiki}->{doLogTopicUpload}   = "1";
#                   Log topic rdiffs to $config->{TWiki}->{logFilename}. Default "1"
$config->{TWiki}->{doLogTopicRdiff}    = "1";
#                   Log changes to $config->{TWiki}->{logFilename}. Default "1"
$config->{TWiki}->{doLogTopicChanges}  = "1";
#                   Log search to $config->{TWiki}->{logFilename}. Default "1"
$config->{TWiki}->{doLogTopicSearch}   = "1";
#                   Log user registration to $config->{TWiki}->{logFilename}. Default "1"
$config->{TWiki}->{doLogRegistration}  = "1";
#                   Disable plugins. Set to "1" in case TWiki is non functional after
#                   installing a new plugin. This allows you to remove the plugin from
#                   the ACTIVEPLUGINS list in TWikiPreferences. Default "0"
$config->{TWiki}->{disableAllPlugins}  = "0";
#                   Enable super-powers to $config->{TWiki}->{superAdminGroup} members
#                   see Codev.UnchangeableTopicBug
$config->{TWiki}->{doSuperAdminGroup}  = "1";

# Return true
1;

#############################################################
##########        Administration notes     ##################
#############################################################
#
# Don't forget to customize also the TWiki.TWikiPreferences topic.
#
# You can alter the most recent revision of a topic using /edit/web/topic?cmd=repRev
#    - use only as a last resort, as history is altered
#    - you must be in TWikiAdminGroup
#    - you will be presented with normal edit box, but this will also include meta
#      information, modify this with extreme care
#
# You can delete the most recent revision of a topic using /edit/web/topic?cmd=delRev
#    - use only as a last resort, as history is lost
#    - you must be in TWikiAdminGroup
#    - fill in some dummy text in the edit box
#    - ignore preview output
#    - when you press save last revision will be deleted
#

}
1;
