admin/admin_header.php
<?php
declare(strict_types=1);
/**
* ****************************************************************************
* GBOOK - MODULE FOR XOOPS
* Copyright (c) 2007 - 2012
* Ingo H. de Boer (http://www.winshell.org)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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. See the
* GNU General Public License for more details.
* ---------------------------------------------------------------------------
*
* @copyright Ingo H. de Boer (http://www.winshell.org)
* @license GNU General Public License (GPL)
* @package GBook
* @author Ingo H. de Boer (idb@winshell.org)
*
* ****************************************************************************
*/
use XoopsModules\Gbook;
require \dirname(__DIR__, 3) . '/include/cp_header.php';
require \dirname(__DIR__) . '/preloads/autoloader.php';
require_once $GLOBALS['xoops']->path('www/class/xoopsformloader.php');
require_once \dirname(__DIR__) . '/include/common.php';
$moduleDirName = \basename(\dirname(__DIR__));
$helper = Gbook\Helper::getInstance();
/** @var Xmf\Module\Admin $adminObject */
$adminObject = Xmf\Module\Admin::getInstance();
$myts = \MyTextSanitizer::getInstance();
if (!isset($GLOBALS['xoopsTpl']) || !($GLOBALS['xoopsTpl'] instanceof \XoopsTpl)) {
require_once $GLOBALS['xoops']->path('class/template.php');
$xoopsTpl = new \XoopsTpl();
}
$pathIcon16 = Xmf\Module\Admin::iconUrl('', 16);
$pathIcon32 = Xmf\Module\Admin::iconUrl('', 32);
$pathModIcon32 = $helper->getModule()->getInfo('modicons32');
// Load language files
$helper->loadLanguage('admin');
$helper->loadLanguage('modinfo');
$helper->loadLanguage('main');