Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh design, refactoring code for much easy templating and code reading #256

Open
wants to merge 153 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
153 commits
Select commit Hold shift + click to select a range
775a36b
Remove images bars, replace by css only
bouks Jul 22, 2024
7311f13
set background color to css
bouks Jul 22, 2024
ddaf8ed
Add color vars to default css, saving lines
bouks Jul 22, 2024
2c4baee
Reduce year size in month bars stats
bouks Jul 22, 2024
f384725
Change font definitions
bouks Jul 22, 2024
7e78e50
Remove use of png for clock
bouks Jul 22, 2024
b4f127f
Fix clock centering
bouks Jul 22, 2024
216129b
Fix perl var in css files (removing)
bouks Jul 22, 2024
b9191bc
Refactoring & redesigning month stats data table
bouks Jul 25, 2024
c690909
Update Days of month table (and month)
bouks Jul 25, 2024
79af55a
Update Days of week table
bouks Jul 25, 2024
4bd18e3
Update hours table
bouks Jul 25, 2024
982f36a
Fix Byte Format
bouks Jul 25, 2024
cf36f85
Remove the need of country flag pngs
bouks Jul 25, 2024
6a28b2b
clocks night and day
bouks Jul 25, 2024
d8b822a
Adding effects on lines hovering
bouks Jul 25, 2024
fd62ccb
activate U and V stats to domains/country table
bouks Jul 25, 2024
1650400
change translations
bouks Jul 25, 2024
ad83407
Update Countries table
bouks Jul 26, 2024
1202bb5
Introduce img folder (worldmap)
bouks Jul 26, 2024
a4d5dd6
Cleaning Days of Month process
bouks Jul 26, 2024
bcc9e1b
Fix countries
bouks Jul 26, 2024
9c74eab
Fix bars
bouks Jul 26, 2024
d1d5a5d
Fix space/maj
bouks Jul 26, 2024
d35b608
Removing the wrapping table of countries
bouks Jul 26, 2024
44bc124
Cleaning Months process
bouks Jul 26, 2024
5d41ad7
Cleaning html headers generator ! "AddHTMLStyles_" PLUGINS : MUST REA…
bouks Jul 26, 2024
514f60b
default BarHeight to 75 + borders
bouks Jul 26, 2024
59f3794
reset heures au pluriel
bouks Jul 26, 2024
1f94dcb
Introduce ShowBars option
bouks Jul 26, 2024
dc4a013
add class to average row
bouks Jul 26, 2024
b55424f
Set some css vars
bouks Jul 26, 2024
375a0bb
Refactoring bar system
bouks Jul 26, 2024
c125c72
Remove unnecessary quotes
bouks Jul 26, 2024
09532dd
Clean HTMLMainDaysofWeek
bouks Jul 27, 2024
c7f15ac
css - fluidify effect on hovering
bouks Jul 27, 2024
e90fade
Add $StyleSheetMode option
bouks Jul 27, 2024
70b3bd3
verify month (DateIsValid)
bouks Jul 27, 2024
28563e5
active ShowBars on weekday
bouks Jul 27, 2024
01e31ef
add width option to bars
bouks Jul 27, 2024
1deea1e
js+css - country effect on hovering
bouks Jul 27, 2024
adf8e8c
js refactoring
bouks Jul 27, 2024
63eebb8
HTML cleaning
bouks Jul 27, 2024
86a7c06
Update update message
bouks Jul 27, 2024
a54c1bb
clean site header
bouks Jul 27, 2024
03d952c
reset domains/country on white bg
bouks Jul 27, 2024
742acff
flex container
bouks Jul 27, 2024
7c6ef92
Lighten default pages stats blue background
bouks Jul 28, 2024
04b7804
update fr translation
bouks Jul 28, 2024
e1cd7b0
new headers
bouks Jul 28, 2024
79556ab
Remove parenthesis on ratio summary
bouks Jul 28, 2024
2c4b54a
Fix some css
bouks Jul 28, 2024
73404fa
css fix unboldy things
bouks Jul 28, 2024
ef09f6c
visuals
bouks Jul 28, 2024
f82848a
update fr translation
bouks Jul 28, 2024
e3b2d53
redesign header + summary
bouks Jul 28, 2024
1100176
Merge branch 'eldy:develop' into develop
bouks Jul 28, 2024
1d8740e
cleaning code HTMLMainHosts
bouks Jul 28, 2024
e8ae652
add fr msg 179 > 188
bouks Jul 28, 2024
bd5685b
downloads table
bouks Jul 29, 2024
9aae35b
insert data-tables
bouks Jul 29, 2024
e6300a3
reduce "links" size
bouks Jul 29, 2024
4332b51
Bars grow on hover
bouks Jul 29, 2024
4e93d9b
re-active extra_head_html & tooltips
bouks Jul 29, 2024
633b83e
New tooltip system, plugin updates
bouks Jul 29, 2024
d4af606
Correct functions comments
bouks Jul 29, 2024
c306774
finalizing tab_head and tab_end
bouks Jul 29, 2024
31d1c1e
fix worldmap size
bouks Jul 29, 2024
0cb0b45
adjust tooltip place
bouks Jul 29, 2024
d3c09fd
renew tables on detailed pages
bouks Jul 29, 2024
72b7298
Fix table SMTP error codes
bouks Jul 29, 2024
ba550c4
Adjust clock size on bars
bouks Jul 30, 2024
3d6da41
Remove ShowBars option / remove BarWidth from bar calculation
bouks Jul 30, 2024
5dfee8f
remove conf color var from css
bouks Jul 30, 2024
78cfea6
Set a navigation menu
bouks Jul 30, 2024
f05a6b8
Remove ShowBars from conf file
bouks Jul 30, 2024
5c051a1
Remove BarHeight from conf
bouks Jul 30, 2024
1cd2723
Main Countries add full list to main page
bouks Jul 30, 2024
28c5eac
Add a ratio stats table
bouks Jul 31, 2024
07c3bd9
rearrange tables for fluid navigation
bouks Jul 31, 2024
efd1d2a
gain height
bouks Jul 31, 2024
a2055ce
add comment
bouks Jul 31, 2024
fdbef14
Change wrong word
bouks Jul 31, 2024
4ed11be
Comply screen size table to html template
bouks Jul 31, 2024
fffd0b1
Comply robots table to html template
bouks Jul 31, 2024
26defc6
comply host table
bouks Jul 31, 2024
d1827f7
Comply worms table
bouks Jul 31, 2024
7056fff
Remove "ucfirst" messages from lang pack
bouks Jul 31, 2024
109f3d2
conform session table
bouks Jul 31, 2024
01dbe1a
Simplify screensize table
bouks Jul 31, 2024
e6ec0ab
update fr
bouks Jul 31, 2024
7c2b67a
conform file types table
bouks Jul 31, 2024
a964550
update file types labels
bouks Jul 31, 2024
0ae5c40
Dark mode implemented + link fix in menu
bouks Aug 1, 2024
5ed7a87
fix weekend color, remove 2nd line on bars
bouks Aug 1, 2024
eaab358
return string on mainmonthly, dailys tables, countries, hours table
bouks Aug 1, 2024
ac51079
visually reorganizing tables
bouks Aug 1, 2024
38266f6
Fix clock not turning
bouks Aug 1, 2024
0cb3801
fix ratio columns, move sections
bouks Aug 1, 2024
313a470
if no data, don't show ratio
bouks Aug 1, 2024
27ead3b
set font more fluid
bouks Aug 1, 2024
f92e8b9
if not worms return nothing
bouks Aug 1, 2024
44eeb11
Starting HTMLMainPages cleanup
bouks Aug 1, 2024
9981eaf
Refactor HTMLShowURLInfo
bouks Aug 1, 2024
fe7bf2e
css : grow on portrait and 2dppx
bouks Aug 1, 2024
85dc6b3
proper filter ShowLinksOnUrl
bouks Aug 1, 2024
b0c1f24
Refactor "details" page's link build on top of table.
bouks Aug 2, 2024
b8adf3c
clean code
bouks Aug 2, 2024
7ac4caf
confom pages-url table
bouks Aug 2, 2024
37dcb71
AWStats update notification (in page footer)
bouks Aug 2, 2024
f49caad
conform Downloads table
bouks Aug 3, 2024
a76a44b
TODO add devicePixelRatio
bouks Aug 3, 2024
e2d00f8
cleanup
bouks Aug 3, 2024
03da253
conform mainOS table
bouks Aug 3, 2024
a4073d9
update some browser's icon
bouks Aug 3, 2024
197a5d5
conform browsers table
bouks Aug 3, 2024
9c77711
conform keyphrases keywords tables
bouks Aug 4, 2024
18ae9b9
Change some visual rendering
bouks Aug 4, 2024
48e31fa
conform http status table
bouks Aug 4, 2024
ee23c19
conform referers table
bouks Aug 5, 2024
01da080
Countries expandable button
bouks Aug 5, 2024
ffe1b82
alldomains page
bouks Aug 6, 2024
8290184
HTMLShowDomains return instead of print
bouks Aug 6, 2024
94714f4
Don't print form, update button and nav
bouks Aug 6, 2024
b06e5e0
print styles and sticky map on alldomains page
bouks Aug 6, 2024
e8c498d
urls pages (all, entries, exits)
bouks Aug 6, 2024
5269531
downloads page
bouks Aug 6, 2024
3d839fe
Mainhost + ShowHostInfo -> return instead of print
bouks Aug 6, 2024
2a167d2
Fix clock icon retarding 1 hour
bouks Aug 6, 2024
c1f0719
(css) Fix data was uppercase on countries
bouks Aug 6, 2024
f01bf8f
(css) Dark mode more darker
bouks Aug 6, 2024
07ceef0
section help button (tooltip)
bouks Aug 6, 2024
62d7a54
styling section links
bouks Aug 6, 2024
751713a
shorten "Taille moyenne" > "Poids moyen"
bouks Aug 6, 2024
e581b26
pages-url table - add data (bandwidth) column and set bars for "other…
bouks Aug 6, 2024
7b48ab2
plugins geoip/geoip_city_maxmind returning html string
bouks Aug 7, 2024
3f7aa7b
Add links to free geoip databases
bouks Aug 7, 2024
6b10841
Add option for flags ( image | utf8). default : 'image"
bouks Aug 7, 2024
31e4827
Add conf option to show worldmap or not
bouks Aug 7, 2024
7f9b6fd
(js) Don't change worldmap's top in detail page if showmap = 0
bouks Aug 7, 2024
fa88154
"Add" Message[56] -> '-' for "no result" (geoip_city_maxmind, geoip)
bouks Aug 7, 2024
1d9b27b
geoip_city_maxmind, geoip, return only content
bouks Aug 7, 2024
cbea00f
(geo) change functions doc , remove span
bouks Aug 7, 2024
6d3b940
css gui
bouks Aug 7, 2024
17a7c2c
Update Geo plugins ShowInfoHost subroutine
bouks Aug 7, 2024
eb94291
Conform hosts detail pages + some general colors and css
bouks Aug 8, 2024
5c280c5
Fix title url details and remove sub HTMLShowURLDetail
bouks Aug 8, 2024
3c6b2df
Remove sub HTMLShowDownloads
bouks Aug 8, 2024
c6288cc
Remove sub HTMLShowDomains
bouks Aug 8, 2024
2202b50
Conform robots details pages and remove sub HTMLShowRobots
bouks Aug 8, 2024
40752f5
Change Format_Byte font size depending B, KB, MB...
bouks Aug 8, 2024
8ae32a9
(css) mod bytes sizes + mod hover anim
bouks Aug 8, 2024
8a4114f
Set html5 doctype and utf-8 charset + some css
bouks Aug 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions docs/awstats_config.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
</li><li><a href="#DirData">DirData</a>
</li><li><a href="#DirCgi">DirCgi</a>
</li><li><a href="#DirIcons">DirIcons</a>
</li><li><a href="#DirImgs">DirImgs</a>
</li><li><a href="#SiteDomain">SiteDomain</a>
</li><li><a href="#HostAliases">HostAliases</a>
</li><li><a href="#AllowToUpdateStatsFromBrowser">AllowToUpdateStatsFromBrowser</a>
Expand Down Expand Up @@ -468,6 +469,19 @@

