| 1: | <?php
|
| 2: | |
| 3: | |
| 4: | |
| 5: | |
| 6: | |
| 7: | |
| 8: | |
| 9: | |
| 10: | |
| 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: | |
| 31: | |
| 32: | |
| 33: | |
| 34: | |
| 35: | |
| 36: | |
| 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: | |