aboutsummaryrefslogtreecommitdiffstats
path: root/include/Contact.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-06 17:40:58 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-06 17:40:58 -0700
commitc7c3db8c54ada33c785a7303de582a3d0c1a14ee (patch)
treebb25fb74754d6f124b73b70f50ddc228e6399f59 /include/Contact.php
parent9f0cedad8e4f4063db7c8ee5cd9821ff10e39ea0 (diff)
downloadvolse-hubzilla-c7c3db8c54ada33c785a7303de582a3d0c1a14ee.tar.gz
volse-hubzilla-c7c3db8c54ada33c785a7303de582a3d0c1a14ee.tar.bz2
volse-hubzilla-c7c3db8c54ada33c785a7303de582a3d0c1a14ee.zip
i18n officially ready for prime time.
Diffstat (limited to 'include/Contact.php')
-rw-r--r--include/Contact.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/Contact.php b/include/Contact.php
index c59038e5d..a915ae0b4 100644
--- a/include/Contact.php
+++ b/include/Contact.php
@@ -1,6 +1,27 @@
<?php
+// Included here for completeness, but this is a very dangerous operation.
+// It is the caller's responsibility to confirm the requestor's intent and
+// authorisation to do this.
+
+function user_remove($uid) {
+ 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));
+ q("DELETE FROM `intro` 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 `photo` 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 `user` WHERE `uid` = %d", intval($uid));
+ if($uid == get_uid()) {
+ unset($_SESSION['authenticated']);
+ unset($_SESSION['uid']);
+ killme();
+ }
+}
function contact_remove($id) {