[2.680]
$extconv = "fileext";
$filetype = "filetype";
$dirdomain = "domain";
$dirdownload = "download";
$earthmap = "earth.jpg";
$icon_filetype = "filetype".$gifext;
[2.750]
$carext = ".";
$extension = '';
for ($i=0;$i<=$#extension;$i++) {
$extension .= "$carext".$extension[$i]."\$|";
}
chop($extension);
[2.760]
$dirflags = "flags";
$pagedate = "pagedate";
$pagehas = "pagehas";
[2.780]
$tmp = $path;
chop($tmp);
$pos = rindex($tmp,$dirsep);
$packagename = substr($tmp,$pos+1,length($tmp));
[2.810]
$dirtraffic = "traffic";
$icon_traffic = "traffic".$gifext;
[2.820]
if ($struct_logfile =~ "%referer") {
    $referlog = $prefixlog;
}
if ($struct_logfile =~ "%agent") {
    $agentlog = $prefixlog;
}
[2.830]
$increfexit = "refexit";
[2.850]
$filevirus = "virus".$htmlext;
$virusdef = "virus";
$icon_virus = "virus".$gifext;
[2.870]
# Scripts running
$actif_inc = 1;
$actif_hour = 1;
$actif_day = 1;
$actif_week = 1;
$actif_month = 1;
$actif_agent = 1;
$actif_refer = 1;
$actif_session = 1;
$actif_error = 1;
$actif_history = 0;
$actif_url = 1;
# Scripts running every n day
$inc_launch = 1;
$hour_launch = 1;
$day_launch = 1;
$week_launch = 1;
$month_launch = 1;
$refer_launch = 1;
$agent_launch = 1;
$error_launch = 1;
$session_launch = 1;
$url_launch = 7;
$history_launch = 1;
# Hour when scripts are running 
$inc_launch_time = 0;
$inc_launch_time_min = 0;
$hour_launch_time = 0;
$day_launch_time = 0;
$week_launch_time = 0;
$month_launch_time = 0;
$agent_launch_time = 0;
$refer_launch_time = 0;
$error_launch_time = 0;
$session_launch_time = 0;
$url_launch_time = 0;
$history_launch_time = 0;
$week_launch_day = 1; # launch on monday (0 = sunday, 6 = saturday)
$month_launch_day = 1; # launch on the first day of each month
[2.880]
$ftp_format = 0;
$ftp_format = 1 if ($struct_logfile =~ "%direction");
for ($i=0;$i<=$#logfile_fields;$i++) {
$fields_logfile{$logfile_fields[$i]} = $i;
$fields_logfile{$logfile_fields[$i]} += 4 if ($ftp_format == 1);
}
$direction = "o" if ($ftp_format == 0);
$incstatus = "status";
$incabort = "abort";
$incftp = "ftp";
[2.890]
$icon_go = "go".$gifext;
$file_now = "now".$htmlext;
[2.900]
$reversegeo = 0; # Map IP to country code
[2.910]
$icon_squid = "squid".$gifext;
$filesquid = "squid".$htmlext;
$squid_format = 0;
$squid_format = 1 if ($struct_logfile =~ "%codestatus");
$dirproxy = "proxy";
$incproxystatus = "proxy-status";
$incproxypeer = "proxy-peer";
$incproxyhosts = "proxy-host";
$iis_format = 0;
$logfile_sep = "[ \[]+";
$logfile_sep = "[ ]+" if ($squid_format == 1);
if ($squid_format == 0 && $ftp_format == 0) { 
if ($prefixlog eq "ex" || $logfile_fields[0] eq "%date" || ($logfile_fields[4] eq "%null" && $logfile_fields[5] eq "%null")) {
# IIS (NT)
$iis_format = 1;
$type_serveur = 1;
@date_string = split(/%/,$date_format);
$logfile_sep = ", " if ($logfile_fields[1] eq "%login"); # Standard
$logfile_sep = " " if ($logfile_fields[1] ne "%login");
}
}
[2.920]
$icon_flecheh = "flecheh".$gifext;
$icon_help = "help".$gifext;
$dirhelp = "help";
$reverse_geo = 1 if ($netgeo == 1 || $geoip_free == 1);
$inc_download_aborted = 0;
[2.940]
$spip = 0;
$favicon = "favicon";
$pngext = ".png";
$icoext = ".ico";
$dbSpipHost = "localhost";
$dbSpipPort = 3306;
$dbSpipUser = "user";
$dbSpipPass = "pass";
[2.960]
$dircsv = "csv";
$txtext = ".txt";
$csvext = ".csv";
$dirjs = "js";
$dircss = "css";
$sorttablejs = "sorttable.js";
$helpjs = "help.js";
$calendarjs = "basiccalendar.js";
$css_w3perl = "w3perl.css";
$css_help = "help.css";
$logfile_sep = "[ ]+";
$refspam_ip = "referrer-ip.txt";
$refspam_standard = "referrer-standard.txt";
$increferspam = "refer_spam";
[2.970]
$filescreensize = "screensize".$htmlext;
$icon_screensize = "screensize".$gifext;
$miscstats_string = "/stats_w3perl_screensize/miscstats.js";
$incscreensize = "screensize";
[2.980]
$icon_spider = "spider".$gifext;
$retrieve_external_log = 0;
$wget_bin = "/usr/bin/wget";
$wget_user = "";
$wget_pass = "";
$remote_host_log = "";
$remote_host_port = "";
$remote_host_dir = "";
$mail_format = 0;
$mail_format = 1 if ($struct_logfile =~ "%module");
$direction = "o" if ($ftp_format == 0 && $mail_format == 0);
$ftp_direction = "o" if ($ftp_direction eq '');
$icon_users = "users".$gifext;
$dirdocs_fr = "docs".$dirsepurl."fr";
$dirdocs = "docs".$dirsepurl."uk";
$users = "users";
[2.981]
$notrafic = 0;
if ($struct_logfile !~ /\%requetesize/ && $mail_format == 0) {
    $notrafic = 1;
    $inc_download_aborted = 0;
}
@selection = () if ($mail_format == 1);
[2.982]
$enable_pdf = 0;
$HTMLDOC = "";
$defaulthomepage = substr($defaulthomepage,0,rindex($defaulthomepage,$carext)) if ($nohtmlext == 1);
if (scalar(@extension) == 0) {
    $error_msg = "You should give at least one extension to map html files\n";
    $error_msg .= "If your files have no extension, use the \'\' for empty value";
    &error_config($error_msg);
    exit;
}
if ($extension =~ /\.\$/) {
    $extension =~ s/\.\$//;
    $extension =~ s/^\|//;
    $nohtmlext = 1;
}
$dirpdf = "pdf";
$pdfext = ".pdf";
$htmldoc_option = "-t pdf --continuous --quiet --no-links --title --textfont helvetica --left 16 --bottom 8 --top 8 --browserwidth 800 --headfootsize 8.0 --fontsize 7.0 --header xtx --footer xd/";
if ($HTMLDOC ne '' && $enable_pdf == 1) {
    if (!(-x $HTMLDOC)) {
	$error_msg .= "Unable to find the pdf tool in $HTMLDOC\n";
	&error_config($error_msg);
	exit;
    }    
}
[2.983]
$enable_email = 0;
$emailadr = "";
$email_smtp = "";
$email_smtp_port = 25;
$email_html = 0;
$email_pdf = 0;
$email_daily = 0;
$email_weekly = 0;
$email_monthly = 0;
[2.985]
$icon_hosts = "hosts".$pngext;
$icon_countries = "countries".$pngext;
$icon_pages = "pages".$pngext;
$icon_dir = "dir".$pngext;
$icon_hours = "hours".$pngext;
$icon_days = "days".$pngext;
$icon_weeks = "weeks".$pngext;
$icon_months = "months".$pngext;
$icon_refer = "refer".$pngext;
$icon_spider = "spider".$pngext;
$icon_session = "session".$pngext;
$icon_error = "error".$pngext;
$icon_agent = "agent".$pngext;
$icon_doc = "document".$pngext;
$icon_script = "script".$pngext;
$icon_virtual = "virtual".$pngext;
$icon_filetype = "filetype".$pngext;

