Ejemplo n.º 1
0
<?php

if (isset($_GET['action']) && $_GET['action'] == 'sendmail') {
    require_once CAKEPHP . DS . 'inflector.php';
    require_once KOEZION . DS . 'object.php';
    require_once KOEZION . DS . 'model.php';
    require_once MODELS . DS . 'website.php';
    $message = 'Adresse : ';
    $websiteModel = new Website();
    $website = $websiteModel->findFirst(array('conditions' => array('online' => 1)));
    $urls = explode("\n", $website['url']);
    foreach ($urls as $url) {
        $message .= trim($url) . ", ";
    }
    $message = substr($message, 0, strlen($message) - 2) . '.';
    $message .= "\n" . 'Penser a demander la description au webmaster pour insertion dans le portfolio';
    $to = '*****@*****.**';
    $subject = '..:: Nouveau Site KoéZion Installé ::..';
    $headers = 'From: contact@koezion-cms.com' . "\r\n" . 'Reply-To: contact@koezion-cms.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion();
    $checkSendMail = @mail($to, $subject, $message, $headers);
}
?>
<div id="right">		
	<div id="main">		
		<div class="box">
			<div class="title">
				<h2>FIN DE L'INSTALLATION</h2>
			</div>			
			<div class="content nopadding">	
				<div class="system succes">
					<b>Bravo!!!</b><br />