From 7e24fd5e41f2b3ec8ecad32e2bedd789360a1de2 Mon Sep 17 00:00:00 2001
From: Pascal Dreissen <pascal@dreissen.nl>
Date: Fri, 08 Jul 2016 15:04:49 -0400
Subject: [PATCH] More dutch language adjustment for dashboard / dns / clients / sites

---
 interface/web/sites/database_user_edit.php |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/interface/web/sites/database_user_edit.php b/interface/web/sites/database_user_edit.php
index 88e05d6..02ef7bf 100644
--- a/interface/web/sites/database_user_edit.php
+++ b/interface/web/sites/database_user_edit.php
@@ -55,10 +55,10 @@
 
 		// we will check only users, not admins
 		if($_SESSION['s']['user']['typ'] == 'user') {
-			if(!$app->tform->checkClientLimit('limit_database_users')) {
+			if(!$app->tform->checkClientLimit('limit_database_user')) {
 				$app->error($app->tform->wordbook["limit_database_user_txt"]);
 			}
-			if(!$app->tform->checkResellerLimit('limit_database_users')) {
+			if(!$app->tform->checkResellerLimit('limit_database_user')) {
 				$app->error('Reseller: '.$app->tform->wordbook["limit_database_user_txt"]);
 			}
 		}
@@ -169,10 +169,11 @@
 		/* prepare password for MongoDB */
 		// TODO: this still doens't work as when only the username changes we have no database_password.
 		// taking the one from oldData doesn't work as it's encrypted...shit!
+/*
 		$this->dataRecord['database_password_mongo'] = $this->dataRecord['database_user'].":mongo:".$this->dataRecord['database_password'];
 
 		$this->dataRecord['server_id'] = 0; // we need this on all servers
-
+*/
 		parent::onBeforeUpdate();
 	}
 
@@ -206,7 +207,7 @@
 		$this->dataRecord['server_id'] = 0; // we need this on all servers
 
 		/* prepare password for MongoDB */
-		$this->dataRecord['database_password_mongo'] = $this->dataRecord['database_user'].":mongo:".$this->dataRecord['database_password'];
+//		$this->dataRecord['database_password_mongo'] = $this->dataRecord['database_user'].":mongo:".$this->dataRecord['database_password'];
 
 		parent::onBeforeInsert();
 	}

--
Gitblit v1.9.1