Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™ Bug Reports
Author Message
64bitguy
The Mouse Is Extension Of Arm


Joined: Mar 06, 2004
Posts: 1159
Location: Sanbornton, NH USA

PostPosted: Sun Oct 17, 2004 4:23 am Reply with quote

Hi

I think I inherited this problem for 2.0.2, but here goes anyway.

Since installing NukeSentinel on my site, all logged-in users have seen the banned "reason" regardless of what I set things to in the configuration screen.

This problem seems to have carried over with my now fully functional 2.1.0 installation.

My question:
What do I need to check (or change) to ensure that the blocked reasons only appear in the scrolling banned IP block for persons logged in as administrators?

Also, I'm having this same difficulty in reference to the DNS lookup information from the block... I just can't shut if off regardless of NukeSentinel Administration menu settings.

I'm running 7.4 Patched.

Ideas?
Thanks!

_________________
Steph Benoit Only registered users can see links on this board! Get registered or login!
1CMS, 100% Section 508 and W3C XHTML/CSS Compliant (Truly)

Last edited by 64bitguy on Sun Oct 17, 2004 10:25 pm; edited 1 time in total 
View user's profile Send private message Visit poster's website
BobMarion
Former Admin in Good Standing


Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)

PostPosted: Sun Oct 17, 2004 5:05 pm Reply with quote

First let's handle the email lookup. In your database browse the nuke_nsnst_blockers table. Check the column of email_lookup and set them to 0 and see if that doesn't turn them off.

Next browse the nuke_nsnst_config table and check to see what it has the display_reason set at. 0 = No-one, 1 = admins only, 2 = members, and 3 = everyone.

_________________
Bob Marion
Codito Ergo Sum
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
64bitguy
PostPosted: Sun Oct 17, 2004 6:55 pm Reply with quote

Hi Bob

All email_lookup were already set 0 (I never turned this on due to issues reported when NukeSentinel was first released)

display_reason also already set to 0 (I've tried everything to try to turn this off, but for the life of me can't figure out what's going on... pondering if it is block coding permissions)

I still have items linking and displaying reasons in the block for any registered user. Anonymous users only see the numbers (no dns lookup and no reasons)

Other Ideas?
 
64bitguy
PostPosted: Sun Oct 17, 2004 8:35 pm Reply with quote

Update: I don't know why (I'm supposing purposely)... but to date, I've never seen tracking reasons or DNS lookup enabled when logged in here at Raven's.

For some reason, tonight I am. This must be a new change since even after seeing the 2.1.0 final scrolling block here, I never saw this stuff until the last hour or so....

Just a heads-up.... I'm assuming maybe this is the case because folks are working on addressing my problem, but thought I should give a heads-up about it in case it's not.

Thanks
 
BobMarion
PostPosted: Sun Oct 17, 2004 9:55 pm Reply with quote

This is a long post but it has the two corrected blocks in it.

Corrected block-Sentinel.php:
Code:
<?php


/********************************************************/
/* NukeSentinel(tm) Universal                           */
/* By: NukeScripts Network (webmaster@nukescripts.net)  */
/* http://www.nukescripts.net                           */
/* Copyright © 2000-2004 by NukeScripts Network         */
/********************************************************/
/* CLIKE, UNION, & Email elements from HackAlert        */
/* HTTPAuth element                                     */
/* By: Raven PHP Scripts                                */
/* http://www.ravenphpscripts.com                       */
/* Copyright © 2004 by Raven PHP Scripts                */
/********************************************************/
/* Scripting Blocker elements                           */
/* By: ChatServ                                         */
/* http://www.nukeresources.com                         */
/* Copyright © 2004 by Nuke Resources                   */
/********************************************************/