<br><br><hr>

<a name="DirImgs"><b>DirImgs</b></a><br>
<b>Version : </b>1.0+<br>
<br># Relative or absolute web URL of your awstats images directory.
<br># If you build static reports ("... -output &gt; outputpath/output.html"), enter
<br># path of images directory relative to the output directory 'outputpath'.
<br># Example: "/awstatsimgs"
<br># Example: "../img"
<br># Default: "/img" (means you must copy images directories in "/mywwwroot/img")
<br>#
<br>DirIcons="/img"

<br><br><hr>

<a name="SiteDomain"><b>SiteDomain</b></a><br>
<b>Version : </b>3.2+<br>
<br># "SiteDomain" must contain the main domain name or the main intranet web
Expand Down Expand Up @@ -1430,8 +1444,8 @@
<br>
<br># Show domains/country chart
<br># Context: Web, Streaming, Mail, Ftp
<br># Default: PHB, Possible column codes: PHB
<br>ShowDomainsStats=PHB
<br># Default: UVPHB, Possible column codes: UVPHB
<br>ShowDomainsStats=UVPHB
<br>
<br># Show hosts chart
<br># Context: Web, Streaming, Mail, Ftp
Expand Down
11 changes: 9 additions & 2 deletions docs/awstats_contrib.html
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@
<br>Note: You must choose between using this plugin&nbsp;or the
GeoIPfree plugin&nbsp;(need Perl Geo::IPfree module, database is free
but not up to date).
<br>Free databases can be found here : <a href = "https://mailfud.org/geoip-legacy/">https://mailfud.org/geoip-legacy/</a>
<br>Example <span style="font-style: italic;">LoadPlugin="geoip GEOIP_STANDARD /usr/local/geoip.dat /usr/local/geoip_override.txt"

