3 # TWiki Enterprise Collaboration Platform, http://TWiki.org/
5 # Copyright (C) 1999-2007 Peter Thoeny, peter@thoeny.org
6 # and TWiki Contributors.
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License
10 # as published by the Free Software Foundation; either version 2
11 # of the License, or (at your option) any later version. For
12 # more details read LICENSE in the root of this distribution.
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 # As per the GPL, removal of this notice is prohibited.
21 # Set default current working directory (needed for mod_perl)
22 if( $ENV{"SCRIPT_FILENAME"} && $ENV{"SCRIPT_FILENAME"} =~ /^(.+)\/[^\/]+$/ ) {
25 # Set library paths in @INC, at compile time
32 TWiki::UI::run( \&TWiki::UI::View::view, view => 1 );