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) v2.6.x
Author Message
Susann
Moderator



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

PostPosted: Thu Dec 29, 2011 2:32 pm Reply with quote

I need to edit the blocker files to be able to write to .htaccess at my host.I have lost my old already edited files. AbMain is working great with some edits and for the blocker I believe this is okay?

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" />';
}




changed only the first line to:

Code:
if($ab_config['htaccess_path'] > "") {



Seems to work.


Last edited by Susann on Fri Jan 20, 2012 6:47 am; edited 1 time in total 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed Jan 18, 2012 12:19 am Reply with quote

Just saw this Susann! Yes, that should be fine.
 
View user's profile Send private message
Susann







PostPosted: Wed Jan 18, 2012 10:28 am Reply with quote

Thanks. I´ve not noticed any issues with the edited code. I just thought I would better ask before something goes wrong.
 
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm



Joined: Aug 13, 2009
Posts: 1122

PostPosted: Thu Jan 19, 2012 5:35 pm Reply with quote

Did you mean this

Search for

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


Replace with


Quote:
if($ab_config['htaccess_path'] > "") {



??
 
View user's profile Send private message
Susann







PostPosted: Fri Jan 20, 2012 6:54 am Reply with quote

unicornio I have already the corrected code.
I only edited my post. Because "i" was outside the code.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm) v2.6.x

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 ©