PHP configuration problem
Hello. Im having problems displaying php files on my server, when I run a php file, for example an email form it kinda run the php file but look what it posts:
'; #=========================================================== # Check for Settings #=========================================================== header("Cache-control: private"); if ($settings) if (!eregi('http://',$settings)) include($settings); if(!$settings) { if ($icons) $icons = ''; exit ($style . 'Return to Previous Page
--------------------------------------------------------------------------------
' . $icons . ' No settings were found for this form.
--------------------------------------------------------------------------------
'); } #=========================================================== # Check Referer of the Sent Information #=========================================================== if ($referer and !$refresh) { if ($icons) $icons = ''; if ($_SERVER['HTTP_REFERER'] != $referer) exit($style . 'Return to Previous Page
--------------------------------------------------------------------------------
' . $icons . ' This site is not authorized to use this script.
--------------------------------------------------------------------------------
'); } #=========================================================== # Check User's IP Address and Last Submission #=========================================================== if ($flood_control) { if ($icons) $icons = ''; $user_ip = $_SERVER['REMOTE_ADDR']; $stamp = mktime(); $secs = $interval * 60; $get=fopen($floodfile_name,'r'); flock($get, LOCK_SH); while (!feof($get)) { $tmp=fgets($get,998); if(stristr($tmp,$user_ip)){ $tmp = substr($tmp, -11); if ($stamp - $tmp < $secs) exit ($style . 'Return to Previous Page
--------------------------------------------------------------------------------
' . $icons . ' Recent entry. New submissions are allowed every ' . $interval . ' minute(s).
--------------------------------------------------------------------------------
'); } } flock($get,LOCK_UN); fclose($get); } #=========================================================== # Check if User's IP Address is Allowed #=========================================================== if ($ip_block) { $read=fopen($ipfile_name,'r'); flock($read,LOCK_SH); $data=fread($read,filesize($ipfile_name)); flock($read,LOCK_UN); fclose($read); if ($icons) $icons = ''; $user_ip = $_SERVER['REMOTE_ADDR']; if(stristr($data,$user_ip)) exit ($style . 'Return to Previous Page
--------------------------------------------------------------------------------
' . $icons . ' Your IP has been blocked.
--------------------------------------------------------------------------------
.
.
.
.
.
.
Have any idea of what is occuring? Thanks
|