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

Annotation of /FigWebServices/serv_role.cgi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (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 :     my $sap = SAPserver->new();
27 :    
28 :     my $user_name = $cgi->param("user");
29 :    
30 :     my $my_url = "serv_role.cgi";
31 :    
32 :     my($html, $title) = ServRole::run($fig, $cgi, $sap, $user_name, $my_url, '', undef);
33 :    
34 :     print $cgi->header;
35 :     print "<title>$title</title>";
36 :     print $html;
37 :    

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3