• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP lx_merge_good函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中lx_merge_good函数的典型用法代码示例。如果您正苦于以下问题:PHP lx_merge_good函数的具体用法?PHP lx_merge_good怎么用?PHP lx_merge_good使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了lx_merge_good函数的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: createListSlist

 static function createListSlist($parent)
 {
     $list = get_namelist_from_objectlist($parent->getList('datacenter'));
     $clist[] = '__any__';
     $clist = lx_merge_good($clist, $list);
     $nlist['nname'] = null;
     $nlist['datacenter'] = array('s', $clist);
     return $nlist;
 }
开发者ID:hypervm-ng,项目名称:hypervm-ng,代码行数:9,代码来源:pserverlib.php


示例2: readtotallog

 static function readtotallog()
 {
     $list = self::readsmtpLog();
     $nlist = self::readMaillog();
     $total = lx_merge_good($list, $nlist);
     foreach ($total as $k => $v) {
         $re['clientname'] = $k;
         $re['nname'] = $k;
         $re['mailnum'] = $v;
         $res[$k] = $re;
     }
     return $res;
 }
开发者ID:soar-team,项目名称:kloxo,代码行数:13,代码来源:clientmail.php


示例3: get_vps_ipadress

 static function get_vps_ipadress()
 {
     $out = lxshell_output("vzlist", "-a", '-H', '-o', 'ip');
     $list = explode("\n", $out);
     $total = null;
     foreach ($list as $l) {
         $l = trim($l);
         $l = trim($l, "-");
         if (csa($l, "Warning")) {
             continue;
         }
         if (!$l) {
             continue;
         }
         $res = explode(" ", $l);
         $total = lx_merge_good($total, $res);
     }
     return $total;
 }
开发者ID:lonelywoolf,项目名称:hypervm,代码行数:19,代码来源:vpstraffic__openvzlib.php


示例4: getDomainServerVlist

 static function getDomainServerVlist($parent, $obj, &$vlist)
 {
     global $gbl, $sgbl, $login, $ghtml;
     $vlist['server_detail_f'] = null;
     $wlist = $parent->getServerList('web');
     $mlist = $parent->getServerList('mmail');
     $mylist = $parent->getServerList('mysqldb');
     $dnslist = $parent->getServerList('dns');
     if ($obj) {
         // This means we are switching as opposed to creating a new client.
         $obj->newdnstemplate = '--leave--';
         $dtlist = domainbase::getDnsTemplateList($login);
         $dtlist = lx_merge_good("--leave--", $dtlist);
         $vlist['newdnstemplate'] = array('s', $dtlist);
     }
     $vlist['websyncserver'] = array('s', $wlist);
     $vlist['mmailsyncserver'] = array('s', $mlist);
     $vlist['mysqldbsyncserver'] = array('s', $mylist);
     $vlist['dnssyncserver_list'] = array('U', $dnslist);
     $list = lx_merge_good($wlist, $mlist, $mylist, $dnslist);
     $sinfo = pservercore::createServerInfo($list);
     $sinfo = get_warning_for_server_info($parent, $sinfo);
     $vlist['server_detail_f'] = array('M', $sinfo);
 }
开发者ID:soar-team,项目名称:kloxo,代码行数:24,代码来源:clientcorelib.php


示例5: updateform

 function updateform($subaction, $param)
 {
     if ($subaction === 'update') {
         $vlist['devname'] = array("M", $this->devname);
         $vlist['ipaddr'] = array('M', $this->ipaddr);
         $vlist['netmask'] = array('M', $this->netmask);
         $vlist['gateway'] = array('M', $this->gateway);
         $vlist['__v_button'] = "";
     } else {
         if ($subaction === "exclusive") {
             $db = new Sqlite($this->__masterserver, "client");
             $list = $db->getTable(array("nname"));
             $list = get_namelist_from_arraylist($list);
             $list = lx_merge_good('__unassigned__', $list);
             $vlist['clientname'] = array('s', $list);
         }
     }
     return $vlist;
 }
开发者ID:hypervm-ng,项目名称:hypervm-ng,代码行数:19,代码来源:ipaddresslib.php


