ispCP - Board - Support
[SOLVED] AWSTATS_PATH for link - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Contributions Area (/forum-40.html)
+--- Forum: Enhancements (/forum-43.html)
+--- Thread: [SOLVED] AWSTATS_PATH for link (/thread-3030.html)



[SOLVED] AWSTATS_PATH for link - HSorgYves - 04-14-2008 04:01 AM

I would like to have the link to AWSTATS using http://www.domain.tld/stats/
Do I need to change all the AWSTATS_PATH variables listed here or is there an easier way?
Code:
./client/backup.php:                'AWSTATS_PATH' => 'http://' . $_SESSION['user_logged'] . '/stats/',
./client/error_edit.php:                'AWSTATS_PATH' => 'http://' . $_SESSION['user_logged'] . '/stats/',
./client/error_pages.php:                'AWSTATS_PATH' => 'http://' . $_SESSION['user_logged'] . '/stats/',
./client/protect_it.php:                'AWSTATS_PATH' => 'http://' . $_SESSION['user_logged'] . '/stats/',
./client/protected_areas.php:                'AWSTATS_PATH' => 'http://' . $_SESSION['user_logged'] . '/stats/',
./client/puser_assign.php:                'AWSTATS_PATH' => 'http://' . $_SESSION['user_logged'] . '/stats/',
./client/puser_edit.php:                'AWSTATS_PATH' => 'http://' . $_SESSION['user_logged'] . '/stats/',
./client/puser_gadd.php:                'AWSTATS_PATH' => 'http://' . $_SESSION['user_logged'] . '/stats/',
./client/puser_manage.php:                'AWSTATS_PATH' => 'http://' . $_SESSION['user_logged'] . '/stats/',
./client/puser_uadd.php:                'AWSTATS_PATH' => 'http://' . $_SESSION['user_logged'] . '/stats/',
./client/webtools.php:                'AWSTATS_PATH' => 'http://' . $_SESSION['user_logged'] . '/stats/',
Here are the templates it is used in:
Code:
./themes/omega_original/client/menu_webtools.tpl:    <td><a href="{AWSTATS_PATH}" target="{AWSTATS_TARGET}" class="submenu">{TR_AWSTATS}</a></td>
./themes/omega_original/client/webtools.tpl:                          <td width="65"><div align="center"><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></div></td>
./themes/omega_original/client/webtools.tpl:                          <td><a href="{AWSTATS_PATH}" target="{AWSTATS_TARGET}" class="link">&nbsp;{TR_AWSTATS}</a><br>



RE: AWSTATS_PATH for link - BeNe - 04-14-2008 05:14 AM

The Stats should work out of the box for "http://www.yourmdomain.tld/stats" My stats does so Rolleyes

Greez BeNe


RE: AWSTATS_PATH for link - HSorgYves - 04-14-2008 06:45 AM

Yes they do work. However I want the other link in the menu on the left in webtools.

Best Regards,
Yves


RE: AWSTATS_PATH for link - joximu - 04-14-2008 06:52 AM

You only want the link to point to *www*.domain.tld/stats instead of domain.tld/stats...

so, you may change at least /client/webtools.php
Code:
'AWSTATS_PATH' => 'http://www.' . $_SESSION['user_logged'] . '/stats/',

the other files too, if it's important that the menu on the left always points to this url...

/J


RE: AWSTATS_PATH for link - RatS - 04-14-2008 07:50 AM

why sould we use www. ?


RE: AWSTATS_PATH for link - joximu - 04-14-2008 08:06 AM

I don't know why the OP want's the www - maybe he does not use the DNS of ispCP and does not create a zone entry like "$ 1D IN A ip.ip.ip.ip". I didn't like this entries either (when I managed the DNS manually). You cannot use CNAMEs for it...

/J


RE: AWSTATS_PATH for link - HSorgYves - 05-03-2008 07:18 AM

Why to use www.? Maybe because I am old school ;-) A webserver should be called www IMHO, although I have the DNS entries without, because some customers love them.

Best Regards,
Yves


RE: [SOLVED] AWSTATS_PATH for link - RatS - 05-03-2008 08:14 AM

hmm, this is not a reason. A reason why to use www. would be a RFC telling it.


RE: [SOLVED] AWSTATS_PATH for link - HSorgYves - 05-03-2008 07:05 PM

Well I was not sure if an RFC would specify it; anyhow a lot of providers use it without. I will simply change the few files, that's it.

Best Regards,
Yves