Clan Adverts

PHP Web Host - Quality Web Hosting For All PHP Applications

 

www.clan-themes.co.uk :: View topic - Ip tracker module

 Welcome To Clan Themes 

As the board grows please remember the Search Option and we hope you find our community useful.

We also monitor Private Messages to stop members from abusing our sites system.
If you are asking for assistance please provide your site link and nuke version, Thanks.

Ip tracker module

8 Replies / 564 Views


Post new topic   Reply to topic  

   www.clan-themes.co.uk Forum Index » General PhpNuke

View previous topic :: View next topic


tazong
Reputation: 4.2
Local time: 7:04 PM


Status: Offline
0.17 posts per day
Medals: 0

Joined: Mar 09, 2008
Last Visit: 21 May 2008
Posts: 21
Points: 164 

Post Ip tracker module Posted: Wed Mar 26, 2008 12:47 pm   

ok can someone please help - i have downloaded and uploaded the folders and files to right locations but instructions it says:
2. add the following line above the last line in includes/counter.php:
include("modules/IP_Tracking/iptracking.php");

now i cant find this anywhere - can someone please help?
 

 
View user's profileSend private message Reply with quote

Noto
Reputation: 483.5
Local time: 12:04 AM
Location: Sunny UK !
uk.gif

Status: Offline
0.72 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Clan Themes Theme Guru
Clan Themes Theme Guru
Joined: May 03, 2007
Last Visit: 22 Jun 2008
Posts: 311
Points: 11921 

View user's profileSend private message Reply with quote

tazong
Reputation: 4.2
Local time: 7:04 PM


Status: Offline
0.17 posts per day
Medals: 0

Joined: Mar 09, 2008
Last Visit: 21 May 2008
Posts: 21
Points: 164 

Post Ip tracker module Posted: Wed Mar 26, 2008 2:11 pm   

Code:

<php>sql_query("UPDATE ".$prefix."_counter SET count=count+1 WHERE (type='total' AND var='hits') OR (var='$browser' AND type='browser') OR (var='$os' AND type='os')");
update_points(13);

/* Start Detailed Statistics */

$dot = date("d-m-Y-H");
$now = explode ("-",$dot);
$nowHour = $now[3];
$nowYear = $now[2];
$nowMonth = $now[1];
$nowDate = $now[0];
$sql = "SELECT year FROM ".$prefix."_stats_year WHERE year='$nowYear'";
$resultyear = $db->sql_query($sql);
$jml = $db->sql_numrows($resultyear);
if ($jml <0>sql_query($sql);
   for ($i=1;$i<12>sql_query("INSERT INTO ".$prefix."_stats_month VALUES ('$nowYear','$i','0')");
      if ($i == 1) $TotalDay = 31;
      if ($i == 2) {
         if (date("L") == true) {
            $TotalDay = 29;
         } else {
            $TotalDay = 28;
         }
      }
      if ($i == 3) $TotalDay = 31;
      if ($i == 4) $TotalDay = 30;
      if ($i == 5) $TotalDay = 31;
      if ($i == 6) $TotalDay = 30;
      if ($i == 7) $TotalDay = 31;
      if ($i == 8) $TotalDay = 31;
      if ($i == 9) $TotalDay = 30;
      if ($i == 10) $TotalDay = 31;
      if ($i == 11) $TotalDay = 30;
      if ($i == 12) $TotalDay = 31;
      for ($k=1;$k<TotalDay>sql_query("INSERT INTO ".$prefix."_stats_date VALUES ('$nowYear','$i','$k','0')");
      }
   }
}

$sql = "SELECT hour FROM ".$prefix."_stats_hour WHERE (year='$nowYear') AND (month='$nowMonth') AND (date='$nowDate')";
$result = $db->sql_query($sql);
$numrows = $db->sql_numrows($result);

if ($numrows <= 0) {
   for ($z = 0;$z<23>sql_query("INSERT INTO ".$prefix."_stats_hour VALUES ('$nowYear','$nowMonth','$nowDate','$z','0')");
   }
}

$db->sql_query("UPDATE ".$prefix."_stats_year SET hits=hits+1 WHERE year='$nowYear'");
$db->sql_query("UPDATE ".$prefix."_stats_month SET hits=hits+1 WHERE (year='$nowYear') AND (month='$nowMonth')");
$db->sql_query("UPDATE ".$prefix."_stats_date SET hits=hits+1 WHERE (year='$nowYear') AND (month='$nowMonth') AND (date='$nowDate')");
$db->sql_query("UPDATE ".$prefix."_stats_hour SET hits=hits+1 WHERE (year='$nowYear') AND (month='$nowMonth') AND (date='$nowDate') AND (hour='$nowHour')");

?>


thank you for your help - this is the code from the counter php - where would i insert the code as i dont see it?
 

 
View user's profileSend private message Reply with quote

blackfox_us
Reputation: 277.7
votes: 1
Local time: 7:04 PM

blank.gif

Status: Offline
0.52 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)

Joined: Oct 04, 2007
Last Visit: 30 Jun 2008
Posts: 143
Points: 3848 

Post Ip tracker module Posted: Wed Mar 26, 2008 2:52 pm   

Here it is

Code:
<php>sql_query("UPDATE ".$prefix."_counter SET count=count+1 WHERE (type='total' AND var='hits') OR (var='$browser' AND type='browser') OR (var='$os' AND type='os')");
update_points(13);

/* Start Detailed Statistics */

