Subversion Repositories ALCASAR

Rev

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

Rev 3023 Rev 3026
Line 47... Line 47...
47
		$conf[trim($tmp[0])] = trim($tmp[1]);
47
		$conf[trim($tmp[0])] = trim($tmp[1]);
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
 
53
 
53
/****************************************
54
/****************************************
54
*			Choice of language			*
55
*			Choice of language			*
55
*****************************************/
56
*****************************************/
56
$Language = 'en';
57
$Language = 'en';
Line 306... Line 307...
306
				$ip = $_SERVER['REMOTE_ADDR'];
307
				$ip = $_SERVER['REMOTE_ADDR'];
307
				$time = date_create('now')->format('d-m-Y H:i:s');
308
				$time = date_create('now')->format('d-m-Y H:i:s');
308
				$domain = $conf["DOMAIN"];
309
				$domain = $conf["DOMAIN"];
309
				$hostname  = $conf["HOSTNAME"];
310
				$hostname  = $conf["HOSTNAME"];
310
				$to = $Fmail;
311
				$to = $Fmail;
311
				$from = $conf["MAIL_ADDR"];
312
				$from = "administrator";
312
				$subject = $l_subject;
313
				$subject = $l_subject;
313
				$message = "<!DOCTYPE html>
314
				$message = "<!DOCTYPE html>
314
						<html>
315
						<html>
315
							<head>	
316
							<head>	
316
								<meta charset=\"UTF-8\" />
317
								<meta charset=\"UTF-8\" />
Line 332... Line 333...
332
				$header .= "Content-type: text/html; charset=utf-8\n";
333
				$header .= "Content-type: text/html; charset=utf-8\n";
333
				if(mail($to, $subject, $message, $header)){
334
				if(mail($to, $subject, $message, $header)){
334
					echo "<center>success : <b>Vous y êtes presque ! $l_user '$login' $l_created</b></center><br />";
335
					echo "<center>success : <b>Vous y êtes presque ! $l_user '$login' $l_created</b></center><br />";
335
					echo "<center>success : <b>Un email contenant vos informations de connexion vient de vous être envoyé.</b></center><br />";
336
					echo "<center>success : <b>Un email contenant vos informations de connexion vient de vous être envoyé.</b></center><br />";
336
					// Creation of the email for the administrator (if enabled)
337
					// Creation of the email for the administrator (if enabled)
337
					if (!empty($conf['MAIL_ADMIN']){
338
					if (!empty($adminMail)){
338
						$to = $conf['MAIL_ADMIN'];
339
						$to = $adminMail;
339
						$from = $conf["MAIL_ADDR"];
340
						$from = "administrator";
340
						$subject = "New registration on ALCASAR";
341
						$subject = "New registration on ALCASAR";
341
						$message = "<!DOCTYPE html>
342
						$message = "<!DOCTYPE html>
342
							<html>
343
							<html>
343
								<head>	
344
								<head>	
344
									<meta charset=\"UTF-8\" />
345
									<meta charset=\"UTF-8\" />