From bf472e9f168ef1e90491fb18ef89066e26992e7f Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Fri, 17 Aug 2007 18:26:21 +0000 Subject: [PATCH] - cleanup: merge GET and POST code git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@33 a1433add-5e2c-0410-b055-b7f2511e0802 --- delete.php | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/delete.php b/delete.php index 1ae3a8d9..971de074 100644 --- a/delete.php +++ b/delete.php @@ -88,19 +88,12 @@ if ($_SERVER['REQUEST_METHOD'] == "GET") $tMessage = $PALANG['pDelete_delete_error'] . "$fDelete (physical mail)!"; if ($CONF['database_type'] == "pgsql") db_query('ROLLBACK'); } - - include ("./templates/header.tpl"); - include ("./templates/menu.tpl"); - include ("./templates/message.tpl"); - include ("./templates/footer.tpl"); } -if ($_SERVER['REQUEST_METHOD'] == "POST") -{ - include ("./templates/header.tpl"); - include ("./templates/menu.tpl"); - include ("./templates/message.tpl"); - include ("./templates/footer.tpl"); -} +include ("./templates/header.tpl"); +include ("./templates/menu.tpl"); +include ("./templates/message.tpl"); +include ("./templates/footer.tpl"); + /* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ ?>