Subversion Repositories ALCASAR

Rev

Rev 925 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 925 Rev 1805
1
<?php
1
<?php
2
//gestion de la langue
2
//gestion de la langue
3
if (is_file("../lib/langues.php"))
3
if (is_file("../lib/langues.php"))
4
	include("../lib/langues.php");
4
	include("../lib/langues.php");
5
require('/etc/freeradius-web/config.php');
5
require('/etc/freeradius-web/config.php');
6
if ($show == 1 && isset($del_members)){
6
if (isset($show) && $show == 1 && isset($del_members)){
7
        header("Location: user_admin.php?login=$del_members[0]");
7
        header("Location: user_admin.php?login=$del_members[0]");
8
        exit;
8
        exit;
9
}
9
}
10
if ($config[general_lib_type] != 'sql'){
10
if ($config['general_lib_type'] != 'sql'){
11
	echo <<<EOM
11
	echo <<<EOM
12
<title>Admin_groups</title>
12
<title>Admin_groups</title>
13
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
13
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
14
<link rel="stylesheet" href="style.css">
14
<link rel="stylesheet" href="style.css">
15
</head>
15
</head>
16
<body>
16
<body>
17
<center>
17
<center>
18
<b>This page is only available if you are using sql as general library type</b>
18
<b>This page is only available if you are using sql as general library type</b>
19
</body>
19
</body>
20
</html>
20
</html>
21
EOM;
21
EOM;
22
	exit();
22
	exit();
23
}
23
}
24
 
24
 
25
unset($group_members);
25
unset($group_members);
26
if (is_file("../lib/$config[general_lib_type]/group_info.php")){
26
if (is_file("../lib/$config[general_lib_type]/group_info.php")){
27
	include("../lib/$config[general_lib_type]/group_info.php");
27
	include("../lib/$config[general_lib_type]/group_info.php");
28
	if ($group_exists == 'no'){
28
	if ($group_exists == 'no'){
29
		echo <<<EOM
29
		echo <<<EOM
30
<title>Admin_groups</title>
30
<title>Admin_groups</title>
31
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
31
<meta http-equiv="Content-Type" content="text/html" charset="$config[general_charset]">
32
<link rel="stylesheet" href="style.css">
32
<link rel="stylesheet" href="style.css">
33
</head>
33
</head>
34
<body>
34
<body>
35
<center>
35
<center>
36
<form action="group_admin.php" method=get>
36
<form action="group_admin.php" method=get>
37
<b>Le groupe &nbsp;&nbsp;</b>
37
<b>Le groupe &nbsp;&nbsp;</b>
38
<input type="text" size=10 name="login" value="$login">
38
<input type="text" size=10 name="login" value="$login">
39
<b>&nbsp;&nbsp;n'existe pas</b><br>
39
<b>&nbsp;&nbsp;n''existe pas</b><br>
40
<input type=submit class=button value="Show Group">
40
<input type=submit class=button value="Show Group">
41
</body>
41
</body>
42
</html>
42
</html>
43
EOM;
43
EOM;
44
                exit();
44
                exit();
45
        }
45
        }
46
}
46
}
47
?>
47
?>
48
 
48
 
49
<html>
49
<html>
50
<head>
50
<head>
51
<title>Admin_groups</title>
51
<title>Admin_groups</title>
52
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
52
<meta http-equiv="Content-Type" content="text/html" charset="<?php echo $config['general_charset']?>">
53
<link rel="stylesheet" href="/css/style.css">
53
<link rel="stylesheet" href="/css/style.css">
54
</head>
54
</head>
55
<body>
55
<body>
56
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
56
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
57
<tr><th><?php echo "$l_groups_managment"; ?></th></tr>
57
<tr><th><?php echo "$l_groups_managment"; ?></th></tr>
58
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" 
58
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
59
height="2"></td></tr>
59
height="2"></td></tr>
60
</TABLE>
60
</TABLE>
61
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
61
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
62
	<tr bgcolor="#666666"><td>
62
	<tr bgcolor="#666666"><td>
63
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
63
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
64
		<tr><td valign="middle" align="left">
64
		<tr><td valign="middle" align="left">
65
<center>
65
<center>
66
<table border=0 width=640 cellpadding=0 cellspacing=2>
66
<table border=0 width=640 cellpadding=0 cellspacing=2>
67
<?php
67
<?php
68
include("../html/group_toolbar.html.php");
68
include("../html/group_toolbar.html.php");
69
?>
69
?>
70
</table>
70
</table>
71
<br>
71
<br>
72
<table border=0 width=620 cellpadding=1 cellspacing=1>
72
<table border=0 width=620 cellpadding=1 cellspacing=1>
73
<tr valign=top>
73
<tr valign=top>
74
<td width=340></td>
74
<td width=340></td>
75
<td bgcolor="black" width=200>
75
<td bgcolor="black" width=200>
76
	<table border=0 width=100% cellpadding=2 cellspacing=0>
