data.php 400B

123456789101112131415161718192021222324
  1. <?php
  2. require_once(dirname(__DIR__)."/models/data.class.php");
  3. function data()
  4. {
  5. set("title", "Titre");
  6. set("data", Data::getAll());
  7. return html("data.html.php", "layout.html.php");
  8. }
  9. function data_extract()
  10. {
  11. header("Content-Type: text/csv");
  12. header("Content-Disposition: filename=\"data.csv\"");
  13. return Data::extract();
  14. }
  15. function alter_data()
  16. {
  17. // TODO
  18. }