</span><br>Plugin provided with AWStats (5.2+)
Expand All @@ -236,7 +237,9 @@
<br><span style="font-style: italic;">Parameters:</span> [GEOIP_STANDARD | GEOIP_MEMORY_CACHE] [/pathto/GeoIPCity.dat] &lt;/pathto/override.txt&gt;<br><span style="font-style: italic;">Description: </span>This plugin adds a chart of hits by cities (with country and regions&nbsp;informations for major countries).
<br>
By enabling this plugin, you will see a new link called 'Cities' on
reports menu.<br>Example <span style="font-style: italic;">LoadPlugin="geoip_city_maxmind GEOIP_STANDARD /usr/local/geoip.dat /usr/local/GeoIPCity_override.txt"
reports menu.
<br>Free databases can be found here : <a href = "https://mailfud.org/geoip-legacy/">https://mailfud.org/geoip-legacy/</a>
<br>Example <span style="font-style: italic;">LoadPlugin="geoip_city_maxmind GEOIP_STANDARD /usr/local/geoip.dat /usr/local/GeoIPCity_override.txt"

</span><br>Plugin provided with AWStats (6.2+)

Expand All @@ -247,7 +250,9 @@
the database. You can also provide a link that will be used to lookup
additional registration data. Put the link at the end of the parameter
string and the report page will include the link with the full AS
number at the end.<br>Example <span style="font-style: italic;">LoadPlugin="geoip_asn_maxmind
number at the end.
<br>Free databases can be found here : <a href = "https://mailfud.org/geoip-legacy/">https://mailfud.org/geoip-legacy/</a>
<br>Example <span style="font-style: italic;">LoadPlugin="geoip_asn_maxmind
GEOIP_STANDARD /usr/local/geoip.dat /usr/local/GeoIPASN_override.txt
http://enc.com.au/itools/aut-num.php?autnum="
</span><br>Plugin provided with AWStats (6.9+)
Expand All @@ -268,6 +273,7 @@
<br>By enabling this plugin, you will see a new link called 'ISP' on reports menu. For
the moment this link works only when AWStats reports are build as CGI (static built not yet
supported).
<br>Free databases can be found here : <a href = "https://mailfud.org/geoip-legacy/">https://mailfud.org/geoip-legacy/</a>
<br>Example <span style="font-style: italic;">LoadPlugin="geoip_isp_maxmind GEOIP_STANDARD /usr/local/GeoIPISP.dat </span><span style="font-style: italic;">/usr/local/geoip_override.txt"</span><br>Plugin provided with AWStats (6.3+)

