Only find this in ispcp.conf:
AWSTATS_CACHE_DIR = /var/cache/awstats
AWSTATS_CONFIG_DIR = /etc/awstats
AWSTATS_WEB_DIR = /usr/share/awstats
AWSTATS_ROOT_DIR = /var/www/ispcp/engine/awstats
AWSTATS_PATH seems to be defined in
.../client/error_pages.php function gen_page_awstats($tpl) (line 65)
in
.../client/protect_it.php function gen_page_awstats($tpl) (line 351)
in
.../client/puser_gadd.php function gen_page_awstats($tpl) (line 117)
in
.../client/puser_manage.php function gen_page_awstats($tpl) (line 148)
in
.../client/puser_edit.php function gen_page_awstats($tpl) (line 126)
in
.../client/puser_asign.php function gen_page_awstats($tpl) (line 270)
in
.../client/webtools.php function gen_page_awstats($tpl) (line 42)
in
.../client/error_edit.php function gen_page_awstats($tpl) (line 78)
in
.../client/protected areas.php function gen_page_awstats($tpl) (line 89)
in
.../client/puser_uadd.php function gen_page_awstats($tpl) (line 135)
in
.../client/backup.php function gen_page_awstats($tpl) (line 67)
in all files there is same function
PHP 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'
)
);
}
}
generated result is
Quote:<tr>
<td><a href="http://cms.eu.bogus/stats/" target="_blank" class="submenu">Web statistics</a></td>
</tr>
if $cfg when running webtools.php:
Quote:[AWSTATS_ACTIVE] => yes
[AWSTATS_MODE] => 1
[AWSTATS_CACHE_DIR] => /var/cache/awstats
[AWSTATS_CONFIG_DIR] => /etc/awstats
[AWSTATS_ENGINE_DIR] => /usr/lib/cgi-bin
[AWSTATS_WEB_DIR] => /usr/share/awstats
[AWSTATS_ROOT_DIR] => /var/www/ispcp/engine/awstats
But I DO remember that i specified static awstats when i installed ispcp.
I`ll install a fress lenny tonigh with last trunk from ispcp and we shall see what happend.
BTW: It`s the same function in all that file
Later:
I think it`s significant the template too:
Sniff from .../gui/themes/omega_original/client/webtools.tpl:
Quote: <!-- BDP: active_awstats -->
<tr>
<td> </td>
<td class="content">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="65"><a href="{AWSTATS_PATH}" target="{AWSTATS_TARGET}"><img src="{THEME_COLOR_PATH}/images/icons/awstatsicon.gif" alt="awstats" width="46" height="46" border="0"></a></td>
<td><a href="{AWSTATS_PATH}" target="{AWSTATS_TARGET}" class="link"> {TR_AWSTATS}</a><br />
{TR_AWSTATS_TEXT}</td>
</tr>
</table>
</td>
</tr>
<!-- EDP: active_awstats -->