options.php 823 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup UnaEndAdmin UNA Studio End Admin Pages
  7. * @ingroup UnaStudio
  8. * @{
  9. */
  10. require_once('./../inc/header.inc.php');
  11. require_once(BX_DIRECTORY_PATH_INC . 'design.inc.php');
  12. require_once(BX_DOL_DIR_STUDIO_INC . 'utils.inc.php');
  13. bx_import('BxDolLanguages');
  14. bx_require_authentication(true);
  15. $sType = bx_get('type');
  16. $sType = $sType !== false ? bx_process_input($sType) : '';
  17. $mixedCategory = bx_get('category');
  18. $mixedCategory = $mixedCategory !== false ? bx_process_input($mixedCategory) : '';
  19. $oOptions = new BxTemplStudioOptions($sType, $mixedCategory);
  20. if(($mixedResult = $oOptions->checkAction()) !== false) {
  21. echoJson($mixedResult);
  22. exit;
  23. }
  24. echo $oOptions->getCode();
  25. /** @} */