RefDB::CGI(3pm)

RefDB::CGI3pm

Cgi support for refdb perl scripts

Usage

  use RefDB::CGI;
  if (RefDB::CGI::check_cgi("GET") == 0) {
      $template = RefDB::CGI::load_html("/usr/local/share/myapp/template.html");
  }

Overview

Provides functions important to run RefDB scripts as CGI applications.

Feedback

Send bug reports, questions, and comments to the refdb-users mailing list at:

[email protected]

For list information and archives, please visit:

http://lists.sourceforge.net/lists/listinfo/refdb-users

package functions

check_cgi

Title : check_cgi

Usage : $cgi = check_cgi($mode);

Function: Checks whether app runs as a CGI app accepting GET or POST data

Argument: mode: either "GET" or "POST"

Returns : 0 if CGI app called properly
1 if incorrect mode
2 if missing content length of POST data
3 if not CGI at all

load_html

Title : load_html

Usage : $template = load_html("full/path/to/template.html")

Function: Reads a HTML template into a string

Returns : string if file was found, undef if not

Author

Markus Hoenicka, [email protected]

From librefdb-perlmod-perl 1.2-2 in Debian 8 (Jessie). Parsed by carta from the page's man source.