Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
nextgen
Worker
Worker



Joined: Sep 28, 2006
Posts: 241

PostPosted: Wed Aug 17, 2022 1:05 pm Reply with quote

In the \includes\nukesentinel.php on line 664 i am getting the error

Deprecated: stristr(): Non-string needles will be interpreted as strings in the future.

Here is the function.

Code:


function get_referer() {
   global $nuke_config;
   if(get_env('HTTP_REFERER')) {
    if(stristr(get_env('HTTP_REFERER'), $nuke_config['nukeurl'])) {
      return 'on site';
   } elseif(stristr(get_env('HTTP_REFERER'), 'http://localhost') || stristr(get_env('HTTP_REFERER'), 'http://127.0.') || stristr(get_env('HTTP_REFERER'), 'http://192.168.') || stristr(get_env('HTTP_REFERER'), 'http://10.') || stristr(get_env('HTTP_REFERER'), 'file://')) {
         return 'local link';
      }
      return get_env('HTTP_REFERER');
   }
   return 'none';
}

_________________
alterednuke.com Your source for Ravennuke themes. 
View user's profile Send private message Send e-mail
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1717

PostPosted: Thu Aug 18, 2022 1:59 pm Reply with quote

Why you are using the sentinel when you are working locally?

FYI, get_env() returns false, when it is empty. In this case there doesn't exists a string. So is the question, why your web-server returns no refferer information?

_________________
Github: RavenNuke 
View user's profile Send private message
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm



Joined: Aug 13, 2009
Posts: 1085

PostPosted: Sat Aug 20, 2022 1:43 pm Reply with quote

This is happening ONLY when it is local. There is no error. Desactivate sentinel
 
View user's profile Send private message
neralex







PostPosted: Tue Aug 23, 2022 11:11 am Reply with quote

Yes correct, this issue is based on a the local server-configuration, which isn't needed in this case. Disable the Sentinel, when you are working locally.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

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 ©