PHP Classes

File: htdocs/footer.php

Recommend this page to a friend!
  Packages of Michael Beck   Xoops 2.5   htdocs/footer.php   Download  
File: htdocs/footer.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Xoops 2.5
Modular content management publication system
Author: By
Last change: Merge pull request #1586 from mambax7/feature/Cannot_use_bool_as_array

fix for Cannot use bool as array
copyright update
PER-CS formatting
Merge pull request #1239 from Andrew-Staves-Activ/notificationhandler_subscribe_success

Merge branch 'feature/php8_templates' of https://github.com/mambax7/XoopsCore25 into feature/php8_templates

# Conflicts:
# htdocs/themes/xswatch4/modules/publisher/publisher_item.tpl
Merge xswatch4
Date: 10 months ago
Size: 2,254 bytes
 

Contents

Class file image Download
<?php
/**
 *  Xoops footer
 *
 * 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.
 *
 * @copyright       (c) 2000-2025 XOOPS Project (https://xoops.org)
 * @license             GNU GPL 2 (https://www.gnu.org/licenses/gpl-2.0.html)
 * @package             kernel
 * @since               2.0.0
 */

if (!defined('XOOPS_ROOT_PATH')) {
    throw new \RuntimeException('Restricted access');
}

$xoopsPreload = XoopsPreload::getInstance();
$xoopsPreload->triggerEvent('core.footer.start');

if (!defined('XOOPS_FOOTER_INCLUDED')) {
    define('XOOPS_FOOTER_INCLUDED', 1);

    $xoopsLogger = XoopsLogger::getInstance();
    $xoopsLogger->stopTime('Module display');
    // RMV-NOTIFY
    include_once $GLOBALS['xoops']->path('include/notification_select.php');
    if (!headers_sent()) {
        header('Content-Type:text/html; charset=' . _CHARSET);
        header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
        //header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
        header('Cache-Control: private, no-cache');
        header('Pragma: no-cache');
    }

    //@internal: using global $xoTheme dereferences the variable in old versions, this does not
    if (!isset($xoTheme)) {
        $xoTheme = $GLOBALS['xoTheme'];
    }

    if (isset($GLOBALS['xoopsOption']['template_main']) && $GLOBALS['xoopsOption']['template_main'] != $xoTheme->contentTemplate) {
        trigger_error("xoopsOption['template_main'] should be defined before including header.php", E_USER_WARNING);
        if (false === strpos($GLOBALS['xoopsOption']['template_main'], ':')) {
            $xoTheme->contentTemplate = 'db:' . $GLOBALS['xoopsOption']['template_main'];
        } else {
            $xoTheme->contentTemplate = $GLOBALS['xoopsOption']['template_main'];
        }
    }
    $xoTheme->render();
    $xoopsLogger->stopTime();
}

$xoopsPreload->triggerEvent('core.footer.end');