Subversion Repositories ALCASAR

Rev

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

Rev 899 Rev 901
Line 1... Line 1...
1
<?php
1
<?php
2
//gestion de la langue
2
//gestion de la langue
3
$origine='user_edit';
3
$origine='user_edit';
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
echo "$l_simultaneous_use";
-
 
7
require('/etc/freeradius-web/config.php');
6
require('/etc/freeradius-web/config.php');
8
require('../lib/attrshow.php');
7
require('../lib/attrshow.php');
9
require('../lib/defaults.php');
8
require('../lib/defaults.php');
10
$extra_text = '';
9
$extra_text = '';
11
if ($user_type != 'group'){
10
if ($user_type != 'group'){
Line 31... Line 30...
31
}
30
}
32
else{
31
else{
33
	$show_ops = 0;
32
	$show_ops = 0;
34
	$colspan=1;
33
	$colspan=1;
35
}
34
}
36
 
-
 
37
 
35
?>
38
echo <<<EOM
-
 
39
<html>
36
<html>
40
<head>
37
<head>
41
EOM;
-
 
42
 
-
 
43
if ($user_type != 'group'){
-
 
44
	echo " <title>subscription configuration for $login ($cn)</title>\n";
38
<title>subscription configuration for users and groups</title>
45
	$util = "usagers";}
-
 
46
else{
-
 
47
	echo " <title>subscription configuration for $login</title>\n";
-
 
48
	$util = "groupes";}
-
 
49
?>
-
 
50
 
-
 
51
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
39
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
52
<link rel="stylesheet" href="/css/style.css">
40
<link rel="stylesheet" href="/css/style.css">
53
<script language="javascript" type="text/javascript">
41
<script language="javascript" type="text/javascript">
54
var chars='0123456789abcdefghijkmnopqrstuvwxyzABCDEFGHIJKLMNPQRSTUVWXYZ'
42
var chars='0123456789abcdefghijkmnopqrstuvwxyzABCDEFGHIJKLMNPQRSTUVWXYZ'
55
function password(size)
43
function password(size)
Line 64... Line 52...
64
}
52
}
65
</script>
53
</script>
66
</head>
54
</head>
67
<body>
55
<body>
68
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
56
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
-
 
57
	<tr><th>
-
 
58
<?php
69
	<tr><th>Gestion des <?php echo $util?></th></tr>
59
if ($user_type != 'group'){ echo "$l_users_managment";} else{ echo "$l_groups_managment";}
-
 
60
?>
-
 
61
	</th></tr>
70
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" 
62
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" 
71
height="2"></td></tr>
63
height="2"></td></tr>
72
</TABLE>
64
</TABLE>
73
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
65
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
74
	<tr><td valign="middle" align="left">
66
	<tr><td valign="middle" align="left">
Line 81... Line 73...
81
	<table border=0 width=400 cellpadding=0 cellspacing=2>
73
	<table border=0 width=400 cellpadding=0 cellspacing=2>
82
<?php
74
<?php
83
if ($user_type != 'group')
75
if ($user_type != 'group')
84
	{
76
	{
85
	include("../html/user_toolbar.html.php");
77
	include("../html/user_toolbar.html.php");
86
	$titre="de l'usager";
78
	$titre=$l_user;
87
	}
79
	}
88
else
80
else
89
	{
81
	{
90
	include("../html/group_toolbar.html.php");
82
	include("../html/group_toolbar.html.php");
91
	$titre="du groupe";
83
	$titre=$l_group;
92
	}
84
	}
93
print <<<EOM
85
print <<<EOM
94
</table>
86
</table>
95
<br>
87
<br>
96
<table border=0 width=540 cellpadding=1 cellspacing=1>
88
<table border=0 width=540 cellpadding=1 cellspacing=1>
97
<tr valign=top>
89
<tr valign=top>
98
<td width=75%>&nbsp;</td>
90
<td width=75%>&nbsp;</td>
99
<td bgcolor="black" width=25% align=right>
91
<td bgcolor="black" width=25% align=right>
100
	<table border=0 width="200" cellpadding=2 cellspacing=0>
92
	<table border=0 width="200" cellpadding=2 cellspacing=0>
101
	<tr bgcolor="#907030" align=center valign=top><th>
93
	<tr bgcolor="#907030" align=center valign=top><th>
102
	<font color="white">Attributs $titre : $login</font>&nbsp;
94
	<font color="white">$titre : $login</font>&nbsp;
103
	</th></tr>
95
	</th></tr>
104
	</table>
96
	</table>
105
</td></tr>
97
</td></tr>
106
<tr bgcolor="black" valign=top><td colspan=2>
98
<tr bgcolor="black" valign=top><td colspan=2>
107
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
99
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>