/adei/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/trunk
119 by Suren A. Chilingaryan
New way of service handling (mod_rewrite), Various fixups, katrin stuff moved to SETUP directory
1
<?php
362 by Suren A. Chilingaryan
Allow JS cross referencing in services
2
header('Access-Control-Allow-Origin: *');
119 by Suren A. Chilingaryan
New way of service handling (mod_rewrite), Various fixups, katrin stuff moved to SETUP directory
3
4
require("../adei.php");
5
try {
6
    ADEI::RequireService($_GET['service']);
7
} catch (ADEIException $ex) {
8
    $ex->logInfo();
253 by Suren A. Chilingaryan
Initial support of secondary views
9
    $service_error = xml_escape($ex->getInfo());
119 by Suren A. Chilingaryan
New way of service handling (mod_rewrite), Various fixups, katrin stuff moved to SETUP directory
10
}
11
253 by Suren A. Chilingaryan
Initial support of secondary views
12
if ($service_error) {
119 by Suren A. Chilingaryan
New way of service handling (mod_rewrite), Various fixups, katrin stuff moved to SETUP directory
13
    echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
253 by Suren A. Chilingaryan
Initial support of secondary views
14
    echo "<result><Error>$service_error</Error></result>";
119 by Suren A. Chilingaryan
New way of service handling (mod_rewrite), Various fixups, katrin stuff moved to SETUP directory
15
}
16
17
?>