The terms of the licence prevent you from modifying any of the code except mainConfig. However, every cgi function can be customised to suit your own purposes without touching a line of WODA code. How is this done?
There are two ways to customise your own database without touching WODA code. Both are simple. For example, let's say you want to modify the Home function.
________________
Limited Scope: this method only affects the database you modify. It allows a database to exhibit unique behaviour.
1. Open the database that you want to exhibit customised behaviour and write a subroutine called myHome.
That's it. WODA will use the subroutine that you've written instead of it's own code.
________________
Universal Scope: this method affects all databases using the WODA database engine. Each database will exhibit the custom behaviour.
1. Open the woda-** code directory and locate the file called cgiHome. Copy it and change its name to myHome.
2. Open myHome and change the subroutine called cgiHome to myHome.
That's it. WODA will now use the code in myHome whenever you call Home. If you have many databases running they will all use the customised routine.
## Don't do this to your web site!
############################################
sub myHome {
require '/home/usr/malcolm/woda4/woda-uk/cgiAbout';
do cgiAbout();
return;
}
############################################
sub myAbout {
require '/home/usr/malcolm/woda4/woda-uk/cgiHome';
do cgiHome();
return;
}
############################################