当前位置: 首页>>代码示例>>PHP>>正文


PHP rl_exec_get函数代码示例

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


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

示例1: initThisList

 static function initThisList($parent, $class)
 {
     global $gbl, $sgbl, $login, $ghtml;
     $driverapp = $gbl->getSyncClass($parent->__masterserver, $parent->__readserver, 'package');
     $list = rl_exec_get($parent->__masterserver, $parent->__readserver, array("package__{$driverapp}", "getPackages"), null);
     return $list;
 }
开发者ID:lonelywoolf,项目名称:hypervm,代码行数:7,代码来源:packagelib.php

示例2: initThisList

 static function initThisList($parent, $class)
 {
     $fpathp = $parent->fullpath;
     if (!$parent->is_dir()) {
         return null;
     }
     $duflag = $parent->duflag;
     $list = rl_exec_get($parent->__masterserver, $parent->__readserver, array("coreFfile", "get_full_stat"), array($parent->__username_o, $fpathp, $duflag));
     foreach ((array) $list as $stat) {
         $file = basename($stat['name']);
         if ($file === "") {
             continue;
         }
         if ($file === ".") {
             continue;
         }
         $fpath = $fpathp . "/" . $file;
         $file = $parent->nname . "/" . $file;
         if (!isset($parent->ffile_l)) {
             $parent->ffile_l = null;
         }
         $parent->ffile_l[$file] = new Ffile($parent->__masterserver, $parent->__readserver, $parent->root, $file, $parent->__username_o);
         $parent->ffile_l[$file]->setFromArray($stat);
         $parent->ffile_l[$file]->__parent_o = $parent->getParentO();
         $parent->ffile_l[$file]->setFileType();
     }
     $__tv = null;
     return $__tv;
 }
开发者ID:lonelywoolf,项目名称:hypervm,代码行数:29,代码来源:ftpclientlib.php

示例3: updateform

 function updateform($subaction, $param)
 {
     /*
     	$sq = new Sqlite($this->__masterserver, 'aspnet');
     	$rs = $sq->getRowsWhere("parent_clname = 'pserver_s_vv_p_{$this->syncserver}'");
     	foreach($rs as $r) {
     		$res[] = $r['version'];
     	}*/
     $domain = $this->getParentO();
     $resout = rl_exec_get(null, $domain->syncserver, array('aspnet', 'getAspnetVersion'), null);
     $res = explode("*", $resout);
     //$res = array("1.1","1.4");
     //$res = array($res);
     foreach ($res as $r) {
         $r = trim($r);
         if (!$r) {
             continue;
         }
         if (strtolower($r) === 'machineaccounts') {
             continue;
         }
         $rr[] = $r;
     }
     $vlist['version'] = array('s', $rr);
     //$vlist['encoding'] = null;
     return $vlist;
 }
开发者ID:lonelywoolf,项目名称:hypervm,代码行数:27,代码来源:aspnetlib.php

示例4: save_current_hitlist

 static function save_current_hitlist($server)
 {
     $list = lxguardhitdisplay::createHitList($server);
     foreach ($list as $r) {
         $hl[$r['ipaddress']] = $r['failcount'];
     }
     rl_exec_get(null, $server, "lxguard_save_hitlist", array($hl));
 }
开发者ID:lonelywoolf,项目名称:hypervm,代码行数:8,代码来源:lxguardlib.php

示例5: getExtraP

 function getExtraP($class, $list)
 {
     $res = rl_exec_get(null, $this->nname, array("dirlocation__linux", "getSizeForAll"), array(get_namelist_from_objectlist($list)));
     foreach ($res as $k => $v) {
         $list[$k]->diskfree = $v;
     }
     return $list;
 }
开发者ID:lonelywoolf,项目名称:hypervm,代码行数:8,代码来源:dirlocationlib.php

示例6: updateLxupdateInfo

 function updateLxupdateInfo()
 {
     if_demo_throw_exception();
     if (isUpdating()) {
         throw new lxException("program_is_already_updating");
     } else {
         rl_exec_get($this->__masterserver, 'localhost', array('lxupdate', 'execUpdate'), null);
         throw new lxException("update_scheduled");
     }
 }
开发者ID:lonelywoolf,项目名称:hypervm,代码行数:10,代码来源:lxupdatelib.php

示例7: updateMultiVpsCreate

 function updateMultiVpsCreate($param)
 {
     global $gbl, $sgbl, $login, $ghtml;
     if (!check_password($param['vps_admin_password_f'], $this->password)) {
         throw new lxException("wrong_password", 'vps_admin_password_f');
     }
     $res = rl_exec_get(null, 'localhost', 'createMultipLeVps', array($param));
     $url = $ghtml->getFullUrl('a=list&c=vps');
     $gbl->__this_redirect = $url . "&frm_smessage=vps_creation_in_background";
     return $param;
 }
开发者ID:lonelywoolf,项目名称:hypervm,代码行数:11,代码来源:clientlib.php

示例8: initThisList

 static function initThisList($parent, $class)
 {
     global $gbl, $sgbl, $login, $ghtml;
     $vpsid = null;
     if ($parent->is__table('vps')) {
         $vpsid = $parent->vpsid;
     }
     $driverapp = $gbl->getSyncClass($parent->__masterserver, $parent->syncserver, 'diskusage');
     $result = rl_exec_get($parent->__masterserver, $parent->syncserver, array("diskusage__{$driverapp}", "getDiskUsage"), null);
     return $result;
 }
开发者ID:soar-team,项目名称:kloxo,代码行数:11,代码来源:diskusagelib.php

