index 37422c518ed8f52111956bd2148b85fb091b58b0..3eb4553077a1b4913c05cfa9eb71fe9c02336747 100644 (file)
<?php
-class servapacheeditVhost extends plugin
+class apacheVhostEdit extends plugin
{
/* attribute list for save action */
var $ignore_account= TRUE;
var $cn;
var $VhostObject = array();
- function servapache2editVhost ($config, $dn= NULL,$attrs = array())
+ function apacheVhostEdit ($config, $dn= NULL,$attrs = array())
{
plugin::plugin ($config, $dn);
}
}
- /* TRansports the geiven Arraykey one position up*/
+ /* Transports the given Arraykey one position up*/
function ArrayUp($atr,$attrs)
{
$ret = $attrs;
}
- /* TRansports the geiven Arraykey one position up*/
+ /* Transports the given Arraykey one position down*/
function ArrayDown($atr,$attrs)
{
$ret = $attrs;
}else{
$smarty->assign("AllowVhostEdit" , true);
if(isset($_POST['EditVhostEntries'])){
- $this->dialog= new servAPACHE2editVhostEntries($this->config,$this->dn,$this->VhostObject);
+ $this->dialog= new apacheVhostEditEntries($this->config,$this->dn,$this->VhostObject);
}
}
$smarty->assign("apacheServerAlias", $div->DrawList());
-
-
$div = new DivSelectBox("apacheScriptAlias");
$div->setHeight(120);
$recs = $this->apacheScriptAlias;
));
}
-
$smarty->assign("NotNew", false);
- $smarty->assign("apacheScriptAlias", $div->DrawList());
-
-
+ $smarty->assign("apacheScriptAlias", $div->DrawList());
/* Display template */
$display.= $smarty->fetch(get_template_path('apache_editVhost.tpl', TRUE));
$message= plugin::check();
/* Check if apacheServerName is already in use */
- $usedVhosts = $this->getUsedapacheServerNames();
+ $usedVhosts = $this->getUsedServerNames();
if(($this->isNew == true)||($this->apacheServerName != $this->InitialApacheServerName)){
/* if((isset($usedVhosts[$this->apacheServerName]))&&($this->apacheServerName != $this->InitialApacheServerName)){
$message[] =_("This apacheServerName is already in use");
}
/* This funtion returns all used apacheServerNames */
- function getUsedapacheServerNames()
+ function getUsedServerNames()
{
$ret = array();
$ldap = $this->config->get_ldap_link();