示例#1
0
文件: loader.php 项目: poef/ariadne
 $ARCurrent->nls = substr($path, 1, $split);
 if (!$AR->nls->list[$ARCurrent->nls]) {
     // not a valid language
     $ARCurrent->nls = "";
     $nls = $AR->nls->default;
     $cachenls = "";
 } else {
     // valid language
     $path = substr($path, $split + 1);
     ldSetNls($ARCurrent->nls);
     $nls = $ARCurrent->nls;
     $cachenls = "/{$nls}";
 }
 $soapserver = new soap_server();
 debug($HTTP_RAW_POST_DATA);
 $arguments = $soapserver->get_request($HTTP_RAW_POST_DATA);
 $function = strtolower($soapserver->methodname);
 ob_start();
 echo "Arguments: \n";
 print_r($arguments);
 debug(ob_get_contents());
 ob_end_clean();
 if ($arguments["arUnpackArrayNames"]) {
     debug("loader starting unpackarraynames\n\n");
     unpack_array_names($arguments, $arguments);
 }
 debug("soap::request ({$path}) ('{$function}')", "loader");
 // instantiate the store
 $inst_store = $store_config["dbms"] . "store";
 $store = new $inst_store($root, $store_config);
 $store->rootoptions = $rootoptions;