sync.php 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. Gasteizko Margolariak API v1
  3. define('DEF_FORMAT', 'json');
  4. /****************************************************
  5. * Echoes the version of one or more of the sections *
  6. * of the database, or the global section. *
  7. * *
  8. * @params: *
  9. * con: (MySQL server connection) RO mode enough. *
  10. * section: (string): 'blog', 'activities', *
  11. * 'gallery', 'lablanca', 'global'. None *
  12. * to get them all. *
  13. * format: (string): 'json' (default). *
  14. ****************************************************/
  15. function get_version(con, section = '', format = DEF_FORMAT){
  16. //TODO
  17. }
  18. /****************************************************
  19. * Echoes the contents of a table from the database. *
  20. * Inaccessible or sensitive tables or fields are *
  21. * not printed. *
  22. * *
  23. * @params: *
  24. * con: (MySQL server connection) RO mode enough. *
  25. * format: (string): 'json' (default). *
  26. ****************************************************/
  27. function get_table(con, format = DEF_FORMAT){
  28. //TODO
  29. }
  30. ?>