PHP Nuke Nederland
 
•   Home  •  Downloads  •  Your Account  •  Forums  •
PHP-Nuke Nederland: Forums

PHP-Nuke Nederland :: View topic - MS-Analysis - IP-to-Country Hack
 Forum FAQ  •   Search   •  Memberlist  •  Usergroups   •  Register   •    •  Profile  •  Log in to check your private messages  •  Log in

 
Post new topicReply to topic
View previous topic Log in to check your private messages View next topic
Author Message
BlueLion
Administrator
Administrator


Joined: Aug 21, 2004
Posts: 2826

PostPosted: Sun 20 Apr 2008 4:05 Reply with quoteBack to top

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™
View user's profileSend private messageSend e-mailVisit poster's website
nedkelly
Senior Support
Senior Support


Joined: Aug 23, 2004
Posts: 494

PostPosted: Wed 30 Apr 2008 2:26 Reply with quoteBack to top

Bedankt voor deze goeie tip, werkt goed. Exclamation
View user's profileSend private message
Display posts from previous:      
 Donaties   Adverteren 
Wilt u het forum steunen, dan kunt u nu eenvoudig doneren met PayPal.
Post new topicReply to topic
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Web site powered by PHP-Nuke

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2004-2008 by BlueLion.
SEO enhanced with the Sitemapper script
You can syndicate our news using the file backend.php or ultramode.txt
Powered by PHP Powered by MySQL Apache Webserver Valid robots.txt
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.07 Seconds


[Valid News RSS]

RSS Feeds:
[RSS 2.0 News Feed]
[RSS 2.0 Download Feed]
[RSS 2.0 Forum Feed]
[RSS 2.0 Link Feed]
:: fisubsilver shadow phpbb2 style by Daz :: PHP-Nuke theme by BlueLion ::