X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-mem_add.php;h=14bde5ed57ce038da88f1b96dccbd967fd1978eb;hp=53541a8fe1be5eec9f3c99572e23ed3f7b09cb30;hb=4b7f401f2a4680ae46ca41c57f749cfe35163660;hpb=263a089d8a499e0e26d0af9e7aa7639f88b8ca60 diff --git a/inc/modules/admin/what-mem_add.php b/inc/modules/admin/what-mem_add.php index 53541a8fe1..14bde5ed57 100644 --- a/inc/modules/admin/what-mem_add.php +++ b/inc/modules/admin/what-mem_add.php @@ -19,6 +19,7 @@ * 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 * * * * This program is free software; you can redistribute it and/or modify * @@ -46,8 +47,8 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addMenuDescription('admin', __FILE__); // Check if the admin has entered title and what-php file name... -if ((!isPostRequestElementSet('title')) && (isFormSent())) { - unsetPostRequestElement('ok'); +if ((!isPostRequestParameterSet('title')) && (isFormSent())) { + unsetPostRequestParameter('ok'); } // END - if if (!isFormSent()) { @@ -170,24 +171,24 @@ if (!isFormSent()) { loadTemplate('admin_member_add', false, $content); } elseif (!isDemoModeActive()) { // Insert new menu entry - if (isPostRequestElementSet('menu')) { + 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')", array( - postRequestElement('menu'), - postRequestElement('name'), - postRequestElement('title'), - postRequestElement('visible'), - postRequestElement('active'), - bigintval(postRequestElement('sort')), + postRequestParameter('menu'), + postRequestParameter('name'), + postRequestParameter('title'), + postRequestParameter('visible'), + postRequestParameter('active'), + 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')", array( - postRequestElement('name'), - postRequestElement('title'), - postRequestElement('visible'), - postRequestElement('active'), - bigintval(postRequestElement('sort')), + postRequestParameter('name'), + postRequestParameter('title'), + postRequestParameter('visible'), + postRequestParameter('active'), + bigintval(postRequestParameter('sort')), ), __FILE__, __LINE__); } loadTemplate('admin_settings_saved', false, getMessage('SETTINGS_SAVED'));