/dev/adei-asec

To get this branch, use:
bzr branch http://darksoft.org/webbzr/dev/adei-asec

« back to all changes in this revision

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

  • Committer: Suren A. Chilingaryan
  • Date: 2014-01-25 16:38:03 UTC
  • Revision ID: csa@dside.dyndns.org-20140125163803-mhmpyk4dpzz7qabw
Detach setups

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
// $Id: katrin.php 973 2009-08-19 09:40:28Z s_voec01 $
3
 
// Author: Sebastian Voecking <sebastian.voecking@uni-muenster.de>
4
 
 
5
 
ADEI::RequireClass('KDBConstants', TRUE);
6
 
ADEI::RequireClass('KDBRunIdentifier', TRUE);
7
 
 
8
 
function ADEIServiceGetUpdateInfo(REQUEST $req)
9
 
{
10
 
    global $ADEI;    
11
 
    
12
 
    $query = $req->GetQueryString($extra = array("target" => "rundesc"));
13
 
    $run = new KDBRunIdentifier($req->GetProp('kdb_run', ''));
14
 
    
15
 
    switch ($run->system) {
16
 
        case kSystemPreSpec:
17
 
            $xslt = "prespec";
18
 
            break;
19
 
        
20
 
        case kSystemMonSpec:
21
 
            $xslt = "monspec";
22
 
            break;
23
 
        
24
 
        case kSystemInvalid:
25
 
            $xslt = "katrin";
26
 
            break;
27
 
        
28
 
        default:
29
 
            $xslt = "default";
30
 
            break;
31
 
    }
32
 
 
33
 
    return array("xml" => "setups/katrin/services/adei.fcgi?$query", "xslt" => $xslt);
34
 
 
35
 
}
36
 
 
37
 
?>