Subversion Repositories ALCASAR

Rev

Rev 1805 | Rev 1860 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
324 richard 1
<?php
911 richard 2
//gestion de la langue
3
if (is_file("../lib/langues.php"))
4
	include("../lib/langues.php");
324 richard 5
require('/etc/freeradius-web/config.php');
6
 
7
if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php"))
8
	include_once("../lib/sql/drivers/$config[sql_type]/functions.php");
9
else{
10
	echo <<<EOM
911 richard 11
<html>
12
<title>Find group</title>
1805 clement.si 13
<meta http-equiv="Content-Type" content="text/html" charset="$config[general_charset]">
324 richard 14
<link rel="stylesheet" href="/css/style.css">
15
</head>
16
<body>
17
<center>
18
<b>Could not include SQL library functions. Aborting</b>
19
</body>
20
</html>
21
EOM;
22
	exit();
23
}
1805 clement.si 24
if ($config['general_lib_type'] != 'sql'){
324 richard 25
	echo <<<EOM
911 richard 26
<html>
27
<title>find group</title>
1845 raphael.pi 28
<meta http-equiv="Content-Type" content="text/html" charset="$config['general_charset']">
324 richard 29
<link rel="stylesheet" href="style.css">
30
</head>
31
<body>
32
<center>
33
<b>This page is only available if you are using sql as general library type</b>
34
</body>
35
</html>
36
EOM;
37
	exit();
38
}
39
?>
40
<head>
911 richard 41
<title>Find group</title>
324 richard 42
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
43
<link rel="stylesheet" href="/css/style.css">
44
</head>
45
<body>
46
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
911 richard 47
	<tr><th><?php echo "$l_groups_managment"; ?></th></tr>
1805 clement.si 48
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
324 richard 49
height="2"></td></tr>
50
</TABLE>
51
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
52
	<tr bgcolor="#666666"><td>
53
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
54
		<tr><td valign="middle" align="left">
55
<center>
56
<table border=0 width=550 cellpadding=0 cellspacing=0>
57
<tr valign=top>
58
</tr>
59
</table>
60
<table border=0 width=540 cellpadding=1 cellspacing=1>
61
<tr valign=top>
62
<td width=55%></td>
63
<td bgcolor="black" width=45%>
64
	<table border=0 width=100% cellpadding=2 cellspacing=0>
65
	<tr bgcolor="#907030" align=right valign=top><th>
911 richard 66
	<font color="white"><?php echo "$l_group_select"; ?></font>
324 richard 67
	</th></tr>
68
	</table>
69
</td></tr>
70
<tr bgcolor="black" valign=top><td colspan=2>
71
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
72
	<tr><td>
73
<?php
74
unset($login);
75
$num = 0;
76
include_once("../lib/$config[general_lib_type]/group_info.php");
77
if (isset($existing_groups)){
78
	echo "<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor=\"#ffffe0\" valign=top>";
79
	echo "<tr bgcolor=\"#d0ddb0\">";
80
	echo "<th>#</th><th>$l_group </th><th>$l_nb_users</th></tr>";
81
	foreach ($existing_groups as $group => $num_members){
82
		$num++;
83
		$Group = urlencode($group);
84
		echo <<<EOM
85
		<tr align=center>
86
			<td>$num</td>
87
			<td><a href="group_admin.php?login=$Group" title="Editer le groupe $group">$group</a></td>
88
			<td>$num_members</td>
89
		</tr>
90
EOM;
91
	}
92
}
93
else
912 richard 94
	echo "<b>$l_group_empty</b>\n";
324 richard 95
?>
96
	</table>
97
</table>
98
</tr>
99
</table>
100
</TD></TR>
101
</TABLE>
102
</td></tr>
103
</TABLE>
104
</body>
105
</html>