]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-mem_add.php
Referal system refactured (and some parts fixed), wrapper function introduced:
[mailer.git] / inc / modules / admin / what-mem_add.php
index cbfdf8b23a4997bc30709933a57f1b6c1b6b68fa..5c87bf8f84ae94a1164bc2b6cfb6dea13431183d 100644 (file)
@@ -17,7 +17,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -170,7 +170,7 @@ if (!isFormSent()) {
 } elseif (!isDemoModeActive()) {
        // Insert new menu entry
        if (isPostRequestParameterSet('menu')) {
-               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`what`,`title`,`visible`,`locked`,`sort`) VALUES ('%s','%s','%s','%s','%s','%s')",
+               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`, `what`, `title`, `visible`, `locked`, `sort`) VALUES ('%s','%s','%s','%s','%s','%s')",
                        array(
                                postRequestParameter('menu'),
                                postRequestParameter('name'),
@@ -180,7 +180,7 @@ if (!isFormSent()) {
                                bigintval(postRequestParameter('sort')),
                        ), __FILE__, __LINE__);
        } else {
-               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`,`title`,`visible`,`locked`,`sort`) VALUES ('%s','%s','%s','%s','%s')",
+               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_member_menu` (`action`, `title`, `visible`, `locked`, `sort`) VALUES ('%s','%s','%s','%s','%s')",
                        array(
                                postRequestParameter('name'),
                                postRequestParameter('title'),
@@ -189,10 +189,10 @@ if (!isFormSent()) {
                                bigintval(postRequestParameter('sort')),
                        ), __FILE__, __LINE__);
        }
-       loadTemplate('admin_settings_saved', false, '{--SETTINGS_SAVED');
+       displayMessage('{--SETTINGS_SAVED');
 } else {
        // Demo mode!
-       loadTemplate('admin_settings_saved', false, '{--SETTINGS_NOT_SAVED--}');
+       displayMessage('{--SETTINGS_NOT_SAVED--}');
 }
 
 // [EOF]