| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
| |
- Also, function and variable names are now
camelcased to keep consistency.
|
|
|
|
|
|
|
|
|
| |
- esthetic improvments too, in particular the links
table: Added the correct id on the linkstable,
the styles from css weren't applied.
- some variables were used but not declared beforehand
in the cookie check function in gpigeon-template.cgi.
we fix that
|
|
|
|
|
|
|
|
|
|
| |
- Makefile is better: the generated password via genpass.pl
or genpass.pl with -i flag should now be a correct argon2id hash
in both cases.
- Added missing checks in the makefile
- Fixed undeclared variables in gpigeon-template.cgi
Running make should be better and require less manual fiddling now.
|
|
|
|
|
|
|
|
|
|
|
| |
Also, we did a better cleanup:
- GPG module is not used anymore. So, the $enc_gpg variable doesn't make
sense anymore and we got rid of it.
- We applied the auto unlinking we did in the database version branch.
I was sure I already put to pratice on this branch, my memory fails me...
Got rid of $linkfilename variable.
- We updated the README.md about our dependencies and features (file upload
is supported now)
|
|
|
|
|
|
|
| |
- the style for a slighty bigger input box
to put the mail wasn't applied (#mailfield id).
we fix that
- also links open in new tab now
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Added GPLv3+ short header in source files (genpass.pl, gpigeon-template.cgi and link-template-tmpl.cgi).
- Added some security headers in the example nginx configuration
file, and renamed the NGINXCONFDIR variable in the Makefile to SITESENABLED, it makes a bit more sense.
- Hastily drawed a more fitting .ico/mascot for the project
- Tweaked the styles.css to be somewhat more
responsive. Some tags in index.html and
gpigeon-template.cgi and link-template-tmpl.cgi
have now an id for styling.
- Fixed and improved cookie validation.
While working on the multi-user alternative, I
noticed that the ValidCookies() function was flimsy, I
was used eq... I learned about 'cmp' and throwed some UA
and IP address match to make it a bit more robust.
- Improved the genpass.pl script, if you want a
argon2id of your password, you can now launch it in interactive mode with the '-i' arg. It'll fill the ARGON2ID_HASH variable in the existing config.mk with the hash of the provided password
- Fixed inconsistencies in the Makefile. I was overwriting changes
with sed for no good reason instead of using the -i switch ! I also moved
the mail address, mail sender, and gpg id checks to the top of the file
since they are the most important. Also, the 0xlong is not needed in
config.def.mk anymore, we extract via the mail address.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
- The file auto-deletion flow was *inside*
the HAS_MAILSERVER check... oops, fixing that
- fixing the indenting in the same file, it was
a clusterfuck (still is but way less).
- removed an useless for(1) in ValidCookie function
in gpigeon-template.cgi.
- Makefile change: I trust more the GNUPGHOME variable
than the --homedir options of gpg for importing a key and creating
a GPG directory at the same time.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
- the cookie last 1 year and is set upon login
- deleted when pressing "Disconnect" button
- updated the config.mk and Makefile for COOKIES_DIR variable
- camel-cased the subroutines. I like it that way, it stands out more
compared to variables
- reinserted some vars back into link-tmpl.cgi, it wasn't making sense
to have them in gpigeon-template.cgi
- no more 'Unknown' link asker in the links table: if the string is a valid
email address, we link to the file in the table.
|
| |
|
| |
|
|
|
|
|
| |
- also renamed gpigeon.css -> styles.css. more standard
- utf-8 rules. other charset can't defeat him.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
- Text strings are now regrouped in an hash, less insane
than an array.
- I searched a bit in terms of password saving methods and
Argon2 seemed pretty good. So now we use it.
|
|
|
|
| |
"Succesfull deletion" => "Successful removal"
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
So the server error.log doesn't complain.
|
|
|
|
|
|
|
|
|
| |
- 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.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
- 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.
|
|
|
|
| |
Also don't need cgi-carp. need to uncomment if needed for debugging.
|
|
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.
|