<br><br><span style="font-weight: bold;">GeoIP_Org_Maxmind
Expand All @@ -276,6 +282,7 @@
<br>By enabling this plugin, you will see a new link called 'Organizations' on reports menu. For
the moment this link works only when AWStats reports are build as CGI (static built not yet
supported).
<br>Free databases can be found here : <a href = "https://mailfud.org/geoip-legacy/">https://mailfud.org/geoip-legacy/</a>
<br>Example <span style="font-style: italic;">LoadPlugin="geoip_org_maxmind GEOIP_STANDARD /usr/local/GeoIPOrg.dat </span><span style="font-style: italic;">/usr/local/geoip_override.txt"</span><br>Plugin provided with AWStats (6.3+)

<br><br>
Expand Down
6 changes: 6 additions & 0 deletions docs/awstats_setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ <h2 style=""><u>I. Setup: Installation and configuration using
Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/" <br>
Alias /awstatscss "/usr/local/awstats/wwwroot/css/" <br>
Alias /awstatsicons "/usr/local/awstats/wwwroot/icon/" <br>
Alias /awstatsimgs "/usr/local/awstats/wwwroot/img/" <br>
ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/" <br>
# <br>
# This is to permit URL access to scripts/files in AWStats directory. <br>
Expand Down Expand Up @@ -252,6 +253,9 @@ <h2 style=""><u>I. Setup: Installation and configuration using
Move AWStats <b>icon sub-directories</b> and its content into a
directory readable by your
web server, for example C:\yourwwwroot\icon.<br>
Move AWStats <b>img sub-directories</b> and its content into a
directory readable by your
web server, for example C:\yourwwwroot\img.<br>
<br>
<font style="color: rgb(17, 17, 85);"><b>* Step 4</b>:</font><br>
<br>
Expand Down Expand Up @@ -282,6 +286,8 @@ <h2 style=""><u>I. Setup: Installation and configuration using
cs-uri-query sc-status sc-bytes cs-version cs(User-Agent) cs(Referer)"</i><br>
- Change the <a href="awstats_config.html#DirIcons">DirIcons</a>
parameter to reflect relative path of icon directory.<br>
- Change the <a href="awstats_config.html#DirImgs">DirImgs</a>
parameter to reflect relative path of img directory.<br>
- Set the <a href="awstats_config.html#SiteDomain">SiteDomain</a>
parameter to the main domain name or the intranet
web server name used to reach the web site being analyzed (Example:
Expand Down
2 changes: 2 additions & 0 deletions make/rpm/awstats.spec
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ mkdir -p $RPM_BUILD_ROOT/usr/local/awstats/wwwroot/icon/flags
mkdir -p $RPM_BUILD_ROOT/usr/local/awstats/wwwroot/icon/mime
mkdir -p $RPM_BUILD_ROOT/usr/local/awstats/wwwroot/icon/os
mkdir -p $RPM_BUILD_ROOT/usr/local/awstats/wwwroot/icon/other
mkdir -p $RPM_BUILD_ROOT/usr/local/awstats/wwwroot/img
mkdir -p $RPM_BUILD_ROOT/usr/local/awstats/wwwroot/js
mkdir -p $RPM_BUILD_ROOT/usr/local/awstats/wwwroot/cgi-bin/lang
mkdir -p $RPM_BUILD_ROOT/usr/local/awstats/wwwroot/cgi-bin/lang/tooltips_f
Expand Down Expand Up @@ -163,6 +164,7 @@ install -m 444 wwwroot/icon/flags/* $RPM_BUILD_ROOT/usr/local/awstats/wwwroot/ic
install -m 444 wwwroot/icon/mime/* $RPM_BUILD_ROOT/usr/local/awstats/wwwroot/icon/mime
install -m 444 wwwroot/icon/os/* $RPM_BUILD_ROOT/usr/local/awstats/wwwroot/icon/os
install -m 444 wwwroot/icon/other/* $RPM_BUILD_ROOT/usr/local/awstats/wwwroot/icon/other
install -m 444 wwwroot/img/* $RPM_BUILD_ROOT/usr/local/awstats/wwwroot/img
install -m 444 wwwroot/js/* $RPM_BUILD_ROOT/usr/local/awstats/wwwroot/js
install -m 444 wwwroot/cgi-bin/lang/tooltips_f/* $RPM_BUILD_ROOT/usr/local/awstats/wwwroot/cgi-bin/lang/tooltips_f
install -m 444 wwwroot/cgi-bin/lang/tooltips_m/* $RPM_BUILD_ROOT/usr/local/awstats/wwwroot/cgi-bin/lang/tooltips_m
Expand Down
19 changes: 17 additions & 2 deletions tools/awstats_configure.pl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use vars qw/
$AWSTATS_PATH
$AWSTATS_ICON_PATH
$AWSTATS_IMG_PATH
$AWSTATS_CSS_PATH
$AWSTATS_CLASSES_PATH
$AWSTATS_CGI_PATH
Expand All @@ -29,6 +30,7 @@
/;
$AWSTATS_PATH='';
$AWSTATS_ICON_PATH='/usr/local/awstats/wwwroot/icon';
$AWSTATS_IMG_PATH='/usr/local/awstats/wwwroot/img';
$AWSTATS_CSS_PATH='/usr/local/awstats/wwwroot/css';
$AWSTATS_CLASSES_PATH='/usr/local/awstats/wwwroot/classes';
$AWSTATS_CGI_PATH='/usr/local/awstats/wwwroot/cgi-bin';
Expand Down Expand Up @@ -324,6 +326,7 @@ sub update_awstats_config
exit 1;
}
$AWSTATS_ICON_PATH="$AWSTATS_PATH/wwwroot/icon";
$AWSTATS_IMG_PATH="$AWSTATS_PATH/wwwroot/img"
$AWSTATS_CSS_PATH="$AWSTATS_PATH/wwwroot/css";
$AWSTATS_CLASSES_PATH="$AWSTATS_PATH/wwwroot/classes";
$AWSTATS_CGI_PATH="$AWSTATS_PATH/wwwroot/cgi-bin";
Expand All @@ -349,6 +352,7 @@ sub update_awstats_config
exit 1;
}
$AWSTATS_ICON_PATH="$AWSTATS_PATH/wwwroot/icon";
$AWSTATS_IMG_PATH="$AWSTATS_PATH/wwwroot/img";
$AWSTATS_CSS_PATH="$AWSTATS_PATH/wwwroot/css";
$AWSTATS_CLASSES_PATH="$AWSTATS_PATH/wwwroot/classes";
$AWSTATS_CGI_PATH="$AWSTATS_PATH/wwwroot/cgi-bin";
Expand All @@ -358,6 +362,7 @@ sub update_awstats_config
# We do not use default values for awstats directives
# but thoose defined from AWSTATS_PATH
$AWSTATS_ICON_PATH="$AWSTATS_PATH/wwwroot/icon";
$AWSTATS_IMG_PATH="$AWSTATS_PATH/wwwroot/img";
$AWSTATS_CSS_PATH="$AWSTATS_PATH/wwwroot/css";
$AWSTATS_CLASSES_PATH="$AWSTATS_PATH/wwwroot/classes";
$AWSTATS_CGI_PATH="$AWSTATS_PATH/wwwroot/cgi-bin";
Expand Down Expand Up @@ -457,6 +462,7 @@ sub update_awstats_config
my $awstatsclassesfound=0;
my $awstatscssfound=0;
my $awstatsiconsfound=0;
my $awstatsimgsfound=0;
my $awstatscgifound=0;
my $awstatsdirectoryfound=0;
while(<CONF>)
Expand All @@ -480,13 +486,14 @@ sub update_awstats_config
if ($_ =~ /Alias \/awstatsclasses/) { $awstatsclassesfound=1; }
if ($_ =~ /Alias \/awstatscss/) { $awstatscssfound=1; }
if ($_ =~ /Alias \/awstatsicons/) { $awstatsiconsfound=1; }
if ($_ =~ /Alias \/awstatsimgs/) { $awstatsimgsfound=1; }
if ($_ =~ /ScriptAlias \/awstats\//) { $awstatscgifound=1; }
my $awstats_path_quoted=quotemeta($AWSTATS_PATH);
if ($_ =~ /Directory "$awstats_path_quoted\/wwwroot"/) { $awstatsdirectoryfound=1; }
}
close CONF;

if ($awstatsclassesfound && $awstatscssfound && $awstatsiconsfound && $awstatscgifound && $awstatsdirectoryfound)
if ($awstatsclassesfound && $awstatscssfound && $awstatsiconsfound && $awstatsimgsfound && $awstatscgifound && $awstatsdirectoryfound)
{
$UseAlias=1;
if ($commonchangedtocombined) { print " Common log files changed to combined.\n"; }
Expand All @@ -497,7 +504,7 @@ sub update_awstats_config
# Add awstats directives
open(CONF,">>$key") || error("Failed to open config file '$key' for adding AWStats directives");
binmode CONF;
if (! $awstatsclassesfound || ! $awstatscssfound || ! $awstatsiconsfound || ! $awstatscgifound) {
if (! $awstatsclassesfound || ! $awstatscssfound || ! $awstatsiconsfound || ! $awstatsimgsfound || ! $awstatscgifound) {
print CONF "$CR\n";
print CONF "#$CR\n";
print CONF "# Directives to allow use of AWStats as a CGI$CR\n";
Expand All @@ -515,6 +522,12 @@ sub update_awstats_config
print " Add 'Alias \/awstatsicons \"$AWSTATS_ICON_PATH\/\"'\n";
print CONF "Alias \/awstatsicons \"$AWSTATS_ICON_PATH\/\"$CR\n";
}

if (! $awstatsimgsfound) {
print " Add 'Alias \/awstatsimgs \"$AWSTATS_IMG_PATH\/\"'\n";
print CONF "Alias \/awstatsimgs \"$AWSTATS_IMG_PATH\/\"$CR\n";
}

if (! $awstatscgifound) {
print " Add 'ScriptAlias \/awstats\/ \"$AWSTATS_CGI_PATH\/\"'\n";
print CONF "ScriptAlias \/awstats\/ \"$AWSTATS_CGI_PATH\/\"$CR\n";
Expand Down Expand Up @@ -570,6 +583,7 @@ sub update_awstats_config
if ($UseAlias) {
$ConfToChange{'DirCgi'}='/awstats';
$ConfToChange{'DirIcons'}='/awstatsicons';
$ConfToChange{'DirImgs'}='/awstatsimgs';
}
update_awstats_config("$modelfile");
print " File awstats.model.conf updated.\n";
Expand Down Expand Up @@ -639,6 +653,7 @@ sub update_awstats_config
if ($UseAlias) {
$ConfToChange{'DirCgi'}='/awstats';
$ConfToChange{'DirIcons'}='/awstatsicons';
$ConfToChange{'DirImgs'}='/awstatsimgs';
}
$ConfToChange{'SiteDomain'}="$site";
my $sitewithoutwww=lc($site); $sitewithoutwww =~ s/^www\.//i;
Expand Down
43 changes: 37 additions & 6 deletions wwwroot/cgi-bin/awstats.model.conf
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,11 @@ ShowMonthStats=UVPHB
# Default: VPHB, Possible column codes: VPHB
ShowDaysOfMonthStats=VPHB

# Show ratios chart
# Context: Web
# Default: UVPH, Possible column codes: UVPH
ShowRatiosStats=UVPH

# Show days of week chart
# Context: Web, Streaming, Mail, Ftp
# Default: PHB, Possible column codes: PHB
Expand All @@ -1002,8 +1007,8 @@ ShowHoursStats=PHB

# Show domains/country chart
# Context: Web, Streaming, Mail, Ftp
# Default: PHB, Possible column codes: UVPHB
ShowDomainsStats=PHB
# Default: UVPHB, Possible column codes: UVPHB
ShowDomainsStats=UVPHB

# Show hosts chart
# Context: Web, Streaming, Mail, Ftp
Expand Down Expand Up @@ -1210,6 +1215,18 @@ FirstDayOfWeek=1
#
ShowFlagLinks=""

# Wether country flags are image or utf8 based
# Possible values: "image" or "utf8"
# Default: "image"
#
FlagsType="image"

# Choose if you want to show the world map
# Possible values: 0 or 1
# Default: 1
#
ShowMap=1


# Each URL, shown in stats report views, are links you can click.
# Possible values: 0 or 1
Expand Down Expand Up @@ -1266,11 +1283,10 @@ Logo="awstats_logo6.png"
LogoLink="https://www.awstats.org"


# Value of maximum bar width/height for horizontal/vertical HTML graphics bars.
# Default: 260/90
# Value of maximum bar width for horizontal HTML graphics bars.
# Default: 260
#
BarWidth = 260
BarHeight = 90


# You can ask AWStats to use a particular CSS (Cascading Style Sheet) to
Expand All @@ -1282,6 +1298,15 @@ BarHeight = 90
#
StyleSheet=""

# When using a particular CSS (Cascading Style Sheet),
# you can choose one of the two modes available
#
# "herited" : you keep the awstats built-in css base and you override it in your stylesheet
# "standalone" : the built-in css will not be considered
#
# Default: "herited"
#
StylesheetMode="herited"

# Those color parameters can be used (if StyleSheet parameter is not used)
# to change AWStats look.
Expand All @@ -1302,7 +1327,7 @@ color_link="0011BB" # Color of HTML links (Default = "0011BB")
color_hover="605040" # Color of HTML on-mouseover links (Default = "605040")
color_u="FFAA66" # Background color for number of unique visitors (Default = "FFAA66")
color_v="F4F090" # Background color for number of visites (Default = "F4F090")
color_p="4477DD" # Background color for number of pages (Default = "4477DD")
color_p="74A2FD" # Background color for number of pages (Default = "74A2FD")
color_h="66DDEE" # Background color for number of hits (Default = "66DDEE")
color_k="2EA495" # Background color for number of bytes (Default = "2EA495")
color_s="8888DD" # Background color for number of search (Default = "8888DD")
Expand Down Expand Up @@ -1463,6 +1488,7 @@ color_x="C1B2E2" # Background color for number of exit pages (Default = "C1B2
# DESCRIPTION: Builds a country chart and adds an entry to the hosts
# table with country name
# Replace spaces in the path of geoip data file with string "%20".
# Free databases can be found here: https://mailfud.org/geoip-legacy/
#
#LoadPlugin="geoip GEOIP_STANDARD /pathto/GeoIP.dat"

Expand All @@ -1483,6 +1509,7 @@ color_x="C1B2E2" # Background color for number of exit pages (Default = "C1B2
# table with country name
# works with IPv4 and also IPv6 addresses
# Replace spaces in the path of geoip data file with string "%20".
# Free databases can be found here: https://mailfud.org/geoip-legacy/
#
#LoadPlugin="geoip6 GEOIP_STANDARD /pathto/GeoIPv6.dat"

Expand All @@ -1492,6 +1519,7 @@ color_x="C1B2E2" # Background color for number of exit pages (Default = "C1B2
# DESCRIPTION: This plugin adds a column under the hosts field and tracks the pageviews
# and hits by city including regions.
# Replace spaces in the path of geoip data file with string "%20".
# Free databases can be found here: https://mailfud.org/geoip-legacy/
#
#LoadPlugin="geoip_city_maxmind GEOIP_STANDARD /pathto/GeoIPCity.dat"

Expand All @@ -1512,6 +1540,7 @@ color_x="C1B2E2" # Background color for number of exit pages (Default = "C1B2
# a link that will be used to lookup additional registration data. Put the link at the end of
# the parameter string and the report page will include the link with the full AS number at the end.
# Replace spaces in the path of geoip data file with string "%20".
# Free databases can be found here: https://mailfud.org/geoip-legacy/
#
#LoadPlugin="geoip_asn_maxmind GEOIP_STANDARD /usr/local/geoip.dat+http://enc.com.au/itools/autnum.php?asn="

Expand All @@ -1529,6 +1558,7 @@ color_x="C1B2E2" # Background color for number of exit pages (Default = "C1B2
# PARAMETERS: [GEOIP_STANDARD | GEOIP_MEMORY_CACHE] [/pathto/GeoIPISP.dat[+/pathto/override.txt]]
# DESCRIPTION: This plugin adds a chart of hits by ISP.
# Replace spaces in the path of geoip data file with string "%20".
# Free databases can be found here: https://mailfud.org/geoip-legacy/
#
#LoadPlugin="geoip_isp_maxmind GEOIP_STANDARD /pathto/GeoIPISP.dat"

Expand All @@ -1537,6 +1567,7 @@ color_x="C1B2E2" # Background color for number of exit pages (Default = "C1B2
# PARAMETERS: [GEOIP_STANDARD | GEOIP_MEMORY_CACHE] [/pathto/GeoIPOrg.dat[+/pathto/override.txt]]
# DESCRIPTION: This plugin add a chart of hits by Organization name
# Replace spaces in the path of geoip data file with string "%20".
# Free databases can be found here: https://mailfud.org/geoip-legacy/
#
#LoadPlugin="geoip_org_maxmind GEOIP_STANDARD /pathto/GeoIPOrg.dat"

Expand Down
Loading