template.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?php // $Id: template.php,v 1.2 2006/03/15 14:34:45 pcool Exp $
  2. /*
  3. ==============================================================================
  4. Dokeos - elearning and course management software
  5. Copyright (c) 2004-2006 Dokeos S.A.
  6. Copyright (c) Sally "Example" Programmer (sally@somewhere.net)
  7. //add your name + the name of your organisation - if any - to this list
  8. For a full list of contributors, see "credits.txt".
  9. The full license can be read in "license.txt".
  10. This program is free software; you can redistribute it and/or
  11. modify it under the terms of the GNU General Public License
  12. as published by the Free Software Foundation; either version 2
  13. of the License, or (at your option) any later version.
  14. See the GNU General Public License for more details.
  15. Contact address: Dokeos, 44 rue des palais, B-1030 Brussels, Belgium
  16. Mail: info@dokeos.com
  17. ==============================================================================
  18. */
  19. /**
  20. ==============================================================================
  21. * This file is a code template;
  22. * copy the code and paste it in a new file to begin your own work.
  23. *
  24. * @package dokeos.plugin
  25. ==============================================================================
  26. */
  27. /*
  28. ==============================================================================
  29. INIT SECTION
  30. ==============================================================================
  31. */
  32. // global settings initialisation
  33. // also provides access to main, database and display API libraries
  34. include("../inc/global.inc.php");
  35. /*
  36. -----------------------------------------------------------
  37. Libraries
  38. -----------------------------------------------------------
  39. */
  40. //the main_api.lib.php, database.lib.php and display.lib.php
  41. //libraries are included by default
  42. /*
  43. -----------------------------------------------------------
  44. Header
  45. -----------------------------------------------------------
  46. */
  47. // Optional extra http or html header
  48. // If you need to add some HTTP/HTML headers code
  49. // like JavaScript functions, stylesheets, redirects, put them here.
  50. // $httpHeadXtra[] = "";
  51. // $httpHeadXtra[] = "";
  52. // ...
  53. //
  54. // $htmlHeadXtra[] = "";
  55. // $htmlHeadXtra[] = "";
  56. // ...
  57. $tool_name = "Example Plugin"; // title of the page (should come from the language file)
  58. Display::display_header($tool_name);
  59. /*
  60. ==============================================================================
  61. FUNCTIONS
  62. ==============================================================================
  63. */
  64. // put your functions here
  65. // if the list gets large, divide them into different sections:
  66. // display functions, tool logic functions, database functions
  67. // try to place your functions into an API library or separate functions file - it helps reuse
  68. /*
  69. ==============================================================================
  70. MAIN CODE
  71. ==============================================================================
  72. */
  73. // Put your main code here. Keep this section short,
  74. // it's better to use functions for any non-trivial code
  75. api_display_tool_title($tool_name);
  76. Display::display_normal_message("Hello world!");
  77. /*
  78. ==============================================================================
  79. FOOTER
  80. ==============================================================================
  81. */
  82. Display::display_footer();
  83. ?>