Code

- Latest cleanup plugin
[gosa.git] / vhost-apache2 / src / functions_apache.inc
index be0b3f026d47f552e3a4e9f63dd130383716ef6f..edaa39d2e346b19e24aa9a099d3bfbd6793f510b 100644 (file)
@@ -247,4 +247,11 @@ function getAvailableVhosts($config)
   return($zones);
 }
   
+/* Simple is domain check, it checks if the given string looks like "string.string.string"
+   or string.string */
+function GetVhostsDomain($str)
+{
+  return(preg_match("/[^\.\/]+\.[^\.\/]+$/",$str));
+}
+
 ?>