0) && (!ifPostContainsSelections('id')) && (!ifPostContainsSelections('subid'))) { // Not found so output message displayMessage('{--ADMIN_USER_SUBID_NO_SELECTIONS--}'); // Abort here return; } // END - if // Edit or delete button hit? if (isFormSent('edit')) { // Show entries for editing 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', array( 'userid' => bigintval(getRequestElement('userid')) )); } elseif (isFormSent('delete')) { // Show entries for deletion 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', array( 'userid' => bigintval(getRequestElement('userid')) )); } elseif (isFormSent('do_delete_stats')) { // Remove entries from database 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'))); // Is the include readable and is the sub id assigned to current admin? if (!isUserSubIdAssignedToMember(getRequestElement('id'), getRequestElement('userid'))) { // Sub id is not assigned to current admin or doesn't exist reportBug(__FILE__, __LINE__, 'Sub id ' . getRequestElement('id') . ' is not assigned with userid ' .getRequestElement('userid')); } elseif (isIncludeReadable($incFile)) { // Then include it loadIncludeOnce($incFile); // Do not show the list of URLs after this template $show = FALSE; } else { // Display error message reportBug(__FILE__, __LINE__, 'Invalid include file ' . basename($incFile) . ' detected.'); } } // Show entries? if ($show === FALSE) { // No, a form has already been show return FALSE; } // END - if // Is a user id sent? if (isGetRequestElementSet('userid')) { // List all sub ids doGenericXmlTemplateCallback('admin_list_user_subid', array( 'userid' => bigintval(getRequestElement('userid')) )); } else { // Output selection form with all confirmed user accounts listed addMemberSelectionBox(); } // [EOF] ?>