if (eregi("block-Sentinel.php",$_SERVER['PHP_SELF'])) {
    Header("Location: ../index.php");
    die();
}
global $prefix, $db, $user, $admin, $ab_config;
$content = "";
$result = $db->sql_query("SELECT ip_addr, reason FROM $prefix"._nsnst_blocked_ips." ORDER BY date DESC LIMIT 10");
while (list($ip_addr, $ip_reason) = $db->sql_fetchrow($result)) {
  if((is_admin($admin) AND $ab_config['display_link']==1) OR ((is_user($user) OR is_admin($admin)) AND $ab_config['display_link']==2) OR $ab_config['display_link']==3) {
    $lookupip = str_replace("*", "0", $ip_addr);
    $content .= "<b><big>&middot;</big></b>&nbsp;<a href=\"".$ab_config['lookup_link']."$lookupip\" target=\"_blank\">$ip_addr</a>\n";
  } else {
    $content .= "<b><big>&middot;</big></b>&nbsp;$ip_addr\n";
  }
  if((is_admin($admin) AND $ab_config['display_link']==1) OR ((is_user($user) OR is_admin($admin)) AND $ab_config['display_link']==2) OR $ab_config['display_link']==3) {
    $result2 = $db->sql_query("SELECT reason FROM $prefix"._nsnst_blockers." WHERE blocker='$ip_reason'");
    list($reason) = $db->sql_fetchrow($result2);
    $reason = str_replace("Abuse-","",$reason);
    $content .= "&nbsp;-&nbsp;$reason\n";
  }
  $content .= "<br />\n";
}
$content .= "<hr><center><a href=\"http://www.nukescripts.net\">"._AB_NUKESENTINEL." ".$ab_config['version_number']."</a></center>\n";

?>


Corrected block-ScrollingSentinel.php:
Code:
<?php


if (eregi("block-ScrollingSentinel.php",$_SERVER['PHP_SELF'])) {
    Header("Location: ../index.php");
    die();
}
global $prefix, $db, $user, $admin, $ab_config;
$usemarquee = 1;
$scrolldirection = "Down";
$content = "";
$content .= "<table border=1><tr><td ALIGN=\"center\" VALIGN=\"top\"> This is the list of Sentinel banned IP addresses. </td></tr></table><hr>\n";
$content .= "<Marquee Behavior=\"Scroll\" Direction=\"$scrolldirection\" Height=\"150\" ScrollAmount=\"1\" ScrollDelay=\"75\" onMouseOver=\"this.stop()\" onMouseOut=\"this.start()\"><br>";
$result = $db->sql_query("SELECT ip_addr, reason FROM $prefix"._nsnst_blocked_ips." ORDER BY date DESC LIMIT 30");
while (list($ip_addr, $ip_reason) = $db->sql_fetchrow($result)) {
  if((is_admin($admin) AND $ab_config['display_link']==1) OR ((is_user($user) OR is_admin($admin)) AND $ab_config['display_link']==2) OR $ab_config['display_link']==3) {
    $lookupip = str_replace("*", "0", $ip_addr);
    $content .= "<b><big>&middot;</big></b>&nbsp;<a href=\"".$ab_config['lookup_link']."$lookupip\" target=\"_blank\">$ip_addr</a>\n";
  } else {
    $content .= "<b><big>&middot;</big></b>&nbsp;$ip_addr\n";
  }
  if((is_admin($admin) AND $ab_config['display_link']==1) OR ((is_user($user) OR is_admin($admin)) AND $ab_config['display_link']==2) OR $ab_config['display_link']==3) {
    $result2 = $db->sql_query("SELECT reason FROM $prefix"._nsnst_blockers." WHERE blocker='$ip_reason'");
    list($reason) = $db->sql_fetchrow($result2);
    $reason = str_replace("Abuse-","",$reason);
    $content .= "&nbsp;-&nbsp;$reason\n";
  }
  $content .= "<br />\n";
}
$content .= "</Marquee><br>";
$content .= "<hr><center><a href=\"http://www.nukescripts.net\" target=\"_blank\">"._AB_NUKESENTINEL." ".$ab_config['version_number']."</a></center>\n";

?>
 
64bitguy
PostPosted: Sun Oct 17, 2004 10:24 pm Reply with quote

That did it... Problem solved.

Smile

Much Thanks!
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™ Bug Reports

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 ©