Line 3... |
Line 3... |
3 |
include_once("../lib/sql/drivers/$config[sql_type]/functions.php");
|
3 |
include_once("../lib/sql/drivers/$config[sql_type]/functions.php");
|
4 |
else{
|
4 |
else{
|
5 |
echo "<b>Could not include SQL library</b><br>\n";
|
5 |
echo "<b>Could not include SQL library</b><br>\n";
|
6 |
exit();
|
6 |
exit();
|
7 |
}
|
7 |
}
|
8 |
$link = @da_sql_pconnect($config);
|
8 |
$link = da_sql_pconnect($config);
|
9 |
if ($link){
|
9 |
if ($link){
|
10 |
$res = @da_sql_query($link,$config,
|
10 |
$res = da_sql_query($link,$config,
|
11 |
"DELETE FROM $config[sql_groupreply_table] WHERE groupname = '$login';");
|
11 |
"DELETE FROM $config[sql_groupreply_table] WHERE groupname = '$login';");
|
12 |
if ($res){
|
12 |
if ($res){
|
13 |
$res = @da_sql_query($link,$config,
|
13 |
$res = da_sql_query($link,$config,
|
14 |
"DELETE FROM $config[sql_groupcheck_table] WHERE groupname = '$login';");
|
14 |
"DELETE FROM $config[sql_groupcheck_table] WHERE groupname = '$login';");
|
15 |
if ($res){
|
15 |
if ($res){
|
16 |
$res = @da_sql_query($link,$config,
|
16 |
$res = da_sql_query($link,$config,
|
17 |
"DELETE FROM $config[sql_usergroup_table] WHERE groupname = '$login';");
|
17 |
"DELETE FROM $config[sql_usergroup_table] WHERE groupname = '$login';");
|
18 |
if ($res)
|
18 |
if ($res)
|
19 |
echo "<b>Le groupe $login a été correctement supprimé</b><br>\n";
|
19 |
echo "<b>Le groupe $login a été correctement supprimé</b><br>\n";
|
20 |
else
|
20 |
else
|
21 |
echo "<b>Error deleting group $login from usergroup table: " . da_sql_error($link,$config) . "</b><br>\n";
|
21 |
echo "<b>Error deleting group $login from usergroup table: " . da_sql_error($link,$config) . "</b><br>\n";
|