Commit Graph

72 Commits

Author SHA1 Message Date
059f1383db route : the debug is now HTML valid
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5278 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2019-05-22 19:10:44 +00:00
d269917682 The PHP Classes are now with backslash
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4490 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2018-09-06 07:45:00 +00:00
6b5158e9d2 route : catch the base of site on "." too
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4489 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2018-08-24 13:58:56 +00:00
738b7e82e0 route : allow OPTIONS HTTP method
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4308 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2018-07-19 07:06:18 +00:00
44ad5a3da8 route : add setter/getter for debug param
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4280 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2018-07-11 09:26:42 +00:00
fc21407614 route : Add proxy support
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3989 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-10-30 19:50:45 +00:00
42cfed50c1 route : update phpdoc
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3739 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-05-31 12:05:52 +00:00
69079baec8 route: catch the exception generated by route itself
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3733 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-05-29 12:32:10 +00:00
ee285f0e41 route: catch the exception generated by route itself, and display the error page
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3732 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-05-29 12:30:34 +00:00
484a892836 route: catch the regex syntax error correctely
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3731 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-05-29 12:15:23 +00:00
ed3d625fa4 route: redirect: the destURL analyzer is stronger
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3428 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-03-15 09:27:04 +00:00
9dc51ea61f route : do not cache the baseURL if the Absolute parameter is set
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3421 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-03-14 19:45:09 +00:00
e21a5a1840 route : add the mapRoute function to know the matching route search comparison
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3392 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2017-03-09 11:03:30 +00:00
b102168208 DomCI : Update the PHPDoc
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3273 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-12-08 15:57:56 +00:00
3a004fbdc0 Update the PHPDocs to modify the invalid types of parameters
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3272 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-12-08 15:33:26 +00:00
1ddc03dcbb DomCI : Change the non existing PHPDocs types
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3269 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-12-08 15:07:52 +00:00
a1922c30f2 route requestURL (true) in subdir invalid : http://localhostiptables/ipv4/filter/INPUT (missing directory)
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3020 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-09-01 13:48:50 +00:00
a04d3a4f4a Cosmetics changes : remove ending lines spaces
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3012 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-08-31 07:20:24 +00:00
71975da3cb Add : outputrest to support the routing to REST
$route->output = "rest";


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2943 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-07-21 11:56:25 +00:00
1aea4d337c route : update docComment
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2735 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-05-24 08:26:55 +00:00
5511f7a3ea route : store in session the last valid get page to allow to return with small method : $route->lastValidGetPageRedirect ();
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2703 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-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
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2699 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-04-19 13:04:54 +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", "");


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2696 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-04-14 19:05:57 +00:00
d35b61e290 route : if the module is not set, work as it is ""
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2695 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-04-14 18:35:22 +00:00
188ed7cd96 route : ratelimit the errors to not allow the hackers to brute force the backend
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2543 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-02-23 12:35:08 +00:00
92a0fd8634 route : Pass to renderer the information concerning the routing and the exception
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2516 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-02-22 08:33:23 +00:00
afb69d0487 route : require_once instead of require !
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2380 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-11-13 10:19:50 +00:00
d52e9432f4 route : when a 401 error is thrown, request the WWW-Authentication
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2377 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-10-25 14:48:21 +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).
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2374 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-10-23 12:24:51 +00:00
1726abd0a5 route : multi now return $this to be chainnable
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2373 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-10-23 09:23:58 +00:00
23bfc34f1a route : allow the routing to be chained : return $this each time
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2369 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-10-19 09:29:31 +00:00
144842b4da route : allow the 401 error code to be redirected to an external URL to authenticate the user
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2237 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-08-14 07:08:49 +00:00
8f9d404343 route : remove the automatic adding of the / to allow the redirect from word to word/ without error of loop
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2227 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-08-10 14:31:16 +00:00
0053e3eb1a route : redirect to myself : code 400
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2226 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-08-10 14:11:53 +00:00
bd45fb2566 route : add the 'multi' method to allow multiple methods to be applied to the same route and function
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2225 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-08-09 07:26:12 +00:00
35f2002e3f route : remove a obsolete comment
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2222 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-08-07 09:54:53 +00:00
ca9af5324e route : add a message to errors when the Exception code is 0 and converted to 500
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2221 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-08-07 09:46:30 +00:00
be7085fd68 route : catch the http errors from PHP (with error code 0) as "Internal Server Error" (error code 500)
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2220 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-08-07 09:39:06 +00:00
0077b21e43 route : the URL are decoded before providing the informations to map
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2210 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-08-05 11:49:22 +00:00
f5fb16ae57 route : allow prerouting informations to be added in map comparisons
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2205 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-06-16 12:08:45 +00:00
6fbea5dc56 route : the redirect can be done outside the site, with a warning
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2161 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-05-07 14:40:25 +00:00
3ea5fff993 Add support to baseURLresource used in the HTML page to the modules
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2154 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-05-07 13:10:07 +00:00
238a245071 Remove the CSRF debug log
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2124 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-04-30 13:39:44 +00:00
da8d0d9925 route : better relative support
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2084 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-04-28 09:07:31 +00:00
6bd4c44a15 route : remove debug
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2083 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-04-27 20:47:39 +00:00
f9a4e68e01 route : when a relative baseURL is empty, push "./" to be in the current directory
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2081 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-04-27 18:34:30 +00:00
dc8f2d13df route : relative OK when using redirect
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2080 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-04-27 17:26:45 +00:00
166fa33c7a route : base URL is now in complete relative !
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2078 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-04-27 17:03:05 +00:00
11106afc7c route : redirect is now OK without the complete URL
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2075 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-04-27 13:58:26 +00:00
1578a21a6b route : the baseURL is now relative by default. It allow the route module to work across a proxy
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2074 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-04-27 13:44:05 +00:00