File "submitCtC.phpb6ec0e"

Full Path: /home/ptgoldenvisa/public_html/ptvisainvestment/submitCtC.phpb6ec0e
File size: 3.11 KB
MIME-type: text/x-php
Charset: utf-8

<?php
$nome = $_POST['Nome'];$Telefone = $_POST['Telefone'];$origin = $_POST['Origin'];$ipaddress = $_POST['Ipaddress'];


	$dbuser = "ptgolden_diogo";
	$dbpass = "DiogoCamara2017!";
	$dbname = "ptgolden_contacts";
	
	$from = "Pt Visa Investment <[email protected]>";
	$to = "[email protected]";		
	$subject = ucwords(strtolower($nome)).' wants to receive phone call (ENGLISH) ( PTVI1 ).';
	
	$message = '<p>Dear All, </p>
	<p><strong>'.$nome.'</strong> requested a phone call to  <strong>'.$Telefone.'</strong></p>
	<p>Details</p>
	<p><strong>Name:</strong>: '.$nome.'<br />
	  <strong>Phone:</strong>: '.$Telefone.'<br />
	<br />
	<strong></p>';
	
	$notific_to = "[email protected]";
	$notific_subject = ucwords(strtolower($nome)).' Call Client ( PTVI1 ) -> '.$db_nome;
	$notific_message = '<p>Hello.</p><p>We have just received a call request from a client.</p><p>Nome -&gt; '.$nome.'.<br>telefone -&gt; '.$Telefone.'.<br></p>';

		
		
//
$dbhost = "localhost";$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');mysql_select_db($dbname);$todayDate = date("Y-m-d g:i a");$currentTime = time($todayDate);$hours_to_incriase = 7;$timeAfterOneHour = $currentTime+(60*$hours_to_incriase)*60;
//clicktocall (id, nome, telefone, data, email)
$query2 = mysql_query("INSERT INTO `ptgolden_contacts`.`clicktocall` (`nome` ,`telefone` ,`data`,`origin`, `ipaddress`) VALUES ('".$nome."', '".$Telefone."', '".date("Y-m-d H:i:s",$timeAfterOneHour)."','".$origin."', '".$ipaddress."');");
$html = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><style type="text/css">body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{margin:0;padding:0;}body{background: transparent;}table{border-collapse:collapse;border-spacing:0;}fieldset,img {border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}ol,ul{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6 {font-size:100%;font-weight:normal;}q:before,q:after {content:\'\';}abbr,acronym { border:0;}*:focus{outline: none;}</style></head><body><table width="369" border="0" cellspacing="0" cellpadding="0"><tr><td height="287" colspan="3" background="clicktocall_ok_ptgolden.jpg"></td></tr><tr><td background="clicktocall_bottom1.jpg" width="147"></td><td background="clicktocall_bottom2.jpg" width="180"></td><td width="42" style="background:url(clicktocall_close.jpg) no-repeat;width:42px; height:48px;cursor:pointer;" onclick=\'parent.jQuery.colorbox.close(); return false;\'></td></tr></table></body></html>';
$xheaders = "";$xheaders .= "From: $from\n";$xheaders .= "X-Sender: <$from>\n";$xheaders .= "X-Mailer: PHP\n";$xheaders .= "X-Priority: 1\n";$xheaders .= "Content-Type:text/html; charset=\"iso-8859-1\"\n";mail($to, $subject, $message, $xheaders,'-f [email protected]');mail($notific_to, $notific_subject, $notific_message, $xheaders,'-f [email protected]');echo $html;
?>