<?php
/*
 You may not change or alter any portion of this comment or credits
 of supporting developers from this source code or any supporting source code
 which is considered copyrighted (c) material of the original comment or credit authors.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/

xoops_load("gui", "system");

/**
 * Xoops Cpanel ThAdmin GUI class
 *
 * @copyright   The XOOPS project http://sf.net/projects/xoops/
 * @license     http://www.fsf.org/copyleft/gpl.html GNU public license
 * @package     system
 * @usbpackage  GUI
 * @since       2.3.0
 * @author      Taiwen Jiang <phppp@users.sourceforge.net>
 * @version     $Id: thadmin.php 8066 2011-11-06 05:09:33Z beckmi $
 */

class XoopsGuiThadmin extends /* implements */ XoopsSystemGui
{
    /**
     * Reference to template object
     */
    var $template;

    /**
     * Holding navigation
     */
    var $navigation;

    function __construct()
    {
        include_once XOOPS_ROOT_PATH . "/modules/thadmin/include/cp_functions.php";
    }

    function XoopsGuiThadmin()
    {
        $this->__construct();
    }

    function validate()
    {
        $module_handler =& xoops_gethandler("module");
        if ($admin_module = $module_handler->getByDirname("thadmin")) {
            if ($admin_module->getVar("isactive")) {
                return true;
            }
        }

        return false;
    }

    function header()
    {
        xoops_thadmin_cp_header();
    }

    function footer()
    {
        xoops_thadmin_cp_footer();
    }
}

?>