$icon_tree = "tree".$pngext;
$icon_new = "new".$pngext;
$icon_linksym = "linksym".$pngext;
$icon_linkerr = "linkerr".$pngext;
$icon_docrepert = "docrepert".$pngext;
$icon_useless = "useless".$pngext;
$icon_linkabs = "linkabs".$pngext;
$icon_info = "info".$pngext;
$icon_info2 = "info2".$pngext;
$icon_temp = "temp".$pngext;
$icon_verif = "verif".$pngext;
$icon_pie = "pie".$pngext;
$icon_null = "null".$pngext;
$icon_links = "links".$pngext;
$icon_ima = "ima".$pngext;
$icon_trash = "trash".$pngext;
$icon_cdrom = "cdrom".$pngext;

$icon_duree = "duree".$pngext;
$icon_notes = "notes".$pngext;
$icon_descsess = "descsess".$pngext;
$icon_sessmul = "sessmul".$pngext;
$icon_time = "time".$pngext;
$icon_unread = "unread".$pngext;
$icon_login = "login".$pngext;
$icon_users = "users".$pngext;
$icon_reading = "reading".$pngext;

$icon_weight = "weight".$pngext;
$icon_moyenne = "moyenne".$pngext;
$icon_virus = "virus".$pngext;
$icon_screensize = "screensize".$pngext;
$icon_traffic = "traffic".$pngext;
$icon_squid = "squid".$pngext;

