From 9994de85fcf14a98dcc54cc7399b87e34d9b3c29 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 17 Mar 2009 09:23:07 -0400
Subject: [PATCH] Updated all language files.
---
interface/web/sites/shell_user_edit.php | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/interface/web/sites/shell_user_edit.php b/interface/web/sites/shell_user_edit.php
index 0ce0404..e2613cb 100644
--- a/interface/web/sites/shell_user_edit.php
+++ b/interface/web/sites/shell_user_edit.php
@@ -93,6 +93,13 @@
} else {
$app->tpl->setVar("username_prefix", $shelluser_prefix);
}
+
+ if($this->id > 0) {
+ //* we are editing a existing record
+ $app->tpl->setVar("parent_domain_id_disabled", 'disabled="disabled"');
+ } else {
+ $app->tpl->setVar("parent_domain_id_disabled", '');
+ }
parent::onShowEnd();
}
@@ -195,13 +202,16 @@
$client_group_id = $_SESSION["s"]["user"]["default_group"];
} else {
// Get the group-id from the data itself
- $client_group_id = $this->dataRecord['client_group_id'];
+ $web = $app->db->queryOneRecord("SELECT sys_groupid FROM web_domain WHERE domain_id = ".intval($this->dataRecord['parent_domain_id']));
+ $client_group_id = $web['sys_groupid'];
}
/* get the name of the client */
$tmp = $app->db->queryOneRecord("SELECT name FROM sys_group WHERE groupid = " . $client_group_id);
$clientName = $tmp['name'];
if ($clientName == "") $clientName = 'default';
$clientName = convertClientName($clientName);
+
+ return $clientName;
}
--
Gitblit v1.9.1