[Bio] / FigWebServices / serv_index.cgi Repository:
ViewVC logotype

Annotation of /FigWebServices/serv_index.cgi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (view) (download)

1 : olson 1.1 #!/usr/bin/env/perl -w
2 :     use SAPserver;
3 :     use ServIndex;
4 :    
5 :     #
6 :     # This file is part of an application created with create-new-page.
7 :     # The implementation module is FigKernelPackages/ServIndex.pm.
8 :     # The SeedViewer page module is SeedViewer/WebPage/SVServIndex.pm.
9 :     # The CGI script is FigWebServices/serv_index.cgi.
10 :     #
11 :     # The SeedViewer url is http://yourseed/seedviewer.cgi?page=SVServIndex
12 :     # The CGI url is http://yourseed/serv_index.cgi
13 :     #
14 :    
15 :    
16 :     use strict;
17 :     use FIG;
18 :     use CGI;
19 :     use Data::Dumper;
20 :     use Carp;
21 :     use FIG_Config;
22 :    
23 :    
24 :     my $cgi = CGI->new;
25 :     my $fig = FIG->new;
26 :     my $sap = SAPserver->new();
27 : overbeek 1.2 my $sapdb;
28 : olson 1.1
29 :     my $user_name = $cgi->param("user");
30 :    
31 : overbeek 1.2 my $my_url = "serv_index.cgi?";
32 : olson 1.1
33 : overbeek 1.2 my $env = {fig => $fig,
34 :     cgi => $cgi,
35 :     sap => $sap,
36 :     sapdb => $sapdb,
37 :     user => $user_name,
38 :     url => $my_url,
39 :     hidden_form_variable => "",
40 :     seedviewer_page_obj => ""
41 :     };
42 :    
43 :     if ($cgi->param('kb'))
44 :     {
45 :     require Bio::KBase::CDMI::CDMIClient;
46 :     my $kbO = Bio::KBase::CDMI::CDMIClient->new_for_script();
47 :     $env->{kbase} = $kbO;
48 :     }
49 :    
50 :     my($html, $title) = ServIndex::run($env);
51 : olson 1.1
52 :     print $cgi->header;
53 :     print "<title>$title</title>";
54 :     print $html;
55 :    

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3