1: <?php
2: /*
3: You may not change or alter any portion of this comment or credits
4: of supporting developers from this source code or any supporting source code
5: which is considered copyrighted (c) material of the original comment or credit authors.
6:
7: This program is distributed in the hope that it will be useful,
8: but WITHOUT ANY WARRANTY; without even the implied warranty of
9: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10: */
11:
12: xoops_load('gui', 'system');
13:
14: /**
15: * Xoops Cpanel ThAdmin GUI class
16: *
17: * @copyright (c) 2000-2016 XOOPS Project (www.xoops.org)
18: * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
19: * @package system
20: * @usbpackage GUI
21: * @since 2.3.0
22: * @author Taiwen Jiang <phppp@users.sourceforge.net>
23: */
24: class XoopsGuiThadmin extends /* implements */
25: XoopsSystemGui
26: {
27: /**
28: * Reference to template object
29: */
30: public $template;
31:
32: /**
33: * Holding navigation
34: */
35: public $navigation;
36:
37: /**
38: *
39: */
40: public function __construct()
41: {
42: include_once XOOPS_ROOT_PATH . '/modules/thadmin/include/cp_functions.php';
43: }
44:
45: /**
46: * @return bool
47: */
48: public static function validate()
49: {
50: /* @var $module_handler XoopsModuleHandler */
51: $module_handler = xoops_getHandler('module');
52: if ($admin_module = $module_handler->getByDirname('thadmin')) {
53: if ($admin_module->getVar('isactive')) {
54: return true;
55: }
56: }
57:
58: return false;
59: }
60:
61: public function header()
62: {
63: xoops_thadmin_cp_header();
64: }
65:
66: public function footer()
67: {
68: xoops_thadmin_cp_footer();
69: }
70: }
71: