index 8a82179949587b3797fc0cc6337921854152ba7e..9f11882f16a796dc28437c20524c88d27b33b28a 100644 (file)
<?php
-/* This function returns the zones specified for given host
+/* This function returns the vhost entries specified for given host
*/
function getVhostEntries($config,$HostDn,$silent = false)
{
*/
foreach($tmp_res as $attrs){
- $apacheServerName = $attrs['apacheServerName'][0];
- $apacheDocumentRoot = $attrs['apacheDocumentRoot'][0];
+ $apacheServerName = $attrs['apacheServerName'][0];
+ $apacheDocumentRoot = $attrs['apacheDocumentRoot'][0];
$apacheServerAdmin = $attrs['apacheServerAdmin'][0];
$Vhosts[$apacheServerName] = $VhostBase;
$Vhosts[$apacheServerName]['exists'] = true;
/* This function compares two dns zone objects and returns an
* array with following indexes
- * - delete, for dns which must be deleted (only if dns zone is removed)
+ * - delete, for vhost entries which must be deleted (only if vhost entries is removed)
* - rename, if a dn must be renamed, for example, the apacheServerName has changed
- * - add, if there is a new dns account created
+ * - add, if there is a new vhost entries created
*/
function getVhostEntriesDiff($config,$newVhosts,$HostDn)
{
- $oldVhosts = getAPACHE2VhostEntries($config,$HostDn,true);
+ $oldVhosts = getVhostEntries($config,$HostDn,true);
$move = array();
$add = array();