Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
spawns
/
ptinvestorvisa
:
submit_info.php__c4e1cbd
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php ini_set('display_errors', 'Off'); $nome = $_POST['Nome'];$email = $_POST['email'];$Telefone = $_POST['Telefone'];$msg = $_POST['msg'];$ipaddress = $_POST['ebook_ipaddress']; $origin = $_POST['origin']; $dbuser = "ptgolden_diogo"; $dbpass = "DiogoCamara2017!"; $dbname = "ptgolden_contacts"; $from = "PTInvestor Visa <contact@ptinvestorvisa.com>"; $to = "contact@ptinvestorvisa.com"; $subject = ucwords(strtolower($nome)).' Message English Visa ( PTIV1 )'; $message = '<p>Dear All, </p> <p><strong>'.$nome.'</strong> needs help and needs you to reply to</p> <p>Details:</p> <p><strong>Name</strong>: '.$nome.'<br /> <strong>Email</strong>: '. strtolower($email).'<br /> <strong>Phone</strong>: '.$Telefone.'<br /> <strong>Message</strong>: '.nl2br($msg).'<br /> <br /> <strong>D</p>'; $notific_to = "contact@ptinvestorvisa.com"; $notific_subject = ucwords(strtolower($email)).' - New request for information English'; $notific_message = '<p>Hello.</p><p>A new request for information just entered the data base'.$db_nome.'.</p><p>Nome -> '.$nome.'.<br>telefone -> '.$Telefone.'.<br>Email -> '.strtolower($email).'.<br>Mensagem -> '.nl2br($msg).'.<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; //infos (id, nome, email, telefone, msg, data) $query2 = @ mysql_query("INSERT INTO `ptgolden_contacts`.`infos` (`nome` ,`email` ,`telefone` ,`msg` ,`data`, `origin`,`ipaddress`) VALUES ('".$nome."', '".$email."', '".$Telefone."', '".$msg."', '".date("Y-m-d H:i:s",$timeAfterOneHour)."','".$origin."', '".$ipaddress."');"); $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@ptinvestorvisa.com');mail($notific_to, $notific_subject, $notific_message, $xheaders,'-f contact@ptinvestorvisa.com');header('location: from_info_ok.php'); ?>