1: <?php
2: /**
3: * common functions
4: *
5: * @copyright (c) 2000-2016 XOOPS Project (www.xoops.org)
6: * @license GNU GPL 2 (https://www.gnu.org/licenses/gpl-2.0.html)
7: * @author Taiwen Jiang <phppp@users.sourceforge.net>
8: * @since 1.00
9: * @package Frameworks
10: * @subpackage art
11: */
12:
13: if (defined('XOOPS_ART_FUNCTIONS')) {
14: return false;
15: }
16: define('XOOPS_ART_FUNCTIONS', true);
17:
18: include_once __DIR__ . '/functions.ini.php';
19:
20: load_functions('cache');
21: load_functions('user');
22: load_functions('locale');
23: load_functions('admin');
24:
25: if (!class_exists('ArtObject')) {
26: include_once __DIR__ . '/object.php';
27: }
28:
29: /**
30: * get MySQL server version
31: *
32: * In some cases mysql_get_client_info is required instead
33: *
34: * @param null $conn
35: *
36: * @return string
37: */
38: function mod_getMysqlVersion($conn = null)
39: {
40: global $xoopsDB;
41: static $mysql_version;
42: if (isset($mysql_version)) {
43: return $mysql_version;
44: }
45: if (null === $conn) {
46: $conn = $xoopsDB->conn;
47: }
48: $mysql_version = mysqli_get_server_info($conn);
49:
50: return $mysql_version;
51: }
52: