Subversion Repositories ALCASAR

Rev

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

Rev 925 Rev 1805
Line 1... Line 1...
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>
Line 26... Line 26...
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();
Line 47... Line 47...
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>
Line 82... Line 82...
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
?>