]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_network_types.php
Renamed all SQL-related functions to camel-case notation
[mailer.git] / inc / modules / admin / what-config_network_types.php
index b1e27e1d5e3eacb5d99e77d5745d37e6227ecf29..985f437d7ed8b6d54785b8935653bf3f300af75b 100644 (file)
@@ -63,7 +63,7 @@ if (isGetRequestElementSet('network_id')) {
        // Is a network type handler selected?
        if (isGetRequestElementSet('network_type_id')) {
                // Load data for given network
        // 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`,
        `t`.`network_id`,
        `t`.`network_type_id`,
        `t`.`network_type_handler`,
@@ -95,9 +95,9 @@ LIMIT 1',
                        ), __FUNCTION__, __LINE__);
 
                // Is there a record?
                        ), __FUNCTION__, __LINE__);
 
                // Is there a record?
-               if (SQL_NUMROWS($result) == 1) {
+               if (sqlNumRows($result) == 1) {
                        // Load it
                        // Load it
-                       $content = SQL_FETCHARRAY($result);
+                       $content = sqlFetchArray($result);
 
                        // Is the network active?
                        if (($content['network_active'] == 'N') && (!isAdminsExpertWarningEnabled()) && (!isDebugModeEnabled())) {
 
                        // Is the network active?
                        if (($content['network_active'] == 'N') && (!isAdminsExpertWarningEnabled()) && (!isDebugModeEnabled())) {
@@ -107,7 +107,7 @@ LIMIT 1',
                        } // END - if
 
                        // Check for network type configuration
                        } // 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`,
        `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?
                        $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
                                // 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
 
                                // 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');
 
                        // "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
                } // END - if
 
                // Free result
-               SQL_FREERESULT($result);
+               sqlFreeResult($result);
        } // END - if
 
        // Get all type handlers
        } // END - if
 
        // Get all type handlers
-       $result = SQL_QUERY_ESC('SELECT
+       $result = sqlQueryEscaped('SELECT
        `network_id`,
        `network_type_id`,
        `network_type_handler`,
        `network_id`,
        `network_type_id`,
        `network_type_handler`,
@@ -178,14 +178,14 @@ ORDER BY
                ), __FUNCTION__, __LINE__);
 
        // Are there entries left?
                ), __FUNCTION__, __LINE__);
 
        // Are there entries left?
-       if (!SQL_HASZERONUMS($result)) {
+       if (!ifSqlHasZeroNums($result)) {
                // Init row output
                $OUT = '';
 
                // List all entries
                // Init row output
                $OUT = '';
 
                // List all entries
-               while ($content = SQL_FETCHARRAY($result)) {
+               while ($content = sqlFetchArray($result)) {
                        // Check if config entry is there
                        // 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`,
        `network_data_id`,
        `network_max_reload_time`,
        `network_min_waiting_time`,
@@ -208,9 +208,9 @@ LIMIT 1',
                                ), __FUNCTION__, __LINE__);
 
                        // Is there an entry?
                                ), __FUNCTION__, __LINE__);
 
                        // Is there an entry?
-                       if (SQL_NUMROWS($result_config) == 1) {
+                       if (sqlNumRows($result_config) == 1) {
                                // Load this data as well
                                // 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);
 
                                // 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
                        }
 
                        // Free result
-                       SQL_FREERESULT($result_config);
+                       sqlFreeResult($result_config);
 
                        // Load row template
                        $OUT .= loadTemplate('admin_config_network_types_row', TRUE, $content);
 
                        // Load row template
                        $OUT .= loadTemplate('admin_config_network_types_row', TRUE, $content);
@@ -240,7 +240,7 @@ LIMIT 1',
        }
 
        // Free result
        }
 
        // Free result
-       SQL_FREERESULT($result);
+       sqlFreeResult($result);
 } else {
        // Generate network list for this script
        $OUT = generateAdminNetworkList(FALSE, TRUE, FALSE);
 } else {
        // Generate network list for this script
        $OUT = generateAdminNetworkList(FALSE, TRUE, FALSE);