Commit Graph

612 Commits

Author SHA1 Message Date
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
4e8cda29b2 cli : update help message
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2734 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-05-24 07:53:41 +00:00
93f2ee9e7e cli : update docComment
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2733 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-05-24 07:46:41 +00:00
a573f6b393 cli : catch correctely the classes names
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2732 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-05-24 07:45:32 +00:00
c4348b3662 cli : update docComment
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2731 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-05-24 07:31:54 +00:00
af95946def cli : add a "-q" option to not display the return code
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2730 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-05-23 19:35:17 +00:00
b403cb41ea cli : Add more information ihow to find the class name when there is no class provided.
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2729 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-05-23 19:15:25 +00:00
f7c903e0f1 cli : allow the controllers\\ to be optional
cli : allow the models\\ or controllers\\ to be optional if the name of the class is unique


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2728 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-05-23 19:08:43 +00:00
7d00d6d315 form : update docComment
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2727 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-05-23 12:46:30 +00:00
70d444f6c7 smtp : Update docComment
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2726 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-05-23 11:48:46 +00:00
58359a35d2 smtp : update docComment
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2725 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-05-23 11:40:19 +00:00
905bb21540 smtp : update docComments
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2724 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-05-23 11:27:10 +00:00
7b3cb69cb1 smtp : check the certificate by default when using SSL (but add the paramter to skip the test)
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2723 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-05-23 09:42:59 +00:00
8e86bee838 smtp : push the STARTTLS to none by default, as the certificate of the server must be equal to the configuration.
smtp : Catch the STARTTLS errors instead of displaying a warning
smtp : don't loop etrenaly if there is a smtp problem


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2722 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-05-23 09:16:58 +00:00
c1cbf1435a mail : update exception message
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2721 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-05-20 18:50:56 +00:00
a6f19764e1 mail : Complete rewrite. Allow to read an existing mail
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2720 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-05-19 14:45:17 +00:00
d2e24eb0ae Update locales
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2718 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-05-03 19:59:34 +00:00
38db9395be smtp : allow the debug to be stored in a defined file
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2717 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-05-03 13:35:05 +00:00
40d9a7ae4c smtp : don't add spare \n in debug
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2716 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-05-03 13:20:04 +00:00
f10b852369 smtp : Return the last message of the server when sending mail. There is the queue message id stored in it
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2715 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-05-03 13:16:26 +00:00
c39148bba0 smtp : Add STARTTLS support and LOGIN auth method
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2714 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-05-03 13:02:54 +00:00
f40b919648 smtp : add SMTP support to send emails
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2713 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-05-03 09:59:49 +00:00
58fe500730 Add changelog
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2711 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-05-02 13:44:49 +00:00
123ed687ba Start packaging of 0.25
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2710 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-05-02 13:40:17 +00:00
23516c7b57 * mail : the mail creator. Allow to create complete mails easily
$mail = new mail ();
    $mail->setFrom ("sender@example.com","Sender Example Com");
    $mail->addTo ("recipient1@example.com","Recipient1 Example Com");
    $mail->addTo ("recipient2@example.com","Recipient2 Example Com");
    $mail->setBodyText ("Content of TextBody part");
    $mail->addAttachment ("file0.text", "File content");
    $contentID1 = $mail->addAttachmentInline ("file2.jpg", "qcqscqs");
    $mail->setBodyHTML ("<p>Content of HTMLBody part with inline
                         <img src='cid:$contentID1'></p>");
    echo $mail->getMail ();



git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2709 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-04-29 14:47:12 +00:00
bc23495eec form : add maxlength support
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2707 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-04-26 13:01:11 +00:00
69c7e4eb8e Update locales
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2706 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-04-26 12:34:12 +00:00
191b795627 form : add the verify of forms. Actually check only the mandatory part
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2705 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-04-26 12:27:00 +00:00
5cad7a90b3 authshibboleth : there is a capital in givenName
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2704 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-04-25 14:47:12 +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
7be2692c91 auth : Add Shibboleth support
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2702 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-04-22 11:30:17 +00:00
9f8d9ddc30 form : fieldwidth is now functionnal
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2701 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-04-21 14:14:50 +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
5ad792d251 form : if the provided error for a field is not an array, use the default error class and use the value as message
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2698 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-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", "");


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2697 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-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", "");


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
2509155cc2 file : all the management of the files, with integrated filesystem checks, and virtual chroot support
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2694 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-04-14 11:48:58 +00:00
263730d53e ipaddresses : completeAddressWithZero allow the full IPv6 with dots
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2687 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-04-13 13:44:41 +00:00
9d522d5ad6 Add a comment in Tests/cachefileTest.php for the 10s test concerning the unreleased lock
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2679 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-03-14 10:55:22 +00:00
a8b527fbf4 Add tools/markdown.php
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2678 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-03-14 10:49:41 +00:00
b8aae32c59 Add stats to domphptests
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2676 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-03-14 10:48:53 +00:00
7a3bad0934 Update Tests to allow them to be parrallelized
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2675 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-03-14 10:18:37 +00:00
4356cb7c7d Add the domphptests ini file
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2672 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-03-14 08:59:49 +00:00
e977f9dfa1 Update tests to remove the dependancy to configuration
Change the databases to be unique by test file


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2670 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-03-12 16:34:44 +00:00
3c133753ea Update locales
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2665 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-03-08 09:33:16 +00:00
c8a4fc9bc2 Start packaging of 0.24 version
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2664 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-03-08 09:29:57 +00:00
5a1a015f11 config : if the default array "not configured" is not found, do not test the value
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2653 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-03-07 15:23:41 +00:00
83c3b46e87 Add domframework tools (for cli use)
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2650 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-03-05 16:26:50 +00:00
089707e88f dbjson : the keys are the _id (no more N² searches)
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2649 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-03-05 16:10:40 +00:00