Commit Graph

603 Commits

Author SHA1 Message Date
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
29007c5afa config : allow to have the defaults params in ->get() in case of array without defined key
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2648 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-03-05 12:59:44 +00:00
84dbeb45ba dbjson : Use the $this->db instead of $data to store the database
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2647 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-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


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2646 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-03-05 09:14:41 +00:00
cd59ddf8d4 authldap : hide the error messages from ldap
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2619 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-03-03 09:27:22 +00:00
60c80c8351 cli.php : revert the last commit
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2591 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-02-29 13:42:27 +00:00
74f2810d9e Add the execution flag in SVN for cli.php
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2590 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-02-29 13:39:04 +00:00
7fad53016a dbjson : store the _id in key too (will be quicker when using indexes)
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2584 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-02-28 19:25:01 +00:00
09c859ee98 dbjson : if the database is empty, allow to read it without error
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2583 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-02-27 16:54:46 +00:00
24f99e6a69 Update unit tests : $this->assertEquals -> $this->assertSame
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2563 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-02-25 08:40:53 +00:00