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

Annotation of /FigWebServices/serv_role.cgi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (view) (download)

1 : disz 1.2 #!/usr/bin/env/perl -w
2 : overbeek 1.1 use SAPserver;
3 :     use ServRole;
4 :    
5 :     #
6 :     # This file is part of an application created with create-new-page.
7 : disz 1.2 # The implementation module is FigKernelPackages/ServRole.pm.
8 :     # The SeedViewer page module is SeedViewer/WebPage/SV_ServRole.pm.
9 : overbeek 1.1 # The CGI script is FigWebServices/serv_role.cgi.
10 :     #
11 : disz 1.2 # The SeedViewer url is http://yourseed/seedviewer.cgi?page=SV_ServRole
12 : overbeek 1.1 # The CGI url is http://yourseed/serv_role.cgi
13 :     #
14 :    
15 :    
16 :     use strict;
17 :     use FIG;
18 :     use CGI;
19 : disz 1.2 use Data::Dumper;
20 :     use Carp;
21 :     use FIG_Config;
22 :    
23 : overbeek 1.1
24 :     my $cgi = CGI->new;
25 :     my $fig = FIG->new;
26 : disz 1.3 my $my_url = "serv_role.cgi";
27 :    
28 :     my $sapdb = Sapling->new(dbName => 'pubseed_sapling_08', dbhost => 'oak.mcs.anl.gov');
29 :     my $sap = SAPserver->new(sapDB => $sapdb, url => 'localhost');
30 : overbeek 1.1
31 :     my $user_name = $cgi->param("user");
32 :    
33 : disz 1.3 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 :    
44 :     my($html, $title) = ServRole::run($env);
45 :    
46 : overbeek 1.1
47 : disz 1.3 #my($html, $title) = ServRole::run($fig, $cgi, $sap, $user_name, $my_url, '', undef);
48 : overbeek 1.1
49 :     print $cgi->header;
50 :     print "<title>$title</title>";
51 :     print $html;
52 :    

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3