tbrehm
2009-03-09 00b1bddf020effe3bec88fb5f8fa22a90f3b920d
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;
   
   }