Commit Graph

589 Commits

Author SHA1 Message Date
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
1ad99a3641 inifile : return an integer/float if the value is a number
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2562 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-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
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2561 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-02-25 07:53:07 +00:00
b847ec4261 authhtpasswd : Check if the first char exists before testing it
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2560 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-02-24 15:45:57 +00:00
a88d8ed223 Start the version 0.24
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2554 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-02-23 13:56:27 +00:00
0f94754d62 Update locales
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2552 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-02-23 13:50:20 +00:00
3e96a6ed08 Update messages
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2551 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-02-23 13:48:20 +00:00
6cb1b2e17c Update changelog
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2550 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-02-23 13:45:24 +00:00
96737e4a0f Start 0.23 packaging
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2549 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-02-23 13:43:44 +00:00
019beadf57 dblayer : removing the unused create function (later than 0.8)
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2548 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-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
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2547 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-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
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2546 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-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)
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2545 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-02-23 12:41:32 +00:00
e682e16f56 ratelimitfile : BUG must have the ratelimit.php included
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2544 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2016-02-23 12:36:16 +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