View Single Post
  #9  
Old 30th August 2011, 16:38
corpus corpus is offline
Junior Member
 
Join Date: Jan 2011
Posts: 29
Thanks: 8
Thanked 12 Times in 9 Posts
Smile

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

Last edited by corpus; 31st August 2011 at 17:27. Reason: updated
Reply With Quote