| Line 4... |
Line 4... |
| 4 |
if (is_file("../lib/langues.php"))
|
4 |
if (is_file("../lib/langues.php"))
|
| 5 |
include("../lib/langues.php");
|
5 |
include("../lib/langues.php");
|
| 6 |
require('/etc/freeradius-web/config.php');
|
6 |
require('/etc/freeradius-web/config.php');
|
| 7 |
require('../lib/attrshow.php');
|
7 |
require('../lib/attrshow.php');
|
| 8 |
require('../lib/defaults.php');
|
8 |
require('../lib/defaults.php');
|
| 9 |
$extra_text = '';
|
- |
|
| 10 |
if ($user_type != 'group'){
|
9 |
if ($user_type != 'group'){
|
| 11 |
if (is_file("../lib/$config[general_lib_type]/user_info.php"))
|
10 |
if (is_file("../lib/$config[general_lib_type]/user_info.php"))
|
| 12 |
include("../lib/$config[general_lib_type]/user_info.php");
|
11 |
include("../lib/$config[general_lib_type]/user_info.php");
|
| 13 |
if ($config[general_lib_type] == 'sql' && $config[sql_show_all_groups] == 'true'){
|
12 |
if ($config[general_lib_type] == 'sql' && $config[sql_show_all_groups] == 'true'){
|
| 14 |
$extra_text = "<br><font size=-2><i>(le groupe auquel apartient l'usager est surligné)</i></font>";
|
- |
|
| 15 |
$saved_login = $login;
|
13 |
$saved_login = $login;
|
| 16 |
$login = '';
|
14 |
$login = '';
|
| 17 |
if (is_file("../lib/sql/group_info.php"))
|
15 |
if (is_file("../lib/sql/group_info.php"))
|
| 18 |
include("../lib/sql/group_info.php");
|
16 |
include("../lib/sql/group_info.php");
|
| 19 |
$login = $saved_login;
|
17 |
$login = $saved_login;
|
| Line 33... |
Line 31... |
| 33 |
$colspan=1;
|
31 |
$colspan=1;
|
| 34 |
}
|
32 |
}
|
| 35 |
?>
|
33 |
?>
|
| 36 |
<html>
|
34 |
<html>
|
| 37 |
<head>
|
35 |
<head>
|
| 38 |
<title>subscription configuration for users and groups</title>
|
36 |
<title><?php echo "$l_title";?></title>
|
| 39 |
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
|
37 |
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
|
| 40 |
<link rel="stylesheet" href="/css/style.css">
|
38 |
<link rel="stylesheet" href="/css/style.css">
|
| 41 |
<script language="javascript" type="text/javascript">
|
39 |
<script language="javascript" type="text/javascript">
|
| 42 |
var chars='0123456789abcdefghijkmnopqrstuvwxyzABCDEFGHIJKLMNPQRSTUVWXYZ'
|
40 |
var chars='0123456789abcdefghijkmnopqrstuvwxyzABCDEFGHIJKLMNPQRSTUVWXYZ'
|
| 43 |
function password(size)
|
41 |
function password(size)
|
| Line 63... |
Line 61... |
| 63 |
height="2"></td></tr>
|
61 |
height="2"></td></tr>
|
| 64 |
</TABLE>
|
62 |
</TABLE>
|
| 65 |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
|
63 |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
|
| 66 |
<tr><td valign="middle" align="left">
|
64 |
<tr><td valign="middle" align="left">
|
| 67 |
<center>
|
65 |
<center>
|
| 68 |
<table border=0 width=550 cellpadding=0 cellspacing=0>
|
- |
|
| 69 |
<tr valign=top>
|
- |
|
| 70 |
<!--<td align=center><img src="images/title2.gif"></td>-->
|
- |
|
| 71 |
</tr>
|
- |
|
| 72 |
</table>
|
- |
|
| 73 |
<table border=0 width=400 cellpadding=0 cellspacing=2>
|
66 |
<table border=0 width=400 cellpadding=0 cellspacing=2>
|
| 74 |
<?php
|
67 |
<?php
|
| 75 |
if ($user_type != 'group')
|
68 |
if ($user_type != 'group')
|
| 76 |
{
|
69 |
{
|
| 77 |
include("../html/user_toolbar.html.php");
|
70 |
include("../html/user_toolbar.html.php");
|
| Line 89... |
Line 82... |
| 89 |
<tr valign=top>
|
82 |
<tr valign=top>
|
| 90 |
<td width=75%> </td>
|
83 |
<td width=75%> </td>
|
| 91 |
<td bgcolor="black" width=25% align=right>
|
84 |
<td bgcolor="black" width=25% align=right>
|
| 92 |
<table border=0 width="200" cellpadding=2 cellspacing=0>
|
85 |
<table border=0 width="200" cellpadding=2 cellspacing=0>
|
| 93 |
<tr bgcolor="#907030" align=center valign=top><th>
|
86 |
<tr bgcolor="#907030" align=center valign=top><th>
|
| 94 |
<font color="white">$titre : $login</font>
|
87 |
<font color="white">$titre : $login ($cn)</font>
|
| 95 |
</th></tr>
|
88 |
</th></tr>
|
| 96 |
</table>
|
89 |
</table>
|
| 97 |
</td></tr>
|
90 |
</td></tr>
|
| 98 |
<tr bgcolor="black" valign=top><td colspan=2>
|
91 |
<tr bgcolor="black" valign=top><td colspan=2>
|
| 99 |
<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
|
92 |
<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
|
| Line 350... |
Line 343... |
| 350 |
}
|
343 |
}
|
| 351 |
if ($user_type != 'group'){
|
344 |
if ($user_type != 'group'){
|
| 352 |
echo <<<EOM
|
345 |
echo <<<EOM
|
| 353 |
<tr>
|
346 |
<tr>
|
| 354 |
<td align=right colspan=$colspan bgcolor="#d0ddb0">
|
347 |
<td align=right colspan=$colspan bgcolor="#d0ddb0">
|
| 355 |
Membre de $extra_text
|
348 |
$l_group_member<br><font size=-2><i>($l_main_group)</i></font>
|
| 356 |
</td>
|
349 |
</td>
|
| 357 |
<td>
|
350 |
<td>
|
| 358 |
EOM;
|
351 |
EOM;
|
| 359 |
if (isset($member_groups)){
|
352 |
if (isset($member_groups)){
|
| 360 |
echo "<select size=5 name=\"edited_groups[]\" multiple OnChange=\"this.form.group_change.value=1\">";
|
353 |
echo "<select size=5 name=\"edited_groups[]\" multiple OnChange=\"this.form.group_change.value=1\">";
|
| Line 374... |
Line 367... |
| 374 |
else{
|
367 |
else{
|
| 375 |
echo "aucun group</td></tr>";
|
368 |
echo "aucun group</td></tr>";
|
| 376 |
}
|
369 |
}
|
| 377 |
}
|
370 |
}
|
| 378 |
echo "</table><br>";
|
371 |
echo "</table><br>";
|
| 379 |
echo "<input type=submit class=button value=Change OnClick=\"this.form.change.value=1\">";
|
372 |
echo "<input type=submit class=button value=$l_change OnClick=\"this.form.change.value=1\">";
|
| 380 |
//if ($user_type != 'group'){
|
373 |
//if ($user_type != 'group'){
|
| 381 |
// echo <<<EOM
|
374 |
// echo <<<EOM
|
| 382 |
//<br><br>
|
375 |
//<br><br>
|
| 383 |
//<input type=submit class=button value="Add to Badusers" OnClick="this.form.badusers.value=1">
|
376 |
//<input type=submit class=button value="Add to Badusers" OnClick="this.form.badusers.value=1">
|
| 384 |
//<a href="help/badusers_help.html" target=bu_help onclick=window.open("help/badusers_help.html","bu_help","width=600,height=210,toolbar=no,scrollbars=no,resizable=yes") title="BADUSERS Help Page"><font color="blue"><--Help</font></a>
|
377 |
//<a href="help/badusers_help.html" target=bu_help onclick=window.open("help/badusers_help.html","bu_help","width=600,height=210,toolbar=no,scrollbars=no,resizable=yes") title="BADUSERS Help Page"><font color="blue"><--Help</font></a>
|