From 21206c45bf44d91bbefcafc70a4a5d499554e4bf Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sun, 31 Aug 2008 05:36:11 -0400
Subject: [PATCH] - Added the readonly attribute to tabs. - Clients that are not resellers can not change the basic web settings anymore.
---
interface/lib/classes/tform.inc.php | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/interface/lib/classes/tform.inc.php b/interface/lib/classes/tform.inc.php
index 9f920c6..3d017aa 100644
--- a/interface/lib/classes/tform.inc.php
+++ b/interface/lib/classes/tform.inc.php
@@ -1024,6 +1024,14 @@
return $_SESSION["s"]["form"]["tab"];
}
+ function isReadonlyTab($tab) {
+ if(isset($this->formDef['tabs'][$tab]['readonly']) && $this->formDef['tabs'][$tab]['readonly'] == true) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+
// translation function for forms, tries the form wordbook first and if this fails, it tries the global wordbook
function lng($msg) {
--
Gitblit v1.9.1