25
Quote:
carnuke wrote:
Just one other strange thing here; the "powered" ink in the pscounter points to this address "http://lunarhouse.com/stats/view_stats_d.php/admin.php" The directory structure of this link is correct, up to /stats/ then it calls 2 files. admin.php does not exist in my file set!
Thanks again for any help, are there any other calls within the scripts that assume everything is all in the root directory?? This could be the problem if so.
Richard
Well, there seems to be something wrong on your setting. The address is supposed to be "http://lunarhouse.com/stats/admin.php" instead of "http://lunarhouse.com/stats/view_stats_d.php/admin.php". I have no idea why your value( the url to view_stats_d.php) is not correctly stripped...
Anyway, you don't need to start with "http://" for the absolute path to "view_stats_d.php".
(So you can copy & paste the following:
lunarhouse.com/stats/view_stats_d.php
)
This is the only possibility I can imagine to solve the problem.
And view_stats_d.php is the only file which should be moved to the root of php-stat.
By the way, I've just updated my php-stat to 0.18. There are many changes... But I soon realized it cannot catch the visits of those who don't activate "javascript" and "referrer".
Here are some hacks to track these people...
php-stats.php line 25
Replace the whole line with
Quote:
if(isset($_GET['NS_url'])) $NS_url=htmlspecialchars(addslashes(str_replace("aAmMpP","&",$_GET['NS_url']))); else $NS_url="";
Insert the following code to your theme.html
Quote:
<{php}>$xoops_url=XOOPS_URL;
$ref="";$ref = $xoops_url.$_SERVER['REQUEST_URI'];
$ref = htmlspecialchars(addslashes($ref));
$ref=str_replace("&","aAmMpP",$ref);
echo <<
EOM;
<{/php}>
maybe "$ref = htmlspecialchars(addslashes($xoops_url.$_SERVER['REQUEST_URI']));" is better....
If you install XOOPS in your sub-directory $_SERVER['REQUEST_URI'] also returns the name of sub-directory, I suppose. In this case, you also need to strip it at php-stats.php...
------
Is the bug related with "code" solved already? Anyway, the "&" in the code should be "& a m p;"