Changeset 860 for trunk/xpressme_integration_kit/include/memory_limit.php
- Timestamp:
- Jun 15, 2016, 9:52:13 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/include/memory_limit.php
r551 r860 15 15 $has_xoops_db = (!empty($xoopsDB)); 16 16 if (!$has_xoops_db) { 17 $cn = mysql _connect($xoops_config->xoops_db_host, $xoops_config->xoops_db_user, $xoops_config->xoops_db_pass);17 $cn = mysqli_connect($xoops_config->xoops_db_host, $xoops_config->xoops_db_user, $xoops_config->xoops_db_pass); 18 18 if ($cn){ 19 $db_selected = mysql _select_db($xoops_config->xoops_db_name, $cn);19 $db_selected = mysqli_select_db($cn, $xoops_config->xoops_db_name); 20 20 } 21 21 } … … 31 31 } else { 32 32 if ($db_selected){ 33 if($result = mysql _query($module_sql)){34 $row = mysql _fetch_assoc($result);33 if($result = mysqli_query($cn, $module_sql)){ 34 $row = mysqli_fetch_assoc($result); 35 35 $module_id = $row['mid']; 36 36 } … … 48 48 } else { 49 49 if ($db_selected){ 50 if($result = mysql _query($config_sql)){51 $row = mysql _fetch_assoc($result);50 if($result = mysqli_query($cn, $config_sql)){ 51 $row = mysqli_fetch_assoc($result); 52 52 $memory = $row['conf_value']; 53 53 } … … 56 56 } 57 57 if (!$has_xoops_db) { 58 mysql _close($cn);58 mysqli_close($cn); 59 59 } 60 60
Note: See TracChangeset
for help on using the changeset viewer.