$icon_fleched = "fleched".$pngext;
$icon_flecheg = "flecheg".$pngext;
$icon_flecheh = "flecheh".$pngext;

$icon_go = "go".$pngext;
[2.986]
for ($i=0;$i<=$#logfile_fields;$i++) {
    $fields_logfile{$logfile_fields[$i]} = $i;
    $fields_logfile{$logfile_fields[$i]} += 4 if ($ftp_format == 1);
    $fields_logfile{$logfile_fields[$i]} += 2 if ($mail_format == 1 && $logfile_format !~ /exim/i);
}
if ($tri !~ /\// && $mail_format == 0) {
    $error_msg .= "$tri should be at least '/'\n";
    &error_config($error_msg);
    exit;
}
[2.991]
$icon_pdf = "pdf".$pngext;
$icon_csv = "csv".$pngext;
$icon_print = "print".$pngext;
$charset = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">";
[2.992]
$diros = "os";
$show_all = 0;
[2.993]
$icon_mail = "mail".$pngext;
for ($i=0;$i<=$#excludestatuscode;$i++) {
    if ($excludestatuscode[$i] < 400 && $excludestatuscode[$i] != 301 && $excludestatuscode[$i] != 302 && $excludestatuscode[$i] != 304) {
        $excludestatuscode .= $excludestatuscode[$i]."|";
	}
    }
chop($excludestatuscode);
[2.994]
$extension = '';
for ($i=0;$i<=$#extension;$i++) {
    $extension .= "$carext".$extension[$i]."\$|";
}
chop($extension);
if ($ftp_format == 0 && $mail_format == 0) {
    if (scalar(@extension) == 0) {
    $error_msg = "You should give at least one extension to map html files\n";
    $error_msg .= "If your files have no extension, use the \'\' for empty value";
    &error_config($error_msg);
    }
    if ($extension =~ /\.\$/) {
       $extension =~ s/\.\$//;
       $extension =~ s/^\|//;
       $nohtmlext = 1;
    }
}
[2.995]
$exclude_refererspam = 0 if ($struct_logfile !~ /\%refer/);
$help_width = 400;
[2.997]
### Logo file
# if you want to use your own logo ...
# default is a png file located in /resources/
$logo = "logo".$pngext if ($logo eq ''); # Use default
$icon_status = "status".$pngext;
$icon_destination = "destination".$pngext;
[3.000]
# Scripts option
$option_pages = "";
$option_inc = "";
$option_real = "";
$option_hour = "";
$option_day = "";
$option_week = "-g line";
$option_month = "";
$option_agent = "";
$option_refer = "";
$option_session = "-d 10";
$option_error = "-k";
$option_history = "";
$option_url = "";
[3.001]
$searchjs = "search.js";
$popup_graph_width = 120;
[3.003]
$toggle_on = "chkCheckAll.gif";
$toggle_off = "chkUnCheckAll.gif";
$incpagehost = "pagehost";
[3.005]
$rss_file = '';
for ($i=0;$i<=$#rss_file;$i++) {
    $rss_file .= "^".$rss_file[$i]."|";
    }
chop($rss_file);
$nb_rss_item = 20;
$icon_mini_rss = "rss".$pngext;
$icon_rss = "rss".$pngext;
$filerss= "rss";
$xmlext = ".xml";
$dirxml = "xml";
[3.007]
$tabnameyear = "tab-year".$htmlext;
$statnameyear = "stat-year".$htmlext;
$icon_year = "year".$pngext;
$icon_xml = "xml".$pngext;
$icon_hacker = "hacker".$pngext;
$icon_spam = "spam".$pngext;
$icon_bounce = "bounce".$pngext;
[3.010]
$actif_year = 0;
$option_year = "";
$year_launch = 1;
$year_launch_time = 0;
