示例#1
0
 static function continueFormFinish($parent, $class, $param, $continueaction)
 {
     //$vlist['__m_message_pre'] = 'make_sure_ipaddress_template';
     global $gbl, $sgbl, $login, $ghtml;
     // For IE.. too many variables won't work in get mode.
     $sgbl->method = "post";
     $param['nname'] = trim(strtolower($param['nname']));
     $dname = $param['nname'];
     $dname = str_replace(".", "", $dname);
     if (is_numeric($dname[0])) {
         $dname = "a" . $dname;
     }
     $iplist = $parent->getIpaddress(array('localhost'));
     if (!$iplist) {
         $iplist = getAllIpaddress();
     }
     /// Normal Virtual Hosting.
     Lxclient::fixpserver_list($param);
     $vlist['__c_subtitle_quota'] = 'Quota';
     $qvlist = getQuotaListForClass('domain', array('ttype' => 'virtual'));
     $vlist = lx_array_merge(array($vlist, $qvlist));
     //$vlist['dbtype_list'] = null;
     $ret['param'] = $param;
     $ret['variable'] = $vlist;
     $ret['action'] = "Add";
     return $ret;
 }
示例#2
0
 static function continueFormFinish($parent, $class, $param, $continueaction)
 {
     //$vlist['__m_message_pre'] = 'make_sure_ipaddress_template';
     global $gbl, $sgbl, $login, $ghtml;
     // For IE.. too many variables won't work in get mode.
     $sgbl->method = "post";
     $driverapp = $gbl->getSyncClass('localhost', $param['listpriv_s_vpspserver_sing'], 'vps');
     $ostlist = rl_exec_get(null, $param['listpriv_s_vpspserver_sing'], array("vps__{$driverapp}", "getOsTemplatelist"));
     $vlist['ostemplate'] = array('A', $ostlist);
     Lxclient::fixpserver_list($param);
     //dprintr($param);
     if (!isOn($param['use_resourceplan_f'])) {
         $vlist['__c_subtitle_quota'] = 'Quota';
         $qvlist = getQuotaListForClass('vps');
         $vlist = lx_merge_good($vlist, $qvlist);
     }
     //$vlist['dbtype_list'] = null;
     $ret['param'] = $param;
     $ret['variable'] = $vlist;
     $ret['action'] = "Add";
     return $ret;
 }