1
0

label.php 697 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup UnaCore UNA Core
  7. * @{
  8. */
  9. require_once('./inc/header.inc.php');
  10. require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
  11. bx_import('BxDolLanguages');
  12. check_logged();
  13. $sAction = isset($_REQUEST['action']) && preg_match ('/^[A-Za-z_-]+$/', $_REQUEST['action']) ? bx_process_input($_REQUEST['action']) : '';
  14. $oLabel = BxDolLabel::getInstance();
  15. if($oLabel && $sAction) {
  16. header('Content-Type: text/html; charset=utf-8');
  17. $sMethod = 'action' . bx_gen_method_name($sAction);
  18. if(method_exists($oLabel, $sMethod))
  19. echo $oLabel->$sMethod();
  20. }
  21. /** @} */