more thorough cleanup on account/contact removal
This commit is contained in:
parent
6380d22229
commit
ea03d9fa86
|
@ -14,11 +14,13 @@ function user_remove($uid) {
|
||||||
q("DELETE FROM `group` WHERE `uid` = %d", intval($uid));
|
q("DELETE FROM `group` WHERE `uid` = %d", intval($uid));
|
||||||
q("DELETE FROM `group_member` WHERE `uid` = %d", intval($uid));
|
q("DELETE FROM `group_member` WHERE `uid` = %d", intval($uid));
|
||||||
q("DELETE FROM `intro` WHERE `uid` = %d", intval($uid));
|
q("DELETE FROM `intro` WHERE `uid` = %d", intval($uid));
|
||||||
|
q("DELETE FROM `event` WHERE `uid` = %d", intval($uid));
|
||||||
q("DELETE FROM `item` WHERE `uid` = %d", intval($uid));
|
q("DELETE FROM `item` WHERE `uid` = %d", intval($uid));
|
||||||
q("DELETE FROM `mail` WHERE `uid` = %d", intval($uid));
|
q("DELETE FROM `mail` WHERE `uid` = %d", intval($uid));
|
||||||
q("DELETE FROM `photo` WHERE `uid` = %d", intval($uid));
|
q("DELETE FROM `photo` WHERE `uid` = %d", intval($uid));
|
||||||
q("DELETE FROM `profile` WHERE `uid` = %d", intval($uid));
|
q("DELETE FROM `profile` WHERE `uid` = %d", intval($uid));
|
||||||
q("DELETE FROM `profile_check` WHERE `uid` = %d", intval($uid));
|
q("DELETE FROM `profile_check` WHERE `uid` = %d", intval($uid));
|
||||||
|
q("DELETE FROM `pconfig` WHERE `uid` = %d", intval($uid));
|
||||||
q("DELETE FROM `user` WHERE `uid` = %d", intval($uid));
|
q("DELETE FROM `user` WHERE `uid` = %d", intval($uid));
|
||||||
if($uid == local_user()) {
|
if($uid == local_user()) {
|
||||||
unset($_SESSION['authenticated']);
|
unset($_SESSION['authenticated']);
|
||||||
|
@ -41,6 +43,9 @@ function contact_remove($id) {
|
||||||
q("DELETE FROM `mail` WHERE `contact-id` = %d ",
|
q("DELETE FROM `mail` WHERE `contact-id` = %d ",
|
||||||
intval($id)
|
intval($id)
|
||||||
);
|
);
|
||||||
|
q("DELETE FROM `event` WHERE `cid` = %d ",
|
||||||
|
intval($id)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -310,6 +310,7 @@ foreach($_FILES AS $key => $val) {
|
||||||
$arr['deny_gid'] = $p[0]['deny_gid'];
|
$arr['deny_gid'] = $p[0]['deny_gid'];
|
||||||
$arr['last-child'] = 1;
|
$arr['last-child'] = 1;
|
||||||
$arr['visible'] = $visibility;
|
$arr['visible'] = $visibility;
|
||||||
|
|
||||||
$arr['body'] = '[url=' . $a->get_baseurl() . '/photos/' . $a->data['user']['nickname'] . '/image/' . $p[0]['resource-id'] . ']'
|
$arr['body'] = '[url=' . $a->get_baseurl() . '/photos/' . $a->data['user']['nickname'] . '/image/' . $p[0]['resource-id'] . ']'
|
||||||
. '[img]' . $a->get_baseurl() . '/photo/' . $p[0]['resource-id'] . '-' . $p[0]['scale'] . '.jpg' . '[/img]'
|
. '[img]' . $a->get_baseurl() . '/photo/' . $p[0]['resource-id'] . '-' . $p[0]['scale'] . '.jpg' . '[/img]'
|
||||||
. '[/url]';
|
. '[/url]';
|
||||||
|
|
Loading…
Reference in a new issue