Subversion Repositories ALCASAR

Rev

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

Rev 3038 Rev 3039
Line 40... Line 40...
40
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
40
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
41
	$Langue	  = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
41
	$Langue	  = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
42
	$Language = strtolower(substr(chop($Langue[0]), 0, 2));
42
	$Language = strtolower(substr(chop($Langue[0]), 0, 2));
43
}
43
}
44
if ($Language === 'fr') {
44
if ($Language === 'fr') {
45
	$l_mail_title			= "Inscription par Email";
45
	$l_mail_title			= "Inscription par e-mail";
46
	$l_mail_registration	= "Activer l'inscription par Email :";
46
	$l_mail_registration	= "Activer l'inscription par e-mail :";
47
	$l_mail_choice			= "Quel type de service mail utiliser ?";
47
	$l_mail_choice			= "Quel type de service e-mail utiliser ?";
48
	$l_use_internal_server	= "Utiliser le serveur de messagerie interne";
48
	$l_use_internal_server	= "Utiliser le serveur de messagerie interne";
49
	$l_use_external_server	= "Relayer vers un serveur de messagerie externe";
49
	$l_use_external_server	= "Relayer vers un serveur de messagerie externe";
50
	$l_use_email_address	= "Utiliser une adresse mail";
50
	$l_use_email_address	= "Utiliser une adresse e-mail déjà fonctionnelle";
51
	$l_email_address		= "Adresse mail utilisée pour l'envoi de mail";
51
	$l_email_address		= "Adresse e-mail utilisée pour l'envoi de mail";
52
	$l_email_password		= "Mot de passe";
52
	$l_email_password		= "Mot de passe";
53
	$l_email_password_confirm	= "Confirmez le mot de passe";
53
	$l_email_password_confirm	= "Confirmez le mot de passe";
54
	$l_mail_service			= "Choisissez le service de messagerie";
54
	$l_mail_service			= "Choisissez le service de messagerie";
55
	$l_mail_smtp_ip			= "Adresse IP ou nom du serveur SMTP";
55
	$l_mail_smtp_ip			= "Adresse IP ou nom du serveur SMTP";
56
	$l_mail_smtp_port		= "Port d'écoute du serveur SMTP";
56
	$l_mail_smtp_port		= "Port d'écoute du serveur SMTP";
57
	$l_admin_log			= "Avertissement de l'administratateur";
57
	$l_admin_log			= "Avertissement de l'administratateur";
58
	$l_mail_admin			= "Adresse Email de l'administrateur";
58
	$l_mail_admin			= "Adresse e-mail de l'administrateur";
59
	$l_whitelist_domain		= "Noms de domaine autorisés (whitelist)";
59
	$l_whitelist_domain		= "Noms de domaine autorisés (whitelist)";
60
	$l_mail_YES				= "OUI";
60
	$l_mail_YES				= "OUI";
61
	$l_mail_NO				= "NON";
61
	$l_mail_NO				= "NON";
62
	$l_mail_submit			= "Enregistrer";
62
	$l_mail_submit			= "Enregistrer";
63
} else if($Language == 'es') {
63
} else if($Language == 'es') {
64
	$l_mail_title			= "Registro por email";
64
	$l_mail_title			= "Registro por e-mail";
65
	$l_mail_registration	= "Activar el registro por correo electrónico :";
65
	$l_mail_registration	= "Activar el registro por correo electrónico :";
66
	$l_mail_choice			= "Qué tipo de servicio de correo utiliza?";
66
	$l_mail_choice			= "Qué tipo de servicio de correo utiliza?";
67
	$l_use_internal_server	= "Utilizar el servidor de correo interno";
67
	$l_use_internal_server	= "Utilizar el servidor de correo interno";
68
	$l_use_external_server	= "Retransmisión a un servidor de correo externo";
68
	$l_use_external_server	= "Retransmisión a un servidor de correo externo";
69
	$l_use_email_address	= "Utilizar una dirección de correo electrónico";
69
	$l_use_email_address	= "Utilizar una dirección de correo electrónico";
Line 78... Line 78...
78
	$l_whitelist_domain		= "Nombres de dominio autorizados (lista blanca)";
78
	$l_whitelist_domain		= "Nombres de dominio autorizados (lista blanca)";
79
	$l_mail_YES				= "SI";
79
	$l_mail_YES				= "SI";
80
	$l_mail_NO				= "NO";
80
	$l_mail_NO				= "NO";
81
	$l_mail_submit			= "SI";
81
	$l_mail_submit			= "SI";
82
} else {
82
} else {
83
	$l_mail_title			= "Registration by Email";
83
	$l_mail_title			= "Registration by e-mail";
84
	$l_mail_registration	= "Enable registration by Email :";
84
	$l_mail_registration	= "Enable registration by e-mail :";
85
	$l_mail_choice			= "What type of mail service use ?";
85
	$l_mail_choice			= "What type of e-mail service use ?";
86
	$l_use_internal_server	= "Use the internal mail server";
86
	$l_use_internal_server	= "Use the internal mail server";
87
	$l_use_external_server	= "Relay to an external mail server";
87
	$l_use_external_server	= "Relay to an external mail server";
88
	$l_use_email_address	= "Use an email address";
88
	$l_use_email_address	= "Use an email address";
89
	$l_email_address		= "Email address used for sending mail";
89
	$l_email_address		= "Email address used for sending mail";
90
	$l_email_password		= "Password";
90
	$l_email_password		= "Password";
Line 101... Line 101...
101
}
101
}
102
 
102
 
103
// Mail configuration params
103
// Mail configuration params
104
$mail_status        	= $conf['MAIL'];
104
$mail_status        	= $conf['MAIL'];
105
$mail_type				= $conf['MAIL_TYPE'];
105
$mail_type				= $conf['MAIL_TYPE'];
106
$mail_address			= $conf['MAIL_ADDR'];
-
 
107
$mail_smtp_ip			= $conf['MAIL_SMTP_IP'];
106
$mail_smtp_ip			= $conf['MAIL_SMTP_IP'];
108
$mail_smtp_port			= $conf['MAIL_SMTP_PORT'];
107
$mail_smtp_port			= $conf['MAIL_SMTP_PORT'];
-
 
108
$mail_address			= $conf['MAIL_ADDR'];
109
$mail_password_mail 	= "";
109
$mail_mdp			 	= "";
110
$mail_password_mail_2	= "";
110
$mail_mdp2				= "";
111
$mail_admin				= $conf['MAIL_ADMIN'];
111
$mail_admin				= $conf['MAIL_ADMIN'];
112
$mail_whitelist			= $conf['MAIL_WHITEDOMAIN'];
112
$mail_whitelist			= $conf['MAIL_WHITEDOMAIN'];
113
 
113
 
114
if(isset($_POST['submit'])){
114
if(isset($_POST['submit'])){
115
	if($_POST['mail_enable'] === 'on')
115
	if($_POST['mail_enable'] === 'on')
Line 312... Line 312...
312
					<dl>
312
					<dl>
313
						<dt>
313
						<dt>
314
							<label for="mail_address"><?= $l_email_address ?></label><br>
314
							<label for="mail_address"><?= $l_email_address ?></label><br>
315
						</dt>
315
						</dt>
316
						<dd>
316
						<dd>
317
							<input type="text" id="mail_address" size="40" name="mail_address" value="<?= $mail_address ?>" oninput="onMailStatusChange();"> 
317
							<input type="text" id="mail_address" size="40" name="mail_address" value="<?= $mail_address ?>" oninput="onMailStatusChange();">
318
						</dd>
318
						</dd>
319
					</dl>
319
					</dl>
320
					<dl>
320
					<dl>
321
						<dt>
321
						<dt>
322
							<label for="mail_mdp"><?= $l_email_password ?></label><br>
322
							<label for="mail_mdp"><?= $l_email_password ?></label><br>
323
						</dt>
323
						</dt>
324
						<dd>
324
						<dd>
325
							<input type="password" id="mail_mdp" size="40" name="mail_mdp" value="<?= $mail_password_mail ?>" oninput="onMailStatusChange();"> 
325
							<input type="password" id="mail_mdp" size="40" name="mail_mdp" value="<?= $mail_mdp ?>" oninput="onMailStatusChange();">
326
						</dd>
326
						</dd>
327
					</dl>
327
					</dl>
328
					<dl>
328
					<dl>
329
						<dt>
329
						<dt>
330
							<label for="mail_mdp2"><?= $l_email_password_confirm ?></label><br>
330
							<label for="mail_mdp2"><?= $l_email_password_confirm ?></label><br>
331
						</dt>
331
						</dt>
332
						<dd>
332
						<dd>
333
							<input type="password" id="mail_mdp2" size="40" name="mail_mdp2" value="<?= $mail_password_mail_2 ?>" oninput="onMailStatusChange();"> 
333
							<input type="password" id="mail_mdp2" size="40" name="mail_mdp2" value="<?= $mail_mdp2 ?>" oninput="onMailStatusChange();">
334
						</dd>
334
						</dd>
335
					</dl>
335
					</dl>
336
					<dl>
336
					<dl>
337
						<dt>
337
						<dt>
338
							<label for="mail_server"><?= $l_mail_service ?></label><br>
338
							<label for="mail_server"><?= $l_mail_service ?></label><br>
Line 354... Line 354...
354
					<dl>
354
					<dl>
355
						<dt>
355
						<dt>
356
							<label for="mail_smtp_ip"><?= $l_mail_smtp_ip ?></label><br>
356
							<label for="mail_smtp_ip"><?= $l_mail_smtp_ip ?></label><br>
357
						</dt>
357
						</dt>
358
						<dd>
358
						<dd>
359
							<input type="text" id="mail_smtp_ip" size="40" name="mail_smtp_ip" value="<?= $mail_smtp_ip ?>" oninput="onMailStatusChange();"> 
359
							<input type="text" id="mail_smtp_ip" size="40" name="mail_smtp_ip" value="<?= $mail_smtp_ip ?>" oninput="onMailStatusChange();">
360
						</dd>
360
						</dd>
361
						<dt>
361
						<dt>
362
							<label for="mail_smtp_port"><?= $l_mail_smtp_port ?></label><br>
362
							<label for="mail_smtp_port"><?= $l_mail_smtp_port ?></label><br>
363
						</dt>
363
						</dt>
364
						<dd>
364
						<dd>
365
							<input type="text" id="mail_smtp_port" size="5" name="mail_smtp_port" value="<?= $mail_smtp_port ?>" oninput="onMailStatusChange();"> 
365
							<input type="text" id="mail_smtp_port" size="5" name="mail_smtp_port" value="<?= $mail_smtp_port ?>" oninput="onMailStatusChange();">
366
						</dd>
366
						</dd>
367
					</dl>
367
					</dl>
368
					<dl>
368
					<dl>
369
						<dt>
369
						<dt>
370
							<label for="admin_enable"><?= $l_admin_log ?></label>
370
							<label for="admin_enable"><?= $l_admin_log ?></label>
Line 379... Line 379...
379
					<dl>
379
					<dl>
380
						<dt>
380
						<dt>
381
							<label for="mail_admin"><?= $l_mail_admin ?></label><br>
381
							<label for="mail_admin"><?= $l_mail_admin ?></label><br>
382
						</dt>
382
						</dt>
383
						<dd>
383
						<dd>
384
							<input type="text" id="mail_admin" size="40" name="mail_admin" value="<?= $mail_admin ?>" oninput="onMailStatusChange();"> 
384
							<input type="text" id="mail_admin" size="40" name="mail_admin" value="<?= $mail_admin ?>" oninput="onMailStatusChange();">
385
						</dd>
385
						</dd>
386
					</dl>
386
					</dl>
387
					<dl>
387
					<dl>
388
						<dt>
388
						<dt>
389
							<label for="mail_whitelist"><?= $l_whitelist_domain ?></label><br>
389
							<label for="mail_whitelist"><?= $l_whitelist_domain ?></label><br>
390
						</dt>
390
						</dt>
391
						<dd>
391
						<dd>
392
							<input type="text" id="mail_whitelist" size="40" name="mail_whitelist" value="<?= $mail_whitelist ?>" oninput="onMailStatusChange();"> 
392
							<input type="text" id="mail_whitelist" size="40" name="mail_whitelist" value="<?= $mail_whitelist ?>" oninput="onMailStatusChange();">
393
						</dd>
393
						</dd>
394
					</dl>
394
					</dl>
395
					<p>
395
					<p>
396
						<input id="submit" onClick="document.getElementById('ldoverlay').style.display='block';" type="submit" value="<?= $l_mail_submit ?>" name="submit">
396
						<input id="submit" onClick="document.getElementById('ldoverlay').style.display='block';" type="submit" value="<?= $l_mail_submit ?>" name="submit">
397
					</p>
397
					</p>