', $txt['registration_agreement'], '

', $context['agreement'], '

'; // Age restriction in effect? if ($context['show_coppa']) echo '

'; else echo ' '; echo '
'; } // Before registering - get their information. function template_registration_form() { global $context, $settings, $options, $scripturl, $txt, $modSettings; echo ' '; // Any errors? if (!empty($context['registration_errors'])) { echo '
', $txt['registration_errors_occurred'], '
'; } echo '

', $txt['registration_form'], '

', $txt['required_info'], '

'; // If OpenID is enabled, give the user a choice between password and OpenID. if (!empty($modSettings['enableOpenID'])) { echo '
', $txt['authenticate_label'], ': (?)
'; } echo '
'; // If OpenID is enabled, give the user a choice between password and OpenID. if (!empty($modSettings['enableOpenID'])) { echo '
', $txt['authenticate_openid_url'], ':
'; } echo '
'; // If we have either of these, show the extra group. if (!empty($context['profile_fields']) || !empty($context['custom_fields'])) { echo '

', $txt['additional_information'], '

'; } if (!empty($context['profile_fields'])) { // Any fields we particularly want? foreach ($context['profile_fields'] as $key => $field) { if ($field['type'] == 'callback') { if (isset($field['callback_func']) && function_exists('template_profile_' . $field['callback_func'])) { $callback_func = 'template_profile_' . $field['callback_func']; $callback_func(); } } else { echo '
', $field['label'], ':'; // Does it have any subtext to show? if (!empty($field['subtext'])) echo ' ', $field['subtext'], ''; echo '
'; // Want to put something infront of the box? if (!empty($field['preinput'])) echo ' ', $field['preinput']; // What type of data are we showing? if ($field['type'] == 'label') echo ' ', $field['value']; // Maybe it's a text box - very likely! elseif (in_array($field['type'], array('int', 'float', 'text', 'password'))) echo ' '; // You "checking" me out? ;) elseif ($field['type'] == 'check') echo ' '; // Always fun - select boxes! elseif ($field['type'] == 'select') { echo ' '; } // Something to end with? if (!empty($field['postinput'])) echo ' ', $field['postinput']; echo '
'; } } } // Are there any custom fields? if (!empty($context['custom_fields'])) { foreach ($context['custom_fields'] as $field) echo '
', $field['name'], ': ', $field['desc'], '
', $field['input_html'], '
'; } // If we have either of these, close the list like a proper gent. if (!empty($context['profile_fields']) || !empty($context['custom_fields'])) { echo '
'; } if ($context['visual_verification']) { echo '

', $txt['verification'], '

', template_control_verification($context['visual_verification_id'], 'all'), '
'; } echo '
'; } // After registration... all done ;). function template_after() { global $context, $settings, $options, $txt, $scripturl; // Not much to see here, just a quick... "you're now registered!" or what have you. echo '

', $context['title'], '

', $context['description'], '

'; } // Template for giving instructions about COPPA activation. function template_coppa() { global $context, $settings, $options, $txt, $scripturl; // Formulate a nice complicated message! echo '

', $context['page_title'], '

', $context['coppa']['body'], '

', $txt['coppa_form_link_popup'], ' | ', $txt['coppa_form_link_download'], '

', $context['coppa']['many_options'] ? $txt['coppa_send_to_two_options'] : $txt['coppa_send_to_one_option'], '

'; // Can they send by post? if (!empty($context['coppa']['post'])) { echo '

1) ', $txt['coppa_send_by_post'], '

', $context['coppa']['post'], '
'; } // Can they send by fax?? if (!empty($context['coppa']['fax'])) { echo '

', !empty($context['coppa']['post']) ? '2' : '1', ') ', $txt['coppa_send_by_fax'], '

', $context['coppa']['fax'], '
'; } // Offer an alternative Phone Number? if ($context['coppa']['phone']) { echo '

', $context['coppa']['phone'], '

'; } echo '
'; } // An easily printable form for giving permission to access the forum for a minor. function template_coppa_form() { global $context, $settings, $options, $txt, $scripturl; // Show the form (As best we can) echo '
', $context['forum_contacts'], '
', $txt['coppa_form_address'], ': ', $context['ul'], '
', $context['ul'], '
', $context['ul'], '
', $context['ul'], '
', $txt['coppa_form_date'], ': ', $context['ul'], '

', $context['coppa_body'], '

'; } // Show a window containing the spoken verification code. function template_verification_sound() { global $context, $settings, $options, $txt, $scripturl; echo ' ', $context['page_title'], '
'; if ($context['browser']['is_ie']) echo ' '; else echo ' ', $context['verification_sound_href'], ' '; echo '
', $txt['visual_verification_sound_again'], '
', $txt['visual_verification_sound_close'], '
', $txt['visual_verification_sound_direct'], '
'; } function template_admin_register() { global $context, $settings, $options, $scripturl, $txt, $modSettings; echo '

', $txt['admin_browse_register_new'], '

'; if (!empty($context['registration_done'])) echo '
', $context['registration_done'], '
'; echo '
', $txt['admin_register_username_desc'], '
', $txt['admin_register_email_desc'], '
', $txt['admin_register_password_desc'], '
'; if (!empty($context['member_groups'])) { echo '
', $txt['admin_register_group_desc'], '
'; } echo '
', $txt['admin_register_email_detail_desc'], '

'; } // Form for editing the agreement shown for people registering to the forum. function template_edit_agreement() { global $context, $settings, $options, $scripturl, $txt; // Just a big box to edit the text file ;). echo '

', $txt['registration_agreement'], '

'; // Warning for if the file isn't writable. if (!empty($context['warning'])) echo '

', $context['warning'], '

'; echo '
'; // Is there more than one language to choose from? if (count($context['editable_agreements']) > 1) { echo '
', $txt['admin_agreement_select_language'], ': 
'; } echo '
'; // Show the actual agreement in an oversized text box. echo '


'; } function template_edit_reserved_words() { global $context, $settings, $options, $scripturl, $txt; echo '

', $txt['admin_reserved_set'], '

', $txt['admin_reserved_line'], '


'; } ?>