3
require("../adei.php");
5
header("Content-type: text/xml");
6
header("Cache-Control: no-cache, must-revalidate");
7
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
13
$tmp = split($ADEI_ID_DELIMITER, $id, 3);
14
$prefix = $id . $ADEI_ID_DELIMITER;
18
"db_server" => $tmp[0]
22
$props["db_name"] = $tmp[1];
24
$props["db_group"] = $tmp[2];
45
$req = new REQUEST($props);
46
$list = $req->GetServerList();
49
$req = new SERVERRequest($props);
50
$list = $req->GetDatabaseList();
53
$req = new SOURCERequest($props);
54
$list = $req->GetGroupList();
57
$req = new GROUPRequest($props);
58
$list = $req->GetItemList();
61
} catch (ADEIException $ex) {
62
$ex->logInfo(NULL, $req);
63
$err = xml_escape($ex->getInfo());
68
echo "<?xml version='1.0' encoding='UTF-8'?>
70
<item id=\"1\" name=\"" . translate("Source tree generation is failed, error: %s", $err) . "\"/>
76
foreach ($list as $id => $info) {
77
$tree.="<item id=\"{$prefix}{$id}\" text=\"" . xml_escape($info['name']) . "\" child=\"$child\" select=\"yes\"/>";
80
echo "<?xml version='1.0' encoding='UTF-8'?>