PHP Classes

File: htdocs/Frameworks/art/functions.php

Recommend this page to a friend!
  Classes 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:
Date: 7 years ago
Size: 1,116 bytes
 

Contents

Class file image Download
<?php
/**
 * common functions
 *
 * @copyright (c) 2000-2016 XOOPS Project (www.xoops.org)
 * @license GNU GPL 2 (http://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 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;
}