$dot = date("d-m-Y-H");
$now = explode ("-",$dot);
$nowHour = $now[3];
$nowYear = $now[2];
$nowMonth = $now[1];
$nowDate = $now[0];
$sql = "SELECT year FROM ".$prefix."_stats_year WHERE year='$nowYear'";
$resultyear = $db->sql_query($sql);
$jml = $db->sql_numrows($resultyear);
if ($jml <0>sql_query($sql);
   for ($i=1;$i<12>sql_query("INSERT INTO ".$prefix."_stats_month VALUES ('$nowYear','$i','0')");
      if ($i == 1) $TotalDay = 31;
      if ($i == 2) {
         if (date("L") == true) {
            $TotalDay = 29;
         } else {
            $TotalDay = 28;
         }
      }
      if ($i == 3) $TotalDay = 31;
      if ($i == 4) $TotalDay = 30;
      if ($i == 5) $TotalDay = 31;
      if ($i == 6) $TotalDay = 30;
      if ($i == 7) $TotalDay = 31;
      if ($i == 8) $TotalDay = 31;
      if ($i == 9) $TotalDay = 30;
      if ($i == 10) $TotalDay = 31;
      if ($i == 11) $TotalDay = 30;
      if ($i == 12) $TotalDay = 31;
      for ($k=1;$k<TotalDay>sql_query("INSERT INTO ".$prefix."_stats_date VALUES ('$nowYear','$i','$k','0')");
      }
   }
}

$sql = "SELECT hour FROM ".$prefix."_stats_hour WHERE (year='$nowYear') AND (month='$nowMonth') AND (date='$nowDate')";
$result = $db->sql_query($sql);
$numrows = $db->sql_numrows($result);

if ($numrows <= 0) {
   for ($z = 0;$z<23>sql_query("INSERT INTO ".$prefix."_stats_hour VALUES ('$nowYear','$nowMonth','$nowDate','$z','0')");
   }
}

$db->sql_query("UPDATE ".$prefix."_stats_year SET hits=hits+1 WHERE year='$nowYear'");
$db->sql_query("UPDATE ".$prefix."_stats_month SET hits=hits+1 WHERE (year='$nowYear') AND (month='$nowMonth')");
$db->sql_query("UPDATE ".$prefix."_stats_date SET hits=hits+1 WHERE (year='$nowYear') AND (month='$nowMonth') AND (date='$nowDate')");
$db->sql_query("UPDATE ".$prefix."_stats_hour SET hits=hits+1 WHERE (year='$nowYear') AND (month='$nowMonth') AND (date='$nowDate') AND (hour='$nowHour')");
include("modules/IP_Tracking/iptracking.php");
?>
 

 
View user's profileSend private messageSend e-mail Reply with quote




tazong
Reputation: 4.2
Local time: 7:04 PM


Status: Offline
0.17 posts per day
Medals: 0

Joined: Mar 09, 2008
Last Visit: 21 May 2008
Posts: 21
Points: 164 

Post Ip tracker module Posted: Wed Mar 26, 2008 3:32 pm   

Ok thank you for that - i added the line where stated and uploaded - i activated the module and it states that its activated.



But it doest show any information?
 

 
View user's profileSend private message Reply with quote

tazong
Reputation: 4.2
Local time: 7:04 PM


Status: Offline
0.17 posts per day
Medals: 0

Joined: Mar 09, 2008
Last Visit: 21 May 2008
Posts: 21
Points: 164 

View user's profileSend private message Reply with quote

Noto
Reputation: 483.5
Local time: 12:04 AM
Location: Sunny UK !
uk.gif

Status: Offline
0.72 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Clan Themes Theme Guru
Clan Themes Theme Guru
Joined: May 03, 2007
Last Visit: 22 Jun 2008
Posts: 311
Points: 11921 

View user's profileSend private message Reply with quote

tazong
Reputation: 4.2
Local time: 7:04 PM


Status: Offline
0.17 posts per day
Medals: 0

Joined: Mar 09, 2008
Last Visit: 21 May 2008
Posts: 21
Points: 164 

Post Ip tracker module Posted: Thu Mar 27, 2008 12:38 am   

###################################################
# #
# Instructions to Install the IP Tracking Module #
# #
# Scott Rubin - phpnuke id: scottr #
# http://www.ierealtor.com - 2/2003 #
# #
###################################################

Installation Instructions:

1. copy the IP_Tracking/ directory and it's files
to under the main modules/ directory

2. add the following line above the last line in includes/counter.php:
include("modules/IP_Tracking/iptracking.php");

3. * this step only for new install or upgrade from release prior to 3.2.2 .
move the iptrackingtable.php file to your server root directory,
(same directory as your config.php file),
and load into your browser (yourdomain.com/iptrackingtable.php).
OR
apply iptrackingtable.sql against your database for first time install only.

4. That's It !
configuration is done in modules/IP_Tracking/ipconfig.php file
using your favorite text editor. (default values already set)

5. If you want users to access this,
activate the IP Tracking module thru Administration - Modules

OK THIS IS THE IP TRACKER I DOWNLOADED


the site its set on is www.733t.org but i have deactivated it - first time round it did install and was activated but showed no ips like screenshot above - so i tried a reinstall doing exactly the same thing but this time when i activated the module - it sad that the module wasnt activated even thou i just did it in admin panel.
Hope this helps - many thanx for your time in trying to help.
Angel
 

 
View user's profileSend private message Reply with quote




floppy
Reputation: 2235
votes: 10
Local time: 7:04 PM
Location: Jackson Mississippi
usa.gif

Status: Offline
3.22 posts per day
Medals: 1 (View more...)
Dedicated User (Amount: 1)
Clan Themes Scripts/Coder
Clan Themes Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 06 Jul 2008
Posts: 1933
Points: 23274 

View user's profileSend private messageVisit poster's website Reply with quote
Post new topic   Reply to topic  
   www.clan-themes.co.uk Forum Index ŧ General PhpNuke


 
8 Replies / 564 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
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
You cannot attach files in this forum
You can download files in this forum