X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-guest_add.php;h=4e53ff7d3ec535ee9cc497c1b20511b6b4ac708d;hb=ee3a0b42f93de7676fca549c866c1c2e6f3f0576;hp=25949845ca7e2c983a5ccd11528df401ed66c0ed;hpb=e8ca54fe91872ab95a6ffdc4f1268bf18889021d;p=mailer.git diff --git a/inc/modules/admin/what-guest_add.php b/inc/modules/admin/what-guest_add.php index 25949845ca..4e53ff7d3e 100644 --- a/inc/modules/admin/what-guest_add.php +++ b/inc/modules/admin/what-guest_add.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * 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 - 2011 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,9 +44,9 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Check if the admin has entered title and what-php file name... -if (((!isPostRequestParameterSet('title')) || (!isPostRequestParameterSet('menu'))) && (isFormSent())) { +if (((!isPostRequestElementSet('title')) || (!isPostRequestElementSet('menu'))) && (isFormSent())) { // Abort adding the menu entry - unsetPostRequestParameter('ok'); + unsetPostRequestElement('ok'); } // END - if if (!isFormSent()) { @@ -55,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 @@ -98,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 @@ -180,30 +180,30 @@ ORDER BY `sort` ASC", loadTemplate('admin_add_guest_menu', false, $content); } elseif (!isDemoModeActive()) { // Insert new menu entry - if (isPostRequestParameterSet('menu')) { + if (isPostRequestElementSet('menu')) { SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('%s','%s','%s','%s','%s','%s')", array( - postRequestParameter('menu'), - postRequestParameter('name'), - postRequestParameter('title'), - bigintval(postRequestParameter('sort')), - postRequestParameter('visible'), - postRequestParameter('active'), + postRequestElement('menu'), + postRequestElement('name'), + postRequestElement('title'), + bigintval(postRequestElement('sort')), + postRequestElement('visible'), + postRequestElement('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'), - bigintval(postRequestParameter('sort')), - postRequestParameter('visible'), - postRequestParameter('active'), + postRequestElement('name'), + postRequestElement('title'), + bigintval(postRequestElement('sort')), + postRequestElement('visible'), + postRequestElement('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]