X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_network_types.php;h=985f437d7ed8b6d54785b8935653bf3f300af75b;hp=b1e27e1d5e3eacb5d99e77d5745d37e6227ecf29;hb=155492a5b96cec674846973a8524238b0365a848;hpb=da5c63bacddced77a951cbe7b223f314885a6c87 diff --git a/inc/modules/admin/what-config_network_types.php b/inc/modules/admin/what-config_network_types.php index b1e27e1d5e..985f437d7e 100644 --- a/inc/modules/admin/what-config_network_types.php +++ b/inc/modules/admin/what-config_network_types.php @@ -63,7 +63,7 @@ if (isGetRequestElementSet('network_id')) { // Is a network type handler selected? if (isGetRequestElementSet('network_type_id')) { // Load data for given network - $result = SQL_QUERY_ESC('SELECT + $result = sqlQueryEscaped('SELECT `t`.`network_id`, `t`.`network_type_id`, `t`.`network_type_handler`, @@ -95,9 +95,9 @@ LIMIT 1', ), __FUNCTION__, __LINE__); // Is there a record? - if (SQL_NUMROWS($result) == 1) { + if (sqlNumRows($result) == 1) { // Load it - $content = SQL_FETCHARRAY($result); + $content = sqlFetchArray($result); // Is the network active? if (($content['network_active'] == 'N') && (!isAdminsExpertWarningEnabled()) && (!isDebugModeEnabled())) { @@ -107,7 +107,7 @@ LIMIT 1', } // END - if // Check for network type configuration - $result_config = SQL_QUERY_ESC('SELECT + $result_config = sqlQueryEscaped('SELECT `network_data_id`, `network_max_reload_time`, `network_min_waiting_time`, @@ -133,16 +133,16 @@ LIMIT 1', $templateName = 'admin_add_config_network_type_form'; // Do we also have configuration? - if (SQL_NUMROWS($result_config) == 1) { + if (sqlNumRows($result_config) == 1) { // Load as well and merge it - $content = merge_array($content, SQL_FETCHARRAY($result_config)); + $content = merge_array($content, sqlFetchArray($result_config)); // Use template for editing $templateName = 'admin_edit_config_network_type_form'; } // END - if // Free result - SQL_FREERESULT($result_config); + sqlFreeResult($result_config); // "Translate" some values $content['network_max_reload_time'] = createTimeSelections($content['network_max_reload_time'], 'network_max_reload_time', 'WDhms'); @@ -158,11 +158,11 @@ LIMIT 1', } // END - if // Free result - SQL_FREERESULT($result); + sqlFreeResult($result); } // END - if // Get all type handlers - $result = SQL_QUERY_ESC('SELECT + $result = sqlQueryEscaped('SELECT `network_id`, `network_type_id`, `network_type_handler`, @@ -178,14 +178,14 @@ ORDER BY ), __FUNCTION__, __LINE__); // Are there entries left? - if (!SQL_HASZERONUMS($result)) { + if (!ifSqlHasZeroNums($result)) { // Init row output $OUT = ''; // List all entries - while ($content = SQL_FETCHARRAY($result)) { + while ($content = sqlFetchArray($result)) { // Check if config entry is there - $result_config = SQL_QUERY_ESC('SELECT + $result_config = sqlQueryEscaped('SELECT `network_data_id`, `network_max_reload_time`, `network_min_waiting_time`, @@ -208,9 +208,9 @@ LIMIT 1', ), __FUNCTION__, __LINE__); // Is there an entry? - if (SQL_NUMROWS($result_config) == 1) { + if (sqlNumRows($result_config) == 1) { // Load this data as well - $content = merge_array($content, SQL_FETCHARRAY($result_config)); + $content = merge_array($content, sqlFetchArray($result_config)); // Add it with extra template $content['network_type_config_content'] = loadTemplate('admin_show_config_network_type', TRUE, $content); @@ -220,7 +220,7 @@ LIMIT 1', } // Free result - SQL_FREERESULT($result_config); + sqlFreeResult($result_config); // Load row template $OUT .= loadTemplate('admin_config_network_types_row', TRUE, $content); @@ -240,7 +240,7 @@ LIMIT 1', } // Free result - SQL_FREERESULT($result); + sqlFreeResult($result); } else { // Generate network list for this script $OUT = generateAdminNetworkList(FALSE, TRUE, FALSE);