Thats odd..
To clarify, many people think Hits Out is broken because repeated clicks aren't counted.. It's actually programmed to only count the initial click from any IP address. Subsequent clicks from the same IP are ignored..
but you are saying it's actually broken.. "Hits Out: 0"

um.. that makes no sense.
You are apparently being directed to the correct website, so out.php obviously knows the site ID, it uses the site ID to fetch the url from the database. It also checks your IP against the last IP that clicked that site ID, and if it's not a match it's *supposed* to increment the count..
After 3 include lines, my out.php looks like this ...
NOTE: I've compacted it a bit
| Code: |
$ID=$_GET['ID'];
if(isset($ID)){
$get_site = sql_query("select SiteURL, OutIP
from $tb_links
where ID='$ID'");
$get_row = sql_fetch_array($get_site);
$url = $get_row[SiteURL];
}
if($REMOTE_ADDR != $get_row[OutIP]){
$result = sql_query("update $tb_links
set HitsOut = HitsOut + 1,
OutIP = '$REMOTE_ADDR',
LastUpdate = LastUpdate
where ID = '$ID'");
}
header("Location: $url");
|
BINGO !.. I think.. the $REMOTE_ADDR variable is likely empty. Try adding this, just after the "include" lines
| Code: |
$REMOTE_ADDR=$_SERVER["REMOTE_ADDR"];
|
PS, the additions you made to the directory file don't really come into play here, since it's out.php that does the count increment, but those additions certainly won't hurt,
and after your web server's apparent upgrade/security lock down you likely solved a problem you hadn't discovered yet.