#!/usr/bin/perl # ----------------------------------------------------------------------------- # TWC # Treuwert-Computer GmbH # Schloßbergring 9 # 79098 Freiburg # # ----------------------------------------------------------------------------- # Program-Data # ----------------------------------------------------------------------------- # Project : # System : # Program : # Modul : $RCSfile: TestWWWdb.pl,v $ # Version : $Revision: 1.3 $ # Date : $Date: 2003/04/16 11:35:16 $ # State : $State: Exp $ # # Description: # This module maps adresses of the form # http://myhost/wwwdb// # to the real call of WWWDb # # ----------------------------------------------------------------------------- use Getopt::Std; use File::Basename; use English; use vars qw($opt_b $opt_c $opt_d $opt_D $opt_V); use strict; use constant APACHE_BASE_PATH => "/var/www/"; $main::cVersionMGL = '$Date: 2003/04/16 11:35:16 $$Revision: 1.3 $ '; $main::cProgramMGL = basename($0); getopts("b:cdDV") || Usage(); # Print version if ($opt_V) { print "$0: $main::cVersionMGL\n"; exit; } Usage() unless @ARGV; Start_WWWdb(shift); # --- show the usage of the script --------------------------------------------- sub Usage() { print <] URI -b Emulates the Button Btn