Thanks Till
should i remove also WHERE ftom th esql querie ?
Quote:
|
$sql = "SELECT domain_id, domain, document_root FROM web_domain WHERE stats_type = 'webalizer' AND server_id = ".$conf['server_id'];
|
I decided to have subdirs in folder stats whith name "webalizer" and "awstats"
so i edit
$statsdir = escapeshellcmd($rec['document_root'].'/web/stats');
to
Code:
$statsdir = escapeshellcmd($rec['document_root'].'/web/stats/webalizer');
and
Code:
$statsdir = escapeshellcmd($rec['document_root'].'/web/stats/awstats');
You don't need to create manually subdirs ?
code
if(!@is_dir($statsdir)) mkdir($statsdir);
will make the job
if you change awstats folder you jave to take a look to line 197 and ad new folder
Code:
rename($rec['document_root'].'/web/stats/awstats.'.$domain.'.html',$rec['document_root'].'/web/stats/index.html');
thanks again