From ffb1997902facb36b78a7cfa522f41f2b3d71cda Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Wed, 8 Sep 2010 20:14:17 -0700 Subject: mistpark 2.0 infrasturcture lands --- include/Contact.php | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 include/Contact.php (limited to 'include/Contact.php') diff --git a/include/Contact.php b/include/Contact.php new file mode 100644 index 000000000..3c41f7650 --- /dev/null +++ b/include/Contact.php @@ -0,0 +1,54 @@ + datetime_convert('UTC','UTC',$expiry)) { + + // relationship is really truly dead. + + contact_remove($contact['id']); + + } + } + +}} + +if(! function_exists('unmark_for_death')) { +function unmark_for_death($contact) { + // It's a miracle. Our dead contact has inexplicably come back to life. + q("UPDATE `contact` SET `term-date = '%s' WHERE `id` = %d LIMIT 1", + dbesc('0000-00-00 00:00:00'), + intval($contact['id']) + ); +}} + -- cgit v1.2.3