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

PHP xmlCall函数代码示例

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

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



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

示例1: displayLocalisationBar

/**
 * (c) 2004-2007 Linbox / Free&ALter Soft, http://linbox.com
 * (c) 2007-2008 Mandriva, http://www.mandriva.com/
 *     
 * $Id$
 *              
 * This file is part of Mandriva Management Console (MMC).
 *              
 * MMC is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *              
 * MMC is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *              
 * You should have received a copy of the GNU General Public License
 * along with MMC; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
function displayLocalisationBar()
{
    if (!isset($_SESSION["displayLocalisationBar"])) {
        $_SESSION["displayLocalisationBar"] = xmlCall("pulse2.displayLocalisationBar");
    }
    return $_SESSION["displayLocalisationBar"];
}
开发者ID:sebastiendu,项目名称:mmc,代码行数:29,代码来源:xmlrpc.inc.php


示例2: __get_and_store_im

/**
 * (c) 2004-2007 Linbox / Free&ALter Soft, http://linbox.com
 * (c) 2007-2009 Mandriva, http://www.mandriva.com
 *
 * $Id$
 *
 * This file is part of Mandriva Management Console (MMC).
 *
 * MMC is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * MMC is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with MMC.  If not, see <http://www.gnu.org/licenses/>.
 */
function __get_and_store_im($prefix, $option, $function)
{
    if (!isset($_SESSION[$prefix . "." . $option])) {
        $_SESSION[$prefix . "." . $option] = xmlCall($prefix . "." . $function);
    }
    return $_SESSION["imaging." . $option];
}
开发者ID:sebastiendu,项目名称:mmc,代码行数:28,代码来源:web_def.inc.php


示例3: __web_def_in_session_msc

function __web_def_in_session_msc($option)
{
    if (!isset($_SESSION[$option])) {
        $_SESSION[$option] = xmlCall("msc.get_web_def_" . $option);
    }
    return $_SESSION[$option];
}
开发者ID:neoclust,项目名称:mmc,代码行数:7,代码来源:mscoptions_xmlrpc.php


示例4: getMaxElementsForStaticList

function getMaxElementsForStaticList()
{
    if (!isset($_SESSION["maxElementsForStaticList"])) {
        $_SESSION["maxElementsForStaticList"] = xmlCall("dyngroup.getMaxElementsForStaticList", null);
    }
    return $_SESSION["maxElementsForStaticList"];
}
开发者ID:pulse-project,项目名称:pulse,代码行数:7,代码来源:xmlrpc.php


示例5: save_smbconf

function save_smbconf()
{
    $options = array();
    # sanitize POST values
    foreach ($_POST as $key => $value) {
        if (get_magic_quotes_gpc()) {
            $options[str_replace("_", " ", $key)] = stripslashes($value);
        } else {
            $options[str_replace("_", " ", $key)] = $value;
        }
    }
    if (!isset($_POST['hasprofiles'])) {
        $options['hasprofiles'] = false;
    } else {
        $options['hasprofiles'] = true;
    }
    if (!isset($_POST['hashomes'])) {
        $options['hashomes'] = false;
    } else {
        $options['hashomes'] = true;
    }
    if (!isset($_POST['pdc'])) {
        $options['pdc'] = false;
    } else {
        $options['pdc'] = true;
    }
    # apply samba options
    return xmlCall("samba.smbInfoSave", array($options));
}
开发者ID:psyray,项目名称:mmc,代码行数:29,代码来源:index.php


示例6: search_machines

function search_machines($filter = null)
{
    if ($filter == "") {
        $filter = null;
    } else {
        $filter = "*" . $filter . "*";
    }
    return xmlCall("samba.getMachinesLdap", $filter);
}
开发者ID:pulse-project,项目名称:pulse,代码行数:9,代码来源:machines-xmlrpc.inc.php


示例7: _base_delGroup

