Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
spawns
/
ptinvestorvisa
:
submitCtC.php__c4e1cbd
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php $nome = $_POST['Nome'];$Telefone = $_POST['Telefone'];$origin = $_POST['Origin'];$ipaddress = $_POST['Ipaddress']; $dbuser = "ptgolden_diogo"; $dbpass = "DiogoCamara2017!"; $dbname = "ptgolden_contacts"; $from = "Investor Visa <contact@investorvisa.ptgoldenvisa.com>"; $to = "contact@investorvisa.ptgoldenvisa.com"; $subject = ucwords(strtolower($nome)).' wants to receive phone call (ENGLISH) ( IV1 ).'; $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 = 'contact@investorvisa.ptgoldenvisa.com'; $notific_subject = ucwords(strtolower($nome)).' Call Client ( IV1 ) -> '.$db_nome; $notific_message = '<p>Hello.</p><p>We have just received a call request from a client.</p><p>Nome -> '.$nome.'.<br>telefone -> '.$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 contact@investorvisa.ptgoldenvisa.com');mail($notific_to, $notific_subject, $notific_message, $xheaders,'-f contact@investorvisa.ptgoldenvisa.com');echo $html; ?>