From 6733652286e1b74e447a75d0dac9d1637096b34d Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sun, 11 Jan 2009 12:44:25 -0500
Subject: [PATCH] Fixed several bugs in client db plugin.

---
 server/plugins-available/apache2_plugin.inc.php |   24 +++++++++++++-----------
 1 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/server/plugins-available/apache2_plugin.inc.php b/server/plugins-available/apache2_plugin.inc.php
index ffe8ac0..ed2b212 100644
--- a/server/plugins-available/apache2_plugin.inc.php
+++ b/server/plugins-available/apache2_plugin.inc.php
@@ -323,7 +323,7 @@
 					exec("cp /usr/local/ispconfig/server/conf-custom/error/".substr(escapeshellcmd($conf["language"]),0,2)."/* ".$error_page_path);
 				}
 				else {
-					if (file_exists("/usr/local/ispconfig/server/conf-custom/error/fileNotFound.html")){
+					if (file_exists("/usr/local/ispconfig/server/conf-custom/error/400.html")){
 						exec("cp /usr/local/ispconfig/server/conf-custom/error/*.html ".$error_page_path);
 					}
 					else {
@@ -334,12 +334,12 @@
 			}
 
 			// copy the standard index page
-			if (file_exists("/usr/local/ispconfig/server/conf-custom/index/".substr(escapeshellcmd($conf["language"]),0,2)."/index.html")){
-				exec("cp /usr/local/ispconfig/server/conf-custom/index/".substr(escapeshellcmd($conf["language"]),0,2)."/* ".escapeshellcmd($data["new"]["document_root"])."/web/");
+			if (file_exists("/usr/local/ispconfig/server/conf-custom/index/standard_index.html_".substr(escapeshellcmd($conf["language"]),0,2))){
+				exec("cp /usr/local/ispconfig/server/conf-custom/index/standard_index.html_".substr(escapeshellcmd($conf["language"]),0,2)." ".escapeshellcmd($data["new"]["document_root"])."/web/index.html");
 			}
 			else {
-				if (file_exists("/usr/local/ispconfig/server/conf-custom/index/default/index.html")){
-					exec("cp /usr/local/ispconfig/server/conf-custom/index/default/* ".escapeshellcmd($data["new"]["document_root"])."/web/");
+				if (file_exists("/usr/local/ispconfig/server/conf-custom/index/standard_index.html")){
+					exec("cp /usr/local/ispconfig/server/conf-custom/index/standard_index.html ".escapeshellcmd($data["new"]["document_root"])."/web/index.html");
 				}
 				else {
 					exec("cp /usr/local/ispconfig/server/conf/index/standard_index.html_".substr(escapeshellcmd($conf["language"]),0,2)." ".escapeshellcmd($data["new"]["document_root"])."/web/index.html");
@@ -431,9 +431,10 @@
     										'rewrite_target' 	=> $data["new"]["redirect_path"]);
                 break;
             case '*':
-    			$rewrite_rules[] = array(	'rewrite_domain' 	=> '*'.$data["new"]["domain"],
-    										'rewrite_type' 		=> $data["new"]["redirect_type"],
-    										'rewrite_target' 	=> $data["new"]["redirect_path"]);
+                // TODO
+    			//$rewrite_rules[] = array(	'rewrite_domain' 	=> '*'.$alias["domain"],
+    			//							'rewrite_type' 		=> $alias["redirect_type"],
+    			//							'rewrite_target' 	=> $alias["redirect_path"]);
                 break;
             }
 		}
@@ -474,9 +475,10 @@
             										'rewrite_target' 	=> $alias["redirect_path"]);
                         break;
                     case '*':
-            			$rewrite_rules[] = array(	'rewrite_domain' 	=> '*'.$alias["domain"],
-            										'rewrite_type' 		=> $alias["redirect_type"],
-            										'rewrite_target' 	=> $alias["redirect_path"]);
+                        // TODO
+            			//$rewrite_rules[] = array(	'rewrite_domain' 	=> '*'.$alias["domain"],
+            			//							'rewrite_type' 		=> $alias["redirect_type"],
+            			//							'rewrite_target' 	=> $alias["redirect_path"]);
                         break;
                     }
 				}

--
Gitblit v1.9.1