Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
ff765b86
Commit
ff765b86
authored
Sep 12, 2011
by
tbrehm
Browse files
Fix: FS#1690 - Awstats shows only the last month.
parent
499037a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/cron_daily.php
View file @
ff765b86
...
...
@@ -200,15 +200,15 @@ HostAliases="www.'.$domain.' localhost 127.0.0.1"'.$aliasdomain;
if
(
is_link
(
'/var/log/ispconfig/httpd/'
.
$domain
.
'/yesterday-access.log'
))
unlink
(
'/var/log/ispconfig/httpd/'
.
$domain
.
'/yesterday-access.log'
);
symlink
(
$logfile
,
'/var/log/ispconfig/httpd/'
.
$domain
.
'/yesterday-access.log'
);
$awmonth
=
date
(
"m"
);
if
(
date
(
"d"
)
==
1
)
{
$awmonth
=
date
(
"m"
)
-
1
;
}
$awmonth
=
date
(
"n"
);
$awyear
=
date
(
"Y"
);
if
(
date
(
"m"
)
==
1
)
{
$awyear
=
date
(
"Y"
)
-
1
;
$awmonth
=
"12"
;
if
(
date
(
"d"
)
==
1
)
{
$awmonth
=
date
(
"m"
)
-
1
;
if
(
date
(
"m"
)
==
1
)
{
$awyear
=
date
(
"Y"
)
-
1
;
$awmonth
=
"12"
;
}
}
// awstats_buildstaticpages.pl -update -config=mydomain.com -lang=en -dir=/var/www/domain.com/web/stats -awstatsprog=/path/to/awstats.pl
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment