= $min) && (ip2long($ip) <= $max)) return false; } return true; } else { return false; } } function getip() { if (validip($_SERVER["HTTP_CLIENT_IP"])) { return $_SERVER["HTTP_CLIENT_IP"]; } foreach (explode(",",$_SERVER["HTTP_X_FORWARDED_FOR"]) as $ip) { if (validip(trim($ip))) { return $ip; } } if (validip($_SERVER["HTTP_X_FORWARDED"])) { return $_SERVER["HTTP_X_FORWARDED"]; } elseif (validip($_SERVER["HTTP_FORWARDED_FOR"])) { return $_SERVER["HTTP_FORWARDED_FOR"]; } elseif (validip($_SERVER["HTTP_FORWARDED"])) { return $_SERVER["HTTP_FORWARDED"]; } elseif (validip($_SERVER["HTTP_X_FORWARDED"])) { return $_SERVER["HTTP_X_FORWARDED"]; } else { return $_SERVER["REMOTE_ADDR"]; } } function Logger($msg){ $remote_port = $_SERVER['REMOTE_PORT']; $request_method = $_SERVER['REQUEST_METHOD']; $_SERVER['SCRIPT_FILENAME']; $timestamp = $_SERVER['REQUEST_TIME']; $date = date("Y-m-d"); $time = date("H:i:s,u"); $ip = $_SERVER['REMOTE_ADDR']; $hostname = gethostbyaddr($ip); $request_uri = $_SERVER['REQUEST_URI']; $sfname = $_SERVER['SCRIPT_FILENAME']; $querystr = $_SERVER['QUERY_STRING']; $this_path = getcwd(); chdir("D:\WEB\PRODUCAO\FG\WWW\SITE\hotsites\preinscricao8\rel"); $fname = "log_preinsc8_$date.txt"; $text = "[$date $time][$ip - $hostname - $getip]> $msg\r\n"; $file = fopen("$fname", "a+b"); fwrite($file, $text); fclose($file); $getip = getip(); $fname = "log_preinsc8_full.txt"; $text = "[$date $time][$ip - $hostname - $getip]> $msg\r\n"; $file = fopen("$fname", "a+b"); fwrite($file, $text); fclose($file); chdir($this_path); } Formulário

Formulário de inscrição - Pós Graduação


Nome:
RG:
CPF:
E-mail
Telefone:
Celular:
Cursos:

 Empresa em que trabalha:

 Cargo que ocupa:

 Como ficou sabendo do CEDEPE?
 
código captcha

Codigo: