]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-subids.php
Language string cleaned up
[mailer.git] / inc / modules / member / what-subids.php
index 61f295ae035fd1608e1741616831a959f363eb92..166e3b0c5f2e720c0ce36de26838d9d3cd887477 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 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -55,7 +55,7 @@ if ((!isExtensionActive('user')) && (!isAdmin())) {
 } // END - if
 
 // By default show the list...
-$show = true;
+$show = TRUE;
 
 // Check for 'url_id' element
 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'isFormSent()=' . intval(isFormSent('add_subid')) . ',ifPostContainsSelections()=' . intval(ifPostContainsSelections()) . ',countRequestPost()=' . countRequestPost());
@@ -70,28 +70,28 @@ if ((countRequestPost('id') > 0) && (!isFormSent('add_subid')) && ((!ifPostConta
 // Edit or delete button hit?
 if (isFormSent('add_subid')) {
        // Add new sub id
-       showEntriesByXmlCallback('member_add_do_user_subid');
+       doGenericXmlTemplateCallback('member_add_do_user_subid');
 } elseif (isFormSent('edit')) {
        // Show entries for editing
-       showEntriesByXmlCallback('member_edit_show_user_subid');
+       doGenericXmlTemplateCallback('member_edit_show_user_subid');
 
        // Do not show the list of URLs after this template
-       $show = false;
+       $show = FALSE;
 } elseif (isFormSent('do_edit')) {
        // Change data of entries
-       showEntriesByXmlCallback('member_edit_do_user_subid');
+       doGenericXmlTemplateCallback('member_edit_do_user_subid');
 } elseif (isFormSent('delete')) {
        // Show entries for deletion
-       showEntriesByXmlCallback('member_delete_show_user_subid');
+       doGenericXmlTemplateCallback('member_delete_show_user_subid');
 
        // Do not show the list of URLs after this template
-       $show = false;
+       $show = FALSE;
 } elseif (isFormSent('do_delete')) {
        // Remove entries from database
-       showEntriesByXmlCallback('member_delete_do_user_subid');
+       doGenericXmlTemplateCallback('member_delete_do_user_subid');
 } elseif ((isGetRequestElementSet('do')) && (isGetRequestElementSet('id'))) {
        // Construct module name
-       $incFile = sprintf("inc/modules/member/subid-%s.php", SQL_ESCAPE(getRequestElement('do')));
+       $incFile = sprintf("inc/modules/member/subid-%s.php", sqlEscapeString(getRequestElement('do')));
 
        // Is the include readable and is the sub id assigned to current member?
        if (!isUserSubIdAssignedToMember(getRequestElement('id'))) {
@@ -102,7 +102,7 @@ if (isFormSent('add_subid')) {
                loadIncludeOnce($incFile);
 
                // Do not show the list of URLs after this template
-               $show = false;
+               $show = FALSE;
        } else {
                // Display error message
                displayMessage('{--MEMBER_INVALID_DO_USER_SUBID--}');
@@ -110,13 +110,13 @@ if (isFormSent('add_subid')) {
 }
 
 // Show entries?
-if ($show === false) {
+if ($show === FALSE) {
        // No, a form has already been show
-       return false;
+       return FALSE;
 } // END - if
 
 // List all campaigns
-showEntriesByXmlCallback('member_list_subid');
+doGenericXmlTemplateCallback('member_list_subid');
 
 // Display form for adding a sub id
 loadTemplate('member_add_subid');