--- make_poll.pl 2003/09/24 19:55:43 1.8 +++ make_poll.pl 2003/09/24 20:35:48 1.9 @@ -53,6 +53,12 @@ # this is usename in database my $db_user="dpavlin"; +# This option allows users to fill poll without using invitation URL. +# That also means it's unpossible for them to return to exiting poll +# because they don't have thair own unique ID. Howver, it enables simple +# polls to be conducted by just publishing URL to them. +my $without_invitation=0; + #------------------------------------------------------------------ sub suck_file { @@ -212,6 +218,7 @@ $common_php =~ s/##PREFIX##/$prefix/g; my $members_db = $prefix."members"; $common_php =~ s/##MEMBERS_DB##/$members_db/g; +$common_php =~ s/##WITHOUT_INVITATION##/$without_invitation/g; print PHP $common_php; close(PHP); @@ -762,6 +769,7 @@ my ($xp, $text) = @_; $db_user=x($attref->{db_user}); $prefix=x($attref->{prefix}); + $without_invitation=x($attref->{without_invitation}); } }