Diegene die MS-Analysis op hun website gebruiken en ook NukeSentinel met IP-to-Country hebben aan staan is het misschien handiger om 1 IPtoCountry tabel te gebruiken. In 2006 heb ik deze wijziging bij mezelf al doorgevoerd, maar na een recente nieuwe installatie, waar ik deze hack ook weer heb gebruikt, kwam ik tot de conclusie dat ik dit nooit eerder hier heb gepost.
Gebruik hiervoor de versie van mstrack.php uit de map /ip-to-country/ in het MS-Analysis pakket.
Open mstrack.php en vindt:
Code:
// Determine Domain
$result = $db->sql_query( "select c2code from $prefix"._msanalysis_iplookup." WHERE inet_aton('$MSAdata[real_ip]') >= ip_from AND inet_aton('$MSAdata[real_ip]') <= ip_to" );
Vervang dit door:
Code:
// Determine Domain
//$result = $db->sql_query( "select c2code from $prefix"._msanalysis_iplookup." WHERE inet_aton('$MSAdata[real_ip]') >= ip_from AND inet_aton('$MSAdata[real_ip]') <= ip_to" );
// To be used with the NukeSentinel IP2Country tables:
$result = $db->sql_query( "select c2c from ".$prefix."_nsnst_ip2country WHERE inet_aton('$MSAdata[real_ip]') >= ip_lo AND inet_aton('$MSAdata[real_ip]') <= ip_hi" );
// END USING NSNST IP2COUNTRY TABLES
De IP-to-country tabel die wordt gebruikt voor MSA is dus die van NukeSentinel. De IP2C tabel van MSA kan je nu verwijderen uit de DB.
BL
_________________ Te Lezen: Forum Regels | Te Gebruiken: Forum Zoek Functie Aanbevolen PHP-Nuke versie: PHP-Nuke 7.6pl3.1! Aanbevolen Security AddOn: Nuke Sentinel™
nedkelly Elite Support
Joined: Aug 23, 2004
Posts: 508
Posted:
Wed 30 Apr 2008 2:26
Bedankt voor deze goeie tip, werkt goed.
Donaties
Adverteren
Wilt u het forum steunen, dan kunt u nu eenvoudig doneren met PayPal.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum