]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_imprint.php
Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[mailer.git] / inc / modules / admin / what-config_imprint.php
index 95e5eaed593464fb322a8e00dbc71f5ce7265573..603b92002a99d20e0d2a05b121e9e3f44e0e0b7a 100644 (file)
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
- * For more information visit: http://www.mxchange.org                  *
+ * Copyright (c) 2009 - 2015 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 *
@@ -43,33 +41,39 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 } // END - if
 
 // Add description as navigation point
-addMenuDescription('admin', __FILE__);
+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);
+               // None found
+               $content = loadTemplate('admin_list_imprint_row_none', TRUE);
        }
 
        // Load template
-       loadTemplate('admin_list_imprint', false, $content);
+       loadTemplate('admin_list_imprint', FALSE, $content);
 }
 
 // [EOF]