#!/usr/local/bin/perl # display_issue.cgi # Display an issue filed for SV-BC ########################################################################### # # This program # # Valid Inputs: Issue number to be displayed # ########################################################################### ########################################################################### # External Dependancies ########################################################################### BEGIN { push(@INC,'/u/seedlings/public_html/cgi-bin/lib')}; use CGI; # Form Handling Module require "./lib/site-config.ph"; require "./lib/cgi-lib.pl"; #require "Site_Config.ph"; # Program Defaults #require "HTML-lib.pl"; # General Purpose HTML routines ########################################################################### # Globals ########################################################################### $APP = $ENV{'SCRIPT_NAME'}; # Name of this program $Client = new CGI; # CGI Form Object ########################################################################### # # M A I N # ########################################################################### MAIN: { if (defined($Client->param('issue_num'))) { $issue_num = $Client->param('issue_num'); &set_release_variables; &create_report; } else { print &PrintHeader, "No data has been submitted. Please reload the form " . "and resubmit your request or notify " . "" . "$CGI_OWNER that a problem has occurred.\n"; } } ################################################################################ # # SUBROUTINE: set_release_variables # # ARGUMENTS: # # GLOBAL VARIABLES USED: %input, $URL_BASE, $DIR_BASE # # RETURNS: $url, $path, $body, $issue_number # # ABSTRACT: Sets $url, $path, $issue_number, $body global variables for # the write_file subroutine. These global variables could be # used for other purposes. # ################################################################################ sub set_release_variables{ $url = $URL_BASE . "/issues"; $path = $DIR_BASE . "/issues"; $body = "
"; } ########################################################################### # # Subroutine: create_report # # Description: This routine will read the issue_description, format the # report using HTML formatting, and print to stdout. # # Inputs: