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 { |
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); |
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 |
|
|