XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
thadmin.php
Go to the documentation of this file.
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 
26 class XoopsGuiThadmin extends /* implements */ XoopsSystemGui
27 {
31  var $template;
32 
37 
38  function __construct()
39  {
40  include_once XOOPS_ROOT_PATH . "/modules/thadmin/include/cp_functions.php";
41  }
42 
43  function XoopsGuiThadmin()
44  {
45  $this->__construct();
46  }
47 
48  function validate()
49  {
50  $module_handler =& xoops_gethandler("module");
51  if ($admin_module = $module_handler->getByDirname("thadmin")) {
52  if ($admin_module->getVar("isactive")) {
53  return true;
54  }
55  }
56 
57  return false;
58  }
59 
60  function header()
61  {
62  xoops_thadmin_cp_header();
63  }
64 
65  function footer()
66  {
67  xoops_thadmin_cp_footer();
68  }
69 }
70 
71 ?>