PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
technocrat
Involved
Involved


Joined: Jul 07, 2005
Posts: 492

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

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.
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 4887

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

Nice tweak, Technocrat - thanks!
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum