~jstys-z/helioviewer.org/client5

« back to all changes in this revision

Viewing changes to api/lib/helioviewer/JHV.php

  • Committer: V. Keith Hughitt
  • Date: 2009-05-29 18:04:54 UTC
  • Revision ID: hughitt1@kore-20090529180454-1q1r4pxa3nw881os
nightly build 2009-05-29: fixed uri field performance issues

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 * JHV - JHelioviewer Launcher
4
4
 */
5
5
class JHV {
6
 
        public function __construct() {
7
 
                
 
6
    private $files;
 
7
    
 
8
        public function __construct($files=Null) {
 
9
            $this->files = $files;              
8
10
        }
9
11
        
10
 
        public function launch($files) {
 
12
        public function launch() {
11
13
                header('content-type: application/x-java-jnlp-file');
12
14
                header('content-disposition: attachment; filename="JHelioviewer.jnlp"'); 
13
15
                echo '<?xml version="1.0" encoding="utf-8"?>' . "\n";
14
16
?>
15
 
<jnlp spec="1.0+" codebase="http://achilles.nascom.nasa.gov/~wamsler/" href="JHelioviewer.jnlp">
 
17
<jnlp spec="1.0+" codebase="http://achilles.nascom.nasa.gov/~dmueller/" href="JHelioviewer.jnlp">
16
18
        <information>    
17
 
                <title>ESA JHelioviewer Demo</title>   
18
 
                <vendor>Wamsler Benjamin</vendor>   
19
 
                <homepage href="http://achilles.nascom.nasa.gov/~wamsler/index.html" />
20
 
                <description>An ESA Webstart Test</description>   
 
19
                <title>JHelioviewer</title>   
 
20
                <vendor>ESA</vendor>   
 
21
                <homepage href="http://achilles.nascom.nasa.gov/~dmueller/" />
 
22
                <description>JHelioviewer web launcher</description>   
21
23
                <offline-allowed />  
22
24
        </information> 
23
25
        
31
33
        </security> 
32
34
        
33
35
        <application-desc main-class="org.helioviewer.JavaHelioViewer">
34
 
            <argument><?php echo $files;?></argument>
 
36
<?php if (isset($this->files)) {
 
37
    echo "        <argument>$this->files</argument>\n";
 
38
}
 
39
?>
35
40
        </application-desc>
36
41
</jnlp>
37
42