Subversion Repositories ALCASAR

Compare Revisions

Regard 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>