From f4ca60a4e9e16cad86c1e5d68dc158977dc39e5d Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Wed, 07 Nov 2012 11:25:51 -0500
Subject: [PATCH] - Re-added Proxy Directive Snipptes to vhostsubdomains.

---
 interface/web/sites/web_vhost_subdomain_edit.php |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/interface/web/sites/web_vhost_subdomain_edit.php b/interface/web/sites/web_vhost_subdomain_edit.php
index 3681cdb..3bee128 100644
--- a/interface/web/sites/web_vhost_subdomain_edit.php
+++ b/interface/web/sites/web_vhost_subdomain_edit.php
@@ -324,6 +324,12 @@
 		global $app, $conf;
 
 		// Get the record of the parent domain
+        if(!@$this->dataRecord["parent_domain_id"] && $this->id) {
+            $tmp = $app->db->queryOneRecord("SELECT parent_domain_id FROM web_domain WHERE domain_id = ".$app->functions->intval($this->id));
+            if($tmp) $this->dataRecord["parent_domain_id"] = $tmp['parent_domain_id'];
+            unset($tmp);
+        }
+        
 		$parent_domain = $app->db->queryOneRecord("select * FROM web_domain WHERE domain_id = ".$app->functions->intval(@$this->dataRecord["parent_domain_id"]));
 
 		// Set a few fixed values
@@ -522,7 +528,7 @@
 		$app->uses("getconf");
 		$web_rec = $app->tform->getDataRecord($this->id);
 		$web_config = $app->getconf->get_server_config($app->functions->intval($web_rec["server_id"]),'web');
-        var_dump($this->parent_domain_record, $web_rec);
+        //var_dump($this->parent_domain_record, $web_rec);
 		// Set the values for document_root, system_user and system_group
 		$system_user = $app->db->quote($this->parent_domain_record['system_user']);
 		$system_group = $app->db->quote($this->parent_domain_record['system_group']);

--
Gitblit v1.9.1