static function addform($parent, $class, $typetd = null) { global $gbl, $sgbl, $login, $ghtml; $progname = $sgbl->__var_program_name; $vlist['nname'] = ""; if ($sgbl->isKloxo()) { $dlist = domainbase::getDnsTemplateList($parent); if ($typetd['val'] === 'customer') { $vlist['domain_name'] = ""; $vlist['dnstemplate_name'] = make_hidden_if_one($dlist); $list = array('wordpress', 'mambo', 'joomla', 'dolphin'); $list = lx_merge_good('--leave--', $list); $vlist['installapp_app'] = array('s', $list); } } $vlist['password'] = ""; $nclist = $parent->getResourcePlanList('resourceplan'); $vlist['__c_subtitle_plan'] = "Welcome Message"; $vlist['contactemail'] = ""; $vlist['send_welcome_f'] = ""; $vlist['__v_button'] = $login->getKeywordUc('add'); $vlist['__c_subtitle_temp'] = "Choose Plan"; $vlist['resourceplan_f'] = array('A', $nclist); if ($sgbl->isKloxo()) { if ($typetd['val'] === 'customer') { if (check_if_many_server()) { $vlist['__c_subtitle_server'] = "Servers"; self::getDomainServerVlist($parent, null, $vlist); } } } $ret['variable'] = $vlist; $ret['action'] = "continue"; $ret['continueaction'] = "server"; return $ret; }
static function addform($parent, $class, $typetd = null) { /* if ($parent->isNotCustomer()) { $vlist['__m_message_pre'] = "domain_not_customer"; $ret['variable'] = $vlist; $ret['action'] = ''; return $ret; } */ $res = DomainBase::getDnsTemplateList($parent); $vlist['nname'] = ""; $dir = "__path_customer_root/{$parent->getPathFromName()}"; $dir = expand_real_root($dir); if ($parent->priv->isOn('document_root_flag')) { $vlist['docroot'] = array('m', array('pretext' => "{$dir}/")); } //$templatelist = $parent->getResourcePlanList('resourceplan'); //$vlist['password'] = null; $vlist['__v_button'] = 'add'; $vlist['dnstemplate_f'] = make_hidden_if_one($res); //$vlist['resourceplan_f'] = array('A', $templatelist); //$vlist['__c_subtitle_quota'] = 'Features'; $qvlist = getQuotaListForClass('domain', array('ttype' => 'virtual', 'webpserver' => $parent->websyncserver)); $vlist = lx_array_merge(array($vlist, $qvlist)); $ret['variable'] = $vlist; $ret['action'] = "add"; return $ret; }