PHP Classes

File: admin/admin_header.php

Recommend this page to a friend!
  Classes of Michael Beck   XOOPS PHP About Page   admin/admin_header.php   Download  
File: admin/admin_header.php
Role: Example script
Content type: text/plain
Description: Example script
Class: XOOPS PHP About Page
Show the about page in a site managed using XOOPS
Author: By
Last change:
Date: 2 years ago
Size: 1,344 bytes
 

Contents

Class file image Download
<?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.
 */

/**
 * Create and display the Administration Header for pages
 *
 * @package module\About\admin
 * @copyright https://xoops.org 2001-2017 XOOPS Project
 * @license GNU GPL 2 or later (https://www.gnu.org/licenses/gpl-2.0.html)
 * @author XOOPS Module Development Team
 */

use XoopsModules\About\Helper;
/** @var Helper $helper */

$moduleDirName = basename(dirname(__DIR__));
require_once
dirname(__DIR__, 3) . '/include/cp_header.php';
require_once
dirname(__DIR__) . '/include/common.php';

xoops_load('xoopsformloader');

$helper = Helper::getInstance();
$myts = \MyTextSanitizer::getInstance();

if (!isset(
$GLOBALS['xoopsTpl']) || !($GLOBALS['xoopsTpl'] instanceof \XoopsTpl)) {
    require_once
$GLOBALS['xoops']->path('class/template.php');
   
$xoopsTpl = new \XoopsTpl();
}

// Load language files
$helper->loadLanguage('modinfo');
$helper->loadLanguage('main');