<% Z::set_settings( "title" => "CGI Configuration", "help" => "/apps/web/docs/modules/cgi/index.html", "base" => "" ); $::f{back} = "/apps/web/modules.ahtml?server=$::f{server}" if( !defined $::f{back} ); %> <% Z::parse( "../../etc/editheader.ahtml" ) %>

The traditional and most widely used method of including dynamic elements in your pages is through the Common Gateway Interface (CGI) programs. CGI programs are run by the server and their output passed back to the client. This allows entire pages to be generated "on the fly". CGI programs can be interpreted scripts or compiled programs. Any language which supports standard input for reading, standard output for writing and can read environment variables can be used to create CGI programs. The simplicity of the CGI interface allows programs to be built quickly and easily.


Access restrictions
The server can be configured to run CGIs anywhere in the document tree, or only in special script directories (such as those setup by the map module). <%= Z::form( target=>$::f{back} ) %>
> Allow anywhere
> Restrict to designated directories

Allow SSI exec cmd (only available if CGIs non-restricted)

> Yes > No directories

<%= Z::endform() %>
Environment variables
As well as the standard CGI/1.1 environment variables, here you can specify extra variables to also be passed to CGIs. <%= Z::form( base=>"env" ) %> <%= ( grep /^\!env!extra\!/, keys %::f ) and Z::form_table( key=>"Name", value=>"Value", base=>"env!extra" ) or "No extra CGI environment variables are currently defined" %>

Add Variable:

Name:
Value:
<%= Z::endform() %>
<%= ( -e "$ENV{ZEUSHOME}/webadmin/LITE" ) && "" || "" %> <% Z::parse( "../../etc/footer.ahtml" ) %>