if ($name=="")
{
?>
}
else
{
?>
} ?>
|
Si quieres imprimir tus propios diseños y comercializarlos
de la manera que tú elijas, llena los siguientes datos y pronto nos comunicaremos contigo. if(isset($_POST['enviar'])){ $clave= substr(md5(uniqid(rand())),0,100); $archivo = $_FILES["archivo"]['name']; if (($archivo=="" )) { $sendTo = "hola@urbanhangers.com,holaurbanhangers@gmail.com"; $subject = "QUIERO IMPRIMIR MIS DISEÑOS"; $headers = "From: " . $_POST["mail"]; $headers .= "<" . $_POST["mail"] . ">\r\n"; $headers .= "Reply-To: " . $_POST["mail"]; $message ="NOMBRE: " . $_POST["nombre"] . "\n"; mail($sendTo, $subject, $message, $headers); echo ''; echo ""; } else { $auxilio=0; $auxilio2=0; $whitelist = array('jpg', 'png', 'gif', 'jpeg', 'pdf'); //example of white list $backlist = array('php', 'php3', 'php4', 'phtml','exe','txt','html'); //example of black list if((in_array(end(explode('.', $archivo)), $whitelist)) ) { $prefijo = substr(md5(uniqid(rand())),0,6); $archf = $prefijo.'_'.$archivo; $destino = "admin/files/".$prefijo."_".$archivo; $auxilio=1; } if ((copy($_FILES['archivo']['tmp_name'],$destino)) ) { $opcion=1; $sendTo = "hola@urbanhangers.com,holaurbanhangers@gmail.com"; $subject = "QUIERO IMPRIMIR MIS DISEÑOS"; $headers = "From: " . $_POST["mail"]; $headers .= "<" . $_POST["mail"] . ">\r\n"; $headers .= "Reply-To: " . $_POST["mail"]; $message ="NOMBRE: " . $_POST["nombre"] . "\n"; if ($auxilio==1) { $message .="FOTO: " ."http://urbanhangers.com/admin/files/".$archf." \n"; } mail($sendTo, $subject, $message, $headers); } if(($auxilio==1)) { echo ''; echo ""; } if(($auxilio==0)) { echo ''; echo ""; } } } ?> |
|
|