]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-admin_add.php
Extension ext-network continued:
[mailer.git] / inc / modules / admin / what-admin_add.php
index 8363be5858472902e24ebbff903702efd8028267..ddcfa970cbf0e8ab844493e0e0666e42d6687382 100644 (file)
@@ -17,7 +17,7 @@
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * 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,8 +44,8 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addYouAreHereLink('admin', __FILE__);
 
 // Check if the admin has entered title and what-php file name...
-if ((isFormSent()) && ((!isPostRequestParameterSet('title')) || (!isPostRequestParameterSet('menu')) || (!isPostRequestParameterSet('descr')))) {
-       unsetPostRequestParameter('ok');
+if ((isFormSent()) && ((!isPostRequestElementSet('title')) || (!isPostRequestElementSet('menu')) || (!isPostRequestElementSet('descr')))) {
+       unsetPostRequestElement('ok');
 } // END - if
 
 if (!isFormSent()) {
@@ -161,25 +161,25 @@ if (!isFormSent()) {
        loadTemplate('admin_add_admin_menu', false, $content);
 } elseif (!isDemoModeActive()) {
        // Insert new menu entry
-       if (isPostRequestParameterSet('menu')) {
+       if (isPostRequestElementSet('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(
-                               postRequestParameter('menu'),
-                               postRequestParameter('name'),
-                               postRequestParameter('title'),
-                               postRequestParameter('descr'),
-                               bigintval(postRequestParameter('sort')),
+                               postRequestElement('menu'),
+                               postRequestElement('name'),
+                               postRequestElement('title'),
+                               postRequestElement('descr'),
+                               bigintval(postRequestElement('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(
-                               postRequestParameter('name'),
-                               postRequestParameter('title'),
-                               postRequestParameter('descr'),
-                               bigintval(postRequestParameter('sort')),
+                               postRequestElement('name'),
+                               postRequestElement('title'),
+                               postRequestElement('descr'),
+                               bigintval(postRequestElement('sort')),
                        ), __FILE__, __LINE__
                );
        }