GillroY
Verified User
Just found a small bug when using the plugin with users with multiple domains and certain skins. (But i've got a fix ready )
When users have got more than 1 domain, your code in "index.html" overwrites the $domain variable. So when you click back in (for example) the hermes skin, the domain variable is set to 1, which leads to an error from DA. This can easily be fixed by renaming the domain variable to awdomain everywhere in the file. This is probably not very clear, so here's an example line:
echo "<BLOCKQUOTE><B><BR><A HREF='?config=1&domain=$domain'>Install AwStats on this domain*</A></B><BR>";
becomes
echo "<BLOCKQUOTE><B><BR><A HREF='?config=1&awdomain=$awdomain'>Install AwStats on this domain*</A></B><BR>";
This fix is only needed with certain skins, but I thought I just let all of you know.
Oh, and I've got a little question too. I'm trying to improve functionality with multiple domains (I'll show it when it works), but I can't figure this out: How can I use php in the "user_txt.html" file? Any help would be apreciated!
When users have got more than 1 domain, your code in "index.html" overwrites the $domain variable. So when you click back in (for example) the hermes skin, the domain variable is set to 1, which leads to an error from DA. This can easily be fixed by renaming the domain variable to awdomain everywhere in the file. This is probably not very clear, so here's an example line:
echo "<BLOCKQUOTE><B><BR><A HREF='?config=1&domain=$domain'>Install AwStats on this domain*</A></B><BR>";
becomes
echo "<BLOCKQUOTE><B><BR><A HREF='?config=1&awdomain=$awdomain'>Install AwStats on this domain*</A></B><BR>";
This fix is only needed with certain skins, but I thought I just let all of you know.
Oh, and I've got a little question too. I'm trying to improve functionality with multiple domains (I'll show it when it works), but I can't figure this out: How can I use php in the "user_txt.html" file? Any help would be apreciated!