From 0c702ba44e114965f8afe09dfbac126691420479 Mon Sep 17 00:00:00 2001
From: vogelor <vogelor@ispconfig3>
Date: Tue, 16 Dec 2008 05:15:31 -0500
Subject: [PATCH] Clients can now have client-templates (template custom coming soon)

---
 interface/web/client/client_edit.php |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/interface/web/client/client_edit.php b/interface/web/client/client_edit.php
index 23e445f..9200440 100644
--- a/interface/web/client/client_edit.php
+++ b/interface/web/client/client_edit.php
@@ -40,6 +40,7 @@
 
 require_once('../../lib/config.inc.php');
 require_once('../../lib/app.inc.php');
+require_once('tools.inc.php');
 
 //* Check permissions for module
 $app->auth->check_module_permissions('client');
@@ -83,8 +84,9 @@
 			$app->auth->add_group_to_user($_SESSION['s']['user']['userid'],$groupid);
 			$app->db->query("UPDATE client SET parent_client_id = ".intval($_SESSION['s']['user']['client_id'])." WHERE client_id = ".$this->id);
 		}
-		
-		
+
+		/* If there is a client-template, process it */
+		applyClientTemplates($this->id);
 	}
 	
 	
@@ -122,9 +124,10 @@
 			$sql = "UPDATE sys_user SET modules = '$modules' WHERE client_id = $client_id";
 			$app->db->query($sql);
 		}
+		/*
+		 *  If there is a client-template, process it */
+		applyClientTemplates($this->id);
 	}
-	
-	
 }
 
 $page = new page_action;

--
Gitblit v1.9.1