Jump to content

Adding PHP function to IPS theme


realspezz
 Share

Go to solution Solved by opentype,

Recommended Posts

Does anyone have any experience regarding adding PHP to a theme?
I was trying to add the code to my theme in either the globalTemplate or navbar section. I was getting an error when doing so, I tried using the double curly brackets; but this caused the same error. 

If anyone could help with this matter, it would be a life saver!

<?php if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP'];?>

image.png.ee02e26316dd541622bf10930c626118.png

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...