/[wopi2]/trunk/editor.cgi
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/editor.cgi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations)
Wed Jun 23 11:56:27 2004 UTC (19 years, 10 months ago) by dpavlin
File size: 599 byte(s)
initial import of WOPI v2

1 #!/usr/bin/perl -w
2
3 use strict;
4 use lib './lib';
5 use WOPI;
6
7 # name to database file (web server writable)
8 my $db_file = '/tmp/wopi.db';
9
10 # name of poll
11 my $poll_name = 'nadareni';
12
13 use Data::Dumper;
14
15 my $wopi = WOPI->new(
16 db_file => $db_file,
17 templates => './template',
18 poll_name => $poll_name,
19 );
20
21
22 my $q = $wopi->{'cgi'} || die "no CGI object?";
23
24 $wopi->{'param'}->{'self'} = $q->self_url;
25
26 my $do = $q->param('do') || 'editor';
27
28 print $q->header;
29
30 if ($wopi->can($do) =~ /^CODE/) {
31 print qq{<pre>do: $do</pre>};
32 print $wopi->$do() || die "can't do '$do'";
33 } else {
34 die "no method '$do'";
35 }

Properties

Name Value
svn:executable

  ViewVC Help
Powered by ViewVC 1.1.26