示例#1
0
文件: loader.php 项目: poef/ariadne
    $inst_store = $store_config["dbms"] . "store";
    $store = new $inst_store($root, $store_config);
    $store->rootoptions = $rootoptions;
    // load language file
    require $ariadne . "/nls/" . $nls;
    $ARCurrent->nolangcheck = 1;
    if (!ldCheckLogin($arguments["ARLogin"], $arguments["ARPassword"])) {
        ldCheckLogin("public", "none");
    }
    // finally call the requested object
    //		unset($arguments["ARPassword"]);
    if ($arguments["ARPath"]) {
        $path = $store->make_path($path, $arguments["ARPath"]);
    }
    $result = current($store->call('soap.call.phtml', array('function' => $function, 'arguments' => $arguments), $store->get($path)));
    if (!$store->total) {
        ldObjectNotFound($path, $soapserver->methodname);
    } else {
        if (!$SOAP_Fault) {
            $soapserver->send_returnvalue($result);
        }
    }
    if ($SOAP_Fault) {
        $soapserver->send_returnvalue($SOAP_Fault);
    }
    $store->close();
}
// save session data
if ($ARCurrent->session) {
    $ARCurrent->session->save();
}