X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-admin_add.php;h=2ce5fe9133c1678fe216ea8af89c4327b5b25212;hb=4b7f401f2a4680ae46ca41c57f749cfe35163660;hp=fa3a6012ab9b7b0271e47b70ae7152a0ec572e75;hpb=1c3cf7c8bd60ea09a2b268e37a2cb2d0ee0cdeef;p=mailer.git diff --git a/inc/modules/admin/what-admin_add.php b/inc/modules/admin/what-admin_add.php index fa3a6012ab..2ce5fe9133 100644 --- a/inc/modules/admin/what-admin_add.php +++ b/inc/modules/admin/what-admin_add.php @@ -1,7 +1,7 @@ \n"; } - } - else - { + } else { $OUT .= " \n"; } } @@ -156,32 +155,32 @@ if (!isFormSent()) { // Prepare selections for template $content['below_selection'] = $OUT; - $content['what_selection'] = adminAddMenuSelectionBox('member', 'what' , 'name'); - $content['action_selection'] = adminAddMenuSelectionBox('member', 'action', 'menu'); + $content['what_selection'] = adminAddMenuSelectionBox('admin', 'what' , 'name'); + $content['action_selection'] = adminAddMenuSelectionBox('admin', 'action', 'menu'); // Display form loadTemplate('admin_admin_add', false, $content); } elseif (!isDemoModeActive()) { // Insert new menu entry - if (isPostRequestElementSet('menu')) { + if (isPostRequestParameterSet('menu')) { // Add sub menu SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`,`what`,`title`,`descr`,`sort`) VALUES ('%s','%s','%s','%s','%s')", array( - postRequestElement('menu'), - postRequestElement('name'), - postRequestElement('title'), - postRequestElement('descr'), - bigintval(postRequestElement('sort')), + postRequestParameter('menu'), + postRequestParameter('name'), + postRequestParameter('title'), + postRequestParameter('descr'), + bigintval(postRequestParameter('sort')), ), __FILE__, __LINE__ ); } else { // Add main menu SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (action, title, descr, sort) VALUES ('%s','%s','%s','%s')", array( - postRequestElement('name'), - postRequestElement('title'), - postRequestElement('descr'), - bigintval(postRequestElement('sort')), + postRequestParameter('name'), + postRequestParameter('title'), + postRequestParameter('descr'), + bigintval(postRequestParameter('sort')), ), __FILE__, __LINE__ ); }