return registerGenerateCategoryTable('admin', $configEntry);
}
+// Template helper for generating a list of all activated user registration provider
+function doTemplateGuestRegistrationList ($templateName, $clear = FALSE) {
+ // Init output
+ $content = '';
+
+ // Default is only activated provider
+ $addSql = " AND `provider_is_active`='Y'";
+
+ // Is admin logged-in?
+ if (isAdmin()) {
+ // Then show all
+ $addSql = '';
+ } // END - if
+
+ // Search for all
+ $result = sqlQuery("SELECT
+ `provider_name`,
+ `provider_extension`
+FROM
+ `{?_MYSQL_PREFIX?}_user_register_provider`
+WHERE
+ `provider_extension` != 'register'
+ " . $addSql . "
+ORDER BY
+ `provider_name` ASC", __FUNCTION__, __LINE__);
+
+ // Are there entries?
+ if (sqlNumRows($result) > 0) {
+ // Loop through all
+ $row = '';
+ while ($content = sqlFetchArray($result)) {
+ // Load row template
+ $row .= loadTemplate('guest_registration_provider_row', TRUE, $content);
+ } // END - while
+
+ // Load main template
+ $content = loadTemplate('guest_registration_provider', TRUE, $row);
+ } else {
+ // Nothing found
+ $content = returnMessage('{--GUEST_EXTRA_REGISTRATION_PROVIDER_404--}');
+ }
+
+ // Free result
+ sqlFreeResult($result);
+
+ // Return the generated content
+ return $content;
+}
+
// [EOF]
?>