]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-subids.php
Rewrote a lot parts to extract 'payments' table (+ handling) into own extension:
[mailer.git] / inc / modules / member / what-subids.php
index 61f295ae035fd1608e1741616831a959f363eb92..8fd6b2a2e4d366c6e706d13f674773a1c8caa333 100644 (file)
@@ -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,25 +70,25 @@ 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')));
@@ -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');