From 8aa25523721303b6883e1a793f20997f8a33ec0a Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 18 Jan 2012 16:21:30 -0800 Subject: add remove_user hook (it looks like dreamhost changed all my file permissions, this will make a nasty commit) --- include/Contact.php | 6 ++++++ include/EmailNotification.php | 0 include/Photo.php | 0 include/Scrape.php | 0 include/acl_selectors.php | 0 include/api.php | 0 include/attach.php | 0 include/auth.php | 0 include/bb2diaspora.php | 0 include/bbcode.php | 0 include/cache.php | 0 include/config.php | 0 include/contact_selectors.php | 0 include/contact_widgets.php | 0 include/conversation.php | 0 include/cronhooks.php | 0 include/crypto.php | 0 include/datetime.php | 0 include/dba.php | 0 include/delivery.php | 0 include/diaspora.php | 0 include/directory.php | 0 include/email.php | 0 include/enotify.php | 0 include/event.php | 0 include/expire.php | 0 include/fcontact.php | 0 include/group.php | 0 include/html2bbcode.php | 0 include/items.php | 0 include/message.php | 0 include/nav.php | 0 include/network.php | 0 include/notifier.php | 0 include/oauth.php | 0 include/oembed.php | 0 include/pgettext.php | 0 include/plugin.php | 0 include/poller.php | 0 include/profile_advanced.php | 0 include/profile_selectors.php | 0 include/profile_update.php | 0 include/queue.php | 0 include/queue_fn.php | 0 include/remoteupdate.php | 0 include/salmon.php | 0 include/security.php | 0 include/session.php | 0 include/socgraph.php | 0 include/system_unavailable.php | 0 include/template_processor.php | 0 include/text.php | 0 52 files changed, 6 insertions(+) mode change 100644 => 100755 include/Contact.php mode change 100644 => 100755 include/EmailNotification.php mode change 100644 => 100755 include/Photo.php mode change 100644 => 100755 include/Scrape.php mode change 100644 => 100755 include/acl_selectors.php mode change 100644 => 100755 include/api.php mode change 100644 => 100755 include/attach.php mode change 100644 => 100755 include/auth.php mode change 100644 => 100755 include/bb2diaspora.php mode change 100644 => 100755 include/bbcode.php mode change 100644 => 100755 include/cache.php mode change 100644 => 100755 include/config.php mode change 100644 => 100755 include/contact_selectors.php mode change 100644 => 100755 include/contact_widgets.php mode change 100644 => 100755 include/conversation.php mode change 100644 => 100755 include/cronhooks.php mode change 100644 => 100755 include/crypto.php mode change 100644 => 100755 include/datetime.php mode change 100644 => 100755 include/dba.php mode change 100644 => 100755 include/delivery.php mode change 100644 => 100755 include/diaspora.php mode change 100644 => 100755 include/directory.php mode change 100644 => 100755 include/email.php mode change 100644 => 100755 include/enotify.php mode change 100644 => 100755 include/event.php mode change 100644 => 100755 include/expire.php mode change 100644 => 100755 include/fcontact.php mode change 100644 => 100755 include/group.php mode change 100644 => 100755 include/html2bbcode.php mode change 100644 => 100755 include/items.php mode change 100644 => 100755 include/message.php mode change 100644 => 100755 include/nav.php mode change 100644 => 100755 include/network.php mode change 100644 => 100755 include/notifier.php mode change 100644 => 100755 include/oauth.php mode change 100644 => 100755 include/oembed.php mode change 100644 => 100755 include/pgettext.php mode change 100644 => 100755 include/plugin.php mode change 100644 => 100755 include/poller.php mode change 100644 => 100755 include/profile_advanced.php mode change 100644 => 100755 include/profile_selectors.php mode change 100644 => 100755 include/profile_update.php mode change 100644 => 100755 include/queue.php mode change 100644 => 100755 include/queue_fn.php mode change 100644 => 100755 include/remoteupdate.php mode change 100644 => 100755 include/salmon.php mode change 100644 => 100755 include/security.php mode change 100644 => 100755 include/session.php mode change 100644 => 100755 include/socgraph.php mode change 100644 => 100755 include/system_unavailable.php mode change 100644 => 100755 include/template_processor.php mode change 100644 => 100755 include/text.php (limited to 'include') diff --git a/include/Contact.php b/include/Contact.php old mode 100644 new mode 100755 index 45fd368d8..baccea305 --- a/include/Contact.php +++ b/include/Contact.php @@ -10,6 +10,12 @@ function user_remove($uid) { return; $a = get_app(); logger('Removing user: ' . $uid); + + $r = q("select * from user where uid = %d limit 1", intval($uid)); + + call_hooks('remove_user',$r[0]); + + q("DELETE FROM `contact` WHERE `uid` = %d", intval($uid)); q("DELETE FROM `group` WHERE `uid` = %d", intval($uid)); q("DELETE FROM `group_member` WHERE `uid` = %d", intval($uid)); diff --git a/include/EmailNotification.php b/include/EmailNotification.php old mode 100644 new mode 100755 diff --git a/include/Photo.php b/include/Photo.php old mode 100644 new mode 100755 diff --git a/include/Scrape.php b/include/Scrape.php old mode 100644 new mode 100755 diff --git a/include/acl_selectors.php b/include/acl_selectors.php old mode 100644 new mode 100755 diff --git a/include/api.php b/include/api.php old mode 100644 new mode 100755 diff --git a/include/attach.php b/include/attach.php old mode 100644 new mode 100755 diff --git a/include/auth.php b/include/auth.php old mode 100644 new mode 100755 diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php old mode 100644 new mode 100755 diff --git a/include/bbcode.php b/include/bbcode.php old mode 100644 new mode 100755 diff --git a/include/cache.php b/include/cache.php old mode 100644 new mode 100755 diff --git a/include/config.php b/include/config.php old mode 100644 new mode 100755 diff --git a/include/contact_selectors.php b/include/contact_selectors.php old mode 100644 new mode 100755 diff --git a/include/contact_widgets.php b/include/contact_widgets.php old mode 100644 new mode 100755 diff --git a/include/conversation.php b/include/conversation.php old mode 100644 new mode 100755 diff --git a/include/cronhooks.php b/include/cronhooks.php old mode 100644 new mode 100755 diff --git a/include/crypto.php b/include/crypto.php old mode 100644 new mode 100755 diff --git a/include/datetime.php b/include/datetime.php old mode 100644 new mode 100755 diff --git a/include/dba.php b/include/dba.php old mode 100644 new mode 100755 diff --git a/include/delivery.php b/include/delivery.php old mode 100644 new mode 100755 diff --git a/include/diaspora.php b/include/diaspora.php old mode 100644 new mode 100755 diff --git a/include/directory.php b/include/directory.php old mode 100644 new mode 100755 diff --git a/include/email.php b/include/email.php old mode 100644 new mode 100755 diff --git a/include/enotify.php b/include/enotify.php old mode 100644 new mode 100755 diff --git a/include/event.php b/include/event.php old mode 100644 new mode 100755 diff --git a/include/expire.php b/include/expire.php old mode 100644 new mode 100755 diff --git a/include/fcontact.php b/include/fcontact.php old mode 100644 new mode 100755 diff --git a/include/group.php b/include/group.php old mode 100644 new mode 100755 diff --git a/include/html2bbcode.php b/include/html2bbcode.php old mode 100644 new mode 100755 diff --git a/include/items.php b/include/items.php old mode 100644 new mode 100755 diff --git a/include/message.php b/include/message.php old mode 100644 new mode 100755 diff --git a/include/nav.php b/include/nav.php old mode 100644 new mode 100755 diff --git a/include/network.php b/include/network.php old mode 100644 new mode 100755 diff --git a/include/notifier.php b/include/notifier.php old mode 100644 new mode 100755 diff --git a/include/oauth.php b/include/oauth.php old mode 100644 new mode 100755 diff --git a/include/oembed.php b/include/oembed.php old mode 100644 new mode 100755 diff --git a/include/pgettext.php b/include/pgettext.php old mode 100644 new mode 100755 diff --git a/include/plugin.php b/include/plugin.php old mode 100644 new mode 100755 diff --git a/include/poller.php b/include/poller.php old mode 100644 new mode 100755 diff --git a/include/profile_advanced.php b/include/profile_advanced.php old mode 100644 new mode 100755 diff --git a/include/profile_selectors.php b/include/profile_selectors.php old mode 100644 new mode 100755 diff --git a/include/profile_update.php b/include/profile_update.php old mode 100644 new mode 100755 diff --git a/include/queue.php b/include/queue.php old mode 100644 new mode 100755 diff --git a/include/queue_fn.php b/include/queue_fn.php old mode 100644 new mode 100755 diff --git a/include/remoteupdate.php b/include/remoteupdate.php old mode 100644 new mode 100755 diff --git a/include/salmon.php b/include/salmon.php old mode 100644 new mode 100755 diff --git a/include/security.php b/include/security.php old mode 100644 new mode 100755 diff --git a/include/session.php b/include/session.php old mode 100644 new mode 100755 diff --git a/include/socgraph.php b/include/socgraph.php old mode 100644 new mode 100755 diff --git a/include/system_unavailable.php b/include/system_unavailable.php old mode 100644 new mode 100755 diff --git a/include/template_processor.php b/include/template_processor.php old mode 100644 new mode 100755 diff --git a/include/text.php b/include/text.php old mode 100644 new mode 100755 -- cgit v1.2.3