Commit Graph

867 Commits

Author SHA1 Message Date
Benjamin Sonntag f392ad11a0 [fix] cron rolling curl call INSIDE the loop :/ 2018-02-28 10:39:55 +01:00
Benjamin Sonntag 7d35b9cb59 fixing db_del bug, thanks @Petit42 2018-02-12 14:57:11 +01: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
azerttyu 407d8b91da Don't raise a blocking error
* With deprecate error class, it's only a warning, not a error.

Should solve #210
2017-11-19 15:09:04 +01:00
Benjamin Sonntag 5b7622ce90 [cosm] many cosmetic comment fixes, + ensure license and copyright everywhere 2017-10-08 19:31:34 +02:00
Benjamin Sonntag a2e6349998 [fix] removing useless echoes from m_bro 2017-10-07 20:07:26 +02:00
Benjamin Sonntag 267d874a0d fixing some language issues 2017-10-07 19:08:17 +02:00
Benjamin Sonntag 8ba0fbf88c [fix] error message not appearing in main.php (in case of CSRF failure) 2017-10-07 17:49:19 +02:00
Benjamin Sonntag 80ec8fc748 [fix] the compatibility system of domaines_types was not working. Fixing that (null in SQL is awefully weird) 2017-10-07 17:27:03 +02:00
Benjamin Sonntag 1c6191eabc adding \n at the end of error message in logAlternC() 2017-10-07 16:48:56 +02:00
Benjamin Sonntag 5d9fe41056 [fix] error message was incorrect when login failed, or csrf failed at login 2017-10-07 16:46:46 +02:00
Benjamin Sonntag 941475b094 fixing an error message shown when browsing as a subadmin 2017-10-07 16:13:26 +02:00
Benjamin Sonntag 7fcd2e359b [fix] whois() doesn't work and prevent a legitimate install. We comment-out the 'non existing' scenario for now. See #195 2017-10-07 15:45:33 +02:00
Benjamin Sonntag 985094a881 Merge branch 'stable-3.1' of github.com:AlternC/AlternC into stable-3.1 2017-10-07 15:12:27 +02:00
Benjamin Sonntag ca6b1cf4d9 [enh] removing the unmaintained upnp package 2017-10-07 15:12:18 +02:00
azerttyu cf949cf245 Forgot Heredoc syntax
In php no more required to use heredoc and done some linter headache
2017-10-07 12:19:43 +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 6581c7d6c4 [doc] misc doc translation fr>en 2017-10-06 22:48:22 +02:00
Benjamin Sonntag cc64e7745f [fix] not using debug_backtrace, please, [doc] doc to english 2017-10-06 19:34:50 +02:00
Benjamin Sonntag 562b7e6013 [doc] english documentation in functions.php [fix] missing parameter passed to display_div_generate_password 2017-10-06 18:54:13 +02:00
Benjamin Sonntag 6b61eff4b1 fixing ->error = 0 remapped to ->init_msgs(); 2017-10-06 18:29:30 +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
alban 8c524bd80d [fix] The Error class should exist, with deprecation warnings
Conflicts:
	bureau/class/m_err.php
2017-10-06 17:54:01 +02:00
Benjamin Sonntag 4d8ba24248 [fix] more explicit error message for CSRF 2017-10-06 16:53:50 +02:00
Benjamin Sonntag b777f982e5 [doc] switching comments to english for quenenni patches 2017-10-06 12:00:27 +02:00
quenenni b88b639b60 Merge branch 'feature-message' of https://github.com/AlternC/AlternC into feature-message 2017-09-12 14:50:14 +02:00
quenenni f6f5a15ded le mdp des comptes mails étaient changés dans certains cas où il ne fallait pas 2017-09-12 14:49:33 +02:00
Benjamin Sonntag 25379ec441 Merge branch 'stable-3.1' into feature-message 2017-09-06 18:44:38 +02:00
Benjamin Sonntag 39947d4f1c fixing the detection of conflicts in sub_domains 2017-09-06 18:43:40 +02:00
quenenni 65f994f763 petit oubli de màj de $err -> $msg dans functions.php 2017-08-22 18:02:46 +02:00
quenenni 7dce491b10 petite correction d'affichage de msgs 2017-08-21 17:50:57 +02:00
quenenni f92f92d34e suppresion des textes 'à traduire' + corr de 2 bugs 2017-08-18 15:32:16 +02:00
quenenni 5e0d4e8dc7 système de quota - quota Vs du.pl + affichage des quotas pour les utilisateurs 2017-08-17 21:32:21 +02:00
quenenni 6b7d5e7d90 le reste des fichiers & style.css 2017-08-17 03:32:18 +02:00
quenenni 8479d79bde classe quota & fichiers section admin associés 2017-08-16 19:46:53 +02:00
quenenni 991b4b48e3 classe hta & fichiers section admin associés 2017-08-16 19:34:32 +02:00
quenenni 6f30c8bac4 classe piwik & fichiers section admin associés 2017-08-16 18:29:25 +02:00
quenenni b4588c870a classe browser (m_bro) & fichiers section admin associés 2017-08-16 02:44:54 +02:00
quenenni 31d024c5a1 classe dom & fichiers section admin associés 2017-08-16 02:23:22 +02:00
quenenni 8d5953f1c4 classe ftp + fichiers section admin associés 2017-08-15 20:05:02 +02:00
quenenni 6c40d19bbd classe mysql & fichiers section admin associés 2017-08-15 19:51:04 +02:00
quenenni b16c3ac69a classe admin / fichiers section admin associés 2017-08-15 17:03:56 +02:00
quenenni 0d5caada2f class mail & roundcube + fichiers admins associés 2017-08-15 16:11:57 +02:00
quenenni ff154144e5 fonctions + local + db 2017-08-15 03:39:37 +02:00
quenenni 2f830d7e4f Modifs dans le classe membre et la section membre d'admin 2017-08-15 03:19:52 +02:00
quenenni a9cd6dc4af Ajout de la classe messages qui remplace la classe error 2017-08-15 02:30:38 +02:00
Benjamin Sonntag 71980d06a8 removing IP stability check in the panel: it's unenforceable as of 2017 :/ Fixes #173 2017-08-14 10:12:47 +02:00
Benjamin Sonntag be63ec7192 Merge branch 'stable-3.1' of github.com:AlternC/AlternC into stable-3.1 2017-08-12 16:46:45 +02:00
Benjamin Sonntag 8cc2007a44 not counting mailman box in quotas, fixes #170 2017-08-12 16:46:00 +02:00
Benjamin Sonntag 798f7e7681 Merge pull request #179 from kent1D/patch-1
Error on isset for X_FORWARDED_PROTO
2017-08-12 16:42:40 +02:00