admin/admin_header.php
<?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.
*/
/**
* Module: XoopsPartners - a partner affiliation links module
*
* @package module\Xoopspartners\admin
* @author XOOPS Module Development Team
* @copyright {@link https://xoops.org 2001-2016 XOOPS Project}
* @license {@link https://www.gnu.org/licenses/gpl-2.0.html GNU Public License}
* @link https://xoops.org XOOPS
* @since 1.11
*/
use Xmf\Module\Admin;
use XoopsModules\Xoopspartners\Helper;
include dirname(__DIR__) . '/preloads/autoloader.php';
require dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
require dirname(__DIR__) . '/include/common.php';
$moduleDirName = basename(dirname(__DIR__));
/** @var \XoopsModules\Xoopspartners\Helper $helper */
$helper = Helper::getInstance();
/** @var \Xmf\Module\Admin $adminObject */
$adminObject = Admin::getInstance();
if (!interface_exists('XoopspartnersConstants')) {
require_once $helper->path('class/constants.php');
}
//Load languages
$helper->loadLanguage('admin');
$helper->loadLanguage('modinfo');
$helper->loadLanguage('main');
$helper->loadLanguage('common');
$myts = \MyTextSanitizer::getInstance();
if (!isset($GLOBALS['xoopsTpl']) || !($GLOBALS['xoopsTpl'] instanceof \XoopsTpl)) {
require_once $GLOBALS['xoops']->path('/class/template.php');
$GLOBALS['xoopsTpl'] = new \XoopsTpl();
}
xoops_cp_header();