PHP Classes

File: htdocs/Frameworks/art/functions.php

Recommend this page to a friend!
  Packages of Michael Beck   Xoops 2.5   htdocs/Frameworks/art/functions.php   Download  
File: htdocs/Frameworks/art/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 #1586 from mambax7/feature/Cannot_use_bool_as_array

fix for Cannot use bool as array
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: 10 months ago
Size: 1,128 bytes
 

Contents

Class file image Download
<?php
/**
 * common functions
 *
 * @copyright       (c) 2000-2025 XOOPS Project (https://xoops.org)
 * @license             GNU GPL 2 (https://www.gnu.org/licenses/gpl-2.0.html)
 * @author              Taiwen Jiang <phppp@users.sourceforge.net>
 * @since               1.00
 * @package             Frameworks
 * @subpackage          art
 */

if (defined('XOOPS_ART_FUNCTIONS')) {
    return false;
}
define('XOOPS_ART_FUNCTIONS', true);

include_once __DIR__ . '/functions.ini.php';

load_functions('cache');
load_functions('user');
load_functions('locale');
load_functions('admin');

if (!class_exists('ArtObject')) {
    include_once __DIR__ . '/object.php';
}

/**
 * get MySQL server version
 *
 * In some cases mysql_get_client_info is required instead
 *
 * @param mysqli|null $conn
 *
 * @return     string
 */
function mod_getMysqlVersion($conn = null)
{
    global $xoopsDB;
    static $mysql_version;
    if (isset($mysql_version)) {
        return $mysql_version;
    }
    if (null === $conn) {
        $conn = $xoopsDB->conn;
    }
    $mysql_version = mysqli_get_server_info($conn);

    return $mysql_version;
}