widget.configcheck.php 862 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /*
  3. * This file is part of MODX Revolution.
  4. *
  5. * Copyright (c) MODX, LLC. All Rights Reserved.
  6. *
  7. * For complete copyright and license information, see the COPYRIGHT and LICENSE
  8. * files found in the top-level directory of this distribution.
  9. */
  10. /**
  11. * Renders the config check box
  12. * @package modx
  13. * @subpackage dashboard
  14. */
  15. class modDashboardWidgetConfigCheck extends modDashboardWidgetInterface {
  16. public $cssBlockClass = 'dashboard-block-variable';
  17. public function render() {
  18. $o = '';
  19. /* do some config checks */
  20. $modx =& $this->modx;
  21. $config_check_results = '';
  22. $success = include $this->modx->getOption('processors_path') . 'system/config_check.inc.php';
  23. if (!$success) {
  24. $o = $config_check_results;
  25. }
  26. return $o;
  27. }
  28. }
  29. return 'modDashboardWidgetConfigCheck';