#!/bin/bash
#
#
# BUGGER_Plugin
#
#
# Script to display project listing outside BUGGER.
#
# You should call this script from within a template
# so that the page is formatted to your liking!
#
#
# Set this to the path to your cgi-bin directory
CGIROOT="/mnt/.apacheroot/www/localhost/cgi-bin"
echo Content-Type: text/html
echo
# Grab BUGGER config
# Grab our config
"$CGIROOT"/Projects/BUGGER_config.sh imascript /tmp/Website.front_page_process.conf.$$
source /tmp/Website.front_page_process.conf.$$
rm -f /tmp/Website.front_page_process.conf.$$ 2> /dev/null
# Grab Data Project Details
wget -q -O /tmp/.Website.projlist.$$ "http://$DATABASE_SERVER/cgi-bin/Claims_DB_listener.sh?USER=$DBUSERNAME&PASS=$DBPASS&METHOD=4&DBNAME=Bugs&TABLE=Projects&QCOL=7&QSTRING=Y"
# Response speed is currently reasonable, adding the request involved in caching would slow things down. Can be added at a later date if necessary.
/bin/cat << EOM
$DESCRIPTION | |||