aboutsummaryrefslogtreecommitdiff
path: root/gpigeon-template.cgi
diff options
context:
space:
mode:
authorMiquel Lionel <lionelmiquel@sfr.fr>2021-02-28 11:54:00 +0100
committerMiquel Lionel <lionelmiquel@sfr.fr>2021-02-28 11:54:00 +0100
commitb266bd7bbc2177314c6ee0e28757594837409cbc (patch)
tree1d948da78b2051a2a98935a7269ec7f326a91a29 /gpigeon-template.cgi
parent78980dcae3e038072ef72b4cc55020d5a95c8b79 (diff)
downloadgpigeon-b266bd7bbc2177314c6ee0e28757594837409cbc.tar.gz
gpigeon-b266bd7bbc2177314c6ee0e28757594837409cbc.zip
now it delete itself like before
Diffstat (limited to 'gpigeon-template.cgi')
-rwxr-xr-xgpigeon-template.cgi5
1 files changed, 4 insertions, 1 deletions
diff --git a/gpigeon-template.cgi b/gpigeon-template.cgi
index 1369c4e..8e67a28 100755
--- a/gpigeon-template.cgi
+++ b/gpigeon-template.cgi
@@ -56,6 +56,7 @@ my %text_strings = (link_del_ok => 'Successful removal !',
web_greet_msg => 'Hi and welcome.',
disconnect_btn_text => 'Disconnect',
refresh_btn_text => 'Refresh',
+ type_msg_below => 'Type your message below',
theader_link => 'Link',
theader_for => 'For',
theader_deletion => 'Deletion',
@@ -112,11 +113,13 @@ if (argon2id_verify($PASSWD_HASH,$PASSWD)){
open my $out, '>', $LINK_FILENAME or die "Can't write to link file: $!";
while( <$in> ) {
s/{link_user}/{$link_asker}/g;
- s/{link_filename}/{$LINK_FILENAME}/g;
+ s/{link_filename}/{$GENERATED_FORM_FILENAME}/g;
s/{msg_too_long}/$text_strings{msg_too_long}/g;
s/{msg_empty}/$text_strings{msg_empty}/g;
s/{msg_form_char_limit}/$msg_form_char_limit/g;
+ s/{link_web_title}/$text_strings{link_web_title}/g;
s/{link_send_btn}/$text_strings{link_send_btn}/g;
+ s/{type_msg_below}/$text_strings{type_msg_below}/g;
print $out $_;
}
close $in or die;