Subversion Repositories ALCASAR

Rev

Rev 925 | Rev 2382 | 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 (!isset($type)) $type = 'user';
6
if ($type != 'group'){
7
if ($type != 'group'){
7
	if (is_file("../lib/$config[general_lib_type]/user_info.php"))
8
	if (is_file("../lib/$config[general_lib_type]/user_info.php"))
8
		include("../lib/$config[general_lib_type]/user_info.php");
9
		include("../lib/$config[general_lib_type]/user_info.php");
9
}
10
}
10
else {
11
else {
Line 17... Line 18...
17
echo <<<EOM
18
echo <<<EOM
18
<html>
19
<html>
19
<head>
20
<head>
20
EOM;
21
EOM;
21
 
22
 
-
 
23
if (!isset($user_type)) $user_type = 'user';
-
 
24
if (!isset($delete_user)) $delete_user = 0;
-
 
25
 
22
if ($user_type != 'group'){
26
if ($user_type != 'group'){
23
	$util = $l_user;
27
	$util = $l_user;
24
	$title = $l_users_managment;}
28
	$title = $l_users_managment;}
25
else{
29
else{
26
	$util = $l_group;
30
	$util = $l_group;
Line 32... Line 36...
32
<link rel="stylesheet" href="/css/style.css">
36
<link rel="stylesheet" href="/css/style.css">
33
</head>
37
</head>
34
<body>
38
<body>
35
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
39
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
36
	<tr><th>$title</th></tr>
40
	<tr><th>$title</th></tr>
37
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" 
41
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
38
height="2"></td></tr>
42
height="2"></td></tr>
39
</TABLE>
43
</TABLE>
40
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
44
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
41
	<tr bgcolor="#666666"><td>
45
	<tr bgcolor="#666666"><td>
42
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
46
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
Line 66... Line 70...
66
</td></tr>
70
</td></tr>
67
<tr bgcolor="black" valign=top><td colspan=2>
71
<tr bgcolor="black" valign=top><td colspan=2>
68
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
72
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
69
	<tr><td>
73
	<tr><td>
70
EOM;
74
EOM;
71
   
75
 
72
if ($delete_user == 1){
76
if ($delete_user == 1){
73
	if ($user_type != 'group'){
77
	if ($user_type != 'group'){
74
		if (is_file("../lib/$config[general_lib_type]/delete_user.php"))
78
		if (is_file("../lib/$config[general_lib_type]/delete_user.php"))
75
			include("../lib/$config[general_lib_type]/delete_user.php");
79
			include("../lib/$config[general_lib_type]/delete_user.php");
76
	}
80
	}
77
	else{
81
	else{
78
		if ($delete_users_of_group == 1){
82
		if (isset($delete_users_of_group) && $delete_users_of_group == 1){
79
			unset($group_members);
83
			unset($group_members);
80
			$tmp_group_name=$login;
84
			$tmp_group_name=$login;
81
			if (is_file("../lib/$config[general_lib_type]/group_info.php")){
85
			if (is_file("../lib/$config[general_lib_type]/group_info.php")){
82
				include("../lib/$config[general_lib_type]/group_info.php");
86
				include("../lib/$config[general_lib_type]/group_info.php");
83
			}
87
			}