Beispiel #1
0
<?php

header("Content-Type: text/html; charset=utf-8");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
require_once '../config.php';
$objTrad = new Traduction();
//var dataString='name='+name+'&email='+email+'&msg='+msg;
$err = "";
if (strpos($_POST['email'], "@") === false) {
    $err = "err|" . $objTrad->getOne('email_incorrect');
} else {
    @(list($user, $domaine) = split("@", $_POST['email'], 2));
    if (!checkdnsrr($domaine, "MX")) {
        $err = "err|" . $objTrad->getOne('email_incorrect');
    } else {
        $to = 'Virginie FAURE <*****@*****.**>';
        $from = stripslashes($_POST['name']) . ' <' . $_POST['email'] . '>';
        $txt_sujet = $objTrad->getOne('sujet_email');
        //subject and the html message
        $headers = "MIME-Version: 1.0" . "\r\n";
        $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
        $headers .= 'From: ' . $from . "\r\n";
        $subject = 'Webfolio Virginie FAURE : Message de ' . stripslashes($_POST['name']);
        $message = '  
			<!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">  
Beispiel #2
0
?>
px;" /></a></div>
	<div class="fancyboxProjectRight">
		<div class="fancyboxProjectTitle"><?php 
echo $arrProject['project_name'];
?>
</div>
		<div class="fancyboxProjectDescription"><?php 
echo $arrProject['project_description'];
?>
</div>
		
		<div class="clear"></div>
		
		<div class="fancyboxProjectTitle"><?php 
echo $objTrad->getOne('work_done');
?>
</div>
		<div class="fancyboxProjectDescription"><?php 
echo $arrProject['project_work'];
?>
			<div class="clear"></div>
		</div>
		
		<div class="fancyboxProjectTitle"><?php 
echo $objTrad->getOne('project_url');
?>
</div>
		<div class="fancyboxProjectDescription"><a href="<?php 
echo $arrProject['project_url'];
?>