Commit Graph

35 Commits

Author SHA1 Message Date
Benjamin Sonntag dbb41924bd [enh] add a debug() method to messages, and set this instead of LOG() for most api calls => only api calls that CHANGES something are now calling log() (which logs) and others are calling debug() which logs nothing by default. A variable allow for debugging 2018-06-28 00:27:10 +02:00
Benjamin Sonntag 8dc5c20fa5 [fix] remove now unused ico for menu icons (in css) 2018-06-23 11:49:49 +02:00
Gabriel Filion 32261e5871 Protected dir creation error messages are not helpful.
Current error messages that are shown and logged when a problem occurs
when creating htaccess and htpasswd files for a protected dir are really
not helpful.

The messages don't even mention which file caused the error.

Sometimes when the files can't be created, it's not because they're
already present, for example when there's a permission error.
Also we've already verified that they are absent with file_exists so
the current error message is not accurate at all!

To empower users, we need to give them more details about the error. For
that we want to show the error that the file creation logged itself.

Finally, we've already verified that the htacces file already exists, so
there's no point in using touch beforehand. We should just let fopen try
to create the file and report whatever went wrong if anything happens.
2017-12-29 11:56:03 -05:00
Benjamin Sonntag 5b7622ce90 [cosm] many cosmetic comment fixes, + ensure license and copyright everywhere 2017-10-08 19:31:34 +02:00
Benjamin Sonntag 3de55aca37 [cosm] reindent, check language of comments, ensure /** phpdoc style comments, simplify file header (license only) etc. 2017-10-06 23:42:39 +02:00
Benjamin Sonntag 33f8e78885 [fix] class m_messages fixed to use 'level' instead of 'type' or 'cat' + force CAP on levels + merge OK and INFO 2017-10-06 18:04:36 +02:00
quenenni 991b4b48e3 classe hta & fichiers section admin associés 2017-08-16 19:34:32 +02:00
Benjamin Sonntag d3ab589e56 REFACTORING: code formatting of the panel + braces on if/while/for + fixe some missing or too many Globals in functions 2015-09-25 17:42:00 +02:00
Benjamin Sonntag b2dca9d915 [fix] some exec() didn't have escapeshellarg() as needed 2014-11-27 14:51:51 +01:00
Alan Garcia c63a814dbd Cosmetics 2014-03-27 17:02:55 +00:00
alban 0f48d94c04 [fix] cosmetic changes 2014-03-27 16:07:01 +01:00
Alan Garcia 62dde928c5 Cosmetic 2014-03-26 15:04:12 +00:00
fufroma 7cd158c45c Suggested comments 2014-03-26 14:59:41 +01:00
alban 6adef177c9 [fix] code documentation, comments and cosmetic changes 2014-03-26 14:29:08 +01:00
Alan Garcia 0349fef05a Coding style 2014-03-26 11:01:02 +00:00
Alan Garcia 2dc053e569 Navigation entre la gestion des répertoires protégé et le browser 2013-04-18 14:54:58 +00:00
Axel ROGER dfbcd0d861 a debug printf was there... 2013-03-08 15:47:14 +00:00
Alan Garcia 04462b0cf3 Classes browser, ftp et hta n'ont plus alternc_html en dur 2013-02-18 13:48:30 +00:00
Alan Garcia 938fcba146 Adieu, menulist.txt ! Bonjour, menu avec des hooks magique dans les classes.
Plus simple à gérer pour modifier le html, plus facile à surcharger dans l'optique
de permettre de mettre des préférences.

Active se souvenir pour la session des préférences de menu.

Passe le stockage dans la session de php serialize à json
2013-02-18 10:01:28 +00:00
Alan Garcia 168b5279da Ho, du francais en dur 2013-02-05 17:39:34 +00:00
Alan Garcia e11ff7c263 Ajout de secu dans le checkpolicy 2013-01-31 17:17:18 +00:00
Alan Garcia f15b47b43a Nous les mini-patchs, nanananananana ! 2013-01-31 17:00:39 +00:00
Alan Garcia 6acdb33c77 Patchs :
- warning de variables non existantes

Un peu d'ergonomie :
 - quelques mini-patchs de présentation
 - quand on génére un mot de passe, ça le colle dans les textbox adéquats
2013-01-23 13:34:01 +00:00
Alan Garcia f230a6f511 Patch de Olivier Huet, merci à lui !
Le problème se posait lorsque le répertoire qu’on voulait protéger contenait un espace dans son chemin.
Apache ne pouvait alors accéder un .htpasswd
L’ajout de double quote dans le .htaccess règle le pb.
2012-12-04 10:10:09 +00:00
Benjamin Sonntag 69d8e4f408 all error messages are now NOT ending by '.' and using correct capitalization. can't has been replaced by cannot, no 'I' talking about AlternC. 2012-10-18 07:52:54 +00:00
Benjamin Sonntag 6baa9591ae adding upnp hook for classes that requires an open port 2012-09-03 07:36:00 +00:00
Alan Garcia 10a961d2a3 Version number
Typo in m_hta
2012-08-26 13:39:28 +00:00
Alan Garcia de6f7a4e98 Messages d'erreurs 2012-08-26 13:31:38 +00:00
Steven Mondji-Lerider 69e61fa096 Correction classe de gestion des htaccess 2012-05-25 13:08:44 +00:00
Alexis Lahouze 60ab97c883 Merged changesets 2970, 2972, 2984, 2986, 2987 and 2988 from branch stable 1.0 to trunk. 2011-06-04 14:28:57 +00:00
Alan Garcia 2659b2034f Correction du chemin absolut 2011-06-04 12:12:17 +00:00
Benjamin Sonntag a5ef76622e Adding Password Policy management to AlternC \! 2009-11-30 06:01:34 +00:00
Benjamin Sonntag 161a04cebb translating comments of m_hta.php to english + misc fopen() checks 2009-11-30 05:02:53 +00:00
Benjamin Sonntag 0c1308c5f9 confirmation de la suppression des comptes pop, Closes #672 2006-05-16 19:42:25 +00:00
Pierre Gilles Mialon 6ca8255f49 AlternC Plugin are now part of AlternC svn repository\n Migration Phase 2 2006-04-26 12:28:53 +00:00