Subversion Repositories ALCASAR

Rev

Rev 3026 | Rev 3038 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3026 Rev 3037
Line 48... Line 48...
48
	}
48
	}
49
}
49
}
50
fclose($file_conf);
50
fclose($file_conf);
51
$whiteDomain	= explode(" ", strtolower(trim($conf['MAIL_WHITEDOMAIN'])));
51
$whiteDomain	= explode(" ", strtolower(trim($conf['MAIL_WHITEDOMAIN'])));
52
$adminMail		= $conf['MAIL_ADMIN'];
52
$adminMail		= $conf['MAIL_ADMIN'];
-
 
53
$typeMail		= $conf['MAIL_TYPE'];
-
 
54
$fromMail		= $conf['MAIL_ADDR'];
53
 
55
 
54
/****************************************
56
/****************************************
55
*			Choice of language			*
57
*			Choice of language			*
56
*****************************************/
58
*****************************************/
57
$Language = 'en';
59
$Language = 'en';
Line 307... Line 309...
307
				$ip = $_SERVER['REMOTE_ADDR'];
309
				$ip = $_SERVER['REMOTE_ADDR'];
308
				$time = date_create('now')->format('d-m-Y H:i:s');
310
				$time = date_create('now')->format('d-m-Y H:i:s');
309
				$domain = $conf["DOMAIN"];
311
				$domain = $conf["DOMAIN"];
310
				$hostname  = $conf["HOSTNAME"];
312
				$hostname  = $conf["HOSTNAME"];
311
				$to = $Fmail;
313
				$to = $Fmail;
-
 
314
				if ($typeMail == "3") { // using an existing @mail
-
 
315
					$from = $fromMail; }
-
 
316
				else {
312
				$from = "administrator";
317
					$from = "administrator";
-
 
318
				}
313
				$subject = $l_subject;
319
				$subject = $l_subject;
314
				$message = "<!DOCTYPE html>
320
				$message = "<!DOCTYPE html>
315
						<html>
321
						<html>
316
							<head>	
322
							<head>	
317
								<meta charset=\"UTF-8\" />
323
								<meta charset=\"UTF-8\" />
Line 331... Line 337...
331
				$header = "From: $from\n";
337
				$header = "From: $from\n";
332
				$header .= "MIME-Version: 1.0\n";
338
				$header .= "MIME-Version: 1.0\n";
333
				$header .= "Content-type: text/html; charset=utf-8\n";
339
				$header .= "Content-type: text/html; charset=utf-8\n";
334
				if(mail($to, $subject, $message, $header)){
340
				if(mail($to, $subject, $message, $header)){
335
					echo "<center>success : <b>Vous y êtes presque ! $l_user '$login' $l_created</b></center><br />";
341
					echo "<center>success : <b>Vous y êtes presque ! $l_user '$login' $l_created</b></center><br />";
336
					echo "<center>success : <b>Un email contenant vos informations de connexion vient de vous être envoyé.</b></center><br />";
342
					echo "<center>success : <b>Un email contenant vos informations de connexion vient d'être envoyé.</b></center><br />";
-
 
343
					echo "Info : to = $to ; header = $header<br />";
337
					// Creation of the email for the administrator (if enabled)
344
					// Creation of the email for the administrator (if enabled)
338
					if (!empty($adminMail)){
345
					if (!empty($adminMail)){
339
						$to = $adminMail;
346
						$to = $adminMail;
340
						$from = "administrator";
347
						$from = "administrator";
341
						$subject = "New registration on ALCASAR";
348
						$subject = "New registration on ALCASAR";