X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_mods.php;h=e6fd6943e1be9302dadab0a0f38c8268360681d1;hb=155492a5b96cec674846973a8524238b0365a848;hp=16bc80d907bc83cc6b258f0ffea13ee115c4c06d;hpb=02926f5327b32cae01d13b3db3fdfad971393982;p=mailer.git diff --git a/inc/modules/admin/what-list_mods.php b/inc/modules/admin/what-list_mods.php index 16bc80d907..e6fd6943e1 100644 --- a/inc/modules/admin/what-list_mods.php +++ b/inc/modules/admin/what-list_mods.php @@ -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);