PHP Classes

File: htdocs/include/old_theme_functions.php

Recommend this page to a friend!
  Packages of Michael Beck   Xoops 2.5   htdocs/include/old_theme_functions.php   Download  
File: htdocs/include/old_theme_functions.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 #1589 from mambax7/feature/session_for_PHP8.4

fix for https://github.com/XOOPS/XoopsCore25/issues/1588
copyright update
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: 2 months ago
Size: 2,217 bytes
 

Contents

Class file image Download
<?php
/**
 * XOOPS Deprecated Functions
 *
 * 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
 * @author Kazumi Ono (AKA onokazu) http://www.myweb.ne.jp/, http://jp.xoops.org/
 */

// These are needed when viewing old modules (that don't use Smarty template files) when a theme that use Smarty templates are selected.
// function_exists check is needed for inclusion from the admin side
if (!function_exists('opentable')) {
   
/**
     * @param string $width
     * @deprecated
     */
   
function openTable($width = '100%')
    {
       
$GLOBALS['xoopsLogger']->addDeprecated("Function '" . __FUNCTION__ . "' in '" . __FILE__ . "' is deprecated, should not be used any more");
        echo
'<table width="' . $width . '" cellspacing="0" class="outer"><tr><td class="even">';
    }
}

if (!
function_exists('closetable')) {
   
/**
     * @return void
     * @deprecated
     */
   
function closeTable()
    {
       
$GLOBALS['xoopsLogger']->addDeprecated("Function '" . __FUNCTION__ . "' in '" . __FILE__ . "' is deprecated, should not be used any more");
        echo
'</td></tr></table>';
    }
}

if (!
function_exists('themecenterposts')) {
   
/**
     * @param $title
     * @param $content
     * @deprecated
     */
   
function themecenterposts($title, $content)
    {
       
$GLOBALS['xoopsLogger']->addDeprecated("Function '" . __FUNCTION__ . "' in '" . __FILE__ . "' is deprecated, should not be used any more");
        echo
'<table cellpadding="4" cellspacing="1" width="98%" class="outer"><tr><td class="head">' . $title . '</td></tr><tr><td><br>' . $content . '<br></td></tr></table>';
    }
}