function _base_delGroup($group)
{
    $ret = xmlCall("base.delGroup", $group);
    if ($ret == 2) {
        $msg = sprintf(_("Group %s can't be deleted.<br/>%s is the primary group of some users."), $group, $group);
    } else {
        $msg = sprintf(_("Group %s successfully deleted."), $group);
    }
    return array("code" => $ret, "info" => $msg);
}
开发者ID:pulse-project,项目名称:pulse,代码行数:10,代码来源:publicFunc.php


示例8: preg_replace

/* Session creation */
$ip = preg_replace('@\\.@', '', $_SERVER["REMOTE_ADDR"]);
$sessionid = md5(time() . $ip . mt_rand());
session_destroy();
session_id($sessionid);
session_name("PULSESESSION");
session_start();
$_SESSION["ip_addr"] = $_SERVER["REMOTE_ADDR"];
if (isset($conf[$server])) {
    $_SESSION["XMLRPC_agent"] = parse_url($conf[$server]["url"]);
    $_SESSION["agent"] = $server;
    $_SESSION["XMLRPC_server_description"] = $conf[$server]["description"];
} else {
    $error = sprintf(_("The server %s does not exist"), $server);
}
if (empty($error) && xmlCall("base.tokenAuthenticate", array($login, $token))) {
    include "includes/createSession.inc.php";
    /* Redirect to main page */
    header("Location: " . $root . "main.php");
    exit;
} else {
    $_SESSION['lang'] = $lang;
    require "includes/i18n.inc.php";
    if (!isXMLRPCError() && empty($error)) {
        $error = _("Token not valid");
    } else {
        if (isXMLRPCError()) {
            $error = _("Error while validating your token. Please contact your administrator.");
        }
    }
    header("Location: " . $root . "index.php?error=" . $error);
开发者ID:pulse-project,项目名称:pulse,代码行数:31,代码来源:token.php


示例9: isLogViewEnabled

function isLogViewEnabled()
{
    if (!isset($_SESSION["isLogViewEnabled"])) {
        $_SESSION["isLogViewEnabled"] = xmlCall("base.isLogViewEnabled");
    }
    return $_SESSION["isLogViewEnabled"];
}
开发者ID:sebastiendu,项目名称:mmc,代码行数:7,代码来源:users-xmlrpc.inc.php


示例10: time

<?php

$_SESSION["login"] = $login;
$_SESSION["pass"] = $pass;
/* Set session expiration time */
$_SESSION["expire"] = time() + 90 * 60;
if (isset($_POST["lang"])) {
    $lang = $_POST["lang"];
}
if (isset($_GET["lang"])) {
    $lang = $_GET["lang"];
}
$_SESSION['lang'] = $lang;
setcookie('lang', $lang, time() + 3600 * 24 * 30);
list($_SESSION["acl"], $_SESSION["acltab"], $_SESSION["aclattr"]) = createAclArray(getAcl($login));
/* Register agent module list */
$_SESSION["supportModList"] = array();
$list = xmlCall("base.getModList", null);
if (is_array($list)) {
    sort($list);
    $_SESSION["supportModList"] = $list;
}
/* Register module version */
$_SESSION["modListVersion"]['rev'] = xmlCall("getRevision", null);
$_SESSION["modListVersion"]['ver'] = xmlCall("getVersion", null);
/* Make the comnpany logo effect */
$_SESSION["doeffect"] = True;
开发者ID:sebastiendu,项目名称:mmc,代码行数:27,代码来源:createSession.inc.php


示例11: xmlCall

<?php

/**
 * (c) 2004-2007 Linbox / Free&ALter Soft, http://linbox.com
 * (c) 2007-2012 Mandriva, http://www.mandriva.com
 *
 * $Id$
 *
 * This file is part of Mandriva Management Console (MMC).
 *
 * MMC is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * MMC is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with MMC.  If not, see <http://www.gnu.org/licenses/>.
 */
// Get method name and params
$method_name = $_POST['method_name'];
$params = $_POST['params'];
$result = xmlCall($method_name, $params);
print json_encode($result);
开发者ID:pulse-project,项目名称:pulse,代码行数:28,代码来源:ajaxXMLRPCCall.php


示例12: xmlCall

<?php

/**
 * (c) 2004-2007 Linbox / Free&ALter Soft, http://linbox.com
 * (c) 2007-2008 Mandriva, http://www.mandriva.com/
 *
 * $Id$
 *
 * This file is part of Mandriva Management Console (MMC).
 *
 * MMC is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * MMC is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with MMC; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
xmlCall("samba.restartSamba");
new NotifyWidgetSuccess(_T("The SAMBA service has been asked to restart."));
redirectTo(urlStrRedirect("samba/config/index"));
开发者ID:sebastiendu,项目名称:mmc,代码行数:27,代码来源:restart.php


示例13: result_group

function result_group($gid, $min, $max, $filter) {
    return xmlCall("pulse2.result_group", array($gid, $min, $max, $filter));
}
开发者ID:neoclust,项目名称:mmc,代码行数:3,代码来源:groups_xmlrpc.inc.php


示例14: xmlrpc_getLocationName

function xmlrpc_getLocationName($uuid) {
    return xmlCall("pulse2.getLocationName", array($uuid));
}
开发者ID:neoclust,项目名称:mmc,代码行数:3,代码来源:locations_xmlrpc.inc.php


示例15: getSubPackageMirrors

function getSubPackageMirrors($uuids)
{
    return xmlCall('msc.ma_getSubPackageMirrors', array($uuids));
}
开发者ID:sebastiendu,项目名称:mmc,代码行数:4,代码来源:mirror_api.php


示例16: xmlrpc_isProfileAssociatedToImagingServer

function xmlrpc_isProfileAssociatedToImagingServer($gid)
{
    return xmlCall("dyngroup.isProfileAssociatedToImagingServer", array($gid));
}
开发者ID:neoclust,项目名称:mmc,代码行数:4,代码来源:dyngroup.php


示例17: msc_script_detailled_info

function msc_script_detailled_info($filename)
{
    return xmlCall("msc.msc_script_detailled_info", array($filename));
}
开发者ID:sebastiendu,项目名称:mmc,代码行数:4,代码来源:qactions.inc.php


示例18: has_audit_working

function has_audit_working()
{
    if (!isset($_SESSION["hasAuditManagerWorking"])) {
        $_SESSION["hasAuditManagerWorking"] = xmlCall("base.hasAuditWorking");
    }
    return $_SESSION["hasAuditManagerWorking"];
}
开发者ID:sebastiendu,项目名称:mmc,代码行数:7,代码来源:logging-xmlrpc.inc.php


示例19: restartShorewallService

function restartShorewallService()
{
    return xmlCall("shorewall.restart_service", array());
}
开发者ID:psyray,项目名称:mmc,代码行数:4,代码来源:shorewall-xmlrpc.inc.php


示例20: exit

<?

exit(6);

}
?>
<div style="width:99%">
<?

$extra = array();
$date = array();
$op = array();

$errStrings = array("no free leases", "Error", "error", "Not configured to listen on any interfaces!", "Can't");

foreach (xmlCall("network.getDhcpLog",array($_SESSION['ajax']['filter'])) as $line) {
    if (is_array($line)) {
        $found = False;
        foreach($errStrings as $err) {
            if (strpos($line["extra"], $err) !== False) {
                $extra[] = '<div class="error">' . $line["extra"] . "</div>";
                $found = True;
                break;
            }
        }
        if (!$found) $extra[] = $line["extra"];
	$op[] = '<a href="#" onClick="$(\'param\').value=\''.$line["op"].'\'; pushSearch(); return false">'.$line["op"].'</a>';
        $dateparsed = strftime('%b %d %H:%M:%S',$line["time"]);
        $date[] = str_replace(" ", "&nbsp;", $dateparsed);
    } else {
        $date[] = "";
开发者ID:neoclust,项目名称:mmc,代码行数:31,代码来源:ajax_showlog.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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