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
emilacosta
New Member
New Member



Joined: Apr 07, 2009
Posts: 8
Location: Miami, FL

PostPosted: Tue Apr 07, 2009 10:06 pm Reply with quote

Hi,

Just a quick note.

One the file /includes/nukesentinel.php on line 375 there is a little bug that can cause this PHP Warning:

Code:
PHP Warning:  stristr() [<a href='function.stristr'>function.stristr</a>]: Empty delimiter in /home/host/public_html/includes/nukesentinel.php on line 375, referer: http://host/admin.php


To solve the issue you can go to the line and change this:

Code:
if(stristr($nsnst_const['user_agent'], $harvest) AND !empty($harvest))


for this:

Code:
if(!empty($harvest) AND stristr($nsnst_const['user_agent'], $harvest))


There reason why you are getting this warning is because on the conversion to array of your list of harvesters there are empty lines and the function "stristr" will not take a second parameter empty, by switching the condition you are stopping the execution of the function "stristr" if the harvest string is empty.

Thank you,

Enjoy. Wink
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Tue Apr 07, 2009 10:31 pm Reply with quote

Thank you for this. I will check it out and get back. And, welcome to the forums!
 
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) 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 ©