Subversion Repositories ALCASAR

Rev

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

Rev 318 Rev 344
Line 32... Line 32...
32
if (isset($_GET['erreur'])&&(!($_GET['erreur']==""))) $erreur = $_GET['erreur']; else $erreur = false;//valeur de $erreur non controlée car ne sert qu'un afficher un msg.
32
if (isset($_GET['erreur'])&&(!($_GET['erreur']==""))) $erreur = $_GET['erreur']; else $erreur = false;//valeur de $erreur non controlée car ne sert qu'un afficher un msg.
33
if (isset($_GET['update'])&&($_GET['update']=="ok")) $update = true; else $update = false;
33
if (isset($_GET['update'])&&($_GET['update']=="ok")) $update = true; else $update = false;
34
 
34
 
35
$message = "";
35
$message = "";
36
if ((bool)$erreur){ 
36
if ((bool)$erreur){ 
37
	$message = "<div align=\"center\"><br />";
37
	$message = "<div align=\"center\"><br>";
38
	$message.="<strong><font color=\"red\">".$erreur."</font></strong><br />";
38
	$message.="<strong><font color=\"red\">".$erreur."</font></strong><br>";
39
	$message.="<br /></div>";
39
	$message.="<br></div>";
40
}else{
40
}else{
41
	if ($update){
41
	if ($update){
42
		$message = "<div align=\"center\"><br />";
42
		$message = "<div align=\"center\"><br>";
43
		$message.="<strong><font color=\"red\">Mise à jour des paramètres ldap réalisé avec succès</font><br /></strong>";
43
		$message.="<strong><font color=\"red\">Mise à jour des paramètres ldap réalisé avec succès</font><br></strong>";
44
		$message.="<br /></div>";
44
		$message.="<br></div>";
45
	}
45
	}
46
}
46
}
47
 
47
 
