]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_mods.php
Renamed all SQL-related functions to camel-case notation
[mailer.git] / inc / modules / admin / what-list_mods.php
index 16bc80d907bc83cc6b258f0ffea13ee115c4c06d..e6fd6943e1be9302dadab0a0f38c8268360681d1 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -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);