Current time: 11-15-2024, 11:52 AM Hello There, Guest! (LoginRegister)


Post Reply 
awstats button in webtools section
Author Message
macbishop Offline
Junior Member
*

Posts: 68
Joined: Feb 2007
Reputation: 7
Post: #5
RE: awstats button in webtools section
[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
(This post was last modified: 01-16-2008 08:15 AM by macbishop.)
01-16-2008 07:13 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: awstats button in webtools section - macbishop - 01-16-2008 07:13 AM

Forum Jump:


User(s) browsing this thread: 6 Guest(s)