From f669291d8a32dd78f7fb2ab05470c7a5c7e402bf Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Sat, 20 Dec 2008 09:53:53 -0500 Subject: [PATCH] Fixed spamfilter items that were not replicated to all servers they belong to. --- interface/web/mail/mail_user_del.php | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/interface/web/mail/mail_user_del.php b/interface/web/mail/mail_user_del.php index 26215cf..9b26933 100644 --- a/interface/web/mail/mail_user_del.php +++ b/interface/web/mail/mail_user_del.php @@ -45,7 +45,22 @@ //* Check permissions for module $app->auth->check_module_permissions('mail'); -$app->uses("tform_actions"); -$app->tform_actions->onDelete(); +// Loading classes +$app->uses('tpl,tform,tform_actions'); +$app->load('tform_actions'); + +class page_action extends tform_actions { + + function onBeforeDelete() { + global $app; $conf; + + $tmp_user = $app->db->queryOneRecord("SELECT id FROM spamfilter_users WHERE email = '".mysql_real_escape_string($this->dataRecord["email"])."'"); + $app->db->datalogDelete('spamfilter_users', 'id', $tmp_user["id"]); + + } +} + +$page = new page_action; +$page->onDelete(); ?> \ No newline at end of file -- Gitblit v1.9.1