76
	<table border=0 width=100% cellpadding=2 cellspacing=0>
77
	<tr bgcolor="#907030" align=right valign=top><th>
77
	<tr bgcolor="#907030" align=right valign=top><th>
78
	<font color="white"><?php echo "$l_group : $login";?></font>
78
	<font color="white"><?php echo "$l_group : $login";?></font>
79
	</th></tr>
79
	</th></tr>
80
	</table>
80
	</table>
81
</td></tr>
81
</td></tr>
82
<tr bgcolor="black" valign=top><td colspan=2>
82
<tr bgcolor="black" valign=top><td colspan=2>
83
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
83
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
84
	<tr><td>
84
	<tr><td>
85
 
85
 
86
<?php
86
<?php
87
if ($do_changes == 1){
87
if (isset($do_changes) && $do_changes == 1){
88
	if (is_file("../lib/$config[general_lib_type]/group_admin.php"))
88
	if (is_file("../lib/$config[general_lib_type]/group_admin.php"))
89
		include("../lib/$config[general_lib_type]/group_admin.php");
89
		include("../lib/$config[general_lib_type]/group_admin.php");
90
	if (is_file("../lib/$config[general_lib_type]/group_info.php"))
90
	if (is_file("../lib/$config[general_lib_type]/group_info.php"))
91
		include("../lib/$config[general_lib_type]/group_info.php");
91
		include("../lib/$config[general_lib_type]/group_info.php");
92
}
92
}
93
?>
93
?>
94
   
94
 
95
   <form method=post>
95
   <form method=post>
96
      <input type=hidden name=login value=<?php echo $login ?>>
96
      <input type=hidden name=login value=<?php echo $login ?>>
97
      <input type=hidden name=do_changes value=0>
97
      <input type=hidden name=do_changes value=0>
98
      <input type=hidden name=show value=0>
98
      <input type=hidden name=show value=0>
99
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
99
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
100
<tr>
100
<tr>
101
<td align=right bgcolor="#d0ddb0">
101
<td align=right bgcolor="#d0ddb0">
102
<?php echo "$l_group_members_to_remove";?>
102
<?php echo "$l_group_members_to_remove";?>
103
</td>
103
</td>
104
<td>
104
<td>
105
<select name=del_members[] multiple size=5> 
105
<select name=del_members[] multiple size=5>
106
<?php
106
<?php
107
foreach ($group_members as $member){
107
foreach ($group_members as $member){
108
	echo "<option value=\"$member\">$member\n";
108
	echo "<option value=\"$member\">$member\n";
109
}
109
}
110
?>
110
?>
111
</select>
111
</select>
112
</td>
112
</td>
113
</tr>
113
</tr>
114
<tr>
114
<tr>
115
<td align=right bgcolor="#d0ddb0">
115
<td align=right bgcolor="#d0ddb0">
116
<?php echo "$l_group_members_to_add";?>
116
<?php echo "$l_group_members_to_add";?>
117
</td>
117
</td>
118
<td>
118
<td>
119
<textarea name=new_members cols="15" wrap="PHYSICAL" rows=5></textarea>
119
<textarea name=new_members cols="15" wrap="PHYSICAL" rows=5></textarea>
120
</td>
120
</td>
121
</tr>
121
</tr>
122
	</table>
122
	</table>
123
<br>
123
<br>
124
<input type=submit class=button value="<?php echo "$l_change";?>" OnClick="this.form.do_changes.value=1">
124
<input type=submit class=button value="<?php echo "$l_change";?>" OnClick="this.form.do_changes.value=1">
125
<br><br>
125
<br><br>
126
<input type=submit class=button value="<?php echo "$l_manage_selected_user";?>" OnClick="this.form.show.value=1">
126
<input type=submit class=button value="<?php echo "$l_manage_selected_user";?>" OnClick="this.form.show.value=1">
127
</form>
127
</form>
128
</td></tr>
128
</td></tr>
129
</table>
129
</table>
130
</tr>
130
</tr>
131
</table>
131
</table>
132
</TD></TR>
132
</TD></TR>
133
</TABLE>
133
</TABLE>
134
</td></tr>
134
</td></tr>
135
</TABLE>
135
</TABLE>
136
</body>
136
</body>
137
</html>
137
</html>
138
 
138