####################################################
#
# system parameter definition file
#
####################################################

# system path ###################################################

$FTPLOCATEHTMLDIR="/ftplocate";	# html path in url
$FTPLOCATECGIDIR="/cgi-bin/ftplocate";	# cgi path in url
$FTPLOCATEDIR="/usr/local/www/cgi-bin/ftplocate";		# path in disk

# data path  ####################################################

$FILELISTDIR="$FTPLOCATEDIR/filelist";
$DESCDIR="$FTPLOCATEDIR/desc";
$CACHEDIR="$FTPLOCATEDIR/cache";

$SITECFG="$FTPLOCATEDIR/config.site";
$MAPLOG="$FTPLOCATEDIR/log.map";
$SYSTEMLOG="$FTPLOCATEDIR/log.system";
$USERLOG="$FTPLOCATEDIR/log.user";

$TMPDIR="/tmp";

$LANG="english";			# zhtw is for traditional chinese
				# english for english

# external program location #####################################

$CMD_CP="/bin/cp";
$CMD_SORT="/usr/bin/sort";
$CMD_UNIQ="/usr/bin/uniq";
$CMD_GZIP="/usr/bin/gzip";
$CMD_UNZIP="/usr/local/bin/unzip";
$CMD_AGREP="/usr/local/bin/agrep";
$CMD_GLIMPSEINDEX="/usr/local/bin/glimpseindex";
$CMD_GLIMPSE="/usr/local/bin/glimpse";

# icon, background and url ######################################

$HOSTICON="/icons/comp.gray.gif";
$DIRICON="/icons/dir.gif";
$FILEICON="/icons/f.gif";
$BACKGROUND="/bk_dslab.gif";
$URL_help="$FTPLOCATEHTMLDIR/help.$LANG.html";
$URL_ftplocate="http://ftp.ee.ncku.edu.tw/ftplocate/readme.$LANG.html";

# no modification needed from here ##############################

$SETFPATTERN="%04d";	# set file name is a 4 digit number (printf format)

$SETSIZE=100;		# lines in per index set
$MAXSET=100;		# max num of index sets to be searched
$MAXREC=2000;		# max records to be returned

$MAXTOP=50;		# count for toplist

$DNSTIMEOUT=5;		# timeout for dns query
$FTPTIMEOUT=120;	# timeout for ftp server

require ("lang.$LANG");
require ("flmodule.pl");
