Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 910 → Rev 911

/web/acc/manager/htdocs/user_delete.php
1,15 → 1,21
<?php
//gestion de la langue
if (is_file("../lib/langues.php"))
include("../lib/langues.php");
require('/etc/freeradius-web/config.php');
if ($type != 'group')
if ($type != 'group'){
if (is_file("../lib/$config[general_lib_type]/user_info.php"))
include("../lib/$config[general_lib_type]/user_info.php");
else
$origine='user_del';
}
else {
if (is_file("../lib/$config[general_lib_type]/group_info.php"))
include("../lib/$config[general_lib_type]/group_info.php");
$origine='group_del';
}
if (is_file("../lib/langues.php"))
include("../lib/langues.php");
 
$whatis = ($user_type == 'group') ? 'le groupe' : 'l\'usager';
$whatisL = ($user_type == 'group') ? 'de groupe' : 'd\'usager';
 
echo <<<EOM
<html>
<head>
16,19 → 22,20
EOM;
 
if ($user_type != 'group'){
echo "<title>delete user $login ($cn)</title>\n";
$util = "usagers";}
$util = $l_user;
$title = $l_users_managment;}
else{
echo "<title>delete group $login</title>\n";
$util = "groupes";}
$util = $l_group;
$title = $l_groups_managment;}
 
echo <<<EOM
<title>delete users and groups</title>
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th>Gestion des $util</th></tr>
<tr><th>$title</th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
height="2"></td></tr>
</TABLE>
61,7 → 68,7
<td bgcolor="black" width=200>
<table border=0 width=100% cellpadding=2 cellspacing=0>
<tr bgcolor="#907030" align=right valign=top><th>
<font color="white">Suppression $whatisL</font>&nbsp;
<font color="white">$util : $login ($cn)</font>&nbsp;
</th></tr>
</table>
</td></tr>
111,13 → 118,13
<td align=center>
<?php
if ($user_type == 'group'){
echo "Suppression automatique des membres du groupe : ";
echo "$l_group_members_remove : ";
echo "<input type=checkbox name=delete_users_of_group value=\"1\">";
}
echo "<br>";
echo "Etes-vous certain de vouloir supprimer $whatis $login ? ";
echo "$l_are_you_sure <b>$login</b> ? ";
?>
<input type=submit class=button value="Oui supprimer" OnClick="this.form.delete_user.value=1">
<input type=submit class=button value="<?php echo"$l_yes_remove";?>" OnClick="this.form.delete_user.value=1">
</form>
</td></tr></table></td></tr>
</table>
/web/acc/manager/htdocs/group_new.php
1,7 → 1,6
<?php
 
//Gestion de la langue
$origine='group_new';
if (is_file("../lib/langues.php"))
include("../lib/langues.php");
37,10 → 36,9
$show_ops = 0;
$colspan=1;
}
echo "<html><head><title>$l_title</title>";
 
?>
 
<html><head><title>New group</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" type="text/css" href="/css/epoch_styles.css" />
57,7 → 55,7
</head>
<body>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th><? echo "$l_frame_top"; ?></th></tr>
<tr><th><? echo "$l_groups_managment"; ?></th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
height="2"></td></tr>
</TABLE>
/web/acc/manager/htdocs/show_groups.php
1,35 → 1,15
<?php
# Choice of language
$Language = 'en';
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
if($Language == 'fr'){
$l_title = "Liste des groupes d'usagers";
$l_frame_top = "Gestion des groupes";
$l_frame = "Liste des groupes";
$l_group = "groupe";
$l_nb_users = "Nombre d'usagers";
$l_empty_list = "La liste des groupes est vide";
}
else {
$l_title = "Create a group";
$l_frame_top = "Groups admin";
$l_frame = "Groups list";
$l_group = "group";
$l_nb_users = "Number of users";
$l_empty_list = "The groups list is empty";
}
//gestion de la langue
if (is_file("../lib/langues.php"))
include("../lib/langues.php");
require('/etc/freeradius-web/config.php');
?>
<html>
<?php
 
