Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
domainepublic
alternc
Commits
2d9f902c
Commit
2d9f902c
authored
Feb 07, 2013
by
Alan Garcia
Browse files
Devrait fixer #1350 .
A vérifier
parent
1e72ecb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
roundcube/class/m_roundcube.php
View file @
2d9f902c
...
...
@@ -93,10 +93,18 @@ class m_roundcube {
break
;
}
$count
=
$dbh
->
query
(
"select * from session ;"
);
$count2
=
$count
->
fetchAll
();
// FIXME faire les vraie requetes de suppression
$req
=
$dbh
->
query
(
"SELECT user_id FROM users WHERE username = '
$fullmail
'"
);
foreach
(
$req
->
fetchAll
()
as
$t
)
{
if
(
empty
(
$t
[
'user_id'
]))
continue
;
$rcuser_id
=
$t
[
'user_id'
];
$dbh
->
query
(
"DELETE from contactgroupmembers where contactgroup_id in (select contactgroup_id from contactgroups where user_id =
$rcuser_id
) ; "
);
$dbh
->
query
(
"DELETE from contactgroups where user_id =
$rcuser_id
; "
);
$dbh
->
query
(
"DELETE from contacts where user_id =
$rcuser_id
; "
);
$dbh
->
query
(
"DELETE from identities where user_id =
$rcuser_id
; "
);
$dbh
->
query
(
"DELETE from users where user_id =
$rcuser_id
; "
);
}
//foreach
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment