View Single Post
  #3  
Old 05 Dec 2019, 12:08
cronjob78 cronjob78 is offline
 
Join Date: Mar 2005
Thanks for the reply Dave. I have solved the problem.


For years, using this code in the plugin window, had worked fine for me:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and I then included $var in my template, where I wanted the content of my PHP file to appear.
However, when you try to access the $_SERVER['HTTP_USER_AGENT'] in that PHP file it will return the results of the server's IP rather than that of the client IP.

However, if you use this code for your plugin instead:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

$_SERVER['HTTP_USER_AGENT'] will return the user's IP correctly.
Reply With Quote