Current time: 11-26-2024, 03:42 PM Hello There, Guest! (LoginRegister)


Post Reply 
AWStats does not work in r857 ?!
Author Message
zpin Offline
Junior Member
*****
Dev Team

Posts: 160
Joined: Sep 2007
Reputation: 1
Post: #3
RE: AWStats does not work in r857 ?!
I think this should fix it:
Code:
Index: engine/ispcp-dmn-mngr
===================================================================
--- engine/ispcp-dmn-mngr       (revision 858)
+++ engine/ispcp-dmn-mngr       (working copy)
@@ -1025,10 +1025,10 @@
        my $awstats_entry = undef;

        if ($main::cfg{'AWSTATS_ACTIVE'} eq 'yes' && $main::cfg{'AWSTATS_MODE'} eq 1) {
-               $awstats_entry = "$dmn_awstats_entry\n$dmn_awstats_b\n$dmn_awstats_e";
+               $awstats_entry = "$dmn_awstats_b\n$dmn_awstats_e";
        }
        else {
-               $awstats_entry = "$dmn_awstats_b\n$dmn_awstats_e";
+               $awstats_entry = "$dmn_awstats_b\n$dmn_awstats_entry\n$dmn_awstats_e";
        }

     ($rs, $dmn_entry) = repl_tag(
@@ -2355,7 +2355,7 @@
                                        '{DMN_NAME}' => $dmn_name
                                   );

-       ($rs, $cfg) = prep_tpl(\%tag_hash, $starter_tpl);
+       ($rs, $cfg) = prep_tpl(\%tag_hash, $ini_tpl);
        return $rs if ($rs != 0);

        ($rs, $rdata) = store_file(
@@ -2381,7 +2381,7 @@
                                        '{DMN_NAME}' => $dmn_name
                                   );

-       ($rs, $cfg) = prep_tpl(\%tag_hash, $starter_tpl);
+       ($rs, $cfg) = prep_tpl(\%tag_hash, $ini_tpl);
        return $rs if ($rs != 0);

        ($rs, $rdata) = store_file(
10-16-2007 01:08 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
AWStats does not work in r857 ?! - BeNe - 10-16-2007, 12:38 AM
RE: AWStats does not work in r857 ?! - zpin - 10-16-2007 01:08 AM

Forum Jump:


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