Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm) Enhancement Requests
Author Message
technocrat
Life Cycles Becoming CPU Cycles



Joined: Jul 07, 2005
Posts: 511

PostPosted: Fri Sep 30, 2005 2:18 pm Reply with quote

I thought it would be nice if you had the ability to ban IPs while viewing tracked username IPs.

So I made up the changes:

Open
admin/modules/nukesentinel/ABTrackedUsersIPs.php

Find:
Code:
$result = $db->sql_query("SELECT DISTINCT(`ip_addr`) FROM `".$prefix."_nsnst_tracked_ips` WHERE `user_id`='$user_id' ORDER BY `ip_addr` LIMIT $min, $perpage");

while(list($lipaddr) = $db->sql_fetchrow($result)){


Replace with:
Code:
$result = $db->sql_query("SELECT DISTINCT(`ip_addr`), `tid` FROM `".$prefix."_nsnst_tracked_ips` WHERE `user_id`='$user_id' ORDER BY `ip_addr` LIMIT $min, $perpage");

while(list($lipaddr,$tid) = $db->sql_fetchrow($result)){


Find:
Code:
  echo "<td align='center'><a href='".$admin_file.".php?op=ABTrackedDeleteUserIP&amp;user_id=$user_id&amp;ip_addr=$lipaddr&amp;min=$min&amp;xop=$op'><img src='images/nukesentinel/delete.png' height='16' width='16' border='0'></a></td>";


Replace with:
Code:
  echo "<td align='center'><a href='".$admin_file.".php?op=ABTrackedDeleteUserIP&amp;user_id=$user_id&amp;ip_addr=$lipaddr&amp;min=$min&amp;xop=$op'><img src='images/nukesentinel/delete.png' height='16' width='16' border='0'></a>&nbsp;";

  echo "<a href='".$admin_file.".php?op=ABTrackedAdd&amp;tid=$tid&amp;min=$min&amp;column=$column&amp;direction=$direction&amp;showmodule=$showmodule' target='_blank'><img src='images/nukesentinel/block.png' height='16' width='16' alt='"._AB_BLOCK."' title='"._AB_BLOCK."' border='0'></a></td>";


I think it makes it a bit easier to ban bad guys.

_________________
Nuke-Evolution
phpBB-Evolution / phpBB-Evolution Blog 
View user's profile Send private message
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6432

PostPosted: Fri Sep 30, 2005 9:39 pm Reply with quote

Nice tweak, Technocrat - thanks!

_________________
I search, therefore I exist...
nukeSEO - nukeFEED - nukePIE - nukeSPAM - nukeWYSIWYG
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm) Enhancement Requests

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©