if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php"))
include_once("../lib/sql/drivers/$config[sql_type]/functions.php");
else{
echo <<<EOM
<title>$l_title</title>
<html>
<title>Find group</title>
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="/css/style.css">
</head>
43,7 → 23,8
}
if ($config[general_lib_type] != 'sql'){
echo <<<EOM
<title>$l_title</title>
<html>
<title>find group</title>
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="style.css">
</head>
57,13 → 38,13
}
?>
<head>
<title><?php echo "$l_title"; ?></title>
<title>Find group</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th><?php echo "$l_frame_top"; ?></th></tr>
<tr><th><?php echo "$l_groups_managment"; ?></th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
height="2"></td></tr>
</TABLE>
82,7 → 63,7
<td bgcolor="black" width=45%>
<table border=0 width=100% cellpadding=2 cellspacing=0>
<tr bgcolor="#907030" align=right valign=top><th>
<font color="white"><?php echo "$l_frame"; ?></font>
<font color="white"><?php echo "$l_group_select"; ?></font>
</th></tr>
</table>
</td></tr>
/web/acc/manager/htdocs/find.php
1,6 → 1,5
<?php
//gestion de la langue
$origine='find_user';
if (is_file("../lib/langues.php"))
include("../lib/langues.php");
require('/etc/freeradius-web/config.php');
10,13 → 9,13
?>
<html>
<head>
<title><?php echo "$l_title";?></title>
<title>Find a user</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config['general_charset']?>">
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th><?php echo "$l_frame_top";?></th></tr>
<tr><th><?php echo "$l_users_managment";?></th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
height="2"></td></tr>
</TABLE>
/web/acc/manager/htdocs/user_edit.php
1,6 → 1,5
<?php
//gestion de la langue
$origine='user_edit';
if (is_file("../lib/langues.php"))
include("../lib/langues.php");
require('/etc/freeradius-web/config.php');
33,7 → 32,7
?>
<html>
<head>
<title><?php echo "$l_title";?></title>
<title>Users & groups edition</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
<link rel="stylesheet" href="/css/style.css">
<script language="javascript" type="text/javascript">
/web/acc/manager/htdocs/voucher_new.php
1,7 → 1,6
<?php
// ticket d'impression (thank's to Geoffroy MUSITELLI)
//gestion de la langue
$origine='user_new';
if (is_file("../lib/langues.php"))
include("../lib/langues.php");
 
20,9 → 19,9
$show_ops = 0;
$colspan=1;
}
echo "<html><head><title>$l_title</title>";
?>
 
<html><head><title>Voucher creation</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" type="text/css" href="/css/epoch_styles.css" />
41,7 → 40,7
</head>
<body>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th><?php echo"$l_frame_top"; ?></th></tr>
<tr><th><?php echo"$l_users_managment"; ?></th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
</TABLE>
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
55,7 → 54,7
<td bgcolor="black" width=200>
<table border=0 width=100% cellpadding=2 cellspacing=0>
<tr bgcolor="#907030" align=right valign=top><th>
<font color="white"><?php echo "$l_frame"; ?></font>
<font color="white"><?php echo "$l_user_create"; ?></font>
</th></tr>
</table>
</td></tr>
364,12 → 363,9
}
?>
</form>
 
</td></tr>
</td></tr>
</table>
</tr>
</table>
</TD></TR>
</td></tr>
</TABLE>
</td></tr>
</TABLE>
/web/acc/manager/htdocs/user_new.php
1,10 → 1,8
<?php
// ticket d'impression (thank's to Geoffroy MUSITELLI)
//gestion de la langue
$origine='user_new';
if (is_file("../lib/langues.php"))
include("../lib/langues.php");
 
require('/etc/freeradius-web/config.php');
if ($show == 1){
header("Location: user_admin.php?login=$login");
20,9 → 18,9
$show_ops = 0;
$colspan=1;
}
echo "<html><head><title>$l_title</title>";
?>
 
