]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_user_subid.php
Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[mailer.git] / inc / modules / admin / what-list_user_subid.php
index d655ed3d7c50598c3217bcbf8125b8ae38d88a1f..1ff71b6e73991045fe7c03591555ae559c96982f 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2015 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -58,28 +58,38 @@ if ((countRequestPost() > 0) && (!ifPostContainsSelections('id')) && (!ifPostCon
 // Edit or delete button hit?
 if (isFormSent('edit')) {
        // Show entries for editing
-       doGenericXmlTemplateCallback('admin_edit_show_user_subid');
+       doGenericXmlTemplateCallback('admin_edit_show_user_subid', array(
+               'userid' => bigintval(getRequestElement('userid'))
+       ));
 
        // Do not show the list of URLs after this template
        $show = FALSE;
 } elseif (isFormSent('do_edit')) {
        // Change data of entries
-       doGenericXmlTemplateCallback('admin_edit_do_user_subid');
+       doGenericXmlTemplateCallback('admin_edit_do_user_subid', array(
+               'userid' => bigintval(getRequestElement('userid'))
+       ));
 } elseif (isFormSent('delete')) {
        // Show entries for deletion
-       doGenericXmlTemplateCallback('admin_delete_show_user_subid');
+       doGenericXmlTemplateCallback('admin_delete_show_user_subid', array(
+               'userid' => bigintval(getRequestElement('userid'))
+       ));
 
        // Do not show the list of URLs after this template
        $show = FALSE;
 } elseif (isFormSent('do_delete')) {
        // Remove entries from database
-       doGenericXmlTemplateCallback('admin_delete_do_user_subid');
+       doGenericXmlTemplateCallback('admin_delete_do_user_subid', array(
+               'userid' => bigintval(getRequestElement('userid'))
+       ));
 } elseif (isFormSent('do_delete_stats')) {
        // Remove entries from database
-       doGenericXmlTemplateCallback('admin_delete_do_user_subid_stats');
+       doGenericXmlTemplateCallback('admin_delete_do_user_subid_stats', array(
+               'userid' => bigintval(getRequestElement('userid'))
+       ));
 } elseif ((isGetRequestElementSet('do')) && (isGetRequestElementSet('id'))) {
        // Construct module name
-       $incFile = sprintf("inc/modules/admin/subid-%s.php", SQL_ESCAPE(getRequestElement('do')));
+       $incFile = sprintf('inc/modules/admin/subid-%s.php', sqlEscapeString(getRequestElement('do')));
 
        // Is the include readable and is the sub id assigned to current admin?
        if (!isUserSubIdAssignedToMember(getRequestElement('id'), getRequestElement('userid'))) {