Skip to content

Commit 323b2d4

Browse files
committed
Cleanup old commented code
1 parent 3b146a4 commit 323b2d4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

server/lib/classes/cron.d/150-awstats.inc.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ public function onRunJob() {
6060
$web_config = $app->getconf->get_server_config($conf['server_id'], 'web');
6161

6262
foreach($records as $rec) {
63-
//$yesterday = date('Ymd',time() - 86400);
6463
$yesterday = date('Ymd', strtotime("-1 day", time()));
6564

6665
$log_folder = 'log';
@@ -135,9 +134,6 @@ public function onRunJob() {
135134
}
136135
}
137136

138-
// awstats_buildstaticpages.pl -update -config=mydomain.com -lang=en -dir=/var/www/domain.com/'.$web_folder.'/stats -awstatsprog=/path/to/awstats.pl
139-
// $command = "$awstats_buildstaticpages_pl -update -config='$domain' -lang=".$conf['language']." -dir='$statsdir' -awstatsprog='$awstats_pl'";
140-
141137
$command = escapeshellcmd($awstats_buildstaticpages_pl) . ' -month=' . escapeshellarg($awmonth) . ' -year=' . escapeshellarg($awyear) . ' -update -config=' . escapeshellarg($domain) . ' -lang=' . escapeshellarg($conf['language']) . ' -dir=' . escapeshellarg($statsdir) . ' -awstatsprog=' . escapeshellarg($awstats_pl);
142138

143139
if (date("d") == 2) {

0 commit comments

Comments
 (0)