From be40ba3b40e3778b94644143ab1da591f0ec3e55 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sun, 6 Jan 2008 18:30:19 +0000
Subject: [PATCH] Fixed some typos.

---
 interface/web/client/templates/client_edit_limits.htm | 2 ++
 server/mods-enabled/client_module.inc.php             | 4 ++--
 server/plugins-enabled/mail_plugin.inc.php            | 4 ++--
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/interface/web/client/templates/client_edit_limits.htm b/interface/web/client/templates/client_edit_limits.htm
index 27115ddea5..45ad13a38b 100644
--- a/interface/web/client/templates/client_edit_limits.htm
+++ b/interface/web/client/templates/client_edit_limits.htm
@@ -113,6 +113,7 @@
     <td class="frmText11" width="280">{tmpl_var name='limit_dns_record_txt'}:</td>
     <td class="frmText11" width="220"><input name="limit_dns_record" type="text" class="text" value="{tmpl_var name='limit_dns_record'}" size="10" maxlength="10"></td>
   </tr>
+  <tmpl_if name='is_reseller' op='!=' value='1'>
   <tr>
     <td><h2>Clients</h2></td>
   </tr>
@@ -120,6 +121,7 @@
     <td class="frmText11" width="280">{tmpl_var name='limit_client_txt'}:</td>
     <td class="frmText11" width="220"><input name="limit_client" type="text" class="text" value="{tmpl_var name='limit_client'}" size="10" maxlength="10"></td>
   </tr>
+  </tmpl_if>
   <tr>
     <td class="frmText11">&nbsp;</td>
     <td class="frmText11">&nbsp;</td>
diff --git a/server/mods-enabled/client_module.inc.php b/server/mods-enabled/client_module.inc.php
index d7de2f5544..a70cbdfcb7 100644
--- a/server/mods-enabled/client_module.inc.php
+++ b/server/mods-enabled/client_module.inc.php
@@ -1,7 +1,7 @@
 <?php
 
 /*
-Copyright (c) 2007, Till Brehm, projektfarm Gmbh
+Copyright (c) 2008, Till Brehm, projektfarm Gmbh
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without modification,
@@ -28,7 +28,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
-class web_module {
+class client_module {
 	
 	var $module_name = 'client_module';
 	var $class_name = 'client_module';
diff --git a/server/plugins-enabled/mail_plugin.inc.php b/server/plugins-enabled/mail_plugin.inc.php
index 6e1fe30588..95ef769b9a 100644
--- a/server/plugins-enabled/mail_plugin.inc.php
+++ b/server/plugins-enabled/mail_plugin.inc.php
@@ -57,7 +57,7 @@ class mail_plugin {
 		global $app, $conf;
 		
 		// Create the maildir, if it does not exist
-		if(!is_dir($data['new']['maildir']) {
+		if(!is_dir($data['new']['maildir'])) {
 			mkdir($data['new']['maildir']);
 			exec('chown '.$mail_config['mailuser_name'].':'.$mail_config['mailuser_group'].' '.escapeshellcmd($data['new']['maildir']));
 			$app->log('Created Maildir: '.$data['new']['maildir'],LOGLEVEL_DEBUG);
@@ -73,7 +73,7 @@ class mail_plugin {
 		$mail_config = $app->getconf->get_server_config($conf["server_id"], 'mail');
 		
 		// Create the maildir, if it does not exist
-		if(!is_dir($data['new']['maildir']) {
+		if(!is_dir($data['new']['maildir'])) {
 			mkdir($data['new']['maildir']);
 			exec('chown '.$mail_config['mailuser_name'].':'.$mail_config['mailuser_group'].' '.escapeshellcmd($data['new']['maildir']));
 			$app->log('Created Maildir: '.$data['new']['maildir'],LOGLEVEL_DEBUG);
-- 
GitLab