Renamed all SQL-related functions to camel-case notation
[mailer.git] / inc / modules / admin / what-list_mods.php
index 98bb9476a101986bdcabb9c1c79d7ed4911343a3..e6fd6943e1be9302dadab0a0f38c8268360681d1 100644 (file)
@@ -53,14 +53,14 @@ if (isFormSent('edit')) {
                foreach (postRequestElement('sel') as $id => $sel) {
                        // Load module data
                        // @TODO This can be moved into mysql-function.php, see checkModulePermissions() function
-                       $result = SQL_QUERY_ESC("SELECT `id`, `module`, `title`, `locked`, `hidden`, `admin_only`, `mem_only` FROM `{?_MYSQL_PREFIX?}_mod_reg` WHERE `id`=%s LIMIT 1",
+                       $result = sqlQueryEscaped("SELECT `id`, `module`, `title`, `locked`, `hidden`, `admin_only`, `mem_only` FROM `{?_MYSQL_PREFIX?}_mod_reg` WHERE `id`=%s LIMIT 1",
                                array(bigintval($id)), __FILE__, __LINE__);
 
                        // Load data
-                       $content = SQL_FETCHARRAY($result);
+                       $content = sqlFetchArray($result);
 
                        // Free result
-                       SQL_FREERESULT($result);
+                       sqlFreeResult($result);
 
                        // Prepare array for the template
                        $content['locked']     = addSelectionBox('yn', $content['locked']    , 'locked', $id);
@@ -92,7 +92,7 @@ if (isFormSent('edit')) {
                $id = bigintval($id);
 
                // Update module
-               addSql(SQL_QUERY_ESC("UPDATE
+               addSql(sqlQueryEscaped("UPDATE
        `{?_MYSQL_PREFIX?}_mod_reg`
 SET
        `title`='%s',
@@ -125,7 +125,7 @@ LIMIT 1",
 
 if (!ifPostContainsSelections()) {
        // Load module data (We do not need to check if there's at least one...)
-       $result = SQL_QUERY('SELECT
+       $result = sqlQuery('SELECT
        `id`, `module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`
 FROM
        `{?_MYSQL_PREFIX?}_mod_reg`
@@ -133,7 +133,7 @@ ORDER BY
        `module` ASC', __FILE__, __LINE__);
 
        $OUT = '';
-       while ($content = SQL_FETCHARRAY($result)) {
+       while ($content = sqlFetchArray($result)) {
                // Reset title to --- if it is NULL
                if (($content['module'] == 'index') || ($content['module'] == 'login')) {
                        // Add link to detail statistics
@@ -145,7 +145,7 @@ ORDER BY
        } // END - while
 
        // Free memory
-       SQL_FREERESULT($result);
+       sqlFreeResult($result);
 
        // Load main template
        loadTemplate('admin_list_mods', FALSE, $OUT);