aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-01-18 16:21:30 -0800
committerfriendica <info@friendica.com>2012-01-18 16:21:30 -0800
commit8aa25523721303b6883e1a793f20997f8a33ec0a (patch)
tree2358612b173d708ade02d013dc096c95fab53970 /include
parentd84094362165524ce64fb2f0a588a376efa96c68 (diff)
downloadvolse-hubzilla-8aa25523721303b6883e1a793f20997f8a33ec0a.tar.gz
volse-hubzilla-8aa25523721303b6883e1a793f20997f8a33ec0a.tar.bz2
volse-hubzilla-8aa25523721303b6883e1a793f20997f8a33ec0a.zip
add remove_user hook (it looks like dreamhost changed all my file permissions, this will make a nasty commit)
Diffstat (limited to 'include')
-rwxr-xr-x[-rw-r--r--]include/Contact.php6
-rwxr-xr-x[-rw-r--r--]include/EmailNotification.php0
-rwxr-xr-x[-rw-r--r--]include/Photo.php0
-rwxr-xr-x[-rw-r--r--]include/Scrape.php0
-rwxr-xr-x[-rw-r--r--]include/acl_selectors.php0
-rwxr-xr-x[-rw-r--r--]include/api.php0
-rwxr-xr-x[-rw-r--r--]include/attach.php0
-rwxr-xr-x[-rw-r--r--]include/auth.php0
-rwxr-xr-x[-rw-r--r--]include/bb2diaspora.php0
-rwxr-xr-x[-rw-r--r--]include/bbcode.php0
-rwxr-xr-x[-rw-r--r--]include/cache.php0
-rwxr-xr-x[-rw-r--r--]include/config.php0
-rwxr-xr-x[-rw-r--r--]include/contact_selectors.php0
-rwxr-xr-x[-rw-r--r--]include/contact_widgets.php0
-rwxr-xr-x[-rw-r--r--]include/conversation.php0
-rwxr-xr-x[-rw-r--r--]include/cronhooks.php0
-rwxr-xr-x[-rw-r--r--]include/crypto.php0
-rwxr-xr-x[-rw-r--r--]include/datetime.php0
-rwxr-xr-x[-rw-r--r--]include/dba.php0
-rwxr-xr-x[-rw-r--r--]include/delivery.php0
-rwxr-xr-x[-rw-r--r--]include/diaspora.php0
-rwxr-xr-x[-rw-r--r--]include/directory.php0
-rwxr-xr-x[-rw-r--r--]include/email.php0
-rwxr-xr-x[-rw-r--r--]include/enotify.php0
-rwxr-xr-x[-rw-r--r--]include/event.php0
-rwxr-xr-x[-rw-r--r--]include/expire.php0
-rwxr-xr-x[-rw-r--r--]include/fcontact.php0
-rwxr-xr-x[-rw-r--r--]include/group.php0
-rwxr-xr-x[-rw-r--r--]include/html2bbcode.php0
-rwxr-xr-x[-rw-r--r--]include/items.php0
-rwxr-xr-x[-rw-r--r--]include/message.php0
-rwxr-xr-x[-rw-r--r--]include/nav.php0
-rwxr-xr-x[-rw-r--r--]include/network.php0
-rwxr-xr-x[-rw-r--r--]include/notifier.php0
-rwxr-xr-x[-rw-r--r--]include/oauth.php0
-rwxr-xr-x[-rw-r--r--]include/oembed.php0
-rwxr-xr-x[-rw-r--r--]include/pgettext.php0
-rwxr-xr-x[-rw-r--r--]include/plugin.php0
-rwxr-xr-x[-rw-r--r--]include/poller.php0
-rwxr-xr-x[-rw-r--r--]include/profile_advanced.php0
-rwxr-xr-x[-rw-r--r--]include/profile_selectors.php0
-rwxr-xr-x[-rw-r--r--]include/profile_update.php0
-rwxr-xr-x[-rw-r--r--]include/queue.php0
-rwxr-xr-x[-rw-r--r--]include/queue_fn.php0
-rwxr-xr-x[-rw-r--r--]include/remoteupdate.php0
-rwxr-xr-x[-rw-r--r--]include/salmon.php0
-rwxr-xr-x[-rw-r--r--]include/security.php0
-rwxr-xr-x[-rw-r--r--]include/session.php0
-rwxr-xr-x[-rw-r--r--]include/socgraph.php0
-rwxr-xr-x[-rw-r--r--]include/system_unavailable.php0
-rwxr-xr-x[-rw-r--r--]include/template_processor.php0
-rwxr-xr-x[-rw-r--r--]include/text.php0
52 files changed, 6 insertions, 0 deletions
diff --git a/include/Contact.php b/include/Contact.php
index 45fd368d8..baccea305 100644..100755
--- 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
index 8861e8f5d..8861e8f5d 100644..100755
--- a/include/EmailNotification.php
+++ b/include/EmailNotification.php
diff --git a/include/Photo.php b/include/Photo.php
index 1450374ff..1450374ff 100644..100755
--- a/include/Photo.php
+++ b/include/Photo.php
diff --git a/include/Scrape.php b/include/Scrape.php
index e42d22afc..e42d22afc 100644..100755
--- a/include/Scrape.php
+++ b/include/Scrape.php
diff --git a/include/acl_selectors.php b/include/acl_selectors.php
index d8f530daf..d8f530daf 100644..100755
--- a/include/acl_selectors.php
+++ b/include/acl_selectors.php
diff --git a/include/api.php b/include/api.php
index 08b28265c..08b28265c 100644..100755
--- a/include/api.php
+++ b/include/api.php
diff --git a/include/attach.php b/include/attach.php
index 4001d2af1..4001d2af1 100644..100755
--- a/include/attach.php
+++ b/include/attach.php
diff --git a/include/auth.php b/include/auth.php
index fd1c63847..fd1c63847 100644..100755
--- a/include/auth.php
+++ b/include/auth.php
diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php
index 8f17f2e36..8f17f2e36 100644..100755
--- a/include/bb2diaspora.php
+++ b/include/bb2diaspora.php
diff --git a/include/bbcode.php b/include/bbcode.php
index 6b733c8f4..6b733c8f4 100644..100755
--- a/include/bbcode.php
+++ b/include/bbcode.php
diff --git a/include/cache.php b/include/cache.php
index 082974c61..082974c61 100644..100755
--- a/include/cache.php
+++ b/include/cache.php
diff --git a/include/config.php b/include/config.php
index 92694f519..92694f519 100644..100755
--- a/include/config.php
+++ b/include/config.php
diff --git a/include/contact_selectors.php b/include/contact_selectors.php
index 4b3ca987a..4b3ca987a 100644..100755
--- a/include/contact_selectors.php
+++ b/include/contact_selectors.php
diff --git a/include/contact_widgets.php b/include/contact_widgets.php
index caa0572d2..caa0572d2 100644..100755
--- a/include/contact_widgets.php
+++ b/include/contact_widgets.php
diff --git a/include/conversation.php b/include/conversation.php
index d05b3be5c..d05b3be5c 100644..100755
--- a/include/conversation.php
+++ b/include/conversation.php
diff --git a/include/cronhooks.php b/include/cronhooks.php
index 37541f013..37541f013 100644..100755
--- a/include/cronhooks.php
+++ b/include/cronhooks.php
diff --git a/include/crypto.php b/include/crypto.php
index 0feb45c24..0feb45c24 100644..100755
--- a/include/crypto.php
+++ b/include/crypto.php
diff --git a/include/datetime.php b/include/datetime.php
index d44e995cf..d44e995cf 100644..100755
--- a/include/datetime.php
+++ b/include/datetime.php
diff --git a/include/dba.php b/include/dba.php
index 782c279d5..782c279d5 100644..100755
--- a/include/dba.php
+++ b/include/dba.php
diff --git a/include/delivery.php b/include/delivery.php
index 5441ac510..5441ac510 100644..100755
--- a/include/delivery.php
+++ b/include/delivery.php
diff --git a/include/diaspora.php b/include/diaspora.php
index 5a19400da..5a19400da 100644..100755
--- a/include/diaspora.php
+++ b/include/diaspora.php
diff --git a/include/directory.php b/include/directory.php
index cae78adb4..cae78adb4 100644..100755
--- a/include/directory.php
+++ b/include/directory.php
diff --git a/include/email.php b/include/email.php
index 3e6a8186d..3e6a8186d 100644..100755
--- a/include/email.php
+++ b/include/email.php
diff --git a/include/enotify.php b/include/enotify.php
index 9df9b57e5..9df9b57e5 100644..100755
--- a/include/enotify.php
+++ b/include/enotify.php
diff --git a/include/event.php b/include/event.php
index c7669b381..c7669b381 100644..100755
--- a/include/event.php
+++ b/include/event.php
diff --git a/include/expire.php b/include/expire.php
index 64dbe2536..64dbe2536 100644..100755
--- a/include/expire.php
+++ b/include/expire.php
diff --git a/include/fcontact.php b/include/fcontact.php
index 8821a985f..8821a985f 100644..100755
--- a/include/fcontact.php
+++ b/include/fcontact.php
diff --git a/include/group.php b/include/group.php
index 4a35912e5..4a35912e5 100644..100755
--- a/include/group.php
+++ b/include/group.php
diff --git a/include/html2bbcode.php b/include/html2bbcode.php
index 8025c336b..8025c336b 100644..100755
--- a/include/html2bbcode.php
+++ b/include/html2bbcode.php
diff --git a/include/items.php b/include/items.php
index a939bfc88..a939bfc88 100644..100755
--- a/include/items.php
+++ b/include/items.php
diff --git a/include/message.php b/include/message.php
index 7ad80ae9c..7ad80ae9c 100644..100755
--- a/include/message.php
+++ b/include/message.php
diff --git a/include/nav.php b/include/nav.php
index 4c75a495b..4c75a495b 100644..100755
--- a/include/nav.php
+++ b/include/nav.php
diff --git a/include/network.php b/include/network.php
index 551d5e1d0..551d5e1d0 100644..100755
--- a/include/network.php
+++ b/include/network.php
diff --git a/include/notifier.php b/include/notifier.php
index 1db1b09da..1db1b09da 100644..100755
--- a/include/notifier.php
+++ b/include/notifier.php
diff --git a/include/oauth.php b/include/oauth.php
index 2724dcf7c..2724dcf7c 100644..100755
--- a/include/oauth.php
+++ b/include/oauth.php
diff --git a/include/oembed.php b/include/oembed.php
index 118f7fa4a..118f7fa4a 100644..100755
--- a/include/oembed.php
+++ b/include/oembed.php
diff --git a/include/pgettext.php b/include/pgettext.php
index 83e76ba9d..83e76ba9d 100644..100755
--- a/include/pgettext.php
+++ b/include/pgettext.php
diff --git a/include/plugin.php b/include/plugin.php
index fe325ac3b..fe325ac3b 100644..100755
--- a/include/plugin.php
+++ b/include/plugin.php
diff --git a/include/poller.php b/include/poller.php
index 89e4488b9..89e4488b9 100644..100755
--- a/include/poller.php
+++ b/include/poller.php
diff --git a/include/profile_advanced.php b/include/profile_advanced.php
index ccecb95de..ccecb95de 100644..100755
--- a/include/profile_advanced.php
+++ b/include/profile_advanced.php
diff --git a/include/profile_selectors.php b/include/profile_selectors.php
index 92579f64a..92579f64a 100644..100755
--- a/include/profile_selectors.php
+++ b/include/profile_selectors.php
diff --git a/include/profile_update.php b/include/profile_update.php
index 61eaee75d..61eaee75d 100644..100755
--- a/include/profile_update.php
+++ b/include/profile_update.php
diff --git a/include/queue.php b/include/queue.php
index d312b50f5..d312b50f5 100644..100755
--- a/include/queue.php
+++ b/include/queue.php
diff --git a/include/queue_fn.php b/include/queue_fn.php
index 3c1087f4e..3c1087f4e 100644..100755
--- a/include/queue_fn.php
+++ b/include/queue_fn.php
diff --git a/include/remoteupdate.php b/include/remoteupdate.php
index 9effc9b6e..9effc9b6e 100644..100755
--- a/include/remoteupdate.php
+++ b/include/remoteupdate.php
diff --git a/include/salmon.php b/include/salmon.php
index 3d525f51a..3d525f51a 100644..100755
--- a/include/salmon.php
+++ b/include/salmon.php
diff --git a/include/security.php b/include/security.php
index f3f16e1bc..f3f16e1bc 100644..100755
--- a/include/security.php
+++ b/include/security.php
diff --git a/include/session.php b/include/session.php
index 6c32e299f..6c32e299f 100644..100755
--- a/include/session.php
+++ b/include/session.php
diff --git a/include/socgraph.php b/include/socgraph.php
index 79d7340a4..79d7340a4 100644..100755
--- a/include/socgraph.php
+++ b/include/socgraph.php
diff --git a/include/system_unavailable.php b/include/system_unavailable.php
index bd7196cdf..bd7196cdf 100644..100755
--- a/include/system_unavailable.php
+++ b/include/system_unavailable.php
diff --git a/include/template_processor.php b/include/template_processor.php
index 25f7703a2..25f7703a2 100644..100755
--- a/include/template_processor.php
+++ b/include/template_processor.php
diff --git a/include/text.php b/include/text.php
index 416e19927..416e19927 100644..100755
--- a/include/text.php
+++ b/include/text.php