示例6: printObjectTable

    function printObjectTable($name_list, $parent, $class, $blist = array(), $display = NULL)
    {
        global $gbl, $sgbl, $login, $ghtml;
        $col = $login->getSkinColor();
        $view = null;
        if (exec_class_method($class, "hasViews")) {
            $blist[] = array($ghtml->getFullUrl("a=list&c={$class}&frm_filter[view]=quota"), 1);
            $blist[] = array($ghtml->getFullUrl("a=list&c={$class}&frm_filter[view]=normal"), 1);
        }
        print_time("{$class}.objecttable");
        $rclass = $class;
        if ($this->frm_accountselect !== null) {
            $sellist = explode(',', $this->frm_accountselect);
        } else {
            $sellist = null;
        }
        $filtername = $parent->getFilterVariableForThis($class);
        $sortdir = null;
        $sortby = null;
        $fil = $login->getHPFilter();
        if (isset($fil[$filtername]['sortby'])) {
            $sortby = $fil[$filtername]['sortby'];
        }
        if (isset($fil[$filtername]['sortdir'])) {
            $sortdir = $fil[$filtername]['sortdir'];
        }
        $pagesize = (int) $login->issetHpFilter($filtername, 'pagesize') ? $login->getHPFilter($filtername, 'pagesize') : exec_class_method($rclass, "perPage");
        if (!(int) $pagesize) {
            $pagesize = 10;
        }
        $view = null;
        if (isset($fil[$filtername]['view'])) {
            $view = $fil[$filtername]['view'];
            dprintr($view);
        }
        if (!$name_list) {
            if (csa($class, "all_")) {
                $__tcl = strfrom($class, "all_");
                $name_list = exec_class_method($__tcl, "createListNlist", $parent, $view);
                foreach ($name_list as $k => $v) {
                    if (csa($k, "abutton")) {
                        unset($name_list[$k]);
                    }
                }
                $name_list = lx_merge_good(array('parent_name_f' => '10%'), $name_list);
            } else {
                $name_list = exec_class_method($class, "createListNlist", $parent, $view);
            }
        }
        $iconpath = get_image_path() . "/button";
        $buttonpath = get_image_path() . "/button/";
        $nlcount = count($name_list) + 1;
        $imgheadleft = $login->getSkinDir() . "/top_lt.gif";
        $imgheadleft = $login->getSkinDir() . "/top_lt.gif";
        $imgheadleft2 = $login->getSkinDir() . "/top_lt.gif";
        $imgheadright = $login->getSkinDir() . "/top_slope_rt.gif";
        $imgheadbg = $login->getSkinDir() . "/top_bg.gif";
        $imgbtnbg = $login->getSkinDir() . "/btn_bg.gif";
        $imgtablerowhead = $login->getSkinDir() . "/tablerow_head.gif";
        $imgtablerowheadselect = $login->getSkinDir() . "/top_line_medium.gif";
        $imgbtncrv = $login->getSkinDir() . "/btn_crv_right.gif";
        $imgtopline = $login->getSkinDir() . "/top_line.gif";
        $skindir = $login->getSkinDir();
        $classdesc = $this->get_class_description($rclass, $display);
        $unique_name = trim($parent->nname) . trim($class) . trim($display) . trim($classdesc[2]);
        $unique_name = fix_nname_to_be_variable($unique_name);
        ?>
	<br>
	<script> var ckcount<?php 
        echo $unique_name;
        ?>
 ; </script>
		<?php 
        if (!$sortby) {
            $sortby = exec_class_method($rclass, "defaultSort");
        }
        if (!$sortdir) {
            $sortdir = exec_class_method($rclass, "defaultSortDir");
        }
        $obj_list = $parent->getVirtualList($class, $total_num, $sortby, $sortdir);
        if (exec_class_method($rclass, "isdefaultHardRefresh")) {
            exec_class_method($rclass, "getExtraParameters", $parent, $obj_list);
        } else {
            if ($this->frm_hardrefresh === 'yes') {
                exec_class_method($rclass, "getExtraParameters", $parent, $obj_list);
            }
        }
        $pluraldesc = get_plural($classdesc[2]);
        if ($login->issetHpFilter($filtername, 'pagenum')) {
            $cgi_pagenum = $login->getHPFilter($filtername, 'pagenum');
        } else {
            $cgi_pagenum = 1;
        }
        $showvar = null;
        if ($login->issetHpFilter($filtername, 'show')) {
            $showvar = $login->getHPFilter($filtername, 'show');
        }
        if ($showvar) {
            $showvar = "(" . ucfirst($showvar) . ")";
        }
//.........这里部分代码省略.........
开发者ID:hypervm-ng,项目名称:hypervm-ng,代码行数:101,代码来源:htmllib.php


示例7: createListSlist

 static function createListSlist($parent)
 {
     global $gbl, $sgbl, $login, $ghtml;
     $nlist['nname'] = null;
     $gen = $login->getObject('general');
     $cat = get_namelist_from_objectlist($gen->helpdeskcategory_a);
     $cat = lx_merge_good('--any--', $cat);
     $nlist['category'] = array('s', $cat);
     return $nlist;
 }
开发者ID:soar-team,项目名称:kloxo,代码行数:10,代码来源:ticketlib.php


示例8: add_disabled

function add_disabled($list)
{
    $newlist[] = "--Disabled--";
    $newlist = lx_merge_good($newlist, $list);
    return $newlist;
}
开发者ID:zseand,项目名称:kloxo,代码行数:6,代码来源:lxlib.php


示例9: addform

 static function addform($parent, $class, $typetd = null)
 {
     $vlist['nname'] = null;
     $vlist['description'] = null;
     //$vlist['share_status'] = null;
     $qvlist = getQuotaListForClass('vps', array());
     $vlist = lx_merge_good($vlist, $qvlist);
     $ret['action'] = "add";
     //$ret['continueaction'] = "server";
     $ret['variable'] = $vlist;
     return $ret;
 }
开发者ID:digideskio,项目名称:hypervm,代码行数:12,代码来源:vpstemplatelib.php


示例10: getIndividualIpList

 function getIndividualIpList()
 {
     if (isIPV6($this->lastip)) {
         $sep = ':';
     } else {
         $sep = '.';
     }
     $base = explode($sep, $this->lastip);
     $end = array_pop($base);
     $base = explode($sep, $this->firstip);
     $start = array_pop($base);
     $base = implode($sep, $base);
     if (isIPV6($this->lastip)) {
         for ($i = hexdec($start); $i <= hexdec($end); $i++) {
             $out[] = "{$base}{$sep}" . dechex($i);
         }
     } else {
         for ($i = $start; $i <= $end; $i++) {
             $out[] = "{$base}{$sep}{$i}";
         }
     }
     $ex = get_namelist_from_objectlist($this->ippoolextraip_a);
     $out = lx_merge_good($out, $ex);
     $exception = get_namelist_from_objectlist($this->ippoolexceptionip_a);
     //dprintr($exception);
     foreach ($out as $k => $v) {
         if (isset($exception[$v])) {
             unset($out[$k]);
         }
     }
     $exception = get_namelist_from_objectlist($this->ippoolpingip_a);
     //dprintr($exception);
     foreach ($out as $k => $v) {
         if (isset($exception[$v])) {
             unset($out[$k]);
         }
     }
     return $out;
 }
开发者ID:hypervm-ng,项目名称:hypervm-ng,代码行数:39,代码来源:ippoollib.php


示例11: updateform

 function updateform($subaction, $param)
 {
     global $gbl, $sgbl, $login, $ghtml;
     $progname = $sgbl->__var_program_name;
     switch ($subaction) {
         case "multi":
             $vlist['multi'] = null;
             break;
         case "browsebackup":
             $vlist['browsebackup_b-browsebackup_flag'] = null;
             //$vlist['browsebackup_b-backupslave'] = array('s', get_all_pserver());
             //$vlist['browsebackup_b-rootdir'] = null;
             break;
         case "historytime":
             $vlist['generalmisc_b-traffichistory_time'] = null;
             $vlist['generalmisc_b-loginhistory_time'] = null;
             break;
         case "disableper":
             $vlist['generalmisc_b-dpercentage'] = array('s', array('90', '95', '100', '105', '110', '120'));
             break;
         case "npercentage":
             $vlist['generalmisc_b-npercentage'] = null;
             break;
         case "ssh_config":
             $vlist['generalmisc_b-sshport'] = null;
             //	return $vlist;
             break;
         case "kloxo_config":
             $vlist['kloxoconfig_b-remoteinstall_flag'] = null;
             $vlist['kloxoconfig_b-installapp_url'] = null;
             //	return $vlist;
             break;
         case "portconfig":
             $this->portconfig_b->setDefaultValue('sslport', $sgbl->__var_prog_ssl_port);
             $this->portconfig_b->setDefaultValue('nonsslport', $sgbl->__var_prog_port);
             $vlist['portconfig_b-sslport'] = null;
             $vlist['portconfig_b-nonsslport'] = null;
             //$vlist['portconfig_b-nonsslportdisable_flag'] = null;
             $vlist['portconfig_b-redirectnonssl_flag'] = null;
             //	return $vlist;
             break;
         case "download_config":
             $vlist['generalmisc_b-masterdownload'] = null;
             //	return $vlist;
             break;
         case "attempts":
             $vlist['generalmisc_b-attempts'] = null;
             break;
         case "maintenance":
             $vlist['generalmisc_b-maintenance_flag'] = null;
             $vlist['text_maintenance_message'] = array('t', null);
             //	return $vlist;
             break;
         case "generalsetting":
             $vlist['generalmisc_b-autoupdate'] = null;
             if ($sgbl->isHyperVM()) {
                 if (!isset($this->generalmisc_b->installkloxo)) {
                     $this->generalmisc_b->installkloxo = 'on';
                 }
                 $vlist['generalmisc_b-installkloxo'] = null;
                 $vlist['generalmisc_b-openvzincrement'] = null;
                 $vlist['generalmisc_b-xenimportdriver'] = null;
                 $vlist['generalmisc_b-rebuild_time_limit'] = null;
                 $vlist['generalmisc_b-no_console_user'] = null;
                 $vlist['generalmisc_b-disable_hostname_change'] = null;
             }
             if ($sgbl->isKloxo()) {
                 // MR --- On original, why double declare?. Modified!
                 $vlist['generalmisc_b-extrabasedir'] = null;
                 //	$vlist['generalmisc_b-extrabasedir'] = null;
                 $list = array("awstats", "webalizer");
                 //	$list = array("awstats", "webalizer");
                 $list = add_disabled($list);
                 //	$list = add_disabled($list);
                 $this->generalmisc_b->setDefaultValue('webstatisticsprogram', 'awstats');
                 //	$this->generalmisc_b->setDefaultValue('webstatisticsprogram', 'awstats');
                 $vlist['generalmisc_b-webstatisticsprogram'] = array('s', $list);
                 //	$vlist['generalmisc_b-webstatisticsprogram'] = array('s', $list);
                 $vlist['generalmisc_b-disableinstallapp'] = null;
                 //	$vlist['generalmisc_b-disableinstallapp'] = null;
                 $list = lx_merge_good('--chooser--', mmail::getWebmailProgList());
                 //	$list = lx_merge_good('--chooser--', mmail::getWebmailProgList());
                 $vlist['generalmisc_b-webmail_system_default'] = array('s', $list);
                 //	$vlist['generalmisc_b-webmail_system_default'] = array('s', $list);
             }
             $vlist['generalmisc_b-htmltitle'] = null;
             $vlist['generalmisc_b-ticket_url'] = null;
             $vlist['login_pre'] = null;
             // MR --- immediately process before goback
             $this->postUpdateGeneralsetting();
             break;
         case "hostdiscovery":
             $vlist['generalmisc_b-usenmapforping'] = null;
             break;
         case "reversedns":
             if (!$this->reversedns_b) {
                 $this->reversedns_b = new reversedns_b(null, null, 'general');
             }
             if ($sgbl->isHyperVM()) {
                 $vlist['reversedns_b-enableflag'] = null;
//.........这里部分代码省略.........
开发者ID:zseand,项目名称:kloxo,代码行数:101,代码来源:generallib.php


示例12: createServerAliasLine

 function createServerAliasLine()
 {
     global $gbl, $sgbl, $login, $ghtml;
     $list = get_namelist_from_objectlist($this->main->server_alias_a);
     $iplist = null;
     foreach ($this->main->__var_domainipaddress as $ip => $dom) {
         if ($dom === $this->main->nname) {
             $iplist[] = $ip;
         }
     }
     if ($list) {
         foreach ($list as &$__l) {
             $__l = "{$__l}.{$this->main->nname}";
         }
     }
     if ($this->main->isOn('force_www_redirect')) {
         $list = lx_merge_good(array("www.{$this->main->nname}"), $list);
     } else {
         $list = lx_merge_good(array("www.{$this->main->nname}", $this->main->nname), $list);
     }
     foreach ((array) $this->main->__var_addonlist as $d) {
         // forget this if?
         if ($d->ttype === 'redirect') {
             continue;
         }
         $list[] = $d->nname;
         $list[] = "www.{$d->nname}";
     }
     $list = lx_array_merge(array($list, $iplist));
     $string = implode("|", $list);
     // issue 674 - wildcard and subdomain problem
     // remove for * (wildcards)
     $string = str_replace("|*.{$this->main->nname}", "", $string);
     return "^({$string})";
 }
开发者ID:soar-team,项目名称:kloxo,代码行数:35,代码来源:web__lighttpdlib.php


示例13: continueForm

 static function continueForm($parent, $class, $param, $continueaction)
 {
     global $gbl, $sgbl, $login, $ghtml;
     /*
     	if(!eregi("^[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,5})$", $param['nname'])) { 
     		throw new lxException('invalid_domain_name', 'nname');
     	}
     */
     if (!cse($param['nname'], ".vm")) {
         $param['nname'] .= ".vm";
     }
     $param['nname'] = strtolower($param['nname']);
     if ($param['one_ipaddress_f']) {
         full_validate_ipaddress($param['one_ipaddress_f']);
     }
     /*
     	if (!preg_match("/[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+]/i", $param['nname'])) {
     		throw new lxException('domain_name_invalid', 'nname');
     	}
     */
     if (isOn($param['send_welcome_f'])) {
         if (!$param['contactemail']) {
             throw new lxexception("sending_welcome_needs_contactemail", array('contactemail', 'send_welcome_f'), '');
         }
         if (!validate_email($param['contactemail'])) {
             throw new lxexception("contactemail_is_not_valid_email_address", 'contactemail', '');
         }
     }
     if ($param['resourceplan_f'] === 'continue_without_plan') {
         $vlist['__c_subtitle_quota'] = 'Quota';
         $qvlist = getQuotaListForClass('vps');
         $vlist = lx_merge_good($vlist, $qvlist);
         $ret['param'] = $param;
         $ret['variable'] = $vlist;
         $ret['action'] = "Add";
     } else {
         $template = getFromAny(array($login, $parent), 'resourceplan', $param['resourceplan_f']);
         $param['use_resourceplan_f'] = 'on';
         if (!$template) {
             throw new lxexception("the_template_doesnt_exist", 'resourceplan_f', $param['resourceplan_f']);
         }
         $ret['action'] = 'addnow';
         $ret['param'] = $param;
         return $ret;
     }
     return $ret;
 }
开发者ID:digideskio,项目名称:hypervm,代码行数:47,代码来源:vpslib.php


示例14: __ac_desc_UpdateForm

function __ac_desc_UpdateForm($object)
{
    global $gbl, $sgbl, $login, $ghtml;
    if (!$object) {
        return;
    }
    $selflist = $object->getSelfList();
    $subaction = $ghtml->frm_subaction;
    // WHy is this getting called?????
    $object->createShowPropertyList($alist);
    if (isset($alist['property']) && count($alist['property']) > 1) {
        $nalist = null;
        $nalist = lx_merge_good($nalist, $alist['property']);
        $ghtml->print_tab_block($nalist);
    } else {
        if ($object->getParentO()) {
            $alist['property'] = null;
            $object->getParentO()->createShowPropertyList($alist);
            $nalist = null;
            foreach ($alist['property'] as &$a) {
                $a .= '&goback=1';
            }
            $nalist = lx_merge_good($nalist, $alist['property']);
            $ghtml->print_tab_block($nalist);
        }
    }
    $object->showRawPrint();
    $ghtml->print_message();
    if ($selflist) {
        $ghtml->printShowSelectBox($selflist);
    }
    $sublist = $object->getMultiUpload($subaction);
    if (is_array($sublist)) {
        foreach ($sublist as $subaction) {
            do_updateform($object, $subaction);
            print "<br> <br> <br> ";
        }
    } else {
        do_updateform($object, $sublist);
    }
}
开发者ID:hypervm-ng,项目名称:hypervm-ng,代码行数:41,代码来源:coredisplaylib.php


示例15: updateform


//.........这里部分代码省略.........
                 $vlist['__m_message_pre'] = 'xen_restart_message';
             }
             $vlist['rootpassword'] = null;
             return $vlist;
             //ONly for Template...
         //ONly for Template...
         case "description":
             $vlist['description'] = null;
             //$vlist['share_status'] = null;
             if (!$this->isRightParent()) {
                 $this->convertToUnmodifiable($vlist);
             }
             return $vlist;
         case "timezone":
             $vlist['timezone'] = array('s', pserver::getTimeZoneList());
             return $vlist;
         case "information":
             $vlist['nname'] = array('M', $this->nname);
             $vlist['corerootdir'] = array('M', $this->corerootdir);
             $vlist['ddate'] = array('M', @date('d-m-Y', $this->ddate));
             //			$vlist['kloxo_flag'] = null;
             if ($login->isAdmin() && $this->isXen()) {
                 $vlist['nosaveconfig_flag'] = null;
             }
             if (!$this->isXen()) {
                 $vlist['vpsid'] = array('M', $this->vpsid);
             }
             if ($this->isXen() && $login->isAdmin()) {
                 $vlist['vcpu_number'] = array('s', range(1, 10));
             }
             if ($login->isAdmin()) {
                 $use_slaves = "__use-slaves-backup-server__";
                 if (!$this->centralbackup_server) {
                     $this->centralbackup_server = $use_slaves;
                 }
                 $sq = new Sqlite(null, "centralbackupserver");
                 $list = get_namelist_from_arraylist($sq->getTable(array('nname')));
                 $list = lx_merge_good(array($use_slaves), $list);
                 //$vlist['centralbackup_flag'] = null;
                 $vlist['centralbackup_server'] = array('s', $list);
             }
             $vlist['ostemplate'] = array('M', null);
             $vlist['parent_name_f'] = array('M', $this->getParentName());
             //$vlist['dbtype_list'] = array('M', $this->listpriv->dbtype_list);
             $vlist['contactemail'] = "";
             if (!$this->isLogin()) {
                 $vlist['text_comment'] = null;
             }
             return $vlist;
             // Only for template. For the main guy, it comes as 'rebuild'
         // Only for template. For the main guy, it comes as 'rebuild'
         case "network":
             if ($this->isXen()) {
                 $vlist['__m_message_pre'] = 'xen_restart_message';
             }
             if (!$this->isLogin() || !$gen->isOn('disable_hostname_change')) {
                 $vlist['hostname'] = null;
             }
             if ($this->isXen()) {
                 if (!$this->networknetmask) {
                     $this->networknetmask = "255.255.255.0";
                 }
                 $vlist['networkgateway'] = null;
                 $vlist['networknetmask'] = null;
                 if ($login->priv->isOn('ip_manage_flag') || $login->isAdmin()) {
                     $vlist['networkbridge'] = array('s', array("__automatic__", "xenbr0", "xenbr1", "xenbr2", "xenbr3", "xenbr4"));
                 }
             }
             $iplist = $this->vmipaddress_a;
             $iplist = implode(", ", get_namelist_from_objectlist($iplist, 'nname'));
             $vlist['one_ipaddress_f'] = array('M', $iplist);
             $vlist['nameserver'] = null;
             return $vlist;
         case "ostemplate":
             $driverapp = $gbl->getSyncClass($this->__masterserver, $this->listpriv->vpspserver_sing, 'vps');
             $ostlist = rl_exec_get(null, $this->listpriv->vpspserver_sing, array("vps__{$driverapp}", "getOsTemplatelist"));
             $ostlist = lx_merge_good(array('--defer-osimage--' => '--defer-osimage--'), $ostlist);
             $vlist['ostemplate'] = array('A', $ostlist);
             return $vlist;
         case "changesyncserver":
             $sq = new Sqlite(null, 'pserver');
             $list = $sq->getTable(array('nname'));
             $list = get_namelist_from_arraylist($list);
             $vlist['syncserver'] = array('s', $list);
             $gbl->__ajax_refresh = true;
             return $vlist;
             // Only for template...
         // Only for template...
         case "vpspserver_s":
             $listpriv = $parent->listpriv;
             $vlist['server_detail_f'] = array('M', pserver::createServerInfo($listpriv->vpspserver_list, "vps"));
             $parent = $this->getParentO();
             $vlist['vpspserver_sing'] = null;
             if (!$this->isRightParent()) {
                 $this->convertToUnmodifiable($vlist);
             }
             return $vlist;
     }
     return parent::updateform($subaction, $param);
 }
开发者ID:hypervm-ng,项目名称:hypervm-ng,代码行数:101,代码来源:vpsbaselib.php


示例16: getIndividualIpList

 function getIndividualIpList()
 {
     $base = explode(".", $this->lastip);
     $end = array_pop($base);
     $base = explode(".", $this->firstip);
     $start = array_pop($base);
     $base = implode(".", $base);
     for ($i = $start; $i <= $end; $i++) {
         $out[] = "{$base}.{$i}";
     }
     $ex = get_namelist_from_objectlist($this->ippoolextraip_a);
     $out = lx_merge_good($out, $ex);
     $exception = get_namelist_from_objectlist($this->ippoolexceptionip_a);
     //dprintr($exception);
     foreach ($out as $k => $v) {
         if (isset($exception[$v])) {
             unset($out[$k]);
         }
     }
     $exception = get_namelist_from_objectlist($this->ippoolpingip_a);
     //dprintr($exception);
     foreach ($out as $k => $v) {
         if (isset($exception[$v])) {
             unset($out[$k]);
         }
     }
     return $out;
 }
开发者ID:lonelywoolf,项目名称:hypervm,代码行数:28,代码来源:ippoollib.php


示例17: addform

 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;
 }
