/adei/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/trunk

« back to all changes in this revision

Viewing changes to setups/katrin/services/katrin.php

  • Committer: Suren A. Chilingaryan
  • Date: 2009-02-09 22:43:29 UTC
  • Revision ID: csa@dside.dyndns.org-20090209224329-o9n8ou91lj2k69lo
New way of service handling (mod_rewrite), Various fixups, katrin stuff moved to SETUP directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
require($ADEI_ROOTDIR . "/classes/aux/auxapplication.php");
 
3
 
 
4
header("Content-type: text/xml");
 
5
header("Cache-Control: no-cache, must-revalidate");
 
6
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
 
7
 
 
8
switch ($_GET['target']) {
 
9
    case 'runs':
 
10
        $cpp = new AUXApplication("kdblistruns");
 
11
        $cpp->Run();
 
12
        break;
 
13
    case 'info':
 
14
        if (strlen($_GET['run'])>0) {
 
15
            $cpp = new AUXApplication("kdbgetrun");
 
16
            $args = array($_GET['run']);
 
17
            $cpp->Run($args);
 
18
        }
 
19
        else {
 
20
            $error = translate("No run specified");
 
21
        }
 
22
        break;
 
23
    default:
 
24
        if (isset($_GET['target']))
 
25
            $error = translate("Unknown target (%s) is specified",
 
26
                               $_GET['target']);
 
27
        else
 
28
            $error = translate("The target is not specified");
 
29
}
 
30
 
 
31
if ($error) {
 
32
    echo "<?xml version=\"1.0\"?>\n";
 
33
    echo "<result>\n";
 
34
    echo " <Error>$error</Error>\n";
 
35
    echo "</result>\n";
 
36
}
 
37
 
 
38
?>