示例9: continueFormFinish

 static function continueFormFinish($parent, $class, $param, $continueaction)
 {
     global $gbl, $sgbl, $login, $ghtml;
     $driverapp = $gbl->getSyncClass('localhost', $param['listpriv_s_vpspserver_sing'], 'vps');
     $ostlist = rl_exec_get(null, $param['listpriv_s_vpspserver_sing'], array("vps__{$driverapp}", "getOsTemplatelist"));
     $ostlist = lx_merge_good(array('--defer-osimage--' => '--defer-osimage--'), $ostlist);
     $vlist['ostemplate'] = array('A', $ostlist);
     $ret['variable'] = $vlist;
     $ret['action'] = 'add';
     $ret['param'] = $param;
     return $ret;
 }
开发者ID:digideskio,项目名称:hypervm,代码行数:12,代码来源:vpstemplatelib.php

示例10: updateform

 function updateform($subaction, $param)
 {
     global $gbl, $sgbl, $login, $ghtml;
     switch ($subaction) {
         case "shell_access":
             $driverapp = $gbl->getSyncClass($this->__masterserver, $this->syncserver, 'uuser');
             $res = rl_exec_get($this->__masterserver, $this->syncserver, array("uuser__{$driverapp}", "getShellList"), null);
             $vlist['nname'] = array('M', null);
             $vlist['shell'] = array('s', $res);
             return $vlist;
     }
     return parent::updateform($subaction, $param);
 }
开发者ID:lonelywoolf,项目名称:hypervm,代码行数:13,代码来源:uuserlib.php

示例11: update_all_slave

function update_all_slave()
{
    $db = new Sqlite(null, "pserver");
    $list = $db->getTable(array("nname"));
    foreach ($list as $l) {
        if ($l['nname'] === 'localhost') {
            continue;
        }
        try {
            print "Upgrading Slave {$l['nname']}...\n";
            rl_exec_get(null, $l['nname'], 'remotetestfunc', null);
        } catch (exception $e) {
            print $e->getMessage();
            print "\n";
        }
    }
}
开发者ID:lonelywoolf,项目名称:hypervm,代码行数:17,代码来源:updatelib.php

示例12: initThisList

 static function initThisList($parent, $class)
 {
     $slave = $parent->nname;
     if ($parent->is__table('client')) {
         $slave = $parent->websyncserver;
     }
     if ($parent->is__table('vps')) {
         $slave = $parent->syncserver;
     }
     $res = rl_exec_get(null, $slave, array('sshauthorizedkey__sync', 'getAuthorizedKey'), array($parent->username));
     foreach ($res as &$r) {
         $r['nname'] = "{$slave}___{$r['nname']}";
         $r['syncserver'] = $slave;
         $r['parent_clname'] = $parent->getClName();
     }
     return $res;
 }
开发者ID:lonelywoolf,项目名称:hypervm,代码行数:17,代码来源:sshauthorizedkey.php

示例13: initThisList

 static function initThisList($parent, $class)
 {
     global $gbl, $sgbl, $login, $ghtml;
     $_sysname = "linux";
     $host = $_SERVER['REMOTE_ADDR'];
     if (!$host || $sgbl->isDebug()) {
         $host = "google.com";
     }
     if ($parent->isClass('client')) {
         $server = $parent->websyncserver;
     } else {
         $server = $parent->syncserver;
     }
     $cmd = "traceroute -q 1 -n {$host} ";
     $_result = rl_exec_get(null, "localhost", array("traceroute", "exec_traceroute"), array($cmd));
     if (!is_array($_result)) {
         throw new lxexception("traceroute_failed", '', "");
     }
     if (count($_result) == 0) {
         throw new lxexception("traceroute_failed", '', "");
     }
     $object = new Traceroute(null, null, '__name__');
     return $object->Net_Traceroute_Result($_result, $_sysname);
 }
开发者ID:lonelywoolf,项目名称:hypervm,代码行数:24,代码来源:traceroute.php

示例14: setup_ssh_channel

function setup_ssh_channel($source, $destination, $actualname)
{
    $cont = rl_exec_get(null, $source, "get_scpid", array());
    $cont = rl_exec_get(null, $destination, "setup_scpid", array($cont));
    $cont = rl_exec_get(null, $source, "setup_knownhosts", array("{$actualname}, {$cont}"));
}
开发者ID:lonelywoolf,项目名称:hypervm,代码行数:6,代码来源:lib.php

示例15: doSimpleRestore

 function doSimpleRestore($bfile, $param)
 {
     global $gbl, $sgbl, $login, $ghtml;
     $progname = $sgbl->__var_program_name;
     $cprogname = ucfirst($progname);
     if ($this->isLocalhost('syncserver')) {
         $rem = lxbackup::getMetaData($bfile);
     } else {
         $rem = rl_exec_get($this->__masterserver, $this->syncserver, array("lxbackup", "getMetaData"), array($bfile));
     }
     $ob = $rem->bobject;
     dprint($ob->getClName());
     dprint($this->getClName());
     if ($ob->getClName() !== $this->getClName()) {
         throw new lxException('objectclassname_doesnt_match', '');
     }
     if ($gbl->__var_list_flag) {
         print "Contents of the backfile: Owner: {$ob->nname}.....\n";
     } else {
         print "Restoring backup for {$ob->nname}.....\n";
     }
     $ob->checkForConsistency(null, $param['_accountselect'], true);
     // Restore the currenct client's quota. The person who is doing the restoring souldn't able to escape his new quota.
     if ($this->isLogin()) {
         $ob->priv = $this->priv;
         if (isset($this->listpriv)) {
             $ob->listpriv = $this->listpriv;
         }
     }
     $ob->__var_bc_filename = $bfile;
     if (!$gbl->__var_list_flag) {
         $ob->was();
         $ob->simpleRestoreMeUpThere();
     }
 }
开发者ID:hypervm-ng,项目名称:hypervm-ng,代码行数:35,代码来源:lxclass.php


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