5511f7a3ea
route : store in session the last valid get page to allow to return with small method : $route->lastValidGetPageRedirect ();
Dominique Fournier2016-04-25 14:39:38 +00:00
18a641ca87
route : if there is an error with the ratelimiter (directory not writeable...), averload the exception by the ratelimiter exception
Dominique Fournier2016-04-19 13:04:54 +00:00
5ad792d251
form : if the provided error for a field is not an array, use the default error class and use the value as message
Dominique Fournier2016-04-15 15:08:27 +00:00
3c98dd7c39
form : add the methods getOldValues, getOldErrors, saveValuesErrors and saveValuesErrorsReset to simplify the codes. In views : $form = new \form (); $values = array (); $errors = array (); // If there is saved values, use them, else return the provided $values $values = $form->getOldValues ($values); $errors = $form->getOldErrors ($errors); In index.php : $form = new \form (); $values = $form->values (); $errors = $ipsetsObj->verify ($values); $form->saveValuesErrors ($values, $errors); if (count ($errors)) $route->redirect ("/ipsets/add"); $ipsetsObj->createSet ($values["setname"], $values["typename"]); // If there is no error (catched by exception), clear the form for next // time $form->saveValuesErrorsReset (); $route->redirect ("/ipsets", "");
Dominique Fournier2016-04-15 15:08:02 +00:00
489623972f
route : allow to define a viewErrorClass and viewErrorMethod to catch the exceptions raised by the code. Simplfy the index.php : $route->viewClass = '\views\ipsets'; $route->viewErrorMethod = 'error'; $ipsetsObj = new \controllers\ipsets (); $form = new \form (); $values = $form->values (); $errors = $ipsetsObj->verify ($values); $form->redirectIfErrors ($values, $errors, "/ipsets/add"); $ipsetsObj->createSet ($values["setname"], $values["typename"]); $route->redirect ("/ipsets", "");
Dominique Fournier2016-04-14 19:05:57 +00:00
2509155cc2
file : all the management of the files, with integrated filesystem checks, and virtual chroot support
Dominique Fournier2016-04-14 11:48:58 +00:00
263730d53e
ipaddresses : completeAddressWithZero allow the full IPv6 with dots
Dominique Fournier2016-04-13 13:44:41 +00:00
9d522d5ad6
Add a comment in Tests/cachefileTest.php for the 10s test concerning the unreleased lock
Dominique Fournier2016-03-14 10:55:22 +00:00
e977f9dfa1
Update tests to remove the dependancy to configuration Change the databases to be unique by test file
Dominique Fournier2016-03-12 16:34:44 +00:00
29007c5afa
config : allow to have the defaults params in ->get() in case of array without defined key
Dominique Fournier2016-03-05 12:59:44 +00:00
84dbeb45ba
dbjson : Use the $this->db instead of $data to store the database
Dominique Fournier2016-03-05 10:42:21 +00:00
3dbcb5298e
* BUG markdown : Example of cron configuration * * * * * www-data /usr/share with 4 beginning spaces is not OK (remove all the stars and put a bullet) The lists (numbered or not) must start on first char
Dominique Fournier2016-03-05 09:14:41 +00:00
1ad99a3641
inifile : return an integer/float if the value is a number
Dominique Fournier2016-02-25 08:37:00 +00:00
e0b5b720c9
Add DBJSON support. DBJSON is a NoSQL database, writing the data in one file. There is no optimizations, so it is not quick, but it works on all the PHP sites
Dominique Fournier2016-02-25 07:53:07 +00:00
b847ec4261
authhtpasswd : Check if the first char exists before testing it
Dominique Fournier2016-02-24 15:45:57 +00:00
019beadf57
dblayer : removing the unused create function (later than 0.8)
Dominique Fournier2016-02-23 13:41:20 +00:00
6b5056348b
BUG Markdown : if an automatic URL have two underscores, the <em> work and the URL is incorrect
Dominique Fournier2016-02-23 13:36:30 +00:00
b6a8b728bd
BUG Markdown : if an automatic URL have two underscores, the <em> work and the URL is incorrect
Dominique Fournier2016-02-23 13:36:03 +00:00
1ae18596b1
Update unit test route : add a random ratelimit dir instead of data (to allow to restart the test from empty)
Dominique Fournier2016-02-23 12:41:32 +00:00
e682e16f56
ratelimitfile : BUG must have the ratelimit.php included
Dominique Fournier2016-02-23 12:36:16 +00:00
188ed7cd96
route : ratelimit the errors to not allow the hackers to brute force the backend
Dominique Fournier2016-02-23 12:35:08 +00:00
9dbd64d6a2
ipaddresses : Add support to calculations on IP addresses
Dominique Fournier2016-02-23 11:55:59 +00:00
01efb53dfa
Check if all the translations are done by dgettext('domframework', Update locales
Dominique Fournier2016-02-23 10:27:18 +00:00
3a635ce39a
form : add the javascript to focus on the first field if there is no error, or on the first error when there is one
Dominique Fournier2016-02-23 08:53:30 +00:00
060f47bce6
language : allow to force the language from anoter source than the cookie and the browser params
Dominique Fournier2016-02-21 19:12:50 +00:00
d52e9432f4
route : when a 401 error is thrown, request the WWW-Authentication
Dominique Fournier2015-10-25 14:48:21 +00:00
67b1d771ac
imap : if there is an authentication, return an exception with 401 code
Dominique Fournier2015-10-23 12:53:51 +00:00
64c1130fa7
The output* can't exit or the unittest crash. Put an exception
Dominique Fournier2015-10-23 12:53:13 +00:00
2fec89d95f
route : route allow now to get the information from a return in the function of map and display it with the provided output type (json, html, xml, text).
Dominique Fournier2015-10-23 12:24:51 +00:00
9523dbdc6a
outputhtml : display the result, not return it ! (and adapt the unit tests accordinally)
Dominique Fournier2015-10-23 08:51:38 +00:00
34322f8540
imap : allow the imap class to be extendend -> The constructor doesn't do anything except calling 'connect' method. The connect can be used by child class, if the constructor of the child is override the imap constructor
Dominique Fournier2015-10-22 12:00:09 +00:00
4c5e06011b
cli : if no controller or models exists, return nothing in listonly mode (bash_completion)
Dominique Fournier2015-10-13 16:03:44 +00:00
37c8f4a443
cli : the classes displayed by -list option have now the \\ instead of \ to be easier to collate in shell
Dominique Fournier2015-09-25 11:52:35 +00:00
9be561212b
authhtpasswd : Add support to authenticate the user from a .htpasswd file, created by "htpasswd" command. Allow to add easily a new user if the admin password is lost
Dominique Fournier2015-09-12 17:08:32 +00:00
94bc27f7d4
users/usersSQL : Add users storage in SQL and the users abstraction class
Dominique Fournier2015-09-12 15:26:16 +00:00
800411803c
dblayer : if the verify return an array with the field in key, the exception of update is now working
Dominique Fournier2015-09-12 15:04:49 +00:00