1 rizwank 1.1 #!/usr/bin/perl -wT
2 #
3 # TWiki Collaboration Platform, http://TWiki.org/
4 #
5 # Copyright (C) 1999-2004 Peter Thoeny, peter@thoeny.com
6 #
7 # Based on parts of Ward Cunninghams original Wiki and JosWiki.
8 # Copyright (C) 1998 Markus Peter - SPiN GmbH (warpi@spin.de)
9 # Some changes by Dave Harris (drh@bhresearch.co.uk) incorporated
10 # Copyright (C) 1999-2003 Peter Thoeny, peter@thoeny.com
11 #
12 # For licensing info read license.txt file in the TWiki root.
13 # This program is free software; you can redistribute it and/or
14 # modify it under the terms of the GNU General Public License
15 # as published by the Free Software Foundation; either version 2
16 # of the License, or (at your option) any later version.
17 #
18 # This program is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 # GNU General Public License for more details, published at
22 rizwank 1.1 # http://www.gnu.ai.mit.edu/copyleft/gpl.html
23
24 BEGIN {
25 # Set default current working directory (needed for mod_perl)
26 if( $ENV{"SCRIPT_FILENAME"} && $ENV{"SCRIPT_FILENAME"} =~ /^(.+)\/[^\/]+$/ ) {
27 chdir $1;
28 }
29 # Set library paths in @INC at compile time
30 unshift @INC, '.';
31 require 'setlib.cfg';
32 }
33
34 use CGI::Carp qw(fatalsToBrowser);
35 use CGI;
36 use TWiki;
37 use TWiki::UI::Changes;
38
39 my $query = new CGI;
40
41 my $thePathInfo = $query->path_info();
42 my $theRemoteUser = $query->remote_user();
43 rizwank 1.1 my $theTopic = $query->param( 'topic' );
44 my $theUrl = $query->url;
45
46 my ( $topic, $webName ) =
47 TWiki::initialize( $thePathInfo, $theRemoteUser,
48 $theTopic, $theUrl, $query );
49
50 TWiki::UI::Changes::changes( $webName, $topic, $query );
51
|