Subversion Repositories ALCASAR

Rev

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

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