Viewing File: /home/cienp/public_html/portal/includes/erro_logn.php

<?
	$ip   = $_SERVER['REMOTE_ADDR'];
	$host = gethostbyaddr($_SERVER['REMOTE_ADDR']);
	$hour = date("H:i:s");
	$date = date("d/m/Y");
	
	$message = "
			<html>
			<head>
			<style TYPE='text/css'>
			A {text-decoration: none} 
			A:link {color:'#333333';} 
			A:visited {color:'#333333';}
			A:hover {color:'#000000';} 
			margin-left: 0px;
	        margin-top: 0px;
			.borda {
			border: 1px solid #333333;
			}
			</style>
			</head>
			<body>
			<table width='530' align='left' cellpadding='0' cellspacing='0'>
			<tr>
			<td>&nbsp;</td>
			<td width='514'><br>
			<p align='left'><font color='#333333' size='2' face='Arial, Verdana, Helvetica'><strong>
			Login: </strong><font color='#000000'>$_POST[login]</font><br>
			<strong>Senha: </strong><font color='#000000'>$v_senha</font><br>
			<strong>IP: </strong><font color='#000000'>$ip</font><br>
			<strong>Host: </strong><font color='#000000'>$host</font>
			</font></p>
			<p align='left'><font size='1' face='Verdana, Arial, Helvetica, sans-serif'>
			mensagem enviada: $hour do dia $date</font></p>
			<br>
			</td>
			<td>&nbsp;</td>
			</tr>
			<tr>
			<td> 
			<div align='left'></div></td>
			</tr>
			</table>
			</body>
			</html>
			";

	$from    = "comercial@commix.com.br";
	$subject = "Erro ao loga-se - $nm_site";

	$headers = "From: Segurança Commix<$from>\nContent-type: text/html\n";			
	$headers .= "Reply-To: Segurança Commix<$from>\n";
	$headers .= "Bcc:";

	ini_set("SMTP","localhost");
	ini_set("sendmail_from",$from);
	
	$to = "comercial@commix.com.br";
//	$to = "aldo@commix.com.br";
	
	$success = @mail($to, $subject, $message, $headers);	
?>
Back to Directory File Manager