Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 911 → Rev 910

/web/acc/manager/htdocs/find.php
1,5 → 1,6
<?php
//gestion de la langue
$origine='find_user';
if (is_file("../lib/langues.php"))
include("../lib/langues.php");
require('/etc/freeradius-web/config.php');
9,13 → 10,13
?>
<html>
<head>
<title>Find a user</title>
<title><?php echo "$l_title";?></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_users_managment";?></th></tr>
<tr><th><?php echo "$l_frame_top";?></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,5 → 1,6
<?php
//gestion de la langue
$origine='user_edit';
if (is_file("../lib/langues.php"))
include("../lib/langues.php");
require('/etc/freeradius-web/config.php');
32,7 → 33,7
?>
<html>
<head>
<title>Users & groups edition</title>
<title><?php echo "$l_title";?></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/user_accounting.php
1,5 → 1,6
<?php
//gestion de la langue
$origine='user_accounting';
if (is_file("../lib/langues.php"))
include("../lib/langues.php");
require('/etc/freeradius-web/config.php');
15,7 → 16,7
echo <<<EOM
<html>
<head>
<title>User accounting</title>
<title>$l_title</title>
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="/css/style.css">
</head>
54,13 → 55,13
echo <<<EOM
<html>
<head>
<title>iUser accounting</title>
<title>i$l_title</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_users_managment</th></tr>
<tr><th>$l_frame_top</th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
height="2"></td></tr>
</TABLE>
192,10 → 193,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</b></td>\n";
if ($acct_attrs[ua][3] != '') echo "<td><b>$acct_sessiontime_sum</td>\n";
if ($acct_attrs[ua][4] != '') echo "<td>&nbsp;</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][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][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";
210,7 → 211,7
<tr><td colspan=6></td>
</tr>
<tr valign="bottom">
<td><?php echo "$l_user";?></td><td>from</td><td>to</td><td>nbr./page</td><td>order</td>
<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>
<tr valign="middle"><td>
<?php
echo <<<EOM
/web/acc/manager/htdocs/group_new.php
1,6 → 1,7
<?php
 
//Gestion de la langue
$origine='group_new';
if (is_file("../lib/langues.php"))
include("../lib/langues.php");
36,9 → 37,10
$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" />
55,7 → 57,7
</head>
<body>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th><? echo "$l_groups_managment"; ?></th></tr>
<tr><th><? echo "$l_frame_top"; ?></th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
height="2"></td></tr>
</TABLE>
/web/acc/manager/htdocs/voucher_new.php
1,6 → 1,7
<?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");
 
19,9 → 20,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" />
40,7 → 41,7
</head>
<body>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th><?php echo"$l_users_managment"; ?></th></tr>
<tr><th><?php echo"$l_frame_top"; ?></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>
54,7 → 55,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_user_create"; ?></font>
<font color="white"><?php echo "$l_frame"; ?></font>
</th></tr>
</table>
</td></tr>
363,9 → 364,12
}
?>
</form>
</td></tr>
 
</td></tr>
</table>
</td></tr>
</tr>
</table>
</TD></TR>
</TABLE>
</td></tr>
</TABLE>
/web/acc/manager/htdocs/user_new.php
1,8 → 1,10
<?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");
18,9 → 20,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" />
39,7 → 41,7
</head>
<body>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th><?php echo "$l_users_managment"; ?></th></tr>
<tr><th><?php echo "$l_frame_top"; ?></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>
53,7 → 55,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_user_create"; ?></font>
<font color="white"><? echo "$l_frame"; ?></font>
</th></tr>
</table>
</td></tr>
194,6 → 196,37
<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_delete.php
1,21 → 1,15
<?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");
$origine='user_del';
}
else {
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>
22,20 → 16,19
EOM;
 
if ($user_type != 'group'){
$util = $l_user;
$title = $l_users_managment;}
echo "<title>delete user $login ($cn)</title>\n";
$util = "usagers";}
else{
$util = $l_group;
$title = $l_groups_managment;}
echo "<title>delete group $login</title>\n";
$util = "groupes";}
 
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>$title</th></tr>
<tr><th>Gestion des $util</th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
height="2"></td></tr>
</TABLE>
68,7 → 61,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">$util : $login ($cn)</font>&nbsp;
<font color="white">Suppression $whatisL</font>&nbsp;
</th></tr>
</table>
</td></tr>
118,13 → 111,13
<td align=center>
<?php
if ($user_type == 'group'){
echo "$l_group_members_remove : ";
echo "Suppression automatique des membres du groupe : ";
echo "<input type=checkbox name=delete_users_of_group value=\"1\">";
}
echo "<br>";
echo "$l_are_you_sure <b>$login</b> ? ";
echo "Etes-vous certain de vouloir supprimer $whatis $login ? ";
?>
<input type=submit class=button value="<?php echo"$l_yes_remove";?>" OnClick="this.form.delete_user.value=1">
<input type=submit class=button value="Oui supprimer" OnClick="this.form.delete_user.value=1">
</form>
</td></tr></table></td></tr>
</table>
/web/acc/manager/htdocs/show_groups.php
1,15 → 1,35
<?php
//gestion de la langue
if (is_file("../lib/langues.php"))
include("../lib/langues.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";
}
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
<html>
<title>Find group</title>
<title>$l_title</title>
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="/css/style.css">
</head>
23,8 → 43,7
}
if ($config[general_lib_type] != 'sql'){
echo <<<EOM
<html>
<title>find group</title>
<title>$l_title</title>
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="style.css">
</head>
38,13 → 57,13
}
?>
<head>
<title>Find group</title>
<title><?php echo "$l_title"; ?></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_groups_managment"; ?></th></tr>
<tr><th><?php echo "$l_frame_top"; ?></th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
height="2"></td></tr>
</TABLE>
63,7 → 82,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_group_select"; ?></font>
<font color="white"><?php echo "$l_frame"; ?></font>
</th></tr>
</table>
</td></tr>
/web/acc/manager/lib/langues.php
41,15 → 41,11
$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é";
91,10 → 87,29
$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_are_you_sure = "&Ecirc;tes-vous sûre de voiloir supprimer";
$l_yes_remove = "Oui, supprimer";
$l_create = "Créer";
$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
124,15 → 139,11
$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";
174,10 → 185,29
$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