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

Diff of /make_poll.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by dpavlin, Wed Sep 24 19:55:43 2003 UTC revision 1.9 by dpavlin, Wed Sep 24 20:35:48 2003 UTC
# Line 53  my $prefix="wopi_"; Line 53  my $prefix="wopi_";
53  # this is usename in database  # this is usename in database
54  my $db_user="dpavlin";  my $db_user="dpavlin";
55    
56    # This option allows users to fill poll without using invitation URL.
57    # That also means it's unpossible for them to return to exiting poll
58    # because they don't have thair own unique ID. Howver, it enables simple
59    # polls to be conducted by just publishing URL to them.
60    my $without_invitation=0;
61    
62  #------------------------------------------------------------------  #------------------------------------------------------------------
63    
64  sub suck_file {  sub suck_file {
# Line 212  $common_php =~ s/##DB_USER##/$db_user/g; Line 218  $common_php =~ s/##DB_USER##/$db_user/g;
218  $common_php =~ s/##PREFIX##/$prefix/g;  $common_php =~ s/##PREFIX##/$prefix/g;
219  my $members_db = $prefix."members";  my $members_db = $prefix."members";
220  $common_php =~ s/##MEMBERS_DB##/$members_db/g;  $common_php =~ s/##MEMBERS_DB##/$members_db/g;
221    $common_php =~ s/##WITHOUT_INVITATION##/$without_invitation/g;
222    
223  print PHP $common_php;  print PHP $common_php;
224  close(PHP);  close(PHP);
# Line 762  sub config { Line 769  sub config {
769                  my ($xp, $text) = @_;                  my ($xp, $text) = @_;
770                  $db_user=x($attref->{db_user});                  $db_user=x($attref->{db_user});
771                  $prefix=x($attref->{prefix});                  $prefix=x($attref->{prefix});
772                    $without_invitation=x($attref->{without_invitation});
773          }          }
774  }  }
775    

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.26