auth->check_module_permissions('domain'); $app->uses('tpl,tform,tform_actions'); $app->load('tform_actions'); class page_action extends tform_actions { function onBeforeDelete() { global $app; $conf; if($app->tform->checkPerm($this->id,'d') == false) $app->error($app->lng('error_no_delete_permission')); // Delete all records that belog to this domain. $app->db->query("DELETE FROM domain WHERE domain_id = $domain_id"); } } $page = new page_action; $page->onDelete(); ?>