开发者ID:zseand,项目名称:kloxo,代码行数:36,代码来源:clientbaselib.php


示例18: updateform

 function updateform($subaction, $param)
 {
     switch ($subaction) {
         case "editmx":
             $rec = $this->getParentO()->getObject('dns')->dns_record_a;
             foreach ($rec as $a) {
                 if ($a->ttype === 'mx') {
                     $v = $a->param;
                     continue;
                 }
             }
             $vlist['nname'] = array('M', null);
             $vlist['mx_f'] = array('m', $v);
             $vlist['__v_updateall_button'] = array();
             return $vlist;
         case "authentication":
             $domkey = db_get_value("servermail", $this->syncserver, "domainkey_flag");
             if (!$domkey) {
                 $domkey = 'off';
             }
             $domkey .= " (Server Wide Value)";
             $vlist['domainkey_f'] = array('M', $domkey);
             $vlist['enable_spf_flag'] = null;
             $vlist['text_spf_domain'] = null;
             $vlist['text_spf_ip'] = null;
             $this->setDefaultValue('exclude_all', 'soft');
             $vlist['exclude_all'] = array('s', array('soft', 'hard'));
             $vlist['__v_updateall_button'] = array();
             return $vlist;
         case "webmail_select":
             // read note on fixWebmailRedirect()
             $this->postUpdate($subaction);
             $this->setDefaultValue('webmailprog', '--system-default--');
             $base = "/home/kloxo/httpd/webmail/";
             $list = lscandir_without_dot_or_underscore($base);
             $nlist[] = '--system-default--';
             $nlist[] = '--chooser--';
             $nlist = add_disabled($nlist);
             $plist = self::getWebmailProgList();
             $nlist = lx_merge_good($nlist, $plist);
             $vlist['webmailprog'] = array('s', $nlist);
             $vlist['__v_updateall_button'] = array();
             return $vlist;
         case "catchall":
             $list = $this->getList('mailaccount');
             $name[] = "--bounce--";
             $name[] = "Delete";
             $nn = get_namelist_from_objectlist($list);
             foreach ($nn as &$___t) {
                 $tmp = explode("@", $___t);
                 $___t = $tmp[0];
             }
             $name = lx_array_merge(array($name, $nn));
             $vlist['catchall'] = array('s', $name);
             $vlist['__v_updateall_button'] = array();
             return $vlist;
         case "remotelocalmail":
             // read note on fixWebmailRedirect()
             $this->postUpdate($subaction);
             $vlist['remotelocalflag'] = array('s', array('local', 'remote'));
             $vlist['webmail_url'] = null;
             $vlist['__v_updateall_button'] = array();
             return $vlist;
     }
     return parent::updateform($subaction, $param);
 }
开发者ID:soar-team,项目名称:kloxo,代码行数:66,代码来源:mmaillib.php



注:本文中的lx_merge_good函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP lxfile_cp函数代码示例发布时间:2022-05-15
下一篇:
PHP lx_array_merge函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap