[fixed]
With the fabulous tpl object of vhcs/ispCP,
In /var/www/ispcp/gui/client/webtools.php, in line 30
Code:
$tpl -> define_dynamic('active_awstats', 'page');
In line 47 I have created a new function:
Code:
function gen_page_awstats($tpl) {
global $cfg;
$awstats_act = $cfg['AWSTATS_ACTIVE'];
if ( $awstats_act != 'yes'){
$tpl->assign('ACTIVE_AWSTATS', '');
}else{
$tpl -> assign(
array(
'AWSTATS_PATH' => 'http://'.$_SESSION['user_logged'].'/stats/',
'AWSTATS_TARGET' => '_blank'
)
);
}
}
gen_page_awstats($tpl);
and
Code:
<!-- BDP: active_awstats -->
<!-- EDP: active_awstats -->
to delimiting the awstas sections in webtools.tpl and menu_webtools.tpl
I have updated the attached files in the first post.
It's a pity that not full seize the tpl object, I think that is the best of ispCP, with it and a chosen CSS code can make a great system of skins.
--
querer es poder