aboutsummaryrefslogtreecommitdiff
path: root/gpigeon-template.cgi
Commit message (Collapse)AuthorAgeFilesLines
* Implemented very basic multi-user supportMiquel Lionel2021-07-021-141/+283
| | | | | | | | | | | | | | - the `gpigeonctl' script is used to initialize the database, add an user and delete it, clear cookies. More info in the readme about it. - tweaked gpigeon-template.cgi and link-template-tmpl.cgi to support multiusers - tweaked the Makefile - tweaked the config.def.mk and added WWWUSER and WWWDIR variables - made some ajustements in the styles.css file for responsivity. - added some headers for security in nginx-example.conf - added gpigeonctl.def which serves as a "blueprint" for gpigeonctl
* add some update from the master.Miquel Lionel2021-06-231-237/+242
| | | | | | | | | | | | | | | - Added the README.md form master branch. - Added new script gpigeonctl: will allow to initialize the database and manage it (add or delete and user, purge cookies). - Added the Makefile and the config.dek.mk from master branch with some changes - Added nginx config from master branch - Rename gpigeon.css -> styles.css - gpigeon-template.cgi: the -w flag on the shebang is useless because we already have "use warnings". Also, the man page discourage its use. - Fixed link-tmpl-template.cgi: the self-deletion now occurs as intended, and not only when in HAS_MAILSERVER=0 mode. also fixed the indenting around these parts because it was a clusterfuck
* Less erroneous english text stringsMiquel Lionel2020-11-231-1/+1
| | | | "Succesfull deletion" => "Successful removal"
* syntax error in HAS_MAILSERVER=1 checkMiquel Lionel2020-11-221-4/+4
|
* Add 'if defined' checks to length_msg_form variableMiquel Lionel2020-11-211-38/+42
| | | | | | Now warning and strict module doesn't complain, and my web server error log is cleaner. IMO, it has a nice effect to give a clearer idea of what the conditional tries to achieve there.
* Removing "\n" string for $password_field variableMiquel Lionel2020-11-211-1/+1
| | | | So the server error.log doesn't complain.
* Various bug fixes in the perl code.Miquel Lionel2020-11-181-53/+52
| | | | | | | | | - Fixed the bug when the page was displaying in plain text after generating a link. My tired ass last night didn't think to print to the gpg_form filehandle. - Fixed the bug when not all the text was written in the link file (the gpg form as I call it). reason: see above. - Fixed the 'if ($HAS_MAILSERVER)' check. now it makes more sense. - Fixed the bug when the link user was marked as 'Unknown' in the table but in the l/xxxx.cgi file it was there. Reverted code and it works now, it grep the right line and fill the $nongpg_user var with the right info. - Fixed a bug where '0x' was inserted before the $mymail_gpgid variable in the generation of the gpg form. '0x1234' would become '0x0x1234' in the generated form. It's okay now. - Fixed various syntax errors.
* Readability of the script a bit improved.Miquel Lionel2020-11-171-146/+121
|
* Removing some abstractions introduced with new subMiquel Lionel2020-11-171-81/+77
| | | | | | | | | | We don't need the sub print_smtp_method. We can pass the args directly, we are just printing text one time. No need for a sub. Also fixed indeting here and there cleared HTML_CSS and HTML_CHARSET variable The characters limiting code for the message form should work good now. I setted it to a default of 3000 maxium characters.
* Local SMTP server OR external SMTP server shenanigansMiquel Lionel2020-11-171-83/+104
| | | | | | | | - The print_smtp_method sub has been added and behavior depends on the HAS_MAILSERVER variable value. If 0 we assume the admin has no mailserver available locally so we use Net:SMTPS and external server. If 1, we switch to Mail::Sendmail. - We renamed some variables so they make more sense now. - Text strings are translated from Baguette to Shakespeare. it was time.
* Don't need cookie sub, removing itMiquel Lionel2020-11-161-3/+5
| | | | Also don't need cgi-carp. need to uncomment if needed for debugging.
* Commit initialMiquel Lionel2020-11-101-0/+324
On ajoute les fichiers. On normalise le nom des icônes en favicon.ico puis on met la notif de suppression des fichiers au-dessus du tableau, plus pratique si il y a BEAUCOUP de liens créés.