Subversion Repositories ALCASAR

Rev

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

Rev 324 Rev 911
Line 1... Line 1...
1
<?php
1
<?php
-
 
2
//gestion de la langue
-
 
3
if (is_file("../lib/langues.php"))
-
 
4
	include("../lib/langues.php");
2
require('/etc/freeradius-web/config.php');
5
require('/etc/freeradius-web/config.php');
3
if ($type != 'group')
6
if ($type != 'group'){
4
	if (is_file("../lib/$config[general_lib_type]/user_info.php"))
7
	if (is_file("../lib/$config[general_lib_type]/user_info.php"))
5
		include("../lib/$config[general_lib_type]/user_info.php");
8
		include("../lib/$config[general_lib_type]/user_info.php");
-
 
9
	$origine='user_del';
-
 
10
}
6
else
11
else {
7
	if (is_file("../lib/$config[general_lib_type]/group_info.php"))
12
	if (is_file("../lib/$config[general_lib_type]/group_info.php"))
8
		include("../lib/$config[general_lib_type]/group_info.php");
13
		include("../lib/$config[general_lib_type]/group_info.php");
-
 
14
	$origine='group_del';
9
 
15
}
10
$whatis = ($user_type == 'group') ? 'le groupe' : 'l\'usager';
16
if (is_file("../lib/langues.php"))
11
$whatisL = ($user_type == 'group') ? 'de groupe' : 'd\'usager';
17
	include("../lib/langues.php");
12
 
18
 
13
echo <<<EOM
19
echo <<<EOM
14
<html>
20
<html>
15
<head>
21
<head>
16
EOM;
22
EOM;
17
 
23
 
18
if ($user_type != 'group'){
24
if ($user_type != 'group'){
19
	echo "<title>delete user $login ($cn)</title>\n";
25
	$util = $l_user;
20
	$util = "usagers";}
26
	$title = $l_users_managment;}
21
else{
27
else{
22
	echo "<title>delete group $login</title>\n";
28
	$util = $l_group;
23
	$util = "groupes";}
29
	$title = $l_groups_managment;}
24
 
30
 
25
echo <<<EOM
31
echo <<<EOM
-
 
32
<title>delete users and groups</title>
26
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
33
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
27
<link rel="stylesheet" href="/css/style.css">
34
<link rel="stylesheet" href="/css/style.css">
28
</head>
35
</head>
29
<body>
36
<body>
30
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
37
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
31
	<tr><th>Gestion des $util</th></tr>
38
	<tr><th>$title</th></tr>
32
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" 
39
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" 
33
height="2"></td></tr>
40
height="2"></td></tr>
34
</TABLE>
41
</TABLE>
35
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
42
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
36
	<tr bgcolor="#666666"><td>
43
	<tr bgcolor="#666666"><td>
Line 59... Line 66...
59
<tr valign=top>
66
<tr valign=top>
60
<td width=340></td>
67
<td width=340></td>
61
<td bgcolor="black" width=200>
68
<td bgcolor="black" width=200>
62
	<table border=0 width=100% cellpadding=2 cellspacing=0>
69
	<table border=0 width=100% cellpadding=2 cellspacing=0>
63
	<tr bgcolor="#907030" align=right valign=top><th>
70
	<tr bgcolor="#907030" align=right valign=top><th>
64
	<font color="white">Suppression $whatisL</font>&nbsp;
71
	<font color="white">$util : $login ($cn)</font>&nbsp;
65
	</th></tr>
72
	</th></tr>
66
	</table>
73
	</table>
67
</td></tr>
74
</td></tr>
68
<tr bgcolor="black" valign=top><td colspan=2>
75
<tr bgcolor="black" valign=top><td colspan=2>
69
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
76
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
Line 109... Line 116...
109
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
116
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
110
<tr>
117
<tr>
111
<td align=center>
118
<td align=center>
112
<?php
119
<?php
113
if ($user_type == 'group'){
120
if ($user_type == 'group'){
114
  echo "Suppression automatique des membres du groupe : ";
121
  echo "$l_group_members_remove : ";
115
  echo "<input type=checkbox name=delete_users_of_group value=\"1\">";
122
  echo "<input type=checkbox name=delete_users_of_group value=\"1\">";
116
}
123
}
117
echo "<br>";
124
echo "<br>";
118
echo "Etes-vous certain de vouloir supprimer $whatis $login ? ";
125
echo "$l_are_you_sure <b>$login</b> ? ";
119
?>
126
?>
120
<input type=submit class=button value="Oui supprimer" OnClick="this.form.delete_user.value=1">
127
	<input type=submit class=button value="<?php echo"$l_yes_remove";?>" OnClick="this.form.delete_user.value=1">
121
</form>
128
</form>
122
</td></tr></table></td></tr>
129
</td></tr></table></td></tr>
123
</table>
130
</table>
124
</tr>
131
</tr>
125
</table>
132
</table>