/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/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
 
 
3
 
$url = ADEI::GetBaseURL();
4
 
 
5
 
$f = fopen("$url/setups/katrin/services/adei.fcgi?" . $_SERVER['QUERY_STRING'], "rb");
6
 
if ($f) {
7
 
    $name = "{$_GET['kdb_run']}.{$_GET['kdb_name']}";
8
 
    header("Cache-Control: no-cache, must-revalidate");
9
 
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
10
 
    header("Content-type: application/octet-stream");
11
 
    header("Content-Disposition: attachment; filename=\"$name\"");
12
 
 
13
 
    while (!feof($f)) {
14
 
        $data = fread($f, 65536);
15
 
        echo $data;
16
 
    }
17
 
    fclose($f);
18
 
} else {
19
 
    throw new ADEIException(translate("Failed to open adei.fcgi service"));
20
 
}
21
 
 
22
 
 
23
 
?>
 
 
b'\\ No newline at end of file'