48
/****************************************************************
48
/****************************************************************
49
*			VARIABLES RESULTATS			*
49
*			VARIABLES RESULTATS			*
Line 212... Line 212...
212
//internationnalisation à mettre en haut du fichier pour internationnaliser les erreurs de script!
212
//internationnalisation à mettre en haut du fichier pour internationnaliser les erreurs de script!
213
?>
213
?>
214
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
214
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
215
<html><!-- written by steweb57 -->
215
<html><!-- written by steweb57 -->
216
<head>
216
<head>
217
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
217
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
218
<title><?php echo $l_ldap_title; ?></title>
218
<title><?php echo $l_ldap_title; ?></title>
219
<link rel="stylesheet" href="/css/style.css" type="text/css">
219
<link rel="stylesheet" href="/css/style.css" type="text/css">
220
<link rel="stylesheet" href="../css/ldap.css" type="text/css">
220
<link rel="stylesheet" href="/css/ldap.css" type="text/css">
221
<script language="javascript">
221
<script language="javascript">
222
function testLdapActif(){
222
function testLdapActif(){
223
	//List des ID des éléments à désactiver
223
	//List des ID des éléments à désactiver
224
	var listToDisables = new Array("ldap_server","ldap_dn","ldap_filter","ldap_base_filter","ldap_user","ldap_password");
224
	var listToDisables = new Array("ldap_server","ldap_dn","ldap_filter","ldap_base_filter","ldap_user","ldap_password");
225
 
225
 
Line 266... Line 266...
266
  </dd>
266
  </dd>
267
</dl>
267
</dl>
268
<dl>
268
<dl>
269
  <dt>
269
  <dt>
270
    <label for="ldap_server"><?php echo $l_ldap_server_label; ?></label>
270
    <label for="ldap_server"><?php echo $l_ldap_server_label; ?></label>
271
    <br />
271
    <br>
272
    <?php echo $l_ldap_server_text; ?></dt>
272
    <?php echo $l_ldap_server_text; ?></dt>
273
  <dd>
273
  <dd>
274
    <input id="ldap_server" size="40" name="ldap_server" value="<?php echo htmlspecialchars($ldap_server); ?>"/>
274
    <input id="ldap_server" size="40" name="ldap_server" value="<?php echo htmlspecialchars($ldap_server); ?>">
275
  </dd>
275
  </dd>
276
</dl>
276
</dl>
277
<dl>
277
<dl>
278
  <dt>
278
  <dt>
279
    <label for="ldap_dn"><?php echo $l_ldap_base_dn_label; ?></label>
279
    <label for="ldap_dn"><?php echo $l_ldap_base_dn_label; ?></label>
280
    <br />
280
    <br>
281
    <?php echo $l_ldap_base_dn_text; ?></dt>
281
    <?php echo $l_ldap_base_dn_text; ?></dt>
282
  <dd>
282
  <dd>
283
    <input id="ldap_dn" size="40" name="ldap_base_dn" value="<?php echo htmlspecialchars($ldap_basedn); ?>" />
283
    <input id="ldap_dn" size="40" name="ldap_base_dn" value="<?php echo htmlspecialchars($ldap_basedn); ?>">
284
  </dd>
284
  </dd>
285
</dl>
285
</dl>
286
<dl>
286
<dl>
287
  <dt>
287
  <dt>
288
    <label for="ldap_filter"><?php echo $l_ldap_filter_label; ?></label>
288
    <label for="ldap_filter"><?php echo $l_ldap_filter_label; ?></label>
289
    <br />
289
    <br>
290
    <?php echo $l_ldap_filter_text; ?></dt>
290
    <?php echo $l_ldap_filter_text; ?></dt>
291
  <dd>
291
  <dd>
292
    <input id="ldap_filter" size="40" name="ldap_filter" value="<?php echo htmlspecialchars($ldap_filter); ?>" />
292
    <input id="ldap_filter" size="40" name="ldap_filter" value="<?php echo htmlspecialchars($ldap_filter); ?>">
293
  </dd>
293
  </dd>
294
</dl>
294
</dl>
295
<dl>
295
<dl>
296
  <dt>
296
  <dt>
297
    <label for="ldap_base_filter"><?php echo $l_ldap_base_filter_label; ?></label>
297
    <label for="ldap_base_filter"><?php echo $l_ldap_base_filter_label; ?></label>
298
    <br />
298
    <br>
299
    <?php echo $l_ldap_base_filter_text; ?></dt>
299
    <?php echo $l_ldap_base_filter_text; ?></dt>
300
  <dd>
300
  <dd>
301
    <input id="ldap_base_filter" size="40" name="ldap_base_filter" value="<?php echo htmlspecialchars($ldap_base_filter); ?>" />
301
    <input id="ldap_base_filter" size="40" name="ldap_base_filter" value="<?php echo htmlspecialchars($ldap_base_filter); ?>">
302
  </dd>
302
  </dd>
303
</dl>
303
</dl>
304
<dl>
304
<dl>
305
  <dt>
305
  <dt>
306
    <label for="ldap_user"><?php echo $l_ldap_user_label; ?></label>
306
    <label for="ldap_user"><?php echo $l_ldap_user_label; ?></label>
307
    <br />
307
    <br>
308
    <?php echo $l_ldap_user_text; ?></dt>
308
    <?php echo $l_ldap_user_text; ?></dt>
309
  <dd>
309
  <dd>
310
    <input id="ldap_user" size="40" name="ldap_user" value="<?php echo htmlspecialchars($ldap_identity); ?>" />
310
    <input id="ldap_user" size="40" name="ldap_user" value="<?php echo htmlspecialchars($ldap_identity); ?>">
311
  </dd>
311
  </dd>
312
</dl>
312
</dl>
313
<dl>
313
<dl>
314
  <dt>
314
  <dt>
315
    <label for="ldap_password"><?php echo $l_ldap_password_label; ?></label>
315
    <label for="ldap_password"><?php echo $l_ldap_password_label; ?></label>
316
    <br />
316
    <br>
317
    <?php echo $l_ldap_password_text; ?></dt>
317
    <?php echo $l_ldap_password_text; ?></dt>
318
  <dd>
318
  <dd>
319
    <input id="ldap_password" type="password" size="40" name="ldap_password" value="<?php echo htmlspecialchars($ldap_password);?>" />
319
    <input id="ldap_password" type="password" size="40" name="ldap_password" value="<?php echo htmlspecialchars($ldap_password);?>">
320
  </dd>
320
  </dd>
321
</dl>
321
</dl>
322
<p>
322
<p>
323
  <input id="submit" type="submit" value="<?php echo $l_ldap_submit; ?>" name="submit" />
323
  <input id="submit" type="submit" value="<?php echo $l_ldap_submit; ?>" name="submit">
324
 
324
 
325
  <input id="reset" type="reset" value="<?php echo $l_ldap_reset; ?>" name="reset" />
325
  <input id="reset" type="reset" value="<?php echo $l_ldap_reset; ?>" name="reset">
326
</p>
326
</p>
327
 
327
 
328
</fieldset>
328
</fieldset>
329
</form>
329
</form>
330
<br />
330
<br>
331
</td></tr>
331
</td></tr>
332
</table>
332
</table>
333
</body>
333
</body>
334
</html>
334
</html>