triggers.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /* Copyright (C) 2005-2012 Laurent Destailleur <eldy@users.sourceforge.net>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. /**
  18. * \file htdocs/admin/triggers.php
  19. * \brief Page to view triggers
  20. */
  21. require("../main.inc.php");
  22. require_once(DOL_DOCUMENT_ROOT."/core/class/interfaces.class.php");
  23. $langs->load("admin");
  24. if (!$user->admin) accessforbidden();
  25. /*
  26. * Action
  27. */
  28. // None
  29. /*
  30. * View
  31. */
  32. llxHeader("","");
  33. $form = new Form($db);
  34. print_fiche_titre($langs->trans("TriggersAvailable"),'','setup');
  35. print $langs->trans("TriggersDesc")."<br>";
  36. print "<br>\n";
  37. $template_dir = DOL_DOCUMENT_ROOT.'/core/tpl/';
  38. $interfaces = new Interfaces($db);
  39. $triggers = $interfaces->getTriggersList(0,'priority');
  40. include($template_dir.'triggers.tpl.php');
  41. llxFooter();
  42. $db->close();
  43. ?>