From d23e5674d76cefa2e33fc4a26f282cd406b7e028 Mon Sep 17 00:00:00 2001
From: mcramer <m.cramer@pixcept.de>
Date: Mon, 10 Dec 2012 09:12:01 -0500
Subject: [PATCH] Fixed: database remote access was not activated on database creation if no remote ip was set
---
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..2dc90fd 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