<html><head><title>User creation</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" type="text/css" href="/css/epoch_styles.css" />
41,7 → 39,7
</head>
<body>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th><?php echo "$l_frame_top"; ?></th></tr>
<tr><th><?php echo "$l_users_managment"; ?></th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
</TABLE>
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
55,7 → 53,7
<td bgcolor="black" width=200>
<table border=0 width=100% cellpadding=2 cellspacing=0>
<tr bgcolor="#907030" align=right valign=top><th>
<font color="white"><? echo "$l_frame"; ?></font>
<font color="white"><? echo "$l_user_create"; ?></font>
</th></tr>
</table>
</td></tr>
196,37 → 194,6
<input type=text name="Fmail" value="$mail" size=35>
</td>
</tr>
<!-- Mettre en commentaire les champs qui ne sont pas nécessaire, chaque champ est entre les balises <tr> et </tr> -->
<!--
<tr>
<td class="etiquette" colspan=$colspan>
Service
</td><td>
<input type=text name="Fou" value="$ou" size=35>
</td>
</tr>
<tr>
<td class="etiquette" colspan=$colspan>
Nro TPH personnel
</td><td>
<input type=text name="Fhomephone" value="$homephone" size=35>
</td>
</tr>
<tr>
<td class="etiquette" colspan=$colspan>
Nro TPH bureau
</td><td>
<input type=text name="Ftelephonenumber" value="$telephonenumber" size=35>
</td>
</tr>
<tr>
<td class="etiquette" colspan=$colspan>
Nro TPH mobile
</td><td>
<input type=text name="Fmobile" value="$mobile" size=35>
</td>
</tr>
-->
EOM;
}
foreach($show_attrs as $key => $desc){
/web/acc/manager/htdocs/user_accounting.php
1,6 → 1,5
<?php
//gestion de la langue
$origine='user_accounting';
if (is_file("../lib/langues.php"))
include("../lib/langues.php");
require('/etc/freeradius-web/config.php');
16,7 → 15,7
echo <<<EOM
<html>
<head>
<title>$l_title</title>
<title>User accounting</title>
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="/css/style.css">
</head>
55,13 → 54,13
echo <<<EOM
<html>
<head>
<title>i$l_title</title>
<title>iUser accounting</title>
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th>$l_frame_top</th></tr>
<tr><th>$l_users_managment</th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
height="2"></td></tr>
</TABLE>
193,10 → 192,10
<tr bgcolor="lightyellow" align="center">
<td colspan=$colspan><b>Total</b></td>
EOM;
if ($acct_attrs[ua][3] != '') echo "<td><b>$acct_sessiontime_sum</td>\n";
if ($acct_attrs[ua][3] != '') echo "<td><b>$acct_sessiontime_sum</b></td>\n";
if ($acct_attrs[ua][4] != '') echo "<td>&nbsp;</td>\n";
if ($acct_attrs[ua][5] != '') echo "<td><b>$acct_upload_sum</td>\n";
if ($acct_attrs[ua][6] != '') echo "<td><b>$acct_download_sum</td>\n";
if ($acct_attrs[ua][5] != '') echo "<td><b>$acct_upload_sum</b></td>\n";
if ($acct_attrs[ua][6] != '') echo "<td><b>$acct_download_sum</b></td>\n";
// if ($acct_attrs[ua][7] != '') echo "<td>&nbsp;</td>\n";
if ($acct_attrs[ua][8] != '') echo "<td>&nbsp;</td>\n";
// if ($acct_attrs[ua][9] != '') echo "<td>&nbsp;</td>\n";
211,7 → 210,7
<tr><td colspan=6></td>
</tr>
<tr valign="bottom">
<td><small><b><?php echo "$l_user";?></td><td><small><b>from</td><td><small><b>to</td><td><small><b>nbr./page</td><td><b>order</td>
<td><?php echo "$l_user";?></td><td>from</td><td>to</td><td>nbr./page</td><td>order</td>
<tr valign="middle"><td>
<?php
echo <<<EOM
/web/acc/manager/lib/langues.php
41,11 → 41,15
$l_password = "Mot de passe";
$l_new_password = "Nouveau mot de passe";
$l_passwd_gen = "générer";
$l_user_create = "Créer un usager";
$l_nb_users = "Nombre d'usagers";
$l_group_create = "Créer un groupe";
$l_group_select = "Selectionnez un groupe";
$l_group = "Groupe";
$l_created_groups = "Groupe(s) déjà créé(s)";
$l_group_name = "Nom du groupe";
$l_group_members = "Membres du groupe :<br>(séparé par un espace ou un 'retour chariot')";
$l_group_members_remove = "Supprimer tous les membres de ce groupe";
$l_group_member = "Membre du groupe";
$l_group_empty = "La liste des groupes est vide";
$l_main_group = "Le groupe principal est surligné";
87,29 → 91,10
$l_wispr_redirection = "URL de redirection";
$l_click_for_help = "Cliquez pour afficher l'aide sur cet attribut";
$l_show_profile = "Afficher le profil";
$l_create = "Créer";
$l_are_you_sure = "&Ecirc;tes-vous sûre de voiloir supprimer";
$l_yes_remove = "Oui, supprimer";
$l_create = "Créer";
$l_change = "Modifier";
switch ($origine){
//Administration
case 'user_new':
case 'user_accounting':
case 'user_info':
case 'user_edit':
$l_title = "Cr&eacute;ation d'un usager";
$l_frame_top = "Gestion des usagers";
$l_frame = "Cr&eacute;ation d'un usager";
break;
case 'group_new':
$l_title = "Cr&eacute;ation d'un groupe";
$l_frame_top = "Gestion des groupes";
$l_frame = "Gestion des groupes";
break;
case 'find_user':
$l_title = "&Eacute;diter un usager";
$l_frame_top = "Gestion des usagers";
$l_frame = "&Eacute;diter un usager";
break;
}
break;
default :
//English
139,11 → 124,15
$l_password = "Password";
$l_new_password = "New password";
$l_passwd_gen = "generate";
$l_user_create = "Create a user";
$l_nb_users = "Number of users";
$l_group_create = "Create a group";
$l_group_select = "Select a group";
$l_group = "Group";
$l_created_groups = "Already created group(s)";
$l_group_name = "Group name";
$l_group_members = "Members of group :<br>(separate by a 'space' or a 'carriage return')";
$l_group_members_remove = "Remove all members of this group";
$l_group_member = "Member of group";
$l_group_empty = "The group list is empty";
$l_main_group = "The main group is highlighted";
185,29 → 174,10
$l_wispr_redirection = "Redirection URL";
$l_click_for_help = "Click to show help about this attribute";
$l_show_profile = "Show profile";
$l_are_you_sure = "Are you sure to remove";
$l_yes_remove = "Yes, remove";
$l_create = "Create";
$l_change = "Change";
switch ($origine){
//Administration
case 'user_new':
case 'user_edit':
case 'user_accounting':
case 'user_info':
$l_title = "Create a user";
$l_frame_top = "Users managment";
$l_frame = "Create a user";
break;
case 'group_new':
$l_title = "Create a group";
$l_frame_top = "Groups managment";
$l_frame = "Create a group";
break;
case 'find_user':
$l_title = "Edit a user";
$l_frame_top = "Users managment";
$l_frame = "Edit a user";
break;
}
break;
}
//Langue du Ticket d'impression en fonction de la liste déroulante