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™
Author Message
Susann
Moderator


Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Sun Aug 02, 2009 5:18 pm Reply with quote

I´ve just changed my host and instead of the fields for .htaccess .staccess etc. I get the message within the Sentinel administration: This function requires Apache to work.
Same like here:http://www.ravenphpscripts.com/postt13834.html


I´ve fixed this already and it works.
Now I need to modify all the blocker files where I would like to write to .htaccess because there is also no field or option to use .htaccess.
Maybe there is an other method but I will just change it directly in the files.
I changed:

admin/modules/nukesentinel/ABConfigAdmin.php



Code:
if(stristr($_SERVER['SERVER_SOFTWARE'], "Apache") AND $ab_config['htaccess_path'] > "") {

  echo '<select name="xblocker_row[htaccess]">'."\n";
  $sel1 = $sel2 = "";
  if($blocker_row['htaccess']==0) { $sel1 = ' selected="selected"'; } else { $sel2 = ' selected="selected"'; }
  echo '<option value="0"'.$sel1.'>'._AB_NO.'</option>'."\n";
  echo '<option value="1"'.$sel2.'>'._AB_YES.'</option>'."\n";
  echo '</select>'."\n";
} else {
  echo '<strong>'._AB_HTACCESSFAILED.'</strong><input type="hidden" name="xblocker_row[htaccess]" value="0" />';
}

to:

Code:
echo '<select name="xblocker_row[htaccess]">'."\n";

  $sel1 = $sel2 = "";
  if($blocker_row['htaccess']==0) { $sel1 = ' selected="selected"'; } else { $sel2 = ' selected="selected"'; }
  echo '<option value="0"'.$sel1.'>'._AB_NO.'</option>'."\n";
  echo '<option value="1"'.$sel2.'>'._AB_YES.'</option>'."\n";
  echo '</select>'."\n";


Can someone confirm this is correct ? It works and the banned IP was written to the .htaccess.
 
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Sun Aug 02, 2009 7:04 pm Reply with quote

The think Raven is your man Smile for this one.

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
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™

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 ©