X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_imprint.php;h=806689398703f8598188bf54d4a0357d9d786913;hb=61621983cc6d7195fcc7eab29b5f6080ff283b34;hp=752442fbf5c57a9a8ee84391cd0f38263877b975;hpb=56931cd9321119dd37372bd16d6c552857e40066;p=mailer.git diff --git a/inc/modules/admin/what-config_imprint.php b/inc/modules/admin/what-config_imprint.php index 752442fbf5..8066893987 100644 --- a/inc/modules/admin/what-config_imprint.php +++ b/inc/modules/admin/what-config_imprint.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2016 by Mailer Developer Team * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -44,30 +44,36 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Form sent? -if (isFormSent()) { +if (isFormSent('save_config')) { // Handle form ... } else { // Query for all imprint data rows - $result = SQL_QUERY('SELECT `imprint_key`, `imprint_value` FROM `{?_MYSQL_PREFIX?}_imprint_data` ORDER BY `imprint_id` ASC', __FILE__, __LINE__); + $result = sqlQuery('SELECT + `imprint_key`, + `imprint_value` +FROM + `{?_MYSQL_PREFIX?}_imprint_data` +ORDER BY + `imprint_id` ASC', __FILE__, __LINE__); - // Do we have entries? - if (!SQL_HASZERONUMS($result)) { + // Are there entries? + if (!ifSqlHasZeroNumRows($result)) { // Load all entries $OUT = ''; - while ($content = SQL_FETCHARRAY($result)) { + while ($content = sqlFetchArray($result)) { // Load row template - $OUT .= loadTemplate('admin_list_imprint_row', true, $content); + $OUT .= loadTemplate('admin_list_imprint_row', TRUE, $content); } // END - while // Transfer all rows to $content $content = $OUT; } else { // None found - $content = loadTemplate('admin_list_imprint_row_none', true); + $content = loadTemplate('admin_list_imprint_row_none', TRUE); } // Load template - loadTemplate('admin_list_imprint', false, $content); + loadTemplate('admin_list_imprint', FALSE, $content); } // [EOF]