X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-guest_add.php;h=5583435d1373ff4891a125ce488119f164d94b72;hb=7ed35044deb45bcf59d2432c696129a1651b60cb;hp=14383f6230a96fa7f5605c8f15a4f48d103eb509;hpb=9553dbc9eed40bfa2beffa79813f2d5cd21fa8ac;p=mailer.git diff --git a/inc/modules/admin/what-guest_add.php b/inc/modules/admin/what-guest_add.php index 14383f6230..5583435d13 100644 --- a/inc/modules/admin/what-guest_add.php +++ b/inc/modules/admin/what-guest_add.php @@ -14,11 +14,9 @@ * $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 * + * 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 * @@ -43,7 +41,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { } // END - if // Add description as navigation point -addMenuDescription('admin', __FILE__); +addYouAreHereLink('admin', __FILE__); // Check if the admin has entered title and what-php file name... if (((!isPostRequestParameterSet('title')) || (!isPostRequestParameterSet('menu'))) && (isFormSent())) { @@ -57,7 +55,7 @@ if (!isFormSent()) { // Get all available main menus $result_menu = SQL_QUERY("SELECT - `action`, `title`, `sort` + `action`,`title`,`sort` FROM `{?_MYSQL_PREFIX?}_guest_menu` WHERE @@ -100,7 +98,7 @@ ORDER BY foreach ($menus as $key_main => $value_main) { // Query for sub menus $result = SQL_QUERY_ESC("SELECT - `what`, `title`, `sort` + `what`,`title`,`sort` FROM `{?_MYSQL_PREFIX?}_guest_menu` WHERE @@ -193,7 +191,7 @@ ORDER BY `sort` ASC", postRequestParameter('active'), ), __FILE__, __LINE__); } else { - SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`, `title`, `sort`, `visible`, `locked`) VALUES ('%s','%s','%s','%s','%s')", + SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`title`,`sort`,`visible`,`locked`) VALUES ('%s','%s','%s','%s','%s')", array( postRequestParameter('name'), postRequestParameter('title'), @@ -202,10 +200,10 @@ ORDER BY `sort` ASC", postRequestParameter('active'), ), __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]