From 0bc228446c1f680f14aff72dbfd85dc5edd0043e Mon Sep 17 00:00:00 2001
From: mcramer <m.cramer@pixcept.de>
Date: Fri, 12 Jul 2013 09:59:37 -0400
Subject: [PATCH] - Changed installer template handling It is now possible to put a customized copy of each .master template file into /usr/local/ispconfig/server/conf-custom/install/ to keep manual changes done in this file. If existing, these .master files are used on ISPConfig upgrade instead of the provided installer templates.
---
interface/web/sites/database_del.php | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/interface/web/sites/database_del.php b/interface/web/sites/database_del.php
index f5f8dbc..d3c00cd 100644
--- a/interface/web/sites/database_del.php
+++ b/interface/web/sites/database_del.php
@@ -46,6 +46,17 @@
$app->auth->check_module_permissions('sites');
$app->uses("tform_actions");
-$app->tform_actions->onDelete();
+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'));
+
+ $app->uses('sites_database_plugin');
+ //$app->sites_database_plugin->processDatabaseDelete($this->id);
+ }
+}
+
+$page = new page_action;
+$page->onDelete();
?>
\ No newline at end of file
--
Gitblit v1.9.1