| Line 1... |
Line 1... |
| 1 |
<?php
|
1 |
<?php
|
| - |
|
2 |
//gestion de la langue
|
| - |
|
3 |
if (is_file("../lib/langues.php"))
|
| - |
|
4 |
include("../lib/langues.php");
|
| 2 |
require('/etc/freeradius-web/config.php');
|
5 |
require('/etc/freeradius-web/config.php');
|
| - |
|
6 |
if (is_file("../lib/$config[general_lib_type]/user_info.php"))
|
| - |
|
7 |
include("../lib/$config[general_lib_type]/user_info.php");
|
| 3 |
if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php"))
|
8 |
if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php"))
|
| 4 |
include_once("../lib/sql/drivers/$config[sql_type]/functions.php");
|
9 |
include_once("../lib/sql/drivers/$config[sql_type]/functions.php");
|
| 5 |
else{
|
10 |
else{
|
| 6 |
echo <<<EOM
|
11 |
echo <<<EOM
|
| 7 |
<title>Fermeture des sessions ouvertes pour l'utilisateur $login</title>
|
12 |
<title>Clear opensession</title>
|
| 8 |
<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]">
|
| 9 |
<link rel="stylesheet" href="style.css">
|
14 |
<link rel="stylesheet" href="style.css">
|
| 10 |
</head>
|
15 |
</head>
|
| 11 |
<body>
|
16 |
<body>
|
| 12 |
<center>
|
17 |
<center>
|
| Line 18... |
Line 23... |
| 18 |
}
|
23 |
}
|
| 19 |
|
24 |
|
| 20 |
echo <<<EOM
|
25 |
echo <<<EOM
|
| 21 |
<html>
|
26 |
<html>
|
| 22 |
<head>
|
27 |
<head>
|
| 23 |
<title>Fermeture des sessions ouvertes pour l'usager : $login</title>
|
28 |
<title>Clear opensession</title>
|
| 24 |
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
|
29 |
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
|
| 25 |
<link rel="stylesheet" href="/css/style.css">
|
30 |
<link rel="stylesheet" href="/css/style.css">
|
| 26 |
</head>
|
31 |
</head>
|
| 27 |
<body>
|
32 |
<body>
|
| 28 |
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
|
33 |
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
|
| 29 |
<tr><th>Gestion des usagers</th></tr>
|
34 |
<tr><th>$l_users_managment</th></tr>
|
| 30 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
|
35 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
|
| 31 |
height="2"></td></tr>
|
36 |
height="2"></td></tr>
|
| 32 |
</TABLE>
|
37 |
</TABLE>
|
| 33 |
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
|
38 |
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
|
| 34 |
<tr bgcolor="#666666"><td>
|
39 |
<tr bgcolor="#666666"><td>
|
| Line 54... |
Line 59... |
| 54 |
<tr valign=top>
|
59 |
<tr valign=top>
|
| 55 |
<td width=340></td>
|
60 |
<td width=340></td>
|
| 56 |
<td bgcolor="black" width=200>
|
61 |
<td bgcolor="black" width=200>
|
| 57 |
<table border=0 width=100% cellpadding=2 cellspacing=0>
|
62 |
<table border=0 width=100% cellpadding=2 cellspacing=0>
|
| 58 |
<tr bgcolor="#907030" align=right valign=top><th>
|
63 |
<tr bgcolor="#907030" align=right valign=top><th>
|
| 59 |
<font color="white">Fermeture des sessions ouvertes pour l'usager : $login</font>
|
64 |
<font color="white">$l_user : $login ($cn)</font>
|
| 60 |
</th></tr>
|
65 |
</th></tr>
|
| 61 |
</table>
|
66 |
</table>
|
| 62 |
</td></tr>
|
67 |
</td></tr>
|
| 63 |
<tr bgcolor="black" valign=top><td colspan=2>
|
68 |
<tr bgcolor="black" valign=top><td colspan=2>
|
| 64 |
<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
|
69 |
<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
|
| Line 113... |
Line 118... |
| 113 |
<tr>
|
118 |
<tr>
|
| 114 |
<td align=center>
|
119 |
<td align=center>
|
| 115 |
<?
|
120 |
<?
|
| 116 |
if (($open_accnt_sessions == 0) && ($open_chilli_sessions[0] == 0))
|
121 |
if (($open_accnt_sessions == 0) && ($open_chilli_sessions[0] == 0))
|
| 117 |
{
|
122 |
{
|
| 118 |
echo "L'usager $login n'a pas de session ouverte";
|
123 |
echo "$l_no_open_session";
|
| 119 |
}
|
124 |
}
|
| 120 |
else {
|
125 |
else {
|
| 121 |
echo "L'usager '$login' a <i>$open_chilli_sessions[0]</i> session(s) ouverte(s) et <i>$open_accnt_sessions</i> comptabilité(s) actives(s)<br><br>";
|
126 |
echo "<b>$open_chilli_sessions[0]</b> $l_opened_sessions<br><b>$open_accnt_sessions</b> $l_active_accounting<br>";
|
| 122 |
echo "Voulez-vous les fermer?";
|
127 |
echo "$l_want_to_close ";
|
| 123 |
echo "<input type=submit class=button value=\"Oui, Fermer\" OnClick=\"this.form.clear_sessions.value=1\">";
|
128 |
echo "<input type=submit class=button value=\"$l_yes_close\" OnClick=\"this.form.clear_sessions.value=1\">";
|
| 124 |
}
|
129 |
}
|
| 125 |
?>
|
130 |
?>
|
| 126 |
</form>
|
131 |
</form>
|
| 127 |
</td></tr></table>
|
132 |
</td></tr></table>
|
| 128 |
</td></tr></table>
|
